简体   繁体   中英

From Android 2.3 to android 4

I'm developing an app testing on Android 2.3, and it works wells. In Android 4 I have put all the Network calls inside a Asyntask and now almost all works fine. What else do I have to consider?

But when I try to Crop and Images via Intent, first it disconnect from debugger (¿Why?) when I select the images from the gallery or camera, and when I crop it, when its saving picture, it crashes.

Now the Eclipse Log doesn't show Exception, or any message that can help me, on 2.3 always print error messages.

Sorry for my english, I hope you understand me, thank you!

Are you running the crop/save on the UI Thread? If you do, StrictMode will come after you for doing disk writes on the UI Thread. Spawn an AsyncTask (or a Thread) to do so and try again.

Consider to review any deprecated methods you may be calling, such as getWidth() , navigation hardware keys or preferences related stuff.

Also consider adding a custom (versioned) style.xml to support holo theme easily. It's best to create a consistent user experience, so under Android 4.0 your visual components should be as 'standard' as possible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM