Recent

Author Topic: Is it possible self.loadfrom_device ?  (Read 1450 times)

rsu333

  • Jr. Member
  • **
  • Posts: 73
Is it possible self.loadfrom_device ?
« on: November 12, 2021, 02:54:24 pm »
Is it possible to load any files by  command self.load_from_device
like  self.loadfromassets ?

ezlage

  • New Member
  • *
  • Posts: 29
    • GitHub
Re: Is it possible self.loadfrom_device ?
« Reply #1 on: November 12, 2021, 05:19:23 pm »
Your question does not reveal the class involved. So, it is not possible to know what responds as Self.
Which component or object are you talking about? Which class?

cdbc

  • Sr. Member
  • ****
  • Posts: 368
    • http://www.cdbc.dk
Re: Is it possible self.loadfrom_device ?
« Reply #2 on: November 12, 2021, 05:53:44 pm »
Hi
Probably, but you have to write the "load_from_device" procedure / function yourself...
Regards Benny
If it ain't broke, don't fix it ;)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2053
Re: Is it possible self.loadfrom_device ?
« Reply #3 on: November 13, 2021, 12:22:34 am »

Hi, rsu333!

LAMW?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rsu333

  • Jr. Member
  • **
  • Posts: 73
Re: Is it possible self.loadfrom_device ?
« Reply #4 on: November 13, 2021, 07:35:55 am »
Yes.LaMW.
Is it possible?
I want to create a music application in which need to load mp3 files present in device .
Kindly suggest easy solution.

guaracy

  • New Member
  • *
  • Posts: 14
Re: Is it possible self.loadfrom_device ?
« Reply #5 on: November 13, 2021, 04:13:37 pm »
Use jMediaPlayer from Android Bridges Extra tab.

Code: Pascal  [Select][+][-]
  1. jMediaPlayer1.LoadFromAssets('musictoplay.mp3');
  2. jMediaPlayer1.Start();
  3.  

 

TinyPortal © 2005-2018