[android-developers] Re: Block APK installation
This is just an idea... but why not try writing a the app as a custom version of https://github.com/android/platform_packages_apps_launcher and having a very small internal storage, so theirs no room for any additional APK's. N.B. I've never even compiled the kernel, so I've no idea if this will work, however I've looked through the code enough to believe that the launcher is the home screen. Someone tell me I'm wrong before I end-up sending this poor guy up a blind alley. On Jan 30, 4:49 pm, Isamar Maia isa...@gmail.com wrote: Yep. I knew that. I was just wondering if anybody would have a cake recipe on hands. But, never mind. I got that already with a custom image removing access with chmod on /system/app/ folder. Thanks anyway. Isamar 2012/1/30 Mark Murphy mmur...@commonsware.com: This is not possible except via custom firmware. For questions about custom firmware, please visithttp://source.android.com. On Thu, Jan 26, 2012 at 3:06 PM, Isamar Maia isa...@gmail.com wrote: Hello Guys, For a specific project, we need to create a custom image with an auto-start application. One thousand tablets will be given away for free, with this application installed and the sponsor wish to block any APK installation to avoid his campaign fails, with people selling those tablets away on Ebay. The purpose here is just to make it difficult, since anybody with a little more knowledge would be able to overwrite my custom image and cancel this block. Which executable I should work on to make it feasible ? Thanks a lot, -- Isamar Maia Cel. VIVO SSA: (55) 71-9146-8575 Cel. TIM SSA: (55) 71-9185-5264 Fixo: (55) 71-4062-8688 日本: +81-(0)3-4550-1212 Skype ID: isamar.maia -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Isamar Maia Cel. VIVO SSA: (55) 71-9146-8575 Cel. TIM SSA: (55) 71-9185-5264 Fixo: (55) 71-4062-8688 日本: +81-(0)3-4550-1212 Skype ID: isamar.maia -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unicode in eclipse
Sorry if this is a little off topic (it's more an eclipse questron than an Android one, but as it's for an Android project...) What the easyist way to define non Latin text (I.e. Unicode) specifiy Arabic and Chinese in an Android project? When I try and copy and pasted the google translated version of my strings (I accept GT isn't the best way to internationalise an app but my budget is zero so...) eclipse doesn't recognised the characters. Can I just convert the characters an store the Unicode values? Or is their a better way? -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unicode in eclipse
Thanks. I was sure their was an easy way. I'll double check the settings tomrrow when I get back in front of a my laptop. On Nov 7, 1:46 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Nov 7, 2011 at 9:33 AM, Scott Herbert scott.a.herb...@googlemail.com wrote: Sorry if this is a little off topic (it's more an eclipse questron than an Android one, but as it's for an Android project...) What the easyist way to define non Latin text (I.e. Unicode) specifiy Arabic and Chinese in an Android project? When I try and copy and pasted the google translated version of my strings (I accept GT isn't the best way to internationalise an app but my budget is zero so...) eclipse doesn't recognised the characters. Can I just convert the characters an store the Unicode values? Or is their a better way? Where are you copying the strings? If you are copying them to a resource XML file (as you should), the encoding is UTF-8 so it should work automatically. If you are copying those in your source files as Java strings, you need to change the encoding of your source files to UTF-8 (the default is the platform default encoding): right click your project, select 'Resource' on the left and change 'Text file encoding' to UTF-8. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Whats first onCreate or the constructor
Thaks all for your helpful tips. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Whats first onCreate or the constructor
Firstly I hope this isn't too basic a question, I'm new to Java (and be extension Android) so please forgive me if it's obvious to everyone else, but I couldn't find the answer via Google. I have a simple app I'm writing primary because I and at least one of my friends want it but also to learn Java. Part of this application pulls a database from the resources and copy's it so it can be accessed via SQLite, and I use a class that extends SQLiteOpenHelper to copy the database. And here lies the problem, as soon as this class exists (the constructor is called) I get a runtime exception, comment it out it runs fine. I think this is because the constructor is setting a String (db_path) that is used by onCreate, and so if onCreate is fired before the constructor it tries to use db_path and fails because it's not set. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en