Re: [android-developers] Store XML file into the Resource folder
Thankq for your quick response..but Not working, AM using below code in android applciation... FileOutputStream fOut = openFileOutput(C:/Barcodenewworkspace1/RestApp/res/xml/myxml.xml,MODE_WORLD_READABLE); OutputStreamWriter osw = new OutputStreamWriter(fOut); // Write the string to the file osw.write(page); Instead of myxml.xml am using myxml only .. not working... give me any sample code ..please On Mon, Jan 9, 2012 at 1:25 PM, android developer android.developer4...@gmail.com wrote: just type file name without extention it will work.. few days back i had faced same issue like this. On Mon, Jan 9, 2012 at 1:23 PM, venu gopal reddy venu.andr...@gmail.comwrote: Hi friends, I am getting one XML file from one web services cal. Now Just I want to save that XML file into Resource folder (res/xml/my.xml). I Tries but I could not get the solution.. Can you please help me... -- 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 -- 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 -- 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] Welcome to Android Developers Group in Facebook
Please join in Android Developers Community and discuss all technical details on Android Platform. http://www.facebook.com/groups/androidmasters/ -- 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] NFC device id
hi all, i want to recieve nfc device id , can some one suggest how to code for that . i am able to recieve device id but i want to have NFC ID of phone thanks -- 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: Streaming link not working?
I just want it to open a player, that support the mms stream.. like daroon or vplayer On 29 Dec. 2011, 20:14, Jona medicalsou...@gmail.com wrote: Android doesn't supportmmsstreaming. I use XiiaLive tostreamthat type of content. On Dec 22, 8:05 pm, Thomas tti...@gmail.com wrote: SORRYMMSSTREAM!!! Maybe thats why theres no 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@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] [ASK] Need help to Combine Tabmenu and Dynamic Combobox
Hi guys, does anyone know how to combine tabmenu and dynamic combobox? i've already know how to make both of 'em but when i try to combine it, i always get a lot of error What i want to try to make was like this : For example i make 3 tab menu, and for the first tab i want to fill it with 3 dynamic combobox. What should i do to make this one? Best Regards, David -- 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] Eclipse indigo and 'stop process'
Hey all, Just upgraded to Eclipse Indigo for a new project, and while I was able to terminate a running app with Helios, with Indigo for some reason, I am unable to do so. I've installed the ARM native C++ debugger, but I don't think that's the culprit. Apart from that it's a vanilla Eclipse Indigo install with the latest Android ADT. Anyone know how to enable 'stop process'? -- 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: Giving away my book: Genius Android Marketing
Sounds interesting, please add me to the list. -- 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
Re: [android-developers] Store XML file into the Resource folder
venu reddy wrote: Thankq for your quick response..but Not working, AM using below code in android applciation... FileOutputStream fOut = openFileOutput(C:/Barcodenewworkspace1/RestApp/res/xml/myxml.xml,MODE_WORLD_READABLE); C:/ ??? Where did you see a path starting with C:/ on any android device? What actually are you trying to do? pskink -- 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
Re: [android-developers] Store XML file into the Resource folder
OMG, you guys need to use AssetManager class, that might help. On Mon, Jan 9, 2012 at 2:53 PM, skink psk...@gmail.com wrote: venu reddy wrote: Thankq for your quick response..but Not working, AM using below code in android applciation... FileOutputStream fOut = openFileOutput(C:/Barcodenewworkspace1/RestApp/res/xml/myxml.xml,MODE_WORLD_READABLE); C:/ ??? Where did you see a path starting with C:/ on any android device? What actually are you trying to do? pskink -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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] How to fill the screen in GridLayout using child views?
Hi All, I have to place 2 EditText fields horizontally in a row in GridLayout, so that it occupies the whole screen. That means, I want to divide the screen into half and place one EditText in first half and the second EditText in the other half. I can achieve this by giving layout_weight in Linear Layout. But I have to use GridLayout as per my requirements. There is no layout_weight in GridLayout. Please help me to get the solution for API level 14. Thanks and Regards, Shruthi. -- 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
Re: [android-developers] Store XML file into the Resource folder
Mukesh Srivastav wrote: OMG, you guys need to use AssetManager class, that might help. On Mon, Jan 9, 2012 at 2:53 PM, skink psk...@gmail.com wrote: OMG, you need to learn how and whom you are replying to, that might help. pskink -- 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: Write Hello World run - great. Change string and can't see result
Quite often it happens that Eclipse doesn't see a change you made in strings.xml. It doesn't regenerate the appropriate stuff, so you still see your previous string value. If that happens, just do a Project -- Clean for your project, that should fix it. -- 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
Re: [android-developers] Store XML file into the Resource folder
Ya ya .. I think so u guys afraid about my code ... actually want to save in xml file in sd card .. I knew ...\ But temporary purpose and testing purpose I saved in my local machine . seems its not possible ,,, sorry for share wrong information... thanks for giving feedback... I accept u guys suggestions. I will ... On Mon, Jan 9, 2012 at 3:13 PM, skink psk...@gmail.com wrote: Mukesh Srivastav wrote: OMG, you guys need to use AssetManager class, that might help. On Mon, Jan 9, 2012 at 2:53 PM, skink psk...@gmail.com wrote: OMG, you need to learn how and whom you are replying to, that might help. pskink -- 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 -- 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
Re: [android-developers] Giving away my book: Genius Android Marketing
Hi, This seems like a useful book. I'm interested in it. Best Regards, Per 2012/1/5 scp89 jayvanbui...@gmail.com I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_5?ie=UTF8qid=1325606679sr=8-5 Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_cc_1?s=digital-textie=UTF8qid=1325606710sr=1-1-catcorr GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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] need help in coding for flickr integration
Hi All, Can any one please help me in coding Flickr integration in android Thanks Naveen. -- 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
Re: [android-developers] ICS context menu replacement
Isn't that a Holo-themed Spinner or maybe a part of it anyway? 8 января 2012 г. 2:01 пользователь Patrick Julien pjul...@gmail.comнаписал: I saw in an interview with Matias Duarte that long press menus are no longer considered good practice since they make the user stop and wait. However he stopped short of saying what the replacement in the interview was. It can't be an option menu because they don't get invalidated anymore since they're always visible on large screens. I believe the proper replacement are these new on demand context menus that show up when you press that little triangle menu on a UI element. We can see them everywhere in Android 4 and they're used in Google Music even on Android 2.x. My questions are: What are these called? I'm tired of calling them triangle thing menu. What is the widget backing this? I've looked and looked and I can't find anything about this, I even tried going over all the drawables shipped in android 4 and I still haven't seen this little triangle. To make it clearer what I'm talking about, I've attached the image of the triangle I'm talking about. This image is also used from the web version of Google Music and this is where I got it from. Link to my original question: http://stackoverflow.com/questions/8767344/android-ics-context-menu-replacement https://lh5.googleusercontent.com/-tyRSTyDqnVY/Twi_w-YF7uI/DaY/TurpgBpmWM4/s1600/sprites_extended_f689c78c0405a92c82537043b91d618e.png -- 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 -- 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
Re: [android-developers] Voice Recognition and Inputmethod
I am looking for the same... On Fri, Jan 6, 2012 at 9:36 PM, RW raptorsystems...@gmail.com wrote: Good morning, Does anyone know how to add the voice recognition button and functionality to a custom keyboard? Thanks -- 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 -- Regards, Narendra . -- 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] need help in twitter integration
Hi All, i am working on twitter integration in android but i am getting error in my applicatio at this place please help me. here my code public class OAuthRequestTokenTask extends AsyncTaskVoid, Void, Void { final String TAG = getClass().getName(); private Context context; private OAuthProvider provider; private OAuthConsumer consumer; public OAuthRequestTokenTask(Context context, OAuthConsumer consumer, OAuthProvider provider) { this.context = context; this.consumer = consumer; this.provider = provider; } @Override protected Void doInBackground(Void... params) { try { Log.i(TAG, Retrieving request token from Google servers); final String url = provider.retrieveRequestToken(consumer, Constants.OAUTH_CALLBACK_URL); Log.i(TAG, Popping a browser with the authorize URL : + url); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)) .setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_FROM_BACKGROUND); context.startActivity(intent); } catch (Exception e) { Log.e(TAG, Error during OAUth retrieve request token, e); } return null; } } Thanks Naveen -- 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
Re: [android-developers] Store XML file into the Resource folder
venu reddy wrote: Ya ya .. I think so u guys afraid about my code ... actually want to save in xml file in sd card .. I knew ...\ start with this: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() pskink -- 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
Re: [android-developers] Store XML file into the Resource folder
@PSKink: if you planned to use the ExternalStorage or InternalStorage would returns the url path of the SDCard or the phone internal space respectively. but as per my understanding, The user (who posted Venu), wants to save the xml with in Application, like we the way we create the customize property xml files in asset folder. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Jan 9, 2012 at 3:46 PM, skink psk...@gmail.com wrote: venu reddy wrote: Ya ya .. I think so u guys afraid about my code ... actually want to save in xml file in sd card .. I knew ...\ start with this: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() pskink -- 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 -- -- 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
Re: [android-developers] need help in twitter integration
Hi Naveen *,* * * *Please check your device clock and adjust with current time. I had the same issue in my app. I am solving this issue bu correcting the android device time.You can solve this issue* * * *Regards* * * *Deepesh C* On Mon, Jan 9, 2012 at 3:45 PM, chowdary nani naveenneeli...@gmail.comwrote: Hi All, i am working on twitter integration in android but i am getting error in my applicatio at this place please help me. here my code public class OAuthRequestTokenTask extends AsyncTaskVoid, Void, Void { final String TAG = getClass().getName(); private Context context; private OAuthProvider provider; private OAuthConsumer consumer; public OAuthRequestTokenTask(Context context, OAuthConsumer consumer, OAuthProvider provider) { this.context = context; this.consumer = consumer; this.provider = provider; } @Override protected Void doInBackground(Void... params) { try { Log.i(TAG, Retrieving request token from Google servers); final String url = provider.retrieveRequestToken(consumer, Constants.OAUTH_CALLBACK_URL); Log.i(TAG, Popping a browser with the authorize URL : + url); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)) .setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_FROM_BACKGROUND); context.startActivity(intent); } catch (Exception e) { Log.e(TAG, Error during OAUth retrieve request token, e); } return null; } } Thanks Naveen -- 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 -- 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] Obfuscate SharedPreferences with ProGuard
Hi, Currently I am working on a business application for android which sends among other things IMEI and IMSI via textmessage to a second phone number, in case it assumes to be attacked. Currently the user is able to store the second phone number within the SharedPreferences. But in case Android is rootet, an attacker can easy manipulate the *_preferences.xml - File. For this reason, I would like to follow the obfuscate - approach with ProGuard but I am not sure, whether ProGuard is usable for obfuscating other filetypes than the java - sourcecode. I would highly appreciate other suggestions. Another approach would be to store secure relevant data to a secure element like a smartcard, but not every android device has such an additional hardware- extension. Cheers, Boris -- 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] Permission Denial: starting Intent when launching my activity from my widget
I'm developing the WorkTime application for Android and I am expieriencing some strange behaviour with my widget. SO I have a widget on which basically 3 parts are clickable: 1) The header = opens a selection dialog 2) A button = starts an activity to start a new time registration 3) The rest of the widget = launches the main screen of the application Before telling you my exact problem I want to mention to you that I have tried the application on a Nexus One and two emulators (4.0.3 and 2.3.3). The issue is only valid for the Nexus One! So a couple of hours ago I was still using the widget normally, all buttons were working fine. I then installed a new version of the application (with some minor fixus, BUT nothing changed to the widget part or any activity called from within the widget) And suddenly when I was pressing the header (1) or the button (2) nothing happend and (when connected to my PC) in the LogCat I saw some exceptions (attached at the bottom!). Before the update (so no files related to the widget or the activities launched from the widget have changed!) everything was working fine. I also tried uninstalling the application and installing the old version again (the version that has worked a few hours ago), but still the two activities could not be launched and the same exceptions are thrown. The latest code with which I'm having these issues is availble on http://code.google.com/p/worktime/source/browse/trunk. Does anyone has any idea what could have gone wrong? :s I read somewhere that I could add the android:exported=true property in the AndroidManifest.xml file for those two activities, but why does it suddenly fail for those two activities and it still works for the third...? Here are the two exceptions: 01-09 11:37:43.733: WARN/ActivityManager(92): Unable to send startActivity intent java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1080 cmp=eu.vranckaert.worktime/.activities.widget.SelectProjectActivity bnds=[254,64][466,140] } from null (pid=-1, uid=10073) requires null at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java: 1973) at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java: 2271) at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java: 212) at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java: 2134) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java: 211) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java: 1467) at android.os.Binder.execTransact(Binder.java:320) at dalvik.system.NativeStart.run(Native Method) 01-09 11:37:44.253: DEBUG/dalvikvm(14556): GC_EXPLICIT freed 1582K, 52% free 4478K/9159K, external 2917K/3577K, paused 170ms 01-09 11:37:44.263: INFO/ActivityManager(92): Starting: Intent { flg=0x1080 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from pid -1 01-09 11:37:44.263: WARN/ActivityManager(92): Permission denied: checkComponentPermission() reqUid=10066 01-09 11:37:44.263: WARN/ActivityManager(92): Permission Denial: starting Intent { flg=0x1080 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from null (pid=-1, uid=10073) requires null 01-09 11:37:44.263: WARN/ActivityManager(92): Unable to send startActivity intent java.lang.SecurityException: Permission Denial: starting Intent { flg=0x1080 cmp=eu.vranckaert.worktime/.activities.widget.StartTimeRegistrationActivity bnds=[269,146][451,218] } from null (pid=-1, uid=10073) requires null at com.android.server.am.ActivityStack.startActivityLocked(ActivityStack.java: 1973) at com.android.server.am.ActivityManagerService.startActivityInPackage(ActivityManagerService.java: 2271) at com.android.server.am.PendingIntentRecord.sendInner(PendingIntentRecord.java: 212) at com.android.server.am.ActivityManagerService.startActivityIntentSender(ActivityManagerService.java: 2134) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java: 211) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java: 1467) at android.os.Binder.execTransact(Binder.java:320) at com.android.server.SystemServer.init1(Native Method) at com.android.server.SystemServer.main(SystemServer.java:625) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 597) at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the
Fwd: [android-developers] need help in twitter integration
Hi dEEPESH PPM , Thanks for help, Thanks for replay, I am currently working with emulator and i am getting this problem will u please help me Thanks Naveen. ** * * *Please check your device clock and adjust with current time. I had the same issue in my app. I am solving this issue bu correcting the android device time.You can solve this issue* * * *Regards* * * *Deepesh C* On Mon, Jan 9, 2012 at 3:45 PM, chowdary nani naveenneeli...@gmail.comwrote: Hi All, i am working on twitter integration in android but i am getting error in my applicatio at this place please help me. here my code public class OAuthRequestTokenTask extends AsyncTaskVoid, Void, Void { final String TAG = getClass().getName(); private Context context; private OAuthProvider provider; private OAuthConsumer consumer; public OAuthRequestTokenTask(Context context, OAuthConsumer consumer, OAuthProvider provider) { this.context = context; this.consumer = consumer; this.provider = provider; } @Override protected Void doInBackground(Void... params) { try { Log.i(TAG, Retrieving request token from Google servers); final String url = provider.retrieveRequestToken(consumer, Constants.OAUTH_CALLBACK_URL); Log.i(TAG, Popping a browser with the authorize URL : + url); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)) .setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_FROM_BACKGROUND); context.startActivity(intent); } catch (Exception e) { Log.e(TAG, Error during OAUth retrieve request token, e); } return null; } } Thanks Naveen -- 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 -- 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 -- 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] Proguard fails on second run with Conversion to Dalvik format failed with error 1
Hi I am trying to get proguard running but keep running into problems. I use Eclipse and have a fresh system (Java, Eclipse, everything freshly installed and updated, keystore created new in eclipse) Export of signed APK works exactly once! On second run (no changes in the code or the configuration) I get an error (see below) This happens on different apps, even newly created with no custom code of mine at all, and on different machines. My project.properties just contain: target=android-7 proguard.config=proguard.cfg my proguard was not touched at all (eclipse default) com.android.ide.eclipse.adt.internal.build.DexException: Conversion to Dalvik format failed with error 1 at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:756) at com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:207) at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.doExport(ExportWizard.java:290) at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard.access$0(ExportWizard.java:229) at com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$1.run(ExportWizard.java:214) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Any help apreciated! Thanks, Stephan -- 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
Re: [android-developers] Obfuscate SharedPreferences with ProGuard
Boris, Obfuscating as such makes sense only with the code, since the code does not change its structure, only literal values (i.e. class names, method names, variable names, ...). By obfuscating (renaming all your method names within a class to say a(), you are making it harder for attacker to understand your code once its decompiled. As you see this will be of no use, when trying to protect data, which is your case. You have to look into some encryption solution, but even when the number gets encrypted, nothing stops the attacker to remove said number altogether, or much simpler attack: uninstalling your application. Daniel On 9 January 2012 10:40, Boris Ehlers boris.maccar...@googlemail.com wrote: Hi, Currently I am working on a business application for android which sends among other things IMEI and IMSI via textmessage to a second phone number, in case it assumes to be attacked. Currently the user is able to store the second phone number within the SharedPreferences. But in case Android is rootet, an attacker can easy manipulate the *_preferences.xml - File. For this reason, I would like to follow the obfuscate - approach with ProGuard but I am not sure, whether ProGuard is usable for obfuscating other filetypes than the java - sourcecode. I would highly appreciate other suggestions. Another approach would be to store secure relevant data to a secure element like a smartcard, but not every android device has such an additional hardware- extension. Cheers, Boris -- 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 -- Daniel Drozdzewski -- 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: Unable to execute Bluetooth HDP Demo
Hi Chenchen, Please, if you don't mind, could you say me which is the Android version-ROM that you are using? Thanks. On 4 ene, 23:35, Chenchen chenchen.zh...@gmail.com wrote: Dear Raul, I'm playing around with UA-767PBT-C, and find that I could be able to get the association request by printing log in read thread: 01-04 13:46:49.652: I/BluetoothHDPService(7249): e200 0032 8000 0001002a 5079 0026 8000 8000 //?? not 0xA0 8000 0080 0008 00091e8002be 02bc 0081 //?? 0x01, 0x00 0100 However, I don't know what is the right now to write association response back. On Dec 16 2011, 6:54 am, Raul Ruiz spekwh...@gmail.com wrote: Well we have same trouble. I have UA-767PBT-C device too and withHDP Demo doesnt connect. Im doing a program that receive ACL_CONNECT from device and opens a channel. In the program, Health service is use by android BT and the link is connected but device is in CONNECTING_STATE and then drops down. Using a BT sniffer like HCIDUMP, i watch that android BT doest send CONNECT RSP to device and I think that this is the problem. If you want some help tell me i will continue working in this. PD: Me too check this in linux, and it works finelly.I think that dbus library is different. On 16 dic, 12:29, jfernandez jorge.fernandez.gonza...@gmail.com wrote: On 16 dic, 11:31, Raul Ruiz spekwh...@gmail.com wrote: Hi Jorge, Hi Raul, What device are you using? I have a same problem using Nonin 9560BT pulseoximeter. It conects and disconnects and any data had received in the Android. I'm working with a board which is able to simulate several biomedical devices. On the other hand, I have a real device (blood pressure monitor UA-767PBT-C). In that case, the device opens theHDPchannel automatically with the smartphone which acts as sink. But the truth is that I don't see anything in the LogCat related to this channel. However, if I try opening the connection channel from theHDPDemo Application, I obtain the same error. Anyway, I have checked all of this in a Linux laptop using the same BlueZ stack that we have in Android and everything works fine. Do you have any solution? Not yet. I'm expecting some feedback. Thanks On Dec 15, 6:30 pm, jfernandez jorge.fernandez.gonza...@gmail.com wrote: Hi all, I'm executing the BluetoothHDPDemo [1] (offered from Android 4.0 Ice Cream Sandwich) in my Android smartphone. When I have registered the application in order to receive data, and I have paired the biomedical device with the smartphone, I try to open the channel connection and I can see that the device starts sending data to the smartphone. However, the smartphone is unable to open the channel connectionHDP. At the end of this message you can see the output obtained in the LogCat. Has anybody achieved to run successfully this sample about the use of theBluetoothHealth Profile API? Any ideas? Thanks. Regards. [1]http://developer.android.com/resources/samples/BluetoothHDP/index.html This is the log that I obtain: 12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 00:80:25:14:A1:BC: 0 - 1 12-15 16:40:55.169: D/ConnectivityService(147): handleInetConditionHoldEnd: net=1, condition=0, published condition=0 12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property changed: 00:80:25:14:A1:BC property: Connected value: true 12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 12-15 16:41:00.034: E/BluetoothService.cpp(147): getChannelApplicationNative 12-15 16:41:00.044: E/bluetooth_common.cpp(147): dbus_func_args_timeout_valist: D-Bus error in Acquire: org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ chan3115 12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): onHealthDeviceConnectionResult: D-Bus error: org.bluez.Error.HealthError (Mdl is not created) 12-15 16:41:00.074: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6001 12-15 16:41:00.214: D/BluetoothEventLoop(147): onHealthDeviceConnectionResult 2 6000 12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of Property is: MainChannel Value:/org/bluez/278/hci0/ dev_00_80_25_14_A1_BC/chan3115 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post
Re: [android-developers] need help in twitter integration
Hi Naveen, this may due to the mismatching of time stamp. As twitter OAuth request token service is related with current time you have to check your system clock . Regards Deepesh On Mon, Jan 9, 2012 at 4:19 PM, chowdary nani naveenneeli...@gmail.comwrote: Hi dEEPESH PPM , Thanks for help, Thanks for replay, I am currently working with emulator and i am getting this problem will u please help me Thanks Naveen. ** * * *Please check your device clock and adjust with current time. I had the same issue in my app. I am solving this issue bu correcting the android device time.You can solve this issue* * * *Regards* * * *Deepesh C* On Mon, Jan 9, 2012 at 3:45 PM, chowdary nani naveenneeli...@gmail.comwrote: Hi All, i am working on twitter integration in android but i am getting error in my applicatio at this place please help me. here my code public class OAuthRequestTokenTask extends AsyncTaskVoid, Void, Void { final String TAG = getClass().getName(); private Context context; private OAuthProvider provider; private OAuthConsumer consumer; public OAuthRequestTokenTask(Context context, OAuthConsumer consumer, OAuthProvider provider) { this.context = context; this.consumer = consumer; this.provider = provider; } @Override protected Void doInBackground(Void... params) { try { Log.i(TAG, Retrieving request token from Google servers); final String url = provider.retrieveRequestToken(consumer, Constants.OAUTH_CALLBACK_URL); Log.i(TAG, Popping a browser with the authorize URL : + url); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)) .setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_FROM_BACKGROUND); context.startActivity(intent); } catch (Exception e) { Log.e(TAG, Error during OAUth retrieve request token, e); } return null; } } Thanks Naveen -- 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 -- 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 -- 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 -- 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
Re: [android-developers] Store XML file into the Resource folder
Mukesh Srivastav wrote: @PSKink: if you planned to use the ExternalStorage or InternalStorage would returns the url path of the SDCard or the phone internal space respectively. but as per my understanding, The user (who posted Venu), wants to save the xml with in Application, like we the way we create the customize property xml files in asset folder. I don't think so: venu reddy wrote: actually want to save in xml file in sd card .. I knew ...\ so that's why I sugessted to use getExternalStorageDirectory() pskink -- 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
Re: [android-developers] Obfuscate SharedPreferences with ProGuard
This should be of help: http://developer.android.com/guide/publishing/licensing.html#impl-Obfuscator It's a SharedPreferences wrapper that transparently encrypts and decrypts the data as it's stored and retrieved. You can find the sources in the Android Licensing library. One little glitch is that it uses a pretty long encryption key - from a pure security point of view, that's what you want, but it takes a long time (up to 2-3 seconds on older phones) to initialize. Because of this, I'd recommend initializing this class from a worker thread, or reducing the key length / number of iterations - technically this would be less secure, but still enough protection from clever users with rooted phones. -- Kostya 9 января 2012 г. 14:59 пользователь Daniel Drozdzewski daniel.drozdzew...@gmail.com написал: Boris, Obfuscating as such makes sense only with the code, since the code does not change its structure, only literal values (i.e. class names, method names, variable names, ...). By obfuscating (renaming all your method names within a class to say a(), you are making it harder for attacker to understand your code once its decompiled. As you see this will be of no use, when trying to protect data, which is your case. You have to look into some encryption solution, but even when the number gets encrypted, nothing stops the attacker to remove said number altogether, or much simpler attack: uninstalling your application. Daniel On 9 January 2012 10:40, Boris Ehlers boris.maccar...@googlemail.com wrote: Hi, Currently I am working on a business application for android which sends among other things IMEI and IMSI via textmessage to a second phone number, in case it assumes to be attacked. Currently the user is able to store the second phone number within the SharedPreferences. But in case Android is rootet, an attacker can easy manipulate the *_preferences.xml - File. For this reason, I would like to follow the obfuscate - approach with ProGuard but I am not sure, whether ProGuard is usable for obfuscating other filetypes than the java - sourcecode. I would highly appreciate other suggestions. Another approach would be to store secure relevant data to a secure element like a smartcard, but not every android device has such an additional hardware- extension. Cheers, Boris -- 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 -- Daniel Drozdzewski -- 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 -- 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
Re: [android-developers] I wanted to develop Android Apps with PDF viewer and PDF editor
Any help, wanted to develop pdf reader with Annotation feature, any paid/free lib, supported by any company, please let me know. On Mon, Jan 9, 2012 at 11:54 AM, Rocky rkjhaw1...@gmail.com wrote: thanks to reply, is any free or paid lib is available in market to develop application. I wanted to develop and i'm ready to spend hundred of $, i wanted pdf viewer some thing like RepliGo Readerhttps://market.android.com/details?id=com.cerience.reader.appfeature=search_result( https://market.android.com/details?id=com.cerience.reader.appfeature=search_result#?t=W251bGwsMSwxLDEsImNvbS5jZXJpZW5jZS5yZWFkZXIuYXBwIl0.), not all features only Annotation part of RepliGo. Please help me On Mon, Jan 9, 2012 at 11:32 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Sun, Jan 8, 2012 at 11:56 PM, Rocky rkjhaw1...@gmail.com wrote: Hi Guys, Please help me how to proceed, how can i develop apps with pdf reader and Annotation feature like mark, underline. Don't. Alternatively: find hundreds of thousands of dollars and shell out for a good pdf library for your app. Alternative alternatively: spend a year+ developing a good pdf library for Android or java that doesn't kill it on memory, and then sell it for less than the one that's currently being used. If you don't need a lot of features in your app: fire an intent at a pdf viewer that's installed on the user's phone. If they don't have the app, request the user to download the pdf reader (you can check if they have the pdf reader app installed easily enough, ask again if you dont' know how...) Kris -- 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 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore (O) +918030274295 (R) +919886336619 -- Thanks Regards Rakesh Kumar Jha Android Developer, Trainer and Mentor Bangalore (O) +918030274295 (R) +919886336619 -- 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
Re: [android-developers] Store XML file into the Resource folder
Thankqqq guys,, I got my solution... Due to Small miss understanding problem , i could not get the solution ... Now i got .. thnkaq very much , i never forget u guys support... thanks a lot... On Mon, Jan 9, 2012 at 4:47 PM, skink psk...@gmail.com wrote: Mukesh Srivastav wrote: @PSKink: if you planned to use the ExternalStorage or InternalStorage would returns the url path of the SDCard or the phone internal space respectively. but as per my understanding, The user (who posted Venu), wants to save the xml with in Application, like we the way we create the customize property xml files in asset folder. I don't think so: venu reddy wrote: actually want to save in xml file in sd card .. I knew ...\ so that's why I sugessted to use getExternalStorageDirectory() pskink -- 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 -- 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
Re: [android-developers] ICS context menu replacement
On Sun, Jan 8, 2012 at 7:01 AM, Patrick Julien pjul...@gmail.com wrote: What are these called? I'm tired of calling them triangle thing menu. Context actions are replaced by action modes since Honeycomb. They work similarly on ICS. http://developer.android.com/reference/android/view/ActionMode.html What is the widget backing this? I've looked and looked and I can't find anything about this, I even tried going over all the drawables shipped in android 4 and I still haven't seen this little triangle. Not sure the triangle thingie is directly related. It is used in spinners and the list navigation mode in the action bar, but that's just the Holo native style, as Kostya already mentioned. -- 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: Giving away my book: Genius Android Marketing
I would happily read your book. - Ali Chousein http://www.codeproject.com/KB/android/PayGol-Android.aspx http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://geo-filtered-assistant.blogspot.com https://marketplace.cisco.com/apphq/products/994 On Jan 5, 5:50 pm, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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
Re: [android-developers] call startActivityForResult from non Activity class Issue
On Fri, Jan 6, 2012 at 4:41 AM, raju rajukc...@gmail.com wrote: How is it possible to call startActivityForResult from non Activity class like in eg that extends LinearLayout. You don't. Your custom View that extends LinearLayout should not be starting an activity, let alone one for a result. Your custom View should follow the listener pattern that all other Views use: -- have an interface describing the event -- have the activity supply an implementation of that interface using a setter -- have the View call a method on that interface object when the event occurs -- have the activity do something in that method, such as call startActivityForResult() -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
Re: [android-developers] Giving away my book: Genius Android Marketing
i want it too..lets c wats the diff...wid other boks in the market On Mon, Jan 9, 2012 at 3:21 PM, Per Larsson perlarsso...@gmail.com wrote: Hi, This seems like a useful book. I'm interested in it. Best Regards, Per 2012/1/5 scp89 jayvanbui...@gmail.com I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_5?ie=UTF8qid=1325606679sr=8-5 Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_cc_1?s=digital-textie=UTF8qid=1325606710sr=1-1-catcorr GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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 -- 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
Re: [android-developers] How to manage boot tasks
On Fri, Jan 6, 2012 at 12:44 AM, cong ku kucong...@gmail.com wrote: There are many tasks which start when the OS reboot, I want to write some code to control this tasks, don't allow them to start. How to do this ? You have no right to dictate to other applications whether or not they start at boot time. You are welcome to use PackageManager to find out what starts at boot time and present that list to the user, perhaps where clicking on an app takes the user to the Settings screen where they can uninstall the app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
Re: [android-developers] Newbie questions about best practices
On Thu, Jan 5, 2012 at 8:11 PM, John jhartman5191...@gmail.com wrote: I am kinda new to this all and have a question or two about the proper way to do some things when designing an app. my first question is, is it okay to use the built in SQLite database for an app? That's why it is there. i ask this because it seems as if the database is supposed to be used for the operating system data like contacts and whatnot, not really for apps. I have no idea why you might think this. In the documentation, you will find material on using databases: http://developer.android.com/guide/topics/data/data-storage.html#db my second question is when connecting to a web database should the communication be done through a web page or is it okay to connect directly to the remote database from android? IMHO, your Android app should use a Web service. connecting to the database directly seems like it could raise some security threats. Agreed. my last question is how many items is acceptable to put in the resources for an app? for example i am trying to develop an app that could use around 1 images, i would assume putting that many files in the resources would bog it down a lot, what would be the best solution to this? Use fewer images. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
Re: [android-developers] Embedding another(external) application in my application's activity
On Thu, Jan 5, 2012 at 5:42 AM, RadheShyam Srinivasan nice3...@gmail.com wrote: Is it possible to Embeds another(external) application in my application's activity.Like having phone dialer app into my custom application No, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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
Re: [android-developers] answering machine implementation
On Fri, Jan 6, 2012 at 6:40 AM, Sheikh Basiruddin she...@esolzmail.com wrote: hi, i am trying to develop an application that is exactly similar to a answering machine. i want the caller to hear some preloaded recordings once he calls. but after doing a thorough research i found out that android doesnt allow to acces in call stream Correct. there any other way around. we have apps like youmail,google voice, that also have some ffeatures like that. They handle this work on a server, where the server is processing the calll. You might investigate technologies like Asterisk, for example. if we need a dedicated server to answer a call once i forward the calls to it, then please help me implement it... That has nothing to do with this list. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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] Google Voice Apis
Hi all, Two Queries: 1) How to keep google voice application all time running. Is it possible ? 2) Can we use Google Voice to read SMS... any api ? Thanks Prathamesh -- 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] ICU: Missing ICU latn symbols system value: U_MISSING_RESOURCE_ERROR
Hi All, While displaying progress bar on the first time entering in my activity, i'm getting below warning. *01-09 18:23:17.633 15384 15384 W ICU : Missing ICU latn symbols system value: U_MISSING_RESOURCE_ERROR* It seems to me, that due to this warning i'm not able to display Progress bar in ICS code. Can some one help me on this issue? Thanks, Namit Virmani -- 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
Re: [android-developers] Giving away my book: Genius Android Marketing
Looks like an interesting book to read. Mark On Thu, Jan 5, 2012 at 9:50 AM, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B005WE7S3G/ref=sr_1_5?ie=UTF8qid=1325606679sr=8-5 Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/1463778406/ref=sr_1_cc_1?s=digital-textie=UTF8qid=1325606710sr=1-1-catcorr GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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: Giving away my book: Genius Android Marketing
This looks very interesting. I'm in. On Jan 5, 4:50 pm, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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] how to read dynamically generated XML file?
Hi friends, I am getting one XML file from one web services cal , i stored this XML file into my sd card , Now Just I want to read the XML file(I mean parsing) . Using SAX parser we can read already knew format of XML file .. Here this case i Dont know the format.. How can I read Dynamically generated XML files? Please Help me -- 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
Re: [android-developers] how to read dynamically generated XML file?
On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com wrote: Hi friends, I am getting one XML file from one web services cal , i stored this XML file into my sd card , Now Just I want to read the XML file(I mean parsing) . Using SAX parser we can read already knew format of XML file .. Huh? Here this case i Dont know the format.. How can I read Dynamically generated XML files? Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are integrated into Android, and the first two are the same as with any Java development. Or, use a third-party XML parser, if you can find one that works on Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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@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
Re: [android-developers] how to read dynamically generated XML file?
Ok Ok thankq very much , i will try and let u know On Mon, Jan 9, 2012 at 7:08 PM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com wrote: Hi friends, I am getting one XML file from one web services cal , i stored this XML file into my sd card , Now Just I want to read the XML file(I mean parsing) . Using SAX parser we can read already knew format of XML file .. Huh? Here this case i Dont know the format.. How can I read Dynamically generated XML files? Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are integrated into Android, and the first two are the same as with any Java development. Or, use a third-party XML parser, if you can find one that works on Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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@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 -- 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
Re: [android-developers] how to read dynamically generated XML file?
Venu are you saying that, you do know the 'Node list' or XML Tags and you wanted to read it dynamically, isnt ? Secondly, how do you design your application class or Data object for model ? On Mon, Jan 9, 2012 at 7:08 PM, Mark Murphy mmur...@commonsware.com wrote: On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com wrote: Hi friends, I am getting one XML file from one web services cal , i stored this XML file into my sd card , Now Just I want to read the XML file(I mean parsing) . Using SAX parser we can read already knew format of XML file .. Huh? Here this case i Dont know the format.. How can I read Dynamically generated XML files? Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are integrated into Android, and the first two are the same as with any Java development. Or, use a third-party XML parser, if you can find one that works on Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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@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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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
Re: [android-developers] ICS context menu replacement
Thanks to both of you, since my message got moderated, I had time to find out it was a spinner by looking at the source code for the email application, it's a sometimes a spinner like here: https://github.com/android/platform_packages_apps_email/blob/master/res/layout/account_setup_incoming_fragment.xml and sometimes it's just an image like here: https://github.com/android/platform_packages_apps_email/blob/master/src/com/android/email/activity/MailboxFragmentAdapter.java 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@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
Re: [android-developers] how to read dynamically generated XML file?
Yes mukesh... I dont know the node listand all about XML But I need to read.. is there any alternative? using XMLPULLPARSER , we need to create XmlPullParser object..and using this object we can do any thing,, Actually my XML file in SD card , reading XML file from SD card using below code File sdcard = Environment.getExternalStorageDirectory(); File file = new File(sdcard,myxml.xml); but that xml file in file format ... how Can i this file i dont know ..pls help this... On Mon, Jan 9, 2012 at 7:15 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Venu are you saying that, you do know the 'Node list' or XML Tags and you wanted to read it dynamically, isnt ? Secondly, how do you design your application class or Data object for model ? On Mon, Jan 9, 2012 at 7:08 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Jan 9, 2012 at 8:33 AM, venu gopal reddy venu.andr...@gmail.com wrote: Hi friends, I am getting one XML file from one web services cal , i stored this XML file into my sd card , Now Just I want to read the XML file(I mean parsing) . Using SAX parser we can read already knew format of XML file .. Huh? Here this case i Dont know the format.. How can I read Dynamically generated XML files? Use SAX. Or, use the DOM. Or, use XmlPullParser. All of those are integrated into Android, and the first two are the same as with any Java development. Or, use a third-party XML parser, if you can find one that works on Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/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@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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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 -- 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] Intercepting Samsung's Call Keypad and formatting PhoneNumbers
Hi, My Samsung Galaxy SL (India) explicitly inserts hypen - characters between phone numbers with a different format than what currently exists in Indian standards. I was wondering if we can intercept this call keypad keystrokes and then format the phone number using something like android.telephony.PhoneNumberFormattingTextWatcher or something different. Is this possible and how ? Could some one guide me to a good start up code / sample for this ? Thanks Omkar Ghaisas -- 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: EOFException on Galaxy Nexus
Have you had any solution to this? I'm also seeing this on one of my apps... On 12 dic 2011, 15:53, freezy phree...@gmail.com wrote: Hi everyone, I have an app that connects to a HTTP service using an URLConnection. The app is in the market over a year now and works quite well, however recently problems with Galaxy Nexus users came up: When getting the input stream from the URLConnection using getInputStream(), an EOFException is thrown. I really wonder why this is, because at this point, only the headers are being read from the stream. The code of the line where it crashes can be seen here[1]. First I thought this may be an ICS problem, so I installed a early build on my Nexus S, but no reproduction there. Then I got access to a Galaxy Nexus and it crashed the same way as the bug reports I've received, which makes me think that it's probably not a case of a single phone acting weird. The stack trace of the crash can be seen here[2] (also, the message of the exception is null, hence the NPE). It's really quite bothersome, the app has 100k+ installations and the problem does only seem to occur on the Galaxy Nexus. Any suggestions, hints or comments would be really appreciated. Cheers, -freezy. [1]https://github.com/freezy/android-xbmcremote/blob/master/src/org/xbmc... [2]http://code.google.com/p/android-xbmcremote/issues/detail?id=581 -- 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: SAXParser UnknownHostException for RSS Feed
I finally resolved the error. It was an issue with the AVD. For some reason whenever I created an AVD for API 8 the internet access was restricted. I was able to get it working on a later API AVD. Thank you all for your help. It was much appreciated. -- 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
Re: [android-developers] sample android app wont run on eclipse
Have yuo created a virtual device with the device manager? If you have, ave you created with the correct Android version? On Sun, Jan 8, 2012 at 9:53 AM, karan hans karanh...@gmail.com wrote: wheb i run helloworld app this is what i get [2012-01-08 17:06:11 - HelloWorld] -- [2012-01-08 17:06:11 - HelloWorld] Android Launch! [2012-01-08 17:06:11 - HelloWorld] adb is running normally. [2012-01-08 17:06:11 - HelloWorld] Performing com.example.android.rs.helloworld.HelloWorld activity launch [2012-01-08 17:06:11 - HelloWorld] Failed to find an AVD compatible with target 'Android 4.0.3'. [2012-01-08 17:06:43 - HelloWorld] Performing com.example.android.rs.helloworld.HelloWorld activity launch [2012-01-08 17:08:15 - HelloWorld] Launch canceled! please help newbie here -- 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 -- 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] C2DM sample code: unable to deploy
Hello, Has anyone been able to deploy an android C2DM web application as generated from eclipse? I am getting the following error during deployment: - Unable to update: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=FooBarAKAFoobarversion=1; 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:282) at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:235) at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:214) at com.google.appengine.tools.admin.ResourceLimits.remoteRequest(ResourceLimits.java:160) at com.google.appengine.tools.admin.ResourceLimits.request(ResourceLimits.java:127) at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:323) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) -- 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] Difference between fragment add and replace
I display information in a frame by instantiating fragment A and showing it with calls to ft.add().addToBackStack(). Later, a user selection causes fragment B to be displayed in that frame. When the user presses the Back button, it returns to showing frag A, and another press of Back results in an empty frame. This is all working well, but what I've observed is that there is no visible difference in behavior whether I show frag B by calling ft.replace().addToBackStack() or ft.add().addToBackStack(). So what is the difference behind the scenes between these two methods? Doug Gordon GHCS Software -- 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] C2DM: cannot register account on emulator
Hello, I know there are several posts lurking around on this which state that the appropriate google packages need to be installed in android sdk and avd manager but where do I get these from? In the emulator when I try to add my account I get the error message Setup could not finish Unable to open connection to server. I entered my username and password under Add an Exchange account. I am using the 2.3.3 emulator (which is post 2.2 hence should work, but does not). Thanks, John Goche -- 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: Can we read data from any other database files in our android application
Yes! On Jan 4, 1:53 am, diljith k j diljit...@gmail.com wrote: Can we read data from any other database files in our android application or can we convert other data base extension files and make it usefull -- 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
Re: [android-developers] Can we read data from any other database files in our android application
yes. u can.find connectivity of android mysql On Jan 4, 2012 3:30 PM, diljith k j diljit...@gmail.com wrote: Can we read data from any other database files in our android application or can we convert other data base extension files and make it usefull -- 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 -- 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] trigger app by pressing any of the hardware key
dear i am making one application. where i required to fire an application without unlocking or selecting icon of app. i need to trigger app by pressing any of the hardware key(which ever is possible) of my phone 3 times. plz provide me some code anippet. -- 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
Re: [android-developers] trigger app by pressing any of the hardware key
https://groups.google.com/forum/#!topic/android-developers/BCBprNLORkA - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] onPreviewFrame got Exception???
hi, I am sending the onpreviewFrame byte array to socket. it send the first image but due to onPreviewframe callback it does not send any image and go to Exception. I want to send images to socket continuously. what's the reason. Here is my code logCat result public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, acquire the camera and tell it where // to draw. //connection to server try { socket = new Socket(192.168.1.220, ); obj = new ObjectOutputStream(socket.getOutputStream()); } catch (UnknownHostException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } camera = Camera.open(); try { camera.setPreviewDisplay(holder); camera.setPreviewCallback(new PreviewCallback() { // Called for each frame previewed // @SuppressWarnings(null) public void onPreviewFrame(byte[] data, Camera camera) { Camera.Parameters parameters = camera.getParameters(); int format = parameters.getPreviewFormat(); //YUV formats require more conversion if (format == ImageFormat.NV21 /*|| format == ImageFormat.YUY2 || format == ImageFormat.NV16*/) { int w = parameters.getPreviewSize().width; int h = parameters.getPreviewSize().height; // Get the YuV image YuvImage yuv_image = new YuvImage(data, format, w, h, null); // Convert YuV to Jpeg Rect rect = new Rect(0, 0, w, h); ByteArrayOutputStream output_stream = new ByteArrayOutputStream(); yuv_image.compressToJpeg(rect, 100, output_stream); byte[] byt=output_stream.toByteArray(); try { obj.writeObject(byt); obj.flush(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } } }); obj.close(); } catch (IOException e) { e.printStackTrace(); } } /according to logCat 01-08 17:52:07.033: ERROR/mm-camera 7x-vfe(3726): Received VFE Stop ACK!!! ctrlCmd is NULL 01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 0x2c790 (2 REMAINING) 01-08 17:52:07.533: ERROR/mm-camera(3726): 6 0xa742e2fc 01-08 17:52:07.533: ERROR/mm-camera(3726): 5 0xa740cd0a 01-08 17:52:07.533: ERROR/mm-camera(3726): 4 0xa740e576 01-08 17:52:07.533: ERROR/mm-camera(3726): 3 0xa740e066 01-08 17:52:07.533: ERROR/mm-camera(3726): 2 0xafd110b0 01-08 17:52:07.533: ERROR/mm-camera(3726): 1 0xafd10b94 01-08 17:52:07.533: ERROR/mm-camera(3726): +++ DELETING LEAKED MEMORY AT 0x2e648 (1 REMAINING) 01-08 17:52:07.533: ERROR/mm-camera(3726): 6 0xa742e2fc 01-08 17:52:07.543: ERROR/mm-camera(3726): 5 0xa740cd0a 01-08 17:52:07.543: ERROR/mm-camera(3726): 4 0xa740e576 01-08 17:52:07.543: ERROR/mm-camera(3726): 3 0xa740e066 01-08 17:52:07.543: ERROR/mm-camera(3726): 2 0xafd110b0 01-08 17:52:07.543: ERROR/mm-camera(3726): 1 0xafd10b94 01-08 17:52:18.223: ERROR/QualcommCameraHardware(3726): native_access_parm: error (No such file or directory): fd 12, type 1, length 32, status 0 01-08 17:52:18.523: ERROR/mm-camera 7x-vfe(3726): Received VFE start ACK!!! This is a user preview start. Thanks -- 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] USB Development Connection Tablet - Computer with USB OTG + Link Cable possible?
My Xoom has only 1 USB port. With an OTG adapter I can connect joysticks. But evertime I do upload a new version of my app I have to remove the OTG Adapter, connect the Computer and upload the app, remove the Computer cable, connect the OTG adapter and then the joystick. Thats no fun. I there any solution with an OTG Adapter + USB Hub + USB Link cable, to connect the Computer and Joystick at the same time? -- 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
Re: [android-developers] Difference between fragment add and replace
On Mon, Jan 9, 2012 at 9:27 AM, Doug Gordon gordo...@gmail.com wrote: So what is the difference behind the scenes between these two methods? Did you try reading the documentation for each function ... ? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: why doesn't the stock android emulator have a file explorer?
DDMS has a simple file explorer you can use with the emulator. On Sat, Jan 7, 2012 at 1:04 AM, Ifor i...@blueyonder.co.uk wrote: You can also do a web download based install. If there is no activity for my file pick intent I bring up a dialog explaing with links to the direct web and market download. The direct web download works on the emulator. Ifor On Jan 7, 3:46 am, Kristopher Micinski krismicin...@gmail.com wrote: You can't: the marketplace doesn't install on the emulator. You can do an adb push, however. Perhaps google 'adb push emulator' or 'install apps on emulator' and I'm certain this will expose some information... kris On Fri, Jan 6, 2012 at 8:46 PM, greenlion89 przemek...@gmail.com wrote: This brings me to another question, how can I install apps on the emulator through the marketplace? -- 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- Hide quoted text - - Show quoted text - -- 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 -- Romain Guy Android framework engineer romain...@android.com -- 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: newbie: error deploying C2DM web application
I found the problem, I had to right-click on my App Engine project - Google - App Engine Settings ... and change the capitalization of my project's name. For some reason the framework placed the same name there as the name I gave my eclipse project rather than the name I registered with the server. Still cannot get the emulator to work though. I had to C2DM from a physical phone. Regards, John Goche On Mon, Jan 9, 2012 at 4:17 PM, John Goche johngoch...@googlemail.comwrote: Hello, I have created and registered an application by the imaginative name called FooBarAkAFoobar. I have registered it under my email account and created a C2DM application in eclipse by going to FIle - New - Other - Android - App Engine Connected Android Project When I try to deploy the web application I get the following error: --- Unable to update: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=FooBarAKAFoobarversion=1; 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java: 282) at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java: 235) at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java: 214) at com.google.appengine.tools.admin.ResourceLimits.remoteRequest(ResourceLimits.java: 160) at com.google.appengine.tools.admin.ResourceLimits.request(ResourceLimits.java: 127) at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java: 323) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 52) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 400) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) --- What am I doing wrong, I have successfully registered for C2DM overnight and would like to try it out! Thanks, John Goche -- 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: Giving away my book: Genius Android Marketing
Add me too...I'm so new to Android I don't even know what I don't know even to ask questions or how to phrase them right for you nice people to understand what I'm asking. Any help for the noob is great. Steve On Jan 5, 10:50 am, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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
Re: [android-developers] Re: Android WebView Connecting to Remote URL
It is a bit beyond the scope of this group to solve problems with JSTL and certainly beyond mine. But have a look at this page: http://www.informit.com/articles/article.aspx?p=30946seqNum=10 It has something about a taglib - maybe that is the mistake? On Mon, Jan 9, 2012 at 8:08 AM, Robin Thapa librain.ro...@gmail.com wrote: Sorry, to misinterpert on ServerSide problem. I guess you are right. What i did was i create a new page a redirected my servlet to welcome.jsp. c:out value=Hello World. Well this page was displayed with Hello World. Since my server side pages has following code: div data-role=content data-theme=d ul data-role=listview c:set var=idx value=0/ c:forEach var=ms items=${model.contents} li a href=Controller? action=viewmessageIdxz=${idx}From:${ms.from}br/ Subject:${ms.subject}br/ Sent Date:${ms.sentDate} /a /li c:set var=idx value=${idx+1}/ /c:forEach /ul /div The forEach Part has a problem. do you see anything wrong with it. Coz on the desktop browser the result is show as desired. But on emulator not working On Jan 9, 10:56 am, Robin Thapa librain.ro...@gmail.com wrote: Has anyone encountered such problems. On Jan 9, 10:31 am, Robin Thapa librain.ro...@gmail.com wrote: It's simply a white blank page no nothing in it. On Jan 9, 10:27 am, Michael Banzon mich...@banzon.dk wrote: On Mon, Jan 9, 2012 at 6:23 AM, Robinns librain.ro...@gmail.com wrote: No, its not a server side problem, in my desktop browser with the jstl i see the content as desired. But on the emulator with jstl tags i see a blank page. How does the page look in the browser on the emulator? -- Michael Banzonhttp://michaelbanzon.com/ -- 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 -- Michael Banzon http://michaelbanzon.com/ -- 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] multi-tasking solution needed?
I'm posting this question in case someone has a solution/best practice already: Situation: 1. Activity A in task TA starts native browser activity B 2. Native browser activity executes in separate task TB (no control over this) 3. Activity B interprets some Javascript and downloads a file (no control over the javascript) 4. At this point: B in TB is at top of task stack A in TA is stopped and does not receive any events (eg FileObserver events) Solution needed: After B in TB completes download of file: 1. A in TA at top of stack (and back stack) so A can read download file 2. A's content view is displayed Ideas or known solution would be appreciated... -- 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
Re: [android-developers] multi-tasking solution needed?
Download the file yourself. Or, use a WebView instead of launching the browser. On Mon, Jan 9, 2012 at 1:01 PM, ole! olub...@gmail.com wrote: I'm posting this question in case someone has a solution/best practice already: Situation: 1. Activity A in task TA starts native browser activity B 2. Native browser activity executes in separate task TB (no control over this) 3. Activity B interprets some Javascript and downloads a file (no control over the javascript) 4. At this point: B in TB is at top of task stack A in TA is stopped and does not receive any events (eg FileObserver events) Solution needed: After B in TB completes download of file: 1. A in TA at top of stack (and back stack) so A can read download file 2. A's content view is displayed Ideas or known solution would be appreciated... -- 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 App Developer Books: http://commonsware.com/books -- 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] outWidth and outHeight always 0 after gallery image selection
outWidth and outHeight always 0 after gallery select. example path (selectedImage) is: /external/images/media/154 public Bitmap decodeFile(String selectedImage, int Size) { // Decode image size BitmapFactory.Options o = new BitmapFactory.Options(); o.inJustDecodeBounds = true; o.inSampleSize = 1; BitmapFactory.decodeFile(selectedImage, o); int width_tmp = o.outWidth; int height_tmp = o.outHeight; Logger.d(Creating bitmap.,Width: + Integer.toString(width_tmp) + , Height: + Integer.toString(height_tmp)); ... Setting inSampleSize doesn't make a difference. Could you please explain to me why outWidth and outHeight are 0 no matter what file is selected? There is nothing in the log and no exception thrown. API level 10 results on phone device. -- 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] Laggy scrolling for a web app (phonegap) in ICX
Hi, We have an android app using phonegap and it appears the scrolling is significantly laggy in Ice Cream Sandwich. We bind to the $ (window).scroll event using jQuery and I don't know why it is slow in the Galaxy Nexus(ICX) and the Ice cream sandwich emulator. The only clue we have is the log: 'Miss a drag as we are waiting for WebCore's response for touch down' appearing in the log console. A quick google tells me a few people have encountered this also but have no definite solution. My initial theory is that the scroll event is not being detected properly so it makes the scrolling a bit laggy but I think the drawing/ refreshing of the screen is not the issue here but detecting the scroll gesture or something. Any help would be much appreciated. -- 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
Re: [android-developers] multi-tasking solution needed?
Thanks for responding, Mark 1. Direct download can't be done from server, must execute the script to create download 2. WebView with Javascript enabled is preferred solution, but I've tried unsuccessfully. Execution of script in WebView does not produce download. No errors are reported to WebViewClient.onReceivedError(), so I abandoned this strategy. Don't know enough about browser and WebView differences to explain unsuccessful result. -- 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
Re: [android-developers] Google Voice Apis
On Mon, Jan 9, 2012 at 7:04 AM, Prathamesh prathame...@gmail.com wrote: 1) How to keep google voice application all time running. Is it possible ? No. You can't keep your own app all time running, let alone another app you have no control over or that may not even be installed. 2) Can we use Google Voice to read SMS... any api ? Search for Google Voice API. It's not that difficult. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] shared folders in eclipse
Hello, I notice that when I generate a C2DM project in android there is a shared folder (the Foo-Android directory is a reference to the Foo-AppEngine directory). How can I create my own shared folder between two arbitrary applications of my own in eclipse? Someone in the past mentioned creating a library, is that the way? Exactly what are the required steps to achieve the desired effect? Best Regards, John Goche -- 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
Re: [android-developers] shared folders in eclipse
This: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-45.htm ...is the first result when Googling for eclipse linked folders. Hope this helps. -- Kostya 9 января 2012 г. 23:19 пользователь John Goche johngoch...@googlemail.comнаписал: Hello, I notice that when I generate a C2DM project in android there is a shared folder (the Foo-Android directory is a reference to the Foo-AppEngine directory). How can I create my own shared folder between two arbitrary applications of my own in eclipse? Someone in the past mentioned creating a library, is that the way? Exactly what are the required steps to achieve the desired effect? Best Regards, John Goche -- 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 -- 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] How to implement multiple Android versions to use different libraries?
I know there are a lot of questions out there about multiple Android versions pertaining to free/paid versions but this might be a little different. My app currently uses AdMob for advertising and it's published on the Android Market and on the Samsung App Store. Unfortunately, the Samsung store will require everyone to migrate to their own Ad Network in the future, Samsung AdHub. Both AdMob and AdHub have their own libraries, their own SDKs. I'm looking for a solution to build 2 different versions, one including AdMob the another including AdHub (and all the necessary code). What solutions do I have to easily build 2 versions without much hassle when it's time for a new version release? Lots of solutions recommend to move the main project into a library project and then build 2 other apps which include the library project (the base project). But I'm not very fond of that solution (I prefer to keep my app in one single project, if possible) and I'm trying to look for alternatives and then make up my mind about which one is better for my needs. Perhaps Ant could work as a solution? If so, any pointers or tutorial? Never worked with Ant before... -- 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
Re: [android-developers] I wanted to develop Android Apps with PDF viewer and PDF editor
On Mon, Jan 9, 2012 at 5:40 AM, Rocky rkjhaw1...@gmail.com wrote: Any help, wanted to develop pdf reader with Annotation feature, any paid/free lib, supported by any company, please let me know. A) Google it. B) Wait more than a few hours to bump your post, please. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] How to implement multiple Android versions to use different libraries?
On Mon, Jan 9, 2012 at 2:00 PM, Ricardo Amaral mas...@ricardoamaral.netwrote: But I'm not very fond of that solution (I prefer to keep my app in one single project, if possible) and I'm trying to look for alternatives and then make up my mind about which one is better for my needs. You could include both libraries into your one project, abstract both into concrete classes that are instantiated based on some static flag, and only instantiate and use the one you need based on the flag. Build, flip bit, rebuild. Perhaps Ant could work as a solution? If so, any pointers or tutorial? Never worked with Ant before... I've never used Ant before either, but from heresay it would probably do what you need. If it were me, and I needed information on this topic, I would use Google. Ant is a pretty popular tool and there is surely plenty of information out there waiting to be found. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] support for tracker music (MOD/XM/IT) in Android
Just a quick note to other developers who are interested in adding tracker music support in their Android games/apps. http://en.wikipedia.org/wiki/Tracker_(music_software) Robert Green, Mario Zechner and I were discussing this back in 2010: http://goo.gl/hyzOQ Since then my port of libmodplug to Android has matured a fair amount - could still use some cleanup, but it works! And I have 3 games out on the market using it - games that would be 10 times their current download size if I'd used mp3 or ogg formats... It has Java wrapper classes + libmodplug.so compiled for ARM processors, plus basic instructions for how to build it (e.g. for other processors). Also, it's free! So check it out: http://www.peculiar-games.com/libmodplug-in-android - Patrick -- 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
Re: [android-developers] Re: Giving away my book: Genius Android Marketing
Looks very interesting! Count me in! :) Yuvi On Mon, Jan 9, 2012 at 6:04 PM, PhotoSteve dfwgoph...@gmail.com wrote: Add me too...I'm so new to Android I don't even know what I don't know even to ask questions or how to phrase them right for you nice people to understand what I'm asking. Any help for the noob is great. Steve On Jan 5, 10:50 am, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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] Confused about error for (Button)findViewById(R.id.MyButton)
I don't understand the findViewById(R.id.myWidget) syntax. I've searched for an explanation and only found more advanced topics. In graphic layout of main.xml I add a button and edit ID to @+id/ myButton and edit text to a new string. I assume that somewhere an ID is recorded, similar to strings.xml that holds the strings. But in the .java file when I do this: Button myButton = (Button)findViewById(R.id.myButton); the id shows an error (red squiggle). Is my concept of storage of IDs wrong? Where are ID's stored? (Or is this beyond what a beginner should be thinking about?) How can I get the id in above line of code to recognize the collection of IDs? Much thanks. -- 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] Ice Cream Sandwich networking problems
I have a couple of apps on Market that seem to be having issues related to Ice Cream Sandwich. The following code snippet will throw a FileNotFoundException on both the Android Emulator and the the Samsung Nexus: URL url = new URL (http://www.google.com;); URLConnection connection = url.openConnection(); connection.setDoOutput(true); byte[] bytes = new byte[1024]; InputStream is = connection.getInputStream(); Here is the stack trace that is logged: D/AddNewTitleActivity(12424): java.io.FileNotFoundException: http://www.google.com D/AddNewTitleActivity(12424): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java: 177) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.callService(NetworkManager.java: 130) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.retrieveHtmlContent(NetworkManager.java: 299) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:336) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:1) D/AddNewTitleActivity(12424): at android.os.AsyncTask $2.call(AsyncTask.java:264) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask $Sync.innerRun(FutureTask.java:305) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask.run(FutureTask.java:137) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1076) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:569) D/AddNewTitleActivity(12424): at java.lang.Thread.run(Thread.java: 856) There is a pretty easy work around by using the org.apache.http.client.HttpClient but the HttpURLConnection method works in all versions of android, with the except Ice Cream Sandwich. This is a breaking change that gives users a bad experience when upgrading their phone or experiencing apps for the first time, if they're coming from a different platform. Is this a known issue intended to force app developers to use a specific API or should I log this as a bug report? Thanks, -Aaron -- 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
Re: [android-developers] Ice Cream Sandwich networking problems
I don't have the answer, but tried out your code on a Galaxy Nexus and got the same exception. Amazingly enough, it works with http://www.apple.com; and http://www.microsoft.com; :) So I'd say, go ahead a file a bug. -- Kostya 10 января 2012 г. 1:04 пользователь Aaron aobrien...@gmail.com написал: I have a couple of apps on Market that seem to be having issues related to Ice Cream Sandwich. The following code snippet will throw a FileNotFoundException on both the Android Emulator and the the Samsung Nexus: URL url = new URL (http://www.google.com;); URLConnection connection = url.openConnection(); connection.setDoOutput(true); byte[] bytes = new byte[1024]; InputStream is = connection.getInputStream(); Here is the stack trace that is logged: D/AddNewTitleActivity(12424): java.io.FileNotFoundException: http://www.google.com D/AddNewTitleActivity(12424): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java: 177) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.callService(NetworkManager.java: 130) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.retrieveHtmlContent(NetworkManager.java: 299) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:336) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:1) D/AddNewTitleActivity(12424): at android.os.AsyncTask $2.call(AsyncTask.java:264) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask $Sync.innerRun(FutureTask.java:305) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask.run(FutureTask.java:137) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1076) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:569) D/AddNewTitleActivity(12424): at java.lang.Thread.run(Thread.java: 856) There is a pretty easy work around by using the org.apache.http.client.HttpClient but the HttpURLConnection method works in all versions of android, with the except Ice Cream Sandwich. This is a breaking change that gives users a bad experience when upgrading their phone or experiencing apps for the first time, if they're coming from a different platform. Is this a known issue intended to force app developers to use a specific API or should I log this as a bug report? Thanks, -Aaron -- 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 -- 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
Re: [android-developers] Ice Cream Sandwich networking problems
Follow up: taking out setDoOutput(true) makes it work for www.google.com as well. http://stackoverflow.com/questions/8587913/what-exactly-does-urlconnection-setdooutput-affect The link above explains that setDoOutput(true) forces an HTTP POST request. So maybe it's just that the Google search server responds to to POST requests with a 404 unless they contain all proper search parameters (as they do when you actually use search)? -- Kostya 10 января 2012 г. 1:22 пользователь Kostya Vasilyev kmans...@gmail.comнаписал: I don't have the answer, but tried out your code on a Galaxy Nexus and got the same exception. Amazingly enough, it works with http://www.apple.com; and http://www.microsoft.com; :) So I'd say, go ahead a file a bug. -- Kostya 10 января 2012 г. 1:04 пользователь Aaron aobrien...@gmail.com написал: I have a couple of apps on Market that seem to be having issues related to Ice Cream Sandwich. The following code snippet will throw a FileNotFoundException on both the Android Emulator and the the Samsung Nexus: URL url = new URL (http://www.google.com;); URLConnection connection = url.openConnection(); connection.setDoOutput(true); byte[] bytes = new byte[1024]; InputStream is = connection.getInputStream(); Here is the stack trace that is logged: D/AddNewTitleActivity(12424): java.io.FileNotFoundException: http://www.google.com D/AddNewTitleActivity(12424): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java: 177) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.callService(NetworkManager.java: 130) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.retrieveHtmlContent(NetworkManager.java: 299) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:336) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:1) D/AddNewTitleActivity(12424): at android.os.AsyncTask $2.call(AsyncTask.java:264) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask $Sync.innerRun(FutureTask.java:305) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask.run(FutureTask.java:137) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1076) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:569) D/AddNewTitleActivity(12424): at java.lang.Thread.run(Thread.java: 856) There is a pretty easy work around by using the org.apache.http.client.HttpClient but the HttpURLConnection method works in all versions of android, with the except Ice Cream Sandwich. This is a breaking change that gives users a bad experience when upgrading their phone or experiencing apps for the first time, if they're coming from a different platform. Is this a known issue intended to force app developers to use a specific API or should I log this as a bug report? Thanks, -Aaron -- 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 -- 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] What do you all use for automated testing?
I'm doing a little research into automated testing and curious to know what the folks here use. What I am looking for is a tool to allow testers the ability to just hit a button to begin recording, bring up our app as normal, input the data, and then save the test off by a button click. This of course will be done for a LOT of tests that will then be run against new code pushes. I know there are a couple tools out there that do this sort of thing (SeeTest being the one I have looked at today) but I'm wondering if there are other alternatives (open source ones in particular...these things are big $$$). Again, I'm not looking for something that I have to program the tests with (plenty of tools for that) but rather something testers without programming experience can use to record their tests. Thanks! -- 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
Re: [android-developers] Confused about error for (Button)findViewById(R.id.MyButton)
http://developer.android.com/guide/topics/resources/accessing-resources.html When your application is compiled, aapt generates the R class, which contains resource IDs for all the resources in your res/ directory. For each type of resource, there is an Rsubclass (for example, R.drawable for all drawable resources) and for each resource of that type, there is a static integer (for example, R.drawable.icon). This integer is the resource ID that you can use to retrieve your resource. You need to add the import for your application's R.java file. In Eclipse, press Ctrl+Shift+O, then select your package name R.java, if prompted. Or add import R.java manually in the imports section, near the top of the file. -- Kostya 10 января 2012 г. 0:53 пользователь dev0708 webdev0...@gmail.com написал: I don't understand the findViewById(R.id.myWidget) syntax. I've searched for an explanation and only found more advanced topics. In graphic layout of main.xml I add a button and edit ID to @+id/ myButton and edit text to a new string. I assume that somewhere an ID is recorded, similar to strings.xml that holds the strings. But in the .java file when I do this: Button myButton = (Button)findViewById(R.id.myButton); the id shows an error (red squiggle). Is my concept of storage of IDs wrong? Where are ID's stored? (Or is this beyond what a beginner should be thinking about?) How can I get the id in above line of code to recognize the collection of IDs? Much thanks. -- 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 -- 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
Re: [android-developers] Ice Cream Sandwich networking problems
And so it does: kman@minty ~/Android/proj-new/AquaMail $ wget -S --post-data=hello=there http://www.google.com --2012-01-10 01:47:02-- http://www.google.com/ Resolving www.google.com (www.google.com)... 74.125.232.80, 74.125.232.81, 74.125.232.82, ... Connecting to www.google.com (www.google.com)|74.125.232.80|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 405 Method Not Allowed Allow: GET, HEAD Date: Mon, 09 Jan 2012 21:47:03 GMT Content-Type: text/html; charset=UTF-8 Server: gws Content-Length: 11816 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN 2012-01-10 01:47:03 ERROR 405: Method Not Allowed. -- Kostya 10 января 2012 г. 1:27 пользователь Kostya Vasilyev kmans...@gmail.comнаписал: Follow up: taking out setDoOutput(true) makes it work for www.google.comas well. http://stackoverflow.com/questions/8587913/what-exactly-does-urlconnection-setdooutput-affect The link above explains that setDoOutput(true) forces an HTTP POST request. So maybe it's just that the Google search server responds to to POST requests with a 404 unless they contain all proper search parameters (as they do when you actually use search)? -- Kostya 10 января 2012 г. 1:22 пользователь Kostya Vasilyev kmans...@gmail.comнаписал: I don't have the answer, but tried out your code on a Galaxy Nexus and got the same exception. Amazingly enough, it works with http://www.apple.com; and http://www.microsoft.com; :) So I'd say, go ahead a file a bug. -- Kostya 10 января 2012 г. 1:04 пользователь Aaron aobrien...@gmail.com написал: I have a couple of apps on Market that seem to be having issues related to Ice Cream Sandwich. The following code snippet will throw a FileNotFoundException on both the Android Emulator and the the Samsung Nexus: URL url = new URL (http://www.google.com;); URLConnection connection = url.openConnection(); connection.setDoOutput(true); byte[] bytes = new byte[1024]; InputStream is = connection.getInputStream(); Here is the stack trace that is logged: D/AddNewTitleActivity(12424): java.io.FileNotFoundException: http://www.google.com D/AddNewTitleActivity(12424): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java: 177) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.callService(NetworkManager.java: 130) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.network.NetworkManager.retrieveHtmlContent(NetworkManager.java: 299) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:336) D/AddNewTitleActivity(12424): at com.flyingspheres.android.inventory.activities.add.AddNewTitleActivity $3$3$1.doInBackground(AddNewTitleActivity.java:1) D/AddNewTitleActivity(12424): at android.os.AsyncTask $2.call(AsyncTask.java:264) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask $Sync.innerRun(FutureTask.java:305) D/AddNewTitleActivity(12424): at java.util.concurrent.FutureTask.run(FutureTask.java:137) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1076) D/AddNewTitleActivity(12424): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:569) D/AddNewTitleActivity(12424): at java.lang.Thread.run(Thread.java: 856) There is a pretty easy work around by using the org.apache.http.client.HttpClient but the HttpURLConnection method works in all versions of android, with the except Ice Cream Sandwich. This is a breaking change that gives users a bad experience when upgrading their phone or experiencing apps for the first time, if they're coming from a different platform. Is this a known issue intended to force app developers to use a specific API or should I log this as a bug report? Thanks, -Aaron -- 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 -- 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: Giving away my book: Genius Android Marketing
Count me in. :) On Jan 5, 10:50 am, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover:http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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: Giving away my book: Genius Android Marketing
Count me in! -- 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] Supports screens value for 7 3.2+ tablet
Currently I have an app that supports any size screen up to Android 3.0. For 3.0 and above I have a 10 version using fragments. Now customers are inquiring about 7 Honeycomb tablet support and the 10 version would be cropped on those and unusable. I have created a 3.2 version which uses the tabbed layout for previous version (and looks fine on a 7 tablet). What is difficult to discern from the documentation is, will using: supports-screens android:compatibleWidthLimitDp=600/ distinguish it from the 3.2 10 version? This will be the third APK for this app that will be on the Market. It appears that this is the only supports-screens tag needed. Correct? However when I launch a 10 Honeycomb emulator the app still loads and I don't think it should or has that ability not been added to the emulator skins yet? -- 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
Re: [android-developers] Confused about error for (Button)findViewById(R.id.MyButton)
If that doesn't help, you can send the error that you are getting, so we can have a better idea of what is wrong with the code. 2012/1/9 Kostya Vasilyev kmans...@gmail.com http://developer.android.com/guide/topics/resources/accessing-resources.html When your application is compiled, aapt generates the R class, which contains resource IDs for all the resources in your res/ directory. For each type of resource, there is an Rsubclass (for example, R.drawable for all drawable resources) and for each resource of that type, there is a static integer (for example, R.drawable.icon). This integer is the resource ID that you can use to retrieve your resource. You need to add the import for your application's R.java file. In Eclipse, press Ctrl+Shift+O, then select your package name R.java, if prompted. Or add import R.java manually in the imports section, near the top of the file. -- Kostya 10 января 2012 г. 0:53 пользователь dev0708 webdev0...@gmail.comнаписал: I don't understand the findViewById(R.id.myWidget) syntax. I've searched for an explanation and only found more advanced topics. In graphic layout of main.xml I add a button and edit ID to @+id/ myButton and edit text to a new string. I assume that somewhere an ID is recorded, similar to strings.xml that holds the strings. But in the .java file when I do this: Button myButton = (Button)findViewById(R.id.myButton); the id shows an error (red squiggle). Is my concept of storage of IDs wrong? Where are ID's stored? (Or is this beyond what a beginner should be thinking about?) How can I get the id in above line of code to recognize the collection of IDs? Much thanks. -- 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 -- 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 -- 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: Permission Denial: starting Intent when launching my activity from my widget
Look in https://developer.android.com/guide/topics/manifest/activity-element.html#exported -- 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: What percentage of users lack the ability to install from outside the Droid marketplace ?
On Jan 2, 10:47 pm, Michael Banzon mich...@banzon.dk wrote: What are you trying to bake into the APK? The only time I've seen this solution is on apps that integrated deeply with a single system on a closed network. I'm creating a two party app that allows employers create and update employee task lists via a website. The website sends an installation link to the employee via SMS and email. After the employee downloads and installs the app apache validates the employees phone number. Upon phone number validation the customized task list is sent back to the employees app. I was going to do a direct .apk download from apache but will probably have the app on the marketplace as to avoid the non-trusted installation issue. It it possible that this is a great convenience to the users - but take into account the inconvenience of setting up and allowing non-trusted apps on a device. Most Android devices I've seen in my region allow this. Many users have the technical skills required to do this. But most people will never to it - because it has words like not trusted and insecure attached to it. On Fri, Dec 30, 2011 at 10:34 PM, Bill K b...@backofficedesigns.com wrote: Does anyone know What percentage of users lack the ability to install from outside the Droid marketplace ? My app polls my website and requires customization prior to downloading. The important point here is my app needs to be customized prior to installation - not after. Therefore selling the app in the marketplace will not work. If I had a private URL in the Droid marketplace that allowed my users to install a trusted app - that would work - but thats not going to happen. Therefore it looks like I'm going to sell it outside of the marketplace. Here are some pros and cons I've come up with. Pros / Droid marketplace installation : 1. Seller keeps 100% of revenue 2. 100% of users have the ability to install Cons / Droid marketplace installation : 1. 30% of revenue goes to google 2. Users need to log into the droid marketplace with thier google account. Users not logged in may not complete the sign in process. Pros / non - marketplace installation : 1. Users don't have to be logged into their google account to install Cons / Droid marketplace installation: 1. Some users cannot install apps from non trusted locations. I welcome feedback and debunking of my observations. -- 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 -- Michael Banzonhttp://michaelbanzon.com/ -- 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
Re: [android-developers] How to implement multiple Android versions to use different libraries?
As was mentioned you could have two different packages, to make it simpler, where ant could then use different directories in the classpath. This will work but you gain little over just using libraries. If you are using continuous integration, it some automatic build then ant makes sense, but if building in eclipse then it doesn't. On Jan 9, 2012 3:13 PM, TreKing treking...@gmail.com wrote: On Mon, Jan 9, 2012 at 2:00 PM, Ricardo Amaral mas...@ricardoamaral.netwrote: But I'm not very fond of that solution (I prefer to keep my app in one single project, if possible) and I'm trying to look for alternatives and then make up my mind about which one is better for my needs. You could include both libraries into your one project, abstract both into concrete classes that are instantiated based on some static flag, and only instantiate and use the one you need based on the flag. Build, flip bit, rebuild. Perhaps Ant could work as a solution? If so, any pointers or tutorial? Never worked with Ant before... I've never used Ant before either, but from heresay it would probably do what you need. If it were me, and I needed information on this topic, I would use Google. Ant is a pretty popular tool and there is surely plenty of information out there waiting to be found. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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] What is Development device ID?
In ICS's Developer Options, there's a preference Development device ID with a 13 character string (---X screenshot: http://cdn.droid-life.com/wp-content/uploads/2011/12/Screenshot_2011-12-05-12-06-48-365x650.png). I searched high and low to find out what it might before but couldn't find anything. So I looked at the source of the Settings app to see where it was coming from (https://github.com/android/ platform_packages_apps_settings/blob/master/src/com/android/settings/ DevelopmentSettings.java#L143): final Preference verifierDeviceIdentifier = findPreference(VERIFIER_DEVICE_IDENTIFIER); final PackageManager pm = getActivity().getPackageManager(); final VerifierDeviceIdentity verifierIndentity = pm.getVerifierDeviceIdentity(); if (verifierIndentity != null) { verifierDeviceIdentifier.setSummary(verifierIndentity.toString()); } And looking at the online docs, PackageManager#getVerifierDeviceIdentity is not documented. However, viewing the source shows (https://github.com/android/ platform_frameworks_base/blob/master/core/java/android/content/pm/ PackageManager.java#L2658): /** * Returns the device identity that verifiers can use to associate their * scheme to a particular device. This should not be used by anything other * than a package verifier. * * @return identity that uniquely identifies current device * @hide */ public abstract VerifierDeviceIdentity getVerifierDeviceIdentity(); It states that it is a device identifier, yet says we shouldn't use it to identify devices... Does anyone know if this is in someway similar to ANDROID_ID? If not, does anyone know what this is for? -- 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
Re: [android-developers] Re: Giving away my book: Genius Android Marketing
It is insteresting, i am waiting... 在 2012-1-9 下午9:28,Michael nicholls...@gmail.com写道: This looks very interesting. I'm in. On Jan 5, 4:50 pm, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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
Re: [android-developers] Re: Giving away my book: Genius Android Marketing
I am also interested in your book. Please add me to the list On Mon, Jan 9, 2012 at 6:53 PM, Jenus Dong jenus.ne...@gmail.com wrote: It is insteresting, i am waiting... 在 2012-1-9 下午9:28,Michael nicholls...@gmail.com写道: This looks very interesting. I'm in. On Jan 5, 4:50 pm, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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 -- 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] new developer tools (rev 16) breaks the ant build for LVL, needs build.xml on the library project
We used to have the LVL library as part of the app as a library project, the app was built with ant and it worked up until the upgrade to the latest version of the developer tools, now it refuses to compile with an Invalid file issued after the Building libraries echo message from the build.xml. I saw a posting from Xavier saying build.xml is now needed for library projects as well, anyone have a sample build.xml for LVL ? Thanks! -- 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
Re: [android-developers] Re: Giving away my book: Genius Android Marketing
come me in. Thanks. On Tue, Jan 10, 2012 at 7:58 AM, watjb85 watj...@gmail.com wrote: I am also interested in your book. Please add me to the list On Mon, Jan 9, 2012 at 6:53 PM, Jenus Dong jenus.ne...@gmail.com wrote: It is insteresting, i am waiting... 在 2012-1-9 下午9:28,Michael nicholls...@gmail.com写道: This looks very interesting. I'm in. On Jan 5, 4:50 pm, scp89 jayvanbui...@gmail.com wrote: I've recently finished writing the first full-length, android-specific book on Android Marketing. It covers tips, tricks, strategies, competitive analysis, and so much more. Everything I've learned in 2 years selling android apps, I've put into this book. It is available via e-book OR softcover: E-book: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-ebook/dp/B... Softcover: http://www.amazon.com/Genius-Android-Marketing-Outsmarting-Market/dp/... GIVEAWAY: I am giving away 3 PDF copies of the book to readers! Simply reply to this thread, and 1 week from today I will randomly select 3 members and PM you a link to your free download of the 130 page book. -- 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 -- 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 -- 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 -- 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