import snapshot can't work on the Android mobile

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
seshee1234
Posts: 3
Joined: Sat Jan 05, 2013 4:56 am

import snapshot can't work on the Android mobile

Post by seshee1234 » Sat Jan 05, 2013 5:06 am

Hello,

I've found some problems while I'm using the "import snapshot" function

It can work successfully on PC,but can't work on the Android mobile device


Here's the code

Code: Select all

import snapshot from rect (100,100,100,100)
What goes wrong?
Thanks so much

Hao

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: import snapshot can't work on the Android mobile

Post by Klaus » Sat Jan 05, 2013 2:15 pm

Hi seshee1234,

try without the parens:
...
import snapshot from rect 100,100,100,100
...

Best

Klaus

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: import snapshot can't work on the Android mobile

Post by Dixie » Sat Jan 05, 2013 2:44 pm

Not that import snapshot from rect 100,100,100,100 would show anything !.. :-)

Dixie

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: import snapshot can't work on the Android mobile

Post by Klaus » Sat Jan 05, 2013 2:52 pm

OUCH! Yes, so true, Dixie 8)
This was a attention-span test, right? :D :D :D

P.S.
@seshee1234: Take an other (and slightly bigger) rect!

seshee1234
Posts: 3
Joined: Sat Jan 05, 2013 4:56 am

Re: import snapshot can't work on the Android mobile

Post by seshee1234 » Sat Jan 05, 2013 4:56 pm

oops! I make a stupid mistake!

but in my program,i have a bigger rect like (221,370,436,479)

it just won't work on my Android phone!

Code: Select all

import snapshot from rect 221,370,436,479
answer the number of images in this card
the snapshot function suppose to create an image,right?
but it returns zero!
WHY??

THANKS for your help!!

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: import snapshot can't work on the Android mobile

Post by Dixie » Sat Jan 05, 2013 5:52 pm

Does it help if you specify the object from which you wish to take the snapshot... as in

Code: Select all

on mouseUp
   --import snapshot from image 1
   import snapshot from rect 20,30,100,90 of this card
end mouseUp
Dixie

Post Reply