MobileVibrate not working?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

MobileVibrate not working?

Post by sphere » Wed Aug 16, 2017 9:53 am

Hello,

i can't get the mobileVibrate to work.
Can anyone confirm if it's working at all?

I tested on a el cheapo Wiko "Jerry" and an older but still much better and faster then the Wiko, a Samsung Galaxy S2 that runs on Android 7.1.2
I save the APK with minumum Android 4.1

Code: Select all

on mouseUp
   if the environment="mobile" then
     mobileVibrate 3
  end if
end mouseUp
Thanks for any help.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: MobileVibrate not working?

Post by jacque » Wed Aug 16, 2017 5:15 pm

Do the phones vibrate when your app isn't running, like when the system sound settings are set to vibrate only? Also, some devices don't support vibration. My Nexus 7 tablet doesn't have it.

Is the Galaxy really running Android 7? That's the latest OS and I'd be surprised if it were on such an old phone. I don't think it will even work there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: MobileVibrate not working?

Post by sphere » Wed Aug 16, 2017 6:07 pm

Hi Jacque,

yes both phones do vibrate when for example sound is off.

And yes the Galaxy S2 is really running Android 7, although Android 6 did run a bit smoother. It's still faster than my Wiko Jerry.
I have LineageOS installed on the S2 and before that CyanogenMod but they quit. (stupido's, Google wanted to buy them out, now it's too late...)
On xda-developers.com you can read how to do it. But for Android 6 and 7 you have to do some extra on the S2, creating a bigger memory by formatting some things.
It could easy brick your phone when done wrong.
For Wiko Phones there is very minor support on it. No one's really interested. So that one runs the original firmware. At least until the 2 year warranty is over.
samsungS2onAndroid712.JPG

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: MobileVibrate not working?

Post by jacque » Wed Aug 16, 2017 6:16 pm

I see, thanks. I don't root my devices, due to the security risks.

If the problem isn't hardware then I'm out of ideas. You might want to submit a bug report and see what the team has to say.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: MobileVibrate not working?

Post by sphere » Wed Aug 16, 2017 6:20 pm

Thank you, i will do that.
Perhaps they can confirm.

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: MobileVibrate not working?

Post by sphere » Wed Aug 16, 2017 7:15 pm

Ok i admit it myself.

i'm stupid :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops: :twisted: :twisted: :twisted: :twisted: :twisted: :twisted:

did not look further then my nose again :shock: :shock: :shock: :shock: :shock: :shock: :shock:

just forgot the Application Permission, waaaaaaaaaaaaahh.

Going to kick myself now

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: MobileVibrate not working?

Post by jacque » Wed Aug 16, 2017 7:27 pm

:D

You are a brave and honest man. I won't mention the time I forgot to enable Internet permissions.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: MobileVibrate not working?

Post by sphere » Wed Aug 16, 2017 7:47 pm

Pfeww!

Thanks Jacque :)

Post Reply

Return to “Android Deployment”