I have a app that queries a Mysql database and puts the results into a field.
Another button fires up the camera app and takes an image.
It runs okay on windows.
Runs okay on Iphone.
I have a android 2.2 tablet and 2.2 phone the mysql works okay but the camera does not fire up
on mouseUp
## This is the only way to name an imge BEFORE it is created
set the name of the templateimage to "harry"
mobilePickPhoto "camera" 100,100
if the result <> empty then
--put the result into image "Image1"
put "harry" into image "image1"
EXIT mouseup
end if
## Succes, now you can use the new image
end mouseUp
Also in the above code the image does not go into image1 it goes in the centre of the screen
Cheers
SteveW
App not working on android 2.2
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: App not working on android 2.2
Hi Stev,
looks like you need to tell LiveCode that "harry" is an image
And you might want to DELETE image "harry" after putting it into "image1", or just HIDE it.
Best
Klaus
looks like you need to tell LiveCode that "harry" is an image
Code: Select all
on mouseUp
## This is the only way to name an imge BEFORE it is created
set the name of the templateimage to "harry"
mobilePickPhoto "camera" 100,100
if the result <> empty then
put IMAGE "harry" into image "image1"
## not neccessary, since the handler is finished here!
## EXIT mouseup
end if
end mouseup
Best
Klaus
Re: App not working on android 2.2
I still get the same result. ie image in the middle of the screen.
Cheers
SteveW
Cheers
SteveW
Re: App not working on android 2.2
Ok
If I use :
set the name of the templateimage to "harry"
set the loc of the templateimage to 100,100
mobilePickPhoto "camera", 100,100
it places it correctly.
Any work around for the android not calling the camera?
If I use :
set the name of the templateimage to "harry"
set the loc of the templateimage to 100,100
mobilePickPhoto "camera", 100,100
it places it correctly.
Any work around for the android not calling the camera?
Re: App not working on android 2.2
Hi Steve,
please do only create ONE thread for ONE question the next time, thanks!
Best
Klaus
please do only create ONE thread for ONE question the next time, thanks!
Best
Klaus