Anton Persson | 29 Aug 21:54 2015
Picon

App crashes when trying to get SensorManager

Hi,

I'm working on an app that uses the accelerometer. The app works just fine and dandy on a Nexus 5 and a Samsung Galaxy S6. However, when I run it on a Nexus 9 it crashes on startup - every time.

The offending call is this:

senSensorManager = (SensorManager)ctx.getSystemService(Context.SENSOR_SERVICE);

If I remove that line it works just fine. (Except that I cannot use the accelerometer...)

From the log it seems pretty serious. Any ideas?

  Best Regards
    Anton


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
F/art     (12936): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: input is not valid
Modified UTF-8: illegal start byte 0x82
F/art     (12936): art/runtime/check_jni.cc:65]     string: 'Magnetic Uncalibra��'
F/art     (12936): art/runtime/check_jni.cc:65]     in call to NewStringUTF
F/art     (12936): art/runtime/check_jni.cc:65]     from int
android.hardware.SystemSensorManager.nativeGetNextSensor(android.hardware.Sensor, int)
F/art     (12936): art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
F/art     (12936): art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x72b79000 self=0xab411418
F/art     (12936): art/runtime/check_jni.cc:65]   | sysTid=12936 nice=0 cgrp=default sched=0/0 handle=0xf71d1bec
F/art     (12936): art/runtime/check_jni.cc:65]   | state=R schedstat=( 92824149 73577839 562 ) utm=4 stm=5
core=0 HZ=100
F/art     (12936): art/runtime/check_jni.cc:65]   | stack=0xff034000-0xff036000 stackSize=8MB
F/art     (12936): art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #00 pc 00004e64 
/system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #01 pc 00003665 
/system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #02 pc 00256409  /system/lib/libart.so
(art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char
const*, art::mirror::ArtMethod*)+84)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #03 pc 00238fc7  /system/lib/libart.so
(art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #04 pc 000b199b  /system/lib/libart.so
(art::JniAbort(char const*, char const*)+610)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #05 pc 000b20d5  /system/lib/libart.so
(art::JniAbortF(char const*, char const*, ...)+68)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #06 pc 000b468f  /system/lib/libart.so
(art::ScopedCheck::Check(bool, char const*, ...) (.constprop.129)+922)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #07 pc 000be1bd  /system/lib/libart.so
(art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+44)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #08 pc 0005f8b7 
/system/lib/libandroid_runtime.so (???)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #09 pc 000a4a1d 
/system/lib/libandroid_runtime.so (???)
F/art     (12936): art/runtime/check_jni.cc:65]   native: #10 pc 00086fbd 
/data/dalvik-cache/arm/system <at> framework <at> boot.oat (Java_android_hardware_SystemSensorManager_nativeGetNextSensor__Landroid_hardware_Sensor_2I+104)
F/art     (12936): art/runtime/check_jni.cc:65]   at
android.hardware.SystemSensorManager.nativeGetNextSensor(Native method)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.hardware.SystemSensorManager.<init>(SystemSensorManager.java:73)
F/art     (12936): art/runtime/check_jni.cc:65]   - locked <0x283935e7> (a java.lang.Object)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ContextImpl$31.createService(ContextImpl.java:540)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ContextImpl$ServiceFetcher.getService(ContextImpl.java:298)
F/art     (12936): art/runtime/check_jni.cc:65]   - locked <0x26728594> (a java.util.ArrayList)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ContextImpl.getSystemService(ContextImpl.java:1838)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.view.ContextThemeWrapper.getSystemService(ContextThemeWrapper.java:113)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.Activity.getSystemService(Activity.java:5045)
F/art     (12936): art/runtime/check_jni.cc:65]   at com.toolkits.kamoflage.SensorHandler.<init>(SensorHandler.java:49)
F/art     (12936): art/runtime/check_jni.cc:65]   at com.holidaystudios.satan.vuKNOB.onCreate(vuKNOB.java:268)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.Activity.performCreate(Activity.java:5990)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ActivityThread.access$800(ActivityThread.java:151)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.os.Handler.dispatchMessage(Handler.java:102)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.os.Looper.loop(Looper.java:135)
F/art     (12936): art/runtime/check_jni.cc:65]   at android.app.ActivityThread.main(ActivityThread.java:5254)
F/art     (12936): art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke!(Native method)
F/art     (12936): art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke(Method.java:372)
F/art     (12936): art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
F/art     (12936): art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
F/art     (12936): art/runtime/check_jni.cc:65] 

luca | 28 Aug 12:55 2015
Picon

