Upload sound from user phone

o /system/media/sound/{notifications|ringtones|alarms}

Do you understand what I mean ?!

quieres saber la ruta que busca el telefono cuando uena el ringtong

use the image picker together with an add list item block from the list drawer to add the image to the list
you might want to store the list in TinyDB, so next time the users opens the app, the image is still there

it would help to do some more tutorials to learn the basics... you already got sufficient links and tips where to find the tutorials...

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

User-imported photos are a part of the job, the most important thing is choosing a music for the image.
Example :
if canvas1.backgrandimage = tiger.jpg then
sound1 = tiger.mp3
sound start
end if

From the activity starter with the previous description you can call the image and sound files but equalizing the image and sound is my main problem
Have you ever created a program with this method that can be modeled?
Thanks

use the split block to split the image name by . to get a list of 2 items, then use the select list item block to select the first item, which is "tiger" in the example, now use the join block and join this together with text ".mp3" and you got the sound name

did I already mention, that it would help a lot to do the tutorials?
these are very basic questions and doing the tutorial helps you to understand the basics...

Taifun

Yes you are right
But let me admit that I have to use Google translator every time I read and do it, and the more basic problem is that using translator words and descriptions is undesirable and further confuses me.
But apparently there is no solution, and I have to keep going
I’m still struggling with the blocks and trying to get your tips
Thank you very much and wish you all the best

I just explained the solution in detail, now it's your turn...
Taifun

Is this the right way to do this project?
And apply the sound the same way, and eventually equalize the two
However I prefer to use your experiences and there may be a simpler solution

blocks(4)
blocks(5)
blocks(6)
blocks(7)
blocks(8)

This method did not work either
Pictures are not saved !! Returns an empty Do It Result ( )
Why does TinyDb not store values?
My eyes were blinded enough to read the material
Help me :no_mouth:

A guess, I have no idea how your code is supposed to work.

guess

It appears you never set listPics to a List.

So if the code Blocks displays a List in TextBox1, it should be assigned to listPics before STORING the value in the TinyDB? Debug using a DoIt. It seems listPics is an empty List when you save.

Regards,
Steve

1 Like

you might want to check the DataType… there is no such thing as image/extension
try for example image/jpg or or image/png or image/*

Taifun

1 Like

I made the changes you mentioned
As before, the image is displayed once on the canvas, but instead of the file name, it displays the path as shown below in the text box.

I also used imagepicker, but it still doesn’t return the correct name
Please help to finish the last part of this application
thank you very much

With a seemingly irrational solution, this section was created
But again, if you come up with something out of the ordinary, then they have to re-think their position


blocks(10)
blocks(11)

I tried it on 2 canvases
Apparently there is no problem
But still, your opinion is more acceptable to me

Using this block, the exact path of the file is determined
This is for those like me who have been involved in a small project for a long time
with taifun file
Description in this regard

The result of the first test No taifunfile block:

The result of the second test with taifunfile block:


Thanks to taifun who accompanied me as well SteveJG

1 Like

With your help, everything was done correctly
The file path was identified and stored in the variable
But I get a message saying “the file has not been uploaded” and returns the file address blank
This way the file is not uploaded, the file = “” shows the file address but cannot upload it and shows error 701
I tried to emulate this method but failed
https://puravidaapps.com/install.php
Thank you in advance

do you upload the file to a server?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

I'm confused.... what is the purpose to use that method here in this context? you might want to elaborate

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

No
Is it not possible to upload a file from the phone to the software via the phone's Internet?
I think I made a mistake at the end of the deadline and I will send you the blocks

It calls an audio file from the root directory and stores it in a variable
Now I want to start the music by calling this path

& This

Is it necessary to put software on the server to call an audio or video file stored on the phone?
Isn’t it possible to assume that when you see a text in a text box, you play music?
Assuming that both files ( audio and picture ) are available on the phone

for example :

grafik

and post the result, something like this:

grafik

1 Like