[Q] why my dev app is crashing on Sony Xperia ? - Android Q&A, Help & Troubleshooting

I am testing an app which is dealing with device sensors ( accel, magnet.. and if available gyro and linearAccel)
I developed it using ADT and in my manifest , I indicating min-sdk as jellyBean 4.1.2 ( API 16) and target kitkat 4.4. (API 19)
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="19" />
I can run easily the generated .apk on my Wiko 5 ( JellyBean 4.1.2) and on my Nexus5 ( kitkat 4.4.2 )
but I sent the .apk to a tester friend trying to run it on a Sony Xperia Z1 and it crashes ! ( after being installed , right on starting t)
is there anything specific to Sony ?
I tried to debug it locally after receiving the Sony device, it's seems to be related to thread management, however this project runs on other Android devices like Nexus wo any problem....
console logcat can be found at : gist.github.com/erwin/10535096 ( https access)

Related

(Q) emulate any roms on SDK?

Hello guys how to emulate a custom ROM on SDK FOR testing ROM
Thanks and sorry for my English is very bad
Enviado desde mi Galaxy Nexus usando Tapatalk 2
Originally Posted by Perceval from Hyrule View Post
** Currently writing this, please wait !
Hello there,
here is a new tutorial I'm sure you'll like. As usual it took me LOTS of work to get all info and make this to work, so now I share it with you and show how to run custom ROMs within Android SDK Emulator.
Please note it's mainly for XPERIA X10, but process is the same for other Android-powered devices. It will show you the process for Linux.
1. Download the latest Android SDK.
2. Open the archive, and copy the folder android-sdk-linux-x86 to a safe place. You can also rename it to an easier name. Example : I placed it in ~/Home and renamed it androidsdk.
3. Go to the SDK folder, then in the folder Tools/. Double-click on Android and choose Run.
4. Go to Available packages, and choose to install (choose at your will !)
Android SDK Tools, revision 8
Android SDK Platform-tools, revision 1
SDK Platform Android {VERSION(S) YOU WANT} (!) You need at least one Platform. For X10, you can download 1.6, 2.1. You can also add 2.2, 2.3.
Once it's done, close the window.
5. Download Xperia X10 add-on for SDK. (?) Read the PDF add-on guide, it is helpful !
Copy the folder (from the archive) XPERIA-X10_r1 inside the folder add-ons of your Android SDK folder ({androidsdk}/add-ons/).
6. Run terminal, go to your Android SDK folder, then in tools folder, and run
Code:
./android list target
.
Note the id number of the Android you want to develop (ie for me, Android 2.3 is
Code:
id: 3 or "android-9"
). (?) You might also want to note the name ("android-X") as it might be useful later.
7. Now, create AVD (a profile for emulator). Usual command (assuming you are INSIDE the /tools/ folder !) is
Code:
android create avd -n NAMEYOUWANT -t {ID}
So, for us, it will be
Code:
./android create avd -n myx10 -t 3
8. To generate the AVD, you will be prompted several info. Type these for Xperia X10 :
Create custom hardware profile : yes
SD Card support : yes
Asbstracted LCD density : 160 (correct if I'm wrong ?)
DPad support : no (?)
Accelerometer : yes
Max camera pixels (H) : 3264
Cache partition size : 66 (?)
Audio playback : yes
Trackball : no (?)
Max cam pixels (V) : 2448
Camera support : yes
Battery support : yes
Touch screen : yes
Audio record : yes
GPS : yes
Cache partition : yes
Keyboard : no
heap size : 32
RAM : 280
GSM Modem : yes
(?) I recommend you to create one profile for each Android version you want to run (so : you just have to change the ID, and create same profile). If you don't, you won't be able to run custom ROMs using other versions of Android (ie your AVD profile is 2.3 and you run a 2.1 custom ROM).
9. Done ! Take your custom ROM (downloaded, compiled... In this case, files are in {YourAndroidRepoFolder}/out/target/product/generic/. It comes with about 3 files, including a file called system.img. Copy this file into the folder (hidden) .android/myx10{In fact, the name you've chosen earlier "NAMEYOUWANT"}.avd/
10. Run terminal, go to Android SDK folder/tools/ (if you didn't close your current terminal, you're already in and run this command to run emulator WITH your custom ROM :
Code:
./emulator -avd myx10{again the "NAMEYOUWANT" you've chosen before}
Wait and enjoy !
(?) First boot is long - it's NORMAL. Just like on a real device, the OS will be cached and will work faster and faster.
Click to expand...
Click to collapse
Look over this,it should help you.
Source
Thanks man
Enviado desde mi Galaxy Nexus usando Tapatalk 2

run linux in concert with android (LENOVO A10)

hello linux fans
i have done this manipulation on several android devices
each time i succeed to be root
first i set a linux distribution on a sdcard for example raspbian for the arm devices
then i use a script of my own http://jeanmichel.gens.free.fr/etc/install
then
i can use every from linux
fore examples apache2 server, sshd server etc ...
you can add packages you need by apt-get install
I use all Xwindow program trought a Xserver android application but my final track is to use microxwin
any help for that will be nice you can contact me by mail [email protected] ( or hangouts )
or by this thread
i have done this manipulation on several netbooks and smartphones as soon they are rooted
there is no risk ( in my script )
of course you have the habitual risk when you are root

Issues in android Image 4.4.4(kitkat)

I am Satya , managing Simply Innovations Pvt Ltd ( India startup firm ), we are making an app based product using the architecture / Opensource Platform build by Mitre Corporation .
We are facing some issues playing Videos and sanitary issues ( Even server exceptions/ errors ), the Virtual Image has been build on Android 4.4x ver.
Request your availability to discuss about our problems and possibility for you helping us.
Great seeing about your profile !!
Looking forward to connect as per your convenience.
Thanks
satya
Mobile : + 91 9010288820

Android Studio - JDK - Recommended versions and settings on Windows XP 32-bit?

My aims:
- Use Android Studio to develop a basic Android application - should be possible
- Use Android Studio to back up my physical phone (Hisense phone running Nougat 7.0) and create an emulated version of it running on my PC - should be possible, is it?
My PC:
- Windows XP 32-bit
- Pentium Dual Core T2330 processor NOT supporting Intel® Virtualization Technology (VT-x)
- 2 GB RAM
Questions:
- Are the above aims possible to achieve with my PC?
- If yes, what are the recommended Android Studio and Java SE Development Kit versions/settings to use that work for sure?
Story: I have tried to use Android Studio 3.0.1 with various versions of Java SE Development Kit 8 (including 121, 144, and 152) and various settings/hacks constantly running into various bugs/issues, most of which were seemingly resolved by new settings/hacks, yet I ended up with the same error messages after I have tried everything I have found online that nice people suggested on forums.
I am unable to even compile and run a default Android app, I get these error messages:
Gradle build finished with 2 error(s) in 21s 591ms
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs for details.
I am unable to run a default-loaded Android Virtual Device, I get this error message:
Emulator: Process finished with exit code -1073741511 (0xC0000139)
I am clueless how to continue. If my aims are possible to achieve, could someone tell me the Android Studio and JDK versions and settings that work 100% under 32-bit Win XP?
Thanks in advance!

SDL Error,dlopen failed

I downloaded an app but it requires android 5.0+ ,so i changed the min sdk version to the lowest ,then i successfully installed but after running it an error came, Dlopen failed: cannot locate the symbol "atof" referenced by "libpng16.so..
My phone- Galaxy Grand 2(SM-G7102).
Android version-KitKat(4.4.2).
Please Let me know if there is any solution.
I've also got a problem it installs but it can locate atof symbol on my huawei media tab 4.4.4 kit kat
If an app is compiled to be run on an Android 5.+ device then app will crash when you run it on an Android 4.x device - this because Android 4.x doesn't have any of Android 5 APIs.

Categories

Resources