Question about publishing an app (help!)

I have uploaded to the google developer console a 90% finished app in the beta channel. I have not configured any type of test. The app form is not even the final one (the main icon, the screen shots and so on are only test images). There is not even a production APK. By mistake, i hit the publish button! Now there is a message saying something like: updating in progress.

What will happen now? 
Will my unfinished app be accessible on google play by everyone??
If so, can i unpublish it, finish it and republish again??
Thank you.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
luca | 28 Aug 12:49 2015
Picon

Question about publishing an app (help!)

I have uploaded to the google developer console a 90% finished app in the beta channel. The app Store There is not even a production APK. By mistake, i hit the publish button! Now there is a message saying something like: updating in progress.

What will happen now? 
Will my unfinished app be accessible on google play by everyone??
If so, can i unpublish it, finish it and republish again??
Thank you.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jags | 27 Aug 11:19 2015
Picon

webview loadurl oncreate

hi all,

i use webview in my android app to be used later (on click of menu)

the problem is, when i do loadurl, there is a flicker and delay.

i wanted to load the url in the beginning, and only show the ebview when required (on click)

when i do objWebView.loadUrl("help.html");

inside oncreate of mainactivity, it does not load the page.

if i do it on button click it loads properly, doing runOnUiThread also does not help.

what is the correct way to load a page in the beginning and display later ? webview is not my initial contentview.

thanks in advance 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jags | 27 Aug 11:14 2015
Picon

sqlcipher help

hi all,

 

I have inherited a legacy code which works well, but i need to implement sqlcipher into in. my app is for both android and ios, hence sqlite part is written in c++ which is also used by nadroid using JNI.

 

hence i am unable to use ready to use library for ios and android as i use functions like sqlite3_open, sqlite3_exec.

 

do i need to add all c++ files for sqlcipher and compile and use it ?

is there a tutorial how to use it in c++ code ?

 

regrds

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
yvesliu@gmail.com | 27 Aug 00:30 2015
Picon

Help needed!!!!

I had an app on the play store market for awhile now, and i recently fixed a couple of problems and I ran into this problem.

I am not sure if this problem is related to the app package name starts with an upper case letter. Here is the problem:

Before I was using Eclipse to build the app and sign the package, and I can update the app on the play store and my customers are able to download and install the app. Now, I changed my system to use Android Studio, and I can build and sign the installer, uploaded the app to the play store. Now, nobody can install it. They either got error code 504 during install or a message saying malformed manifest. I contacted play store support and got answers which is not helpful at all.

Since to update an app, we can't change the package name, I don't know if the package name was the issue. If I change my system back to Eclipse, rebuild/sign the package, will that work? Any ideas on what to do? Or anyway for me to change the package name in play store?

Thanks


Yves 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chris | 26 Aug 18:52 2015
Picon

Android Print API: Controlling number of copies, etc

I don't see a way to prevent the user from controlling number of copies/etc from the standard android print API.  Is anyone aware of whether this is possible?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bram Stolk | 25 Aug 21:04 2015
Picon

Linking app's SHA1 fingerprint to Play Games Services fails.

What worked two days ago, no longer worked yesterday or today:
Linking an app to Game Services.

I reported the issue here: https://github.com/playgameservices/android-basic-samples/issues/153
But I have a feeling that this repo is no longer monitored, all the reports I made in the last weeks are ignored on github.

Can someone inside Google please investigate this?
Two other users reported the same issue, as they responded on my stackoverflow question: http://stackoverflow.com/questions/32194513/create-android-oauth-client-fails-with-an-unexpected-error-occurred-please-tr

thx,

 Bram



--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
张斌 | 25 Aug 02:48 2015
Picon

[android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.

I want to create a new class extends TelephonyManager which can not instantiate directly.TelephonyManager can be instantiate through Context.getSystemService(Context.TELEPHONY_SERVICE).


Are there anyone know sth about it?

Waiting for your reply!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paulo Cesar | 25 Aug 00:11 2015
Picon

Core Image equivalent on Android

I'm mainly a iOS developer, and I have this app that applies a series of transformations and blend filters on images, all using Apple Core Image library. And I now that I have to port it to Android, is there any equivalent to Core Image in Android? 

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Phil Gibbs | 23 Aug 23:59 2015
Picon

Windows 10 and Studio

After installing Win 10 I'm getting many lock-ups when using AS. Not sure how much Genymotion is involved.
Downgraded to Win 7 and problems disappeared. So now I'm reluctant to try 10 again. 
Anyone seen this issue?

--

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers <at> googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe <at> googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane