[android-developers] Android Syncadapter onPerformSync fails after cancel of previous sync
I am using the syncadapter to sync my applications data with my server. There are two ways in which I use the syncadapter - one is for continuos periodic background refresh and second for GETing or POSTing data every now and then upon user action. I use the following options for the one-time sync operation done upon user action - Bundle extras = new Bundle(); extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); extras.putBoolean(ContentResolver.SYNC_EXTRAS_FORCE, true); extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, true); extras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY , true); This I believe interrupts the current background sync and I get the following message, 07-10 23:51:43.152: DEBUG/SyncManager(59): handleSyncHandlerMessage: sync context doesn't match, dropping: mActiveSyncContext startTime 750699, mTimeoutStartTime 750699, mHistoryRowId 28, syncOperation authority: com.mewannaplay.providers.TennisCourtProvider account: Account {name=amit, type=com.mewannaplay} extras: [operation=8 ignore_settings=true ignore_backoff=true do_not_retry=true force=true expedited=true court_id=108 ] syncSource: 3 when: 750587 expedited: true != startTime 747204, mTimeoutStartTime 747204, mHistoryRowId 27, syncOperation authority: com.mewannaplay.providers.TennisCourtProvider account: Account {name=amit, type=com.mewannaplay} extras: [ACK_NEEDED=false operation=7 ] syncSource: 4 when: 746093 expedited: false 07-10 23:51:43.202: DEBUG/SyncManager(59): not retrying sync operation because SYNC_EXTRAS_DO_NOT_RETRY was specified authority: com.mewannaplay.providers.TennisCourtProvider account: Account {name=amit, type=com.mewannaplay} extras: [operation=8 ignore_settings=true do_not_retry=true expedited=true force=true court_id=108 ] syncSource: 3 when: 751449 expedited: true And then the current sync operation never finishes. I am not sure how to handle the onCancelSync() in the syncadapter. What am I suppose to do there? This on android:minSdkVersion=8 to there is no onSyncCanceled(Thread t) but just the no-arg method. I also tried using false for the ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY still same issue. Thanks in advance for your help. -- 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] Is it bad practice or rude to to do ContentResolver.setMasterSyncAutomatically in an android app?
I am using the syncadaptor extensively in my application for its core functionality. I also use the periodic refresh provided by the syncadaptor. Hence it the Accounts and sync is disabled on a phone my application will be pretty much useless. Is it considered a bad practice or rude to do a ContentResolver.setMasterSyncAutomatically(true) to turn the sync on. By just doing a ContentResolver.setIsSyncable doesnt help since if the main account and sync is disabled then periodic syncs dont work. What is the common way of handling this scenario? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@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: adjustPan and adjustResize
any body can help me with that ?? On Monday, 2 July 2012 15:22:07 UTC+3, ala hammad wrote: hello all, i want to use adjustPan and adjustResize together but when use it one is working and display the other .. mean i can't extend edittext when writing more than line .. any body have idea ... -- 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] Audio Stream buffers within 8 secs on Emulator but takes almost 50 secs to buffer on a Phone
I have tried the code on the emulator using Platform 2.2 API level 8 as well as an Emulator using Platform 4.0.3 using API level 15 .. it works perfectly and starts the stream in about 5 secs. But when i run the code on my HTC one x (Android Version 4.0.3)or tried running it on the HTC Desire S(Android Version 2.3.5) it takes over 50 secs to stream Here is my code public static MediaPlayer mp; public String url = http://vprbbc.streamguys.net:80/vprbbc24.mp3;; public void onCreate(Bundle savedInstanceState) { mp = new MediaPlayer(); try { mp.setDataSource(url); mp.setOnErrorListener(this); mp.setOnPreparedListener(this); mp.prepareAsync(); } catch(IOException e){ e.printStackTrace(); } } // close of onCreate public void onPrepared(MediaPlayer player) { mp.start(); } it is not a problem with the internet connection. I have both the emulator and the phone running on the same internet connection. I am just using the BBC internet radio steam for testing Please help - i need this working soon. -- 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] Slow Android Developer Account Approval
Hi All, I have created an android developer account last week, I have complete the payment by Google Wallet, However a message is shown as below: Your Registration to Google Play is still being processed. You can upload applications to Google Play but you cannot publish until your registration is completed. My accounts has been pending for few days, is there anyway I could escalate my account creation? Ref: #1072357592 Thanks a lot. Alfred -- 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] Audio Stream buffers within 8 secs on Emulator but takes almost 50 secs to buffer on a Phone
I have tried the code on the emulator using Platform 2.2 API level 8 as well as an Emulator using Platform 4.0.3 using API level 15 .. it works perfectly and starts the stream in about 5 secs. But when i run the code on my HTC one x (Android Version 4.0.3)or tried running it on the HTC Desire S(Android Version 2.3.5) it takes over 50 secs to stream Here is my code public static MediaPlayer mp; public String url = http://vprbbc.streamguys.net:80/vprbbc24.mp3;; public void onCreate(Bundle savedInstanceState) { mp = new MediaPlayer(); try { mp.setDataSource(url); mp.setOnErrorListener(this); mp.setOnPreparedListener(this); mp.prepareAsync(); } catch(IOException e){ e.printStackTrace(); } } // close of onCreate public void onPrepared(MediaPlayer player) { mp.start(); There is no issue with the internet connection. Both the phone and the emulator are connected to the same internet connection. I have also tried running the code on a samsung tab and the streams starts up in roughly 6 secs. -- 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] Android setup for windows xp 64 bit
Hi, I have tried to install android sdk in windows xp 64 bit. But when i try to install eclipse and adt plugin is not updating. When i search the net, i have seen lot of issues for installing windows xp 64bit, can any one guide me to install the same and get it work Thanks Arun Prasad S -- 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: Starting New Activities
the best will be that you post your code so we can examine it and see where the problem is from. On Thursday, July 12, 2012 10:02:26 PM UTC+1, AChow wrote: I am a first time developer. I am trying to make an app but so far, I cannot start another activity that I need. The way my apps should work is that when a button is clicked it starts a new activity. However, my app is not doing that even though the code is based off of a tutorial's code. Can someone 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
[android-developers] asking for device to buy android device...
Hi all, am about to buy a new anroid device to have my applications tested. so please which mobile device do you recommend for such case ?? provided that the maximum pay i can afford is in the range of Samsung galaxy S II price. [what about Samsung galaxy II by the way :) ??] also I've searched for Samsung galaxy mini /fit ...could those versions help me in my case?? thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@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] LaunchMode ConfigChange HELP!
Hi, am new here and on android app .I was trying to make a litlle game but i cant figure how to properly make my game to not restart each time the keyboard get in/out or when the screen rotate. For the screen i locked is orientation to landscape. i tried to add lauchmode or configchange in the manifest but both not seems to work. Sorry for my bad english. can anybody help me ?! 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: Any Design Pattern for Android?
Personally, this is my favorite (with regards to UI): http://www.androidpatterns.com/ On Sunday, July 15, 2012 8:30:50 PM UTC-4, Michael Leung wrote: Hi all, Any Design Pattern for Android? I have some in-house pattern I built for this purpose. But I am not 100% happy about them/. Do you have any recommendations? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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] Your Registration to Google Play is still being processed.
I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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] Some issues related to Google Cloud Messaging Service
On Mon, Jul 16, 2012 at 12:13 AM, Muhammad Rashid muhammad.rash...@gmail.com wrote: I would like to say that I am working on a project using Google Cloud Messaging Service. I am facing two issues; Try the group dedicated to this feature: https://groups.google.com/forum/#!forum/android-gcm - 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] Is it bad practice or rude to to do ContentResolver.setMasterSyncAutomatically in an android app?
On Mon, Jul 16, 2012 at 1:16 AM, -v- vishal.changr...@gmail.com wrote: Is it considered a bad practice or rude to do a ContentResolver.setMasterSyncAutomatically(true) to turn the sync on. I would guess yes. If the user has opted to turn that off you should not be turning it back on. That smells like 1-star ratings and uninstalls waiting to happen. What is the common way of handling this scenario? Deal with the sync being off for prolonged periods of time and handle the situation gracefully. Without any knowledge of your app or what it does or why it requires frequent syncing, it's hard to say more. - 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] Your Registration to Google Play is still being processed.
On Mon, Jul 16, 2012 at 1:20 AM, elirev4 elir...@gmail.com wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] Slow Android Developer Account Approval
On Sun, Jul 15, 2012 at 10:15 PM, Alfred Sung hingh...@gmail.com wrote: My accounts has been pending for few days, is there anyway I could escalate my account creation? http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] asking for device to buy android device...
On Sun, Jul 15, 2012 at 10:02 PM, scu some.one5...@gmail.com wrote: so please which mobile device do you recommend for such case ?? provided that the maximum pay i can afford is in the range of Samsung galaxy S II price. Search this group, this question is asked like every week. It really doesn't matter. Get the fanciest phone you can afford. - 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] query on protect api in VpnService
Hi, Can somebody provide insight on how android implements protect(int socket) in vpnservice class? Thanks, Amit -- 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] Your Registration to Google Play is still being processed.
I was already looking for the answer there, but there is nothing... On Monday, July 16, 2012 9:32:59 AM UTC+3, TreKing wrote: On Mon, Jul 16, 2012 at 1:20 AM, elirev4 elir...@gmail.com wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] Any Design Pattern for Android?
No, there is no unique design pattern for Android. Other than being mostly a load of crap to account for under expressiveness within Java itself, you should also be thinking at a higher level than individual code patterns for your system. The major things that will affect your system are the fact that Android -- as a platform -- is different than desktops. You should architect your app based on platform components, implement more lazy computation, conform to the ever changing UI annoyances (and make them work across different device configurations!), and whatever else it takes to make you app fit within the Android ecosystem. There are no specific design patterns that will pop up in every codebase, but you might see (given an experienced eye for patterns in Java) that one you already know solves a problem you see. However, the differences of the Android platform vastly outweigh the different code patterns you will use. kris On Sun, Jul 15, 2012 at 11:44 PM, Michael Leung michaelchi...@gmail.com wrote: I mean any framework for design pattern, such as MVC and MVVP? On Mon, Jul 16, 2012 at 10:42 AM, Mark Murphy mmur...@commonsware.com wrote: http://developer.android.com/design/index.html On Sun, Jul 15, 2012 at 8:30 PM, Michael Leung michaelchi...@gmail.com wrote: Hi all, Any Design Pattern for Android? I have sI ome in-house pattern I built for this purpose. But I am not 100% happy about them/. Do you have any recommendations? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 flip the page similar to what Flipboard app does
hi All, I'm working on creating a basic app and planning to use the page flip feature available on Flipboard app @ https://play.google.com/store/apps/details?id=flipboard.appfeature=related_apps Would appreciate, if someone could point me to some sample code that does similar job. Thanks in advance! Regards, KK -- 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: session mangement
ya i try level my best. unkonown error come see attachedment and reply me with solution -- 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=enattachment: Capture.PNG
Re: [android-developers] Slow Android Developer Account Approval
I have send an email to the google play team, however i only got the computer-generate reply. My account still pending the registration compete .. sosad :( :( TreKing於 2012年7月16日星期一UTC+8下午2時33分58秒寫道: On Sun, Jul 15, 2012 at 10:15 PM, Alfred Sung hingh...@gmail.com wrote: My accounts has been pending for few days, is there anyway I could escalate my account creation? http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601 - 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] Problem with capturing images.
HI all, I am facing a issue regarding the camera i.e., i captured the image from camera now i ll take the image path and converted to bitmap format and then pushed to some array list. now i want to delete the image from the gallery. i used these concept Bitmap bmp = null; String[] projection = { MediaStore.Images.ImageColumns.SIZE, MediaStore.Images.ImageColumns.DISPLAY_NAME, MediaStore.Images.ImageColumns.DATA, BaseColumns._ID, }; Cursor c = null; Uri u = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; try { if (u != null) { c = managedQuery(u, projection, null, null, null); } if ((c != null) (c.moveToLast())) { bmp = getBitMap(c.getString(2), 3); ContentResolver cr = getContentResolver(); cr.delete( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, BaseColumns._ID + = + c.getString(3), null); } } catch (Exception e) { e.printStackTrace(); //bmp = null; } finally { if (c != null) { c.close(); } } but the problem is sometimes i am getting another images path which is in gallery folder. how to solve these problem. Thanks and Regards, S.Seshu -- 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 block Sharing data via share intent
Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 block Sharing data via share intent
For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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: session mangement
Err what are you trying to do and why are you asking here? This has nothing to do with Android On Jul 16, 2012 3:35 AM, laxman k laxman.k1...@gmail.com wrote: ya i try level my best. unkonown error come see attachedment and reply me with solution -- 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 flip the page similar to what Flipboard app does
I played around with the idea - and this mockup works more/less properly. Nothing too fancy but guess it would be possible to extend it for more generalized usage. https://github.com/harism/android_viewbinder -- H On Jul 16, 2012 2:54 PM, KK dioxide.softw...@gmail.com wrote: hi All, I'm working on creating a basic app and planning to use the page flip feature available on Flipboard app @ https://play.google.com/store/apps/details?id=flipboard.appfeature=related_apps Would appreciate, if someone could point me to some sample code that does similar job. Thanks in advance! Regards, KK -- 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] session mangement
how to mange session..plz tell m. -- 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: TextView textSize unknown during Constrcutor (Jellybean)?
Just wanted to add some information that might be relevant: My project is compiled against Google API 7, minSDK is 7 and target SDK is 8. On Sunday, July 15, 2012 5:54:35 PM UTC+3, Piren wrote: Hi I've noticed Jellybean is having a different behavior when it comes to creating TextViews. I have a class that extends Widget.TextView, up until API 16 the textSize was already known after you initialize your class using TextView's constructors (at least on APIs 7-15) Why is this no longer true on API 16? is that a bug or on purpose? -- 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: Make SlidingDrawer's content always visible?
Hi golf oo, your answer is empty. On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote: I'm using android:bottomOffset to make the drawer stick out 100dip from the bottom. That works fine, but my content is not visible. It's only visible when I touch the drawer. How can I make that its always visible (the 100dip show the content)? I first thought it's a visibility issue, because the visibility of the content is set to GONE in onFinishInflate(), prepareContent(), closeDrawer()... copied the SlidingDrawer and removed these lines, didn't solve it. It seems that it is a position issue, currently I'm playing with the numbers but still don't find how to make the view appear where it should be... and don't have more time for this... any help is greatly 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] How to block Sharing data via share intent
Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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: Your Registration to Google Play is still being processed.
Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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] NFC game
Actually, https://play.google.com/store/apps/details?id=jp.co.hayatoinformation.nfchunterhl=en this is the link which i need to develop application same as that, In that after clicking nfc tag i need to display monster for tapping but, in my application if i click on that tag it shows following error event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299, downTime=1303299, deviceId=0, source=0x1002 } and NFChunterexception:HTTP :404 so plz let me knw how can i solve this problem, On Sat, Jul 14, 2012 at 12:49 AM, TreKing treking...@gmail.com wrote: On Fri, Jul 13, 2012 at 2:01 AM, iconapp 2010 iconapp2...@gmail.comwrote: I am doing Android project for NFC hunter game, in that i want some idea with sample code about how to search UID from google app engine database. That is not much clearer. Again: http://www.catb.org/~esr/faqs/smart-questions.html - 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
Re: [android-developers] Re: Your Registration to Google Play is still being processed.
Please contact Google with this problem. This list is for development questions/problems using the Android SDK. You can't get any help for your problem here. On Mon, Jul 16, 2012 at 11:21 AM, elirev4 elir...@gmail.com wrote: Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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
Re: [android-developers] How to block Sharing data via share intent
The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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] Re: Your Registration to Google Play is still being processed.
How can I contact Google? On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote: Please contact Google with this problem. This list is for development questions/problems using the Android SDK. You can't get any help for your problem here. On Mon, Jul 16, 2012 at 11:21 AM, elirev4 elir...@gmail.com wrote: Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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
Re: [android-developers] Re: Your Registration to Google Play is still being processed.
http://bit.ly/NqUTn9 On Mon, Jul 16, 2012 at 12:10 PM, elirev4 elir...@gmail.com wrote: How can I contact Google? On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote: Please contact Google with this problem. This list is for development questions/problems using the Android SDK. You can't get any help for your problem here. On Mon, Jul 16, 2012 at 11:21 AM, elirev4 elir...@gmail.com wrote: Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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/ -- 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
Re: [android-developers] Jelly Bean Crash with Bitmap Recycle Sorry, an error has occurred: bitmap is recycled
I have had the same problem with some devices, but I did not study the case in deep, just applied this workaround directly: if ( ! oldBitmap.isRecycled()) oldBitmap.recycle(); It may be faster than comparing one bitmap to another, but to be honest I did not try the other method. Regards, On 13/07/12 15:42, Craigo wrote: Hi Google, My app that has been running for over 2 years without an update, finally broke with Jelly Bean. The error: Sorry, an error has occurred: bitmap is recycled. The problem was with calling recycle on a bitmap: Bitmap bitmapOld = bitmap; bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); bitmapOld.recycle(); Note: I never referenced bitmapOld again. The fix was easy, I just don't recycle any more. However, it seems odd that this would have broken. Maybe creating the scaled bitmap shares memory with the unscaled bitmap? Anyway, hopefully this information is useful to someone. Cheers, and keep up the excellent work! -- 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 block Sharing data via share intent
Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.comwrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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] Your Registration to Google Play is still being processed.
Hi, 24 hours ago were weekend... give it some more time. And if you think 24 hours is too much, do not even try Amazon market, you can be waiting for WEEKS for a single app approval. Regards, On 16/07/12 08:20, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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: Your Registration to Google Play is still being processed.
You think I didn't know how to get to this page? There is anything in this page except one thing: HOW TO CONTACT GOOGLE! This page is only for searching in the help center! But I don't want to search in the help center, I want to contact them via email! On Monday, July 16, 2012 1:15:38 PM UTC+3, mbanzon wrote: http://bit.ly/NqUTn9 On Mon, Jul 16, 2012 at 12:10 PM, elirev4 elir...@gmail.com wrote: How can I contact Google? On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote: Please contact Google with this problem. This list is for development questions/problems using the Android SDK. You can't get any help for your problem here. On Mon, Jul 16, 2012 at 11:21 AM, elirev4 elir...@gmail.com wrote: Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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/ -- 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
Re: [android-developers] Wifi-Only tablet missing NETWORK_PROVIDER!?
On Sun, Jul 15, 2012 at 9:40 PM, RE ere...@polywog.org wrote: I assumed that since it had the Google Play application that it had already been approved for location manager Some device manufacturers (among others) pirate the Play Store app. I decided to go the skyhook way when I continued to develop the application. So back in May, I got the SDK and dev key from them. Is there a way that I can integrate the SDK into the actual os (ICS) on the unit? Or should I just package skyhook with the app so I can be sure that all hardware is supported? Those would be fine questions for Skyhook, I imagine. I have never used their service; I just know of it by name. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android inapp purchase failed for first time
Hi, I used the Google's inapp purchase sample. I handled the purchase success in the handler as per sample code. But for the first time when user adding his credit card and immediately purchasing, sometimes I am not getting success message due to card activation time or some other. Please anyone provide a solution to handle the purchase response, if it's delayed by some reasons. In the sample code, where I have to handle that? For your info, after getting inside the mTransactionHandler , I switched to another activity of the application to show the status of the purchase and start the file download. public Handler mTransactionHandler = new Handler(){ public void handleMessage(android.os.Message msg) { /*Log.i(*, 2Transaction complete); Log.i(**, 2Transaction status: +BillingHelper.latestPurchase.purchaseState); Log.i(*, 2Item purchased is: +BillingHelper.latestPurchase.productId); Log.i(*, Order id: +BillingHelper.latestPurchase.orderId); Log.i(*, Purchase time: +BillingHelper.latestPurchase.purchaseTime); Log.i(*, Notification id: +BillingHelper.latestPurchase.notificationId);*/ if(BillingHelper.latestPurchase.isPurchased()){ //Start the Download String reference = BillingHelper.latestPurchase.productId; setPurchaseSuccessful(reference); } }; }; Thanks. On Sat, Jul 14, 2012 at 3:25 PM, tk guna@gmail.com wrote: Hi, I integrated inapp billing in my app. My customers often getting problem for the very first time they are adding their credit card and purchasing. 2nd time purchase is good. Any one experienced this issue? 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] Alternative ad provider to Admob
http://lmgtfy.com/?q=admob+alternatives On 14/07/12 04:20, Zaid wrote: I am looking for an alternative ad provider for android, i am currently using admob banner ads for my android applications. i know this question has been asked before, but there are many new ad networks popping up and i would like some up to date answers. i am looking for banner ads,preferably something as easy to integrate as AdMob. any suggestions for ad providers? 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
[android-developers] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean
Okay, I'll say right up front, there's no good reason why you should be doing this. If your PNG has an alpha-channel, what are you doing loading it using a config that doesn't support it? Nonetheless, I was doing this in one of my apps; the PNGs had transparency for historical reasons, but I'd been loading them using RGB_565 to save memory (the loss in quality wasn't important in this case). And prior to Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared to work, but the resultant bitmap was unusable; saving it to SD for debugging yielded a 0-length file. The solution is simple: either remove the alpha-channel from your PNG, or load it with a different Config, one that supports transparency. If you can spare the RAM, ARGB_ is generally the best choice (see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). Or if memory's tight, ARGB_ will still work, and uses the same 16bytes/pixel as RGB_565. String -- 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] Android inapp purchase failed for first time
Looks quite similar to this one: http://code.google.com/p/marketbilling/issues/detail?id=30 16.07.2012 14:29 пользователь guna a guna@gmail.com написал: Hi, I used the Google's inapp purchase sample. I handled the purchase success in the handler as per sample code. But for the first time when user adding his credit card and immediately purchasing, sometimes I am not getting success message due to card activation time or some other. Please anyone provide a solution to handle the purchase response, if it's delayed by some reasons. In the sample code, where I have to handle that? For your info, after getting inside the mTransactionHandler , I switched to another activity of the application to show the status of the purchase and start the file download. public Handler mTransactionHandler = new Handler(){ public void handleMessage(android.os.Message msg) { /*Log.i(*, 2Transaction complete); Log.i(**, 2Transaction status: +BillingHelper.latestPurchase.purchaseState); Log.i(*, 2Item purchased is: +BillingHelper.latestPurchase.productId); Log.i(*, Order id: +BillingHelper.latestPurchase.orderId); Log.i(*, Purchase time: +BillingHelper.latestPurchase.purchaseTime); Log.i(*, Notification id: +BillingHelper.latestPurchase.notificationId);*/ if(BillingHelper.latestPurchase.isPurchased()){ //Start the Download String reference = BillingHelper.latestPurchase.productId; setPurchaseSuccessful(reference); } }; }; Thanks. On Sat, Jul 14, 2012 at 3:25 PM, tk guna@gmail.com wrote: Hi, I integrated inapp billing in my app. My customers often getting problem for the very first time they are adding their credit card and purchasing. 2nd time purchase is good. Any one experienced this issue? 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
Re: [android-developers] How to block Sharing data via share intent
Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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: Your Registration to Google Play is still being processed.
To be completely honest, you are very unlikely to get a reply... There are so many app developers, and so few people who work on that portion of the market... Also, those people don't hang out anywhere near this list, the only Google related people here don't really do that sort of thing. kris On Mon, Jul 16, 2012 at 6:21 AM, elirev4 elir...@gmail.com wrote: You think I didn't know how to get to this page? There is anything in this page except one thing: HOW TO CONTACT GOOGLE! This page is only for searching in the help center! But I don't want to search in the help center, I want to contact them via email! On Monday, July 16, 2012 1:15:38 PM UTC+3, mbanzon wrote: http://bit.ly/NqUTn9 On Mon, Jul 16, 2012 at 12:10 PM, elirev4 elir...@gmail.com wrote: How can I contact Google? On Monday, July 16, 2012 12:25:50 PM UTC+3, mbanzon wrote: Please contact Google with this problem. This list is for development questions/problems using the Android SDK. You can't get any help for your problem here. On Mon, Jul 16, 2012 at 11:21 AM, elirev4 elir...@gmail.com wrote: Help... someone? On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote: I registered to the Google Play Developers 24 hours ago and this message Your Registration to Google Play is still being processed. is still there... How much time will I have to wait for Google to approve my account? -- 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/ -- 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 -- 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] License of Task API for Android
Hi, Does any one know whether Task API( https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android ) use other parties libraries? Do I know put their licenses in my application? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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 block Sharing data via share intent
Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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 block Sharing data via share intent
I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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
Re: [android-developers] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean
ARGB_ is discouraged in google development docs as it produces very poor quality with some bitmaps. And I have checked that it is true. If you have a bitmap with a gradient or something similar, it will look really crappy with ARGB_. On 16/07/12 12:37, String wrote: Okay, I'll say right up front, there's no good reason why you should be doing this. If your PNG has an alpha-channel, what are you doing loading it using a config that doesn't support it? Nonetheless, I was doing this in one of my apps; the PNGs had transparency for historical reasons, but I'd been loading them using RGB_565 to save memory (the loss in quality wasn't important in this case). And prior to Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared to work, but the resultant bitmap was unusable; saving it to SD for debugging yielded a 0-length file. The solution is simple: either remove the alpha-channel from your PNG, or load it with a different Config, one that supports transparency. If you can spare the RAM, ARGB_ is generally the best choice (see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). Or if memory's tight, ARGB_ will still work, and uses the same 16bytes/pixel as RGB_565. String -- 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] Tip: don't load PNGs with transparency using RGB_565 in Jelly Bean
Yes, that's why I recommended ARGB_, and linked to Romain's excellent explanation of the different Configs. But sometimes you can't afford the memory for ARGB_ for large Bitmaps, which is why I was using RGB_565 in the first place. And ARGB_ looks fine for some images, so in such a case - and if you need the alpha channel - it can still be the best choice. Bottom line: pay attention to which Config you're using. String On Monday, July 16, 2012 1:31:27 PM UTC+2, Fran wrote: ARGB_ is discouraged in google development docs as it produces very poor quality with some bitmaps. And I have checked that it is true. If you have a bitmap with a gradient or something similar, it will look really crappy with ARGB_. On 16/07/12 12:37, String wrote: Okay, I'll say right up front, there's no good reason why you should be doing this. If your PNG has an alpha-channel, what are you doing loading it using a config that doesn't support it? Nonetheless, I was doing this in one of my apps; the PNGs had transparency for historical reasons, but I'd been loading them using RGB_565 to save memory (the loss in quality wasn't important in this case). And prior to Jelly Bean, this worked fine, but in 4.1 it failed silently. It appeared to work, but the resultant bitmap was unusable; saving it to SD for debugging yielded a 0-length file. The solution is simple: either remove the alpha-channel from your PNG, or load it with a different Config, one that supports transparency. If you can spare the RAM, ARGB_ is generally the best choice (see https://plus.google.com/u/0/111962077049890418486/posts/Ytar76F56y5). Or if memory's tight, ARGB_ will still work, and uses the same 16bytes/pixel as RGB_565. String -- 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] Does anyone use Task API before?
Hi all, Does anyone use Task API( https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android) before? Any legal requirements to their API java library? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- 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] Handling Bitmap Out of Memory Error
Hi, We have an app which renders bitmaps on imageview. On Samsung Galaxy, it works fine. But On Motorola Droid, it runs into memory issues and crashes every now and then with the following logcat. /dalvikvm-heap( 3640): 3686400-byte external allocation too large for this process. E/GraphicsJNI( 3640): VM won't let us allocate 3686400 bytes W/dalvikvm( 3640): threadid=11: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime( 3640): FATAL EXCEPTION: Thread-25 E/AndroidRuntime( 3640): java.lang.OutOfMemoryError: bitmap size exceeds VM budget E/AndroidRuntime( 3640):at android.graphics.Bitmap.nativeCreate(Native Method) E/AndroidRuntime( 3640):at android.graphics.Bitmap.createBitmap(Bitmap.java:468) E/AndroidRuntime( 3640):at com.example.OnVRViewer.RTPClient.ProcessFrame(RTPClient.java:419) E/AndroidRuntime( 3640):at com.example.OnVRViewer.RTPClient.ProcessRtpVideoPacket(RTPClient.java: 204) E/AndroidRuntime( 3640):at com.example.OnVRViewer.RTSPUDPclient.AdvanceProcess(RTSPUDPclient.java: 659) E/AndroidRuntime( 3640):at com.example.OnVRViewer.RTSPUDPclient.processSelectionKey(RTSPUDPclient.java: 726) E/AndroidRuntime( 3640):at com.example.OnVRViewer.RTSPUDPclient.run(RTSPUDPclient.java:2068) E/AndroidRuntime( 3640):at java.lang.Thread.run(Thread.java:1096) W/ActivityManager( 1081): Force finishing activity com.example.OnVRViewer/.AsyncRecordTrial My question is even though we have a try catch on Bitmap.createBitmap it is still crashing. Why is the catch block not working? And how do we handle the exception without crashing on Motorola Droid. Following is my code right now: try { bm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_); } catch (Exception ex) { android.util.Log.e(Bitmap, Error); } Thank you, B.Arunkumar -- 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] Screen goes black and rotates only with HDMI connected
I have an app that has been locked down to Reverse Portrait by having every activity specified as reverse portrait in the manifest. That is because I intended to demonstrate this app at a trade show using a connected HDMI TV screen that was mounted vertically. Everything works fine that way but for one anomaly. There are times when I launch another activity and that activity launches a third activity. From that third activity I return using finish() after setting a return code. In the second activity I check the return code in the callback and call finish() on the second activity. That takes me all the way back to the first activity. That also works fine. But here is the strange part. When a HDMI TV is connected and I try to exit from the third activity, the screen temporarily (for about one second) rotates to landscape and goes black. Then it rotates back to reverse portrait and shows the first activity as expected. But if HDMI is not connected then the transition back to the first activity is immediate without any extra screen rotations. And here is another clue. I have been able to deduce that when the extra screen rotation takes place the first activity also goes through its complete lifecycle - destroy and re-create. But when the screen does not rotate like that the first activity remains in memory - merely stopped and started again. Now I realize that any activity can be destroyed and re-created by the OS any time it is not actively visible. But I suspect that the re-creating the stopped activity has something to do with the temporary screen rotation. It is not a big deal, but it is a nuisance at the trade show when I have to explain to the audience why they see these extra screen rotations when I am demonstrating my app on the TV screen. The device is a Acer Iconia Table, Android 3.2. -- 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 block Sharing data via share intent
Tats right ,If i write tat button click i can control it . But suppose, I have a webview in my app. It opens some url. In the webview,if for some content long press,if system generates tat context menu with share via option how to control that. On 16 July 2012 16:57, Kristopher Micinski krismicin...@gmail.com wrote: I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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
Re: [android-developers] How to block Sharing data via share intent
well if it's not in your app, if it's just a general webview, then there's no way for you to control it, because it's outside of your app. kris On Mon, Jul 16, 2012 at 8:36 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tats right ,If i write tat button click i can control it . But suppose, I have a webview in my app. It opens some url. In the webview,if for some content long press,if system generates tat context menu with share via option how to control that. On 16 July 2012 16:57, Kristopher Micinski krismicin...@gmail.com wrote: I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers
[android-developers] File location of database file by using SQLiteDatabase
Hi All, In SQLiteDatabase, Table and its rows and columns are saved in a file. i want to know the location that database file in which inserted new record and updated new record saved. Pls suggest me the location of that file as i want to see my data in that file. 1) If i am using my app in Emulator. 2) If i am using my app in Android mobile where i have only .apk file of my app. 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] How to block Sharing data via share intent
The way I understand the OP's description, the problem is that whatever is in Manifest is static. Whereas he wants to decide dynamically (based on input from a server) whether his app handles the intent or not. If sharing is on he wants his app to appear in the chooser, if it's not it should be left out from the chooser. At least that's how I understand it... On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski krismicin...@gmail.com wrote: I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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 -- 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
Re: [android-developers] How to block Sharing data via share intent
You have it the other way around, I think. I think he wants to disable a sharing button. Not disable the app from catching a shared thing. If it's the second, then yes, it's perhaps interesting, but it sounds, after the back and forth we've had, that it's much more likely a confused and misguided attempt at the first instead... kris On Mon, Jul 16, 2012 at 9:01 AM, Latimerius l4t1m3r...@googlemail.com wrote: The way I understand the OP's description, the problem is that whatever is in Manifest is static. Whereas he wants to decide dynamically (based on input from a server) whether his app handles the intent or not. If sharing is on he wants his app to appear in the chooser, if it's not it should be left out from the chooser. At least that's how I understand it... On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski krismicin...@gmail.com wrote: I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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
Re: [android-developers] Handling Bitmap Out of Memory Error
On Mon, Jul 16, 2012 at 2:23 PM, B.Arunkumar awsnetworkrecor...@gmail.com wrote: My question is even though we have a try catch on Bitmap.createBitmap it is still crashing. Why is the catch block not working? I believe that would be because you're catching Exception but OutOfMemoryError, which IIRC is not an Exception subclass, is being thrown. And how do we handle the exception without crashing on Motorola Droid. I usually catch OutOfMemoryError directly in a situation like that. You could also catch Throwable but that would seem way too overbroad to 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 block Sharing data via share intent
On Mon, Jul 16, 2012 at 3:08 PM, Kristopher Micinski krismicin...@gmail.com wrote: You have it the other way around, I think. Possibly... OP, care to give an explanation that we can understand? :-) -- 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] Handler.sendEmptyMessageDelayed() unreliable on some versions of OS?
Thanks Dianne - I realized it had to be a cpu sleep issue about five minutes after I posted the question. Mark Peters On Saturday, July 14, 2012 3:54:18 PM UTC-7, Dianne Hackborn wrote: Note that these times are *uptime*. If the screen is off, and nobody is holding a wakelock, then the CPU will go to sleep, and uptime will stop counting until it wakes up again. On Fri, Jul 13, 2012 at 9:24 AM, mapeters wrote: I have a thread (guts implemented as a subclass of Runnable) whose job is to perform an operation on demand from other threads or automatically every two minutes if no other thread invokes the operation. The run() method of this Runnable calls Looper.prepare(), creates a Handler object in a member variable, uses that to call sendEmptyMessageDelayed(1, 3000), then calls Looper.loop(). Other threads use a method in this thread's public API to invoke its operation. That method just calls the handler's sendEmptyMessage(0) method to invoke it. When the handler's handleMessage(Message) method is called, it acquires a lock (ReentrantLock), calls the handler's removeCallbacksAndMessages(null) method and performs its operation (within a try/catch block). The finally section of that block calls the handler's sendEmptyMessageDelayed(1, 12) method then releases the lock. This works fine on every device I have tested it on, and by everything I know, it is a valid way to do this that ought to work on every version of Android OS. Recently, however, somebody claimed it wasn't running every two minutes as it should, and gave me the log file it produces to prove it (which it does). That log shows that sendEmptyMessageDelayed(1, 12) was called, and then 11 minutes later, the handleMessage(Message) method was called. I know this invocation of handleMessage() was in response to that sendEmptyMessageDelayed(1, 12) call because Message.what was 1 (a value used only by the sendEmptyMessageDelayed() call). How is this possible? I could understand the timing being off by a few seconds, but 11 minutes? In subsequent attempts to reproduce this, I have seen that timing being off by 45 minutes and more. This problem has been observed on an HTC One X running Android 4.0.3 and a Samsung Galaxy SII running OS 2.3.6. Has anybody else seen this issue? Does anybody have a suggestion for what might be causing this? My current position is that this is an OS bug, but I am loathe to just accept that and call it a day. BTW - just for kicks, I temporarily re-implemented this using a Timer object instead, and observed exactly the same problem (using Handler is a better solution anyway). Thanks, Mark Peters -- 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] Jelly Bean Crash with Bitmap Recycle Sorry, an error has occurred: bitmap is recycled
The code below would fix an issue where a bitmap would have been recycled twice. This would not fix the issue where a bitmap would have been recycled where it should have never been recycled at all. BTW: the boolean expression (bitmap1 != bitmap2) or (bitmap1 == bitmap2) is very fast. It is just comparing two 32-bit values. On Monday, July 16, 2012 6:16:17 AM UTC-4, Fran wrote: I have had the same problem with some devices, but I did not study the case in deep, just applied this workaround directly: if ( ! oldBitmap.isRecycled()) oldBitmap.recycle(); It may be faster than comparing one bitmap to another, but to be honest I did not try the other method. Regards, On 13/07/12 15:42, Craigo wrote: Hi Google, My app that has been running for over 2 years without an update, finally broke with Jelly Bean. The error: Sorry, an error has occurred: bitmap is recycled. The problem was with calling recycle on a bitmap: Bitmap bitmapOld = bitmap; bitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, false); bitmapOld.recycle(); Note: I never referenced bitmapOld again. The fix was easy, I just don't recycle any more. However, it seems odd that this would have broken. Maybe creating the scaled bitmap shares memory with the unscaled bitmap? Anyway, hopefully this information is useful to someone. Cheers, and keep up the excellent work! -- 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] Widgets change in landscape mode
Hi, I´ve a little problem with my widgets. I change the e.g. background color over remoteviews. Now every time I rotate my phone to landscape mode, the design (background color) is changes to the default value specified in the config file. How can handle this? 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] How to block Sharing data via share intent
Sorry if i presented the content wrong way. Let me put this way.. If I open a webview in my app using webview android widget that means control is still in my application. Now if in the webview, some link is long pressed then android will pop up a context menu with some options to share. I want to block that so that any data within my app control wont be shared via mail,msg,facebook,etc.. On 16 July 2012 18:38, Kristopher Micinski krismicin...@gmail.com wrote: You have it the other way around, I think. I think he wants to disable a sharing button. Not disable the app from catching a shared thing. If it's the second, then yes, it's perhaps interesting, but it sounds, after the back and forth we've had, that it's much more likely a confused and misguided attempt at the first instead... kris On Mon, Jul 16, 2012 at 9:01 AM, Latimerius l4t1m3r...@googlemail.com wrote: The way I understand the OP's description, the problem is that whatever is in Manifest is static. Whereas he wants to decide dynamically (based on input from a server) whether his app handles the intent or not. If sharing is on he wants his app to appear in the chooser, if it's not it should be left out from the chooser. At least that's how I understand it... On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski krismicin...@gmail.com wrote: I'm not sure you understand... You have to explicitly implement the share intent anyway... http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/ So it's not going to randomly pop up in your app, that's impossible, unless you *put* it there! kris On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks Kris. I will tell the scenario I am working on. Actually my app is driven by server defined policy. The application fetches the policy from the server then act accordingly. There is one policy for data sharing. If data sharing is allowed then no problem.But if the data sharing is not allowed, application should be able to block the data sharing options like sharing Via item in the system generated context menu. On 16 July 2012 16:22, Kristopher Micinski krismicin...@gmail.com wrote: Is that a question? If so, the answer is yes, if you don't specify an intent filter for that routine, then the system won't offer to have your app pop up. If it is, that probably means that you're putting too much stuff in your manifest, so you should post it so people can inspect it. As I said before, if you're worried about people actually getting at the contents of the stuff in your app, then you shouldn't simply count on this, you should also use some form of encryption kris On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed itsmeatfo...@gmail.com wrote: Tat means in the pop up nothing will be shown after clicking share via item... On 16 July 2012 15:02, Kristopher Micinski krismicin...@gmail.com wrote: The system will only share from your app if you declare it in the manifest. In reality, however, you can't hide the data from the user without encryption... On Jul 16, 2012 5:12 AM, Bunty syed itsmeatfo...@gmail.com wrote: Thanks. I want to do it only for my app. But I did not understand what filter r u talking about will it affect the system generated menu... On 16 July 2012 13:49, Kristopher Micinski krismicin...@gmail.com wrote: For your application or anyone's app? For your app, don't implement the filter, for anyone's app, this will be a lot trickier On Jul 16, 2012 4:11 AM, Bunty syed itsmeatfo...@gmail.com wrote: Hi, In android, on long clicking some link or text, System generates a menu with some share via option. On clicking that, it pops up a screen with facebook gmail,etc.. My doubt is that is there any way to remove that option from that menu. or is there any callback call when some intent is launched from the application.. -- 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
Re: [android-developers] How to block Sharing data via share intent
On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed itsmeatfo...@gmail.com wrote: Sorry if i presented the content wrong way. Let me put this way.. If I open a webview in my app using webview android widget that means control is still in my application. Now if in the webview, some link is long pressed then android will pop up a context menu with some options to share. I want to block that so that any data within my app control wont be shared via mail,msg,facebook,etc.. Really? This is the behavior? I don't remember that... Why don't you just make it so those links aren't clickable in the HTML then? 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
Re: [android-developers] How to block Sharing data via share intent
On Mon, Jul 16, 2012 at 3:43 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed itsmeatfo...@gmail.com wrote: Sorry if i presented the content wrong way. Let me put this way.. If I open a webview in my app using webview android widget that means control is still in my application. Now if in the webview, some link is long pressed then android will pop up a context menu with some options to share. I want to block that so that any data within my app control wont be shared via mail,msg,facebook,etc.. Really? This is the behavior? I don't remember that... Why don't you just make it so those links aren't clickable in the HTML then? I have next to none experience with WebView but I think it might make sense to check what could be done in its OnLongClickListener... -- 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 block Sharing data via share intent
nah, links won't get rerouted through that. kris On Mon, Jul 16, 2012 at 9:53 AM, Latimerius l4t1m3r...@googlemail.com wrote: On Mon, Jul 16, 2012 at 3:43 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed itsmeatfo...@gmail.com wrote: Sorry if i presented the content wrong way. Let me put this way.. If I open a webview in my app using webview android widget that means control is still in my application. Now if in the webview, some link is long pressed then android will pop up a context menu with some options to share. I want to block that so that any data within my app control wont be shared via mail,msg,facebook,etc.. Really? This is the behavior? I don't remember that... Why don't you just make it so those links aren't clickable in the HTML then? I have next to none experience with WebView but I think it might make sense to check what could be done in its OnLongClickListener... -- 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: Jelly Bean and Strict Mode
Moving StrictMode configuration to activities is not an acceptable solutions. As you generally don't know which activity might start first, and adding same code (even only one function call) to each activity is not always possible. Even more, you'd need to enable custom StrictMode configuration in services, receivers and even content providers. From what I see this is a bug introduced in JB. According to documentation this should work as you first described. The bug itself is introduced in ActivityThread file, in handleBindApplication() function. Basically here is what happens: final StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskWrites(); try { // If the app is being launched for full backup or restore, bring it up in // a restricted environment with the base application class. Application app = data.info.makeApplication(data.restrictedBackupMode, null); mInitialApplication = app; //...lots of other code } finally { //restore StrictMode configuration that happened before application's onCreate() StrictMode.setThreadPolicy(savedPolicy); } Which effectively discards any changes made from Application's onCreate(). Here is the quick workaround for the issue and should be called from Application's onCreate(): private static void enableStrictMode() { doEnableStrictMode(); new android.os.Handler().post(new Runnable() { @Override public void run() { try { doEnableStrictMode(); } catch (Throwable ex) { Log.d(TAG, Failed to enable StrictMode., ex); } } }); } This seems to fix issue by first enabling your StrictMode configuration by the end of onCreate(), and then re-enabling it sometimes after onCreate() returns. There is no guarantee when exactly StrictMode configuration is restored. And theoretically this might happen after some activity or service has already been started. This could probably be mitigated via Handler's sendMessageAtFrontOfQueue(). On Sunday, July 15, 2012 7:41:04 PM UTC+3, b0b wrote: Ok found the cause of StrictMode.setThreadPolicy() not working. I was making this call in the onCreate() of a subclass of the Application class. This worked prior to Jelly Bean. Now in JB, it must be called after an Activity's onCreate() to take effect. Looks like the default StrictMode ThreadPolicy initialization done by the framework is not done the same way in JB than prior versions. -- 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] android NFC - detect the send has been done
Hi there ! I'm writing an application where I have to send a content from A device to B. After the content has been successfully transferred I have to delete it from the 'A' device. I had already done some Google search work, but I didn't find any solution. Can you help me please, how can I detect the transfer has completed event and send back a kind of OK message ? Thank you so much, Cheers, Karoly -- 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 library as a single jar file
Matthew, I know I can create Android library projects, but I want to create a .jar library and don´t share library source code and resources. On Thu, Jul 12, 2012 at 9:08 PM, Matthew Whitmer matthew.whit...@gmail.comwrote: You can create an Android library project which contains both resources and code. They have been improving this capability with each update it seems. To see what you can currently do with a library project check out the appropriate section on this page: http://developer.android.com/tools/projects/index.html On Thursday, July 12, 2012 4:31:43 PM UTC-7, Ericsen wrote: According to this posthttp://android-developers.blogspot.com.br/2011/10/changes-to-library-projects-in-android.htmlwe cannot distribute an Android library and its resources as a single jar file because of The nature of Android resources, with their compiled IDs Are there any plans to allow this? -- 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] Keeping it fresh, back to service...
So in the end what I am trying to do is illogical and cant be done some out of the blue way with out building a custom ROM It has to be an app... Which is a shame since I am so close to figuring it out. The service runs fine... Maybe just maybe having it call the camera button press if the volume is pushed down for longer then X amount of time. What can I say I'm stubborn. On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 5:03 PM, Cythes cytheshic...@gmail.com wrote: So if I take it back to the regular dispatchkeyevent, it should fix it or do I need to find something to call it to? IN which case would be my main activity. Simply have your activity handle the key event itself, and delete your service and your boot receiver. Having a service running all of the time is something users generally dislike, and the service is not helping you, since the activity is perfectly capable of handling your current business logic with respect to the key event. If you are somehow thinking that you will have something in the background that can respond to key events like this, that does not work. A couple of key events will get broadcast if the foreground activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). Otherwise, key events are for the use of the foreground activity and the OS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android library as a single jar file
So, you want to create a library, that allows the user to use code, that you don't include. So then... I ask... where is the code... It's not that there is no way for this to make sense, you could imagine putting in RPC stubs to a remote service (on the device a la AIDL or via internet...), but it *probably* doesn't make sense, as you've worded it... kris On Mon, Jul 16, 2012 at 10:39 AM, Ericsen Cioffi escio...@gmail.com wrote: Matthew, I know I can create Android library projects, but I want to create a .jar library and don´t share library source code and resources. On Thu, Jul 12, 2012 at 9:08 PM, Matthew Whitmer matthew.whit...@gmail.com wrote: You can create an Android library project which contains both resources and code. They have been improving this capability with each update it seems. To see what you can currently do with a library project check out the appropriate section on this page: http://developer.android.com/tools/projects/index.html On Thursday, July 12, 2012 4:31:43 PM UTC-7, Ericsen wrote: According to this post we cannot distribute an Android library and its resources as a single jar file because of The nature of Android resources, with their compiled IDs Are there any plans to allow this? -- 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] DialogFragment - show soft keyboard upon creation
I have a simple dialog built with the compatibility libraries DialogFragment. It holds only 1. EditText 2. 2 buttons When the dialog is shown, the edit text control has the focus. At this point, I want to open the soft keyboard automatically. Here is what I am doing within the onCreateView method : EditText et; et = (EditText)v.findViewById(R.id.txtAddress); Activity act = getActivity(); if(act != null) { InputMethodManager imm = (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE); if(imm != null) imm.showSoftInput(et, InputMethodManager.SHOW_FORCED); } Even though I get to the showSoftInput step with no problem, the keyboard is still not displayed. So, how can I correctly get the soft keyboard to be shown ? -- 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] Keeping it fresh, back to service...
Keep in mind I am on my live phone so I DONT have logcat. This makes no sense... I use my live phone for development and it isn't rooted... I have logcat. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 8:43 AM, Cythes cytheshic...@gmail.com wrote: So in the end what I am trying to do is illogical and cant be done some out of the blue way with out building a custom ROM It has to be an app... Which is a shame since I am so close to figuring it out. The service runs fine... Maybe just maybe having it call the camera button press if the volume is pushed down for longer then X amount of time. What can I say I'm stubborn. On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 5:03 PM, Cythes cytheshic...@gmail.com wrote: So if I take it back to the regular dispatchkeyevent, it should fix it or do I need to find something to call it to? IN which case would be my main activity. Simply have your activity handle the key event itself, and delete your service and your boot receiver. Having a service running all of the time is something users generally dislike, and the service is not helping you, since the activity is perfectly capable of handling your current business logic with respect to the key event. If you are somehow thinking that you will have something in the background that can respond to key events like this, that does not work. A couple of key events will get broadcast if the foreground activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). Otherwise, key events are for the use of the foreground activity and the OS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] NFC game
event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299, downTime=1303299, deviceId=0, source=0x1002 } and NFChunterexception:HTTP :404 so plz let me knw how can i solve this problem, Unfortunately we didn't develop psychic powers yet. But rest assured that we are going to help you as soon as we can read your mind and your development PC's hard drive. For the time being: the only error message I can see is NFChunterexception which looks like a custom exception class you must have created. And there's an HTTP 404 error code, which means: resource not found. It puzzles me that you do not understand what you are doing there with your own code. So let me rephrase your problem:* Somewhere in your code you are trying to access a web service / web page / online resource that does not exist (404 error) ** *Oh before I forget:* *Technical issues are best solved by looking closely at the error message. In the error log (or in Android terms log cat) you'll find several lines of error message with funny numbers and class names in it. It's all in red and stuff. Really weird. That's the *exception stack trace*. In most of all cases that exception stack trace spoils the fun because it is so good at explaining a problem to you that it is virtually unnecessary to go to forums and ask other people what the problem is. But if you're kind of lost it is ok to let other people look at that stack trace and the lines of your code that caused the exception. If you do that, we might be able to help you with your problem (even though this group is not the right place for asking questions unrelated to the Android SDK).* * -- 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] NFC game
On Mon, Jul 16, 2012 at 4:24 AM, iconapp 2010 iconapp2...@gmail.com wrote: In that after clicking nfc tag i need to display monster for tapping but, in my application if i click on that tag it shows following error event=MotionEvent { action=ACTION_DOWN, id[0]=0, x[0]=286.0, y[0]=322.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1303299, downTime=1303299, deviceId=0, source=0x1002 } and NFChunterexception:HTTP :404 There is probably more to your error than that. Paste the relevant portion of the LogCat. so plz let me knw how can i solve this problem, You've still not clearly defined what this problem is. For the third time: http://www.catb.org/~esr/faqs/smart-questions.html Seriously, read it. Then frame your question in a way that is clear, easy to understand, and provides enough information for those taking their time out to try to help you. Also, the word is spelled 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] Re: Make SlidingDrawer's content always visible?
So, you are using a sliding drawer and you never want it to collapse? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 2:56 AM, user123 ivanschu...@gmail.com wrote: Hi golf oo, your answer is empty. On Sunday, July 15, 2012 5:02:25 PM UTC+2, user123 wrote: I'm using android:bottomOffset to make the drawer stick out 100dip from the bottom. That works fine, but my content is not visible. It's only visible when I touch the drawer. How can I make that its always visible (the 100dip show the content)? I first thought it's a visibility issue, because the visibility of the content is set to GONE in onFinishInflate(), prepareC**ontent(), closeDrawer()... copied the SlidingDrawer and removed these lines, didn't solve it. It seems that it is a position issue, currently I'm playing with the numbers but still don't find how to make the view appear where it should be... and don't have more time for this... any help is greatly 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 -- 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] Your Registration to Google Play is still being processed.
On Mon, Jul 16, 2012 at 1:48 AM, elirev4 elir...@gmail.com wrote: I was already looking for the answer there, but there is nothing... Nothing? Not even a link that says Registration or Account Issues? - 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] session mangement
how to mange session..plz tell m. Please learn how to spell please... And then ask your question somewhere else... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 2:33 AM, laxman k laxman.k1...@gmail.com wrote: how to mange session..plz tell m. -- 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] Video Processing with Bluetooth
The application I am currently developing processes each frames using a native code and it should record the video as well. I tried SDK for this purpose but certain restrictions didn't allow me to do so, so I switched to NDK for a video recording code piece. Apparently, my algorithm seriously uses CPU, up to %70 percent in the worst case. Before I actually start working on a video recorder, I wanted to try the following approach. I will process the preview frames using an android phone and send it to another phone (which uses same application and same model) for recording. My questions are: 1.Should I try WiFi instead of Bluetooth? I am developing the application for API 8 so I don't have WiFi-Direct, therefore I should do some socket programming, which would possibly complicate things a bit for me since Bluetooth can easily be set up using SDK. 2- Will I be available to record the frames as a video at the receiving end? I will receive each frame with certain metadata embedded to it and should record them using the other phone. I doubt I will be able to do it using SDK, so NDK along with ffmpeg seems to be the best choice? Any suggestions related to this question will be more than welcome. 3-Here comes the best part. I am recording the video with the lowest resolution that,after compressed, takes no more than 14mb space for a 10 minute long video. I have to reach the raw frames to send it to other end, encode and compress it. Any ideas related to possible flooding of Bluetooth/Wi-Fi because of big-sized raw frames? Any other approaches and answers will be much appreciated. 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] Keeping it fresh, back to service...
I never really figured it out how to get it to work on my phone. Something I will be looking into after I try this idea out. On Monday, July 16, 2012 11:40:26 AM UTC-4, MagouyaWare wrote: Keep in mind I am on my live phone so I DONT have logcat. This makes no sense... I use my live phone for development and it isn't rooted... I have logcat. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 8:43 AM, Cythes cytheshic...@gmail.com wrote: So in the end what I am trying to do is illogical and cant be done some out of the blue way with out building a custom ROM It has to be an app... Which is a shame since I am so close to figuring it out. The service runs fine... Maybe just maybe having it call the camera button press if the volume is pushed down for longer then X amount of time. What can I say I'm stubborn. On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 5:03 PM, Cythes cytheshic...@gmail.com wrote: So if I take it back to the regular dispatchkeyevent, it should fix it or do I need to find something to call it to? IN which case would be my main activity. Simply have your activity handle the key event itself, and delete your service and your boot receiver. Having a service running all of the time is something users generally dislike, and the service is not helping you, since the activity is perfectly capable of handling your current business logic with respect to the key event. If you are somehow thinking that you will have something in the background that can respond to key events like this, that does not work. A couple of key events will get broadcast if the foreground activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). Otherwise, key events are for the use of the foreground activity and the OS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Keeping it fresh, back to service...
In Eclipse, Window | Open Perspective | DDMS (Debug works too, IIRC). If you don't see the logcat panel, Window | Show Panel | Logcat. You can also run adb logcat from your operating system's command window. I think it's actually more convenient (as this keeps the logcat in an entirely separate window). -- K 2012/7/16 Cythes cytheshic...@gmail.com I never really figured it out how to get it to work on my phone. Something I will be looking into after I try this idea out. On Monday, July 16, 2012 11:40:26 AM UTC-4, MagouyaWare wrote: Keep in mind I am on my live phone so I DONT have logcat. This makes no sense... I use my live phone for development and it isn't rooted... I have logcat. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 8:43 AM, Cythes cytheshic...@gmail.com wrote: So in the end what I am trying to do is illogical and cant be done some out of the blue way with out building a custom ROM It has to be an app... Which is a shame since I am so close to figuring it out. The service runs fine... Maybe just maybe having it call the camera button press if the volume is pushed down for longer then X amount of time. What can I say I'm stubborn. On Saturday, July 14, 2012 5:14:12 PM UTC-4, Mark Murphy (a Commons Guy) wrote: On Sat, Jul 14, 2012 at 5:03 PM, Cythes cytheshic...@gmail.com wrote: So if I take it back to the regular dispatchkeyevent, it should fix it or do I need to find something to call it to? IN which case would be my main activity. Simply have your activity handle the key event itself, and delete your service and your boot receiver. Having a service running all of the time is something users generally dislike, and the service is not helping you, since the activity is perfectly capable of handling your current business logic with respect to the key event. If you are somehow thinking that you will have something in the background that can respond to key events like this, that does not work. A couple of key events will get broadcast if the foreground activity does not consume the event (e.g., ACTION_CAMERA_BUTTON). Otherwise, key events are for the use of the foreground activity and the OS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.8 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@** googlegroups.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://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] asking for device to buy android device...
Search this group, this question is asked like every week. It really doesn't matter. Get the fanciest phone you can afford. Agreed, but I also think it may be worthwhile to test your app on some of the less expensive devices as well... Since they often have less ram and a slower cpu Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 16, 2012 at 12:35 AM, TreKing treking...@gmail.com wrote: Search this group, this question is asked like every week. It really doesn't matter. Get the fanciest phone you can afford. -- 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] DialogFragment - show soft keyboard upon creation
Have you tried et.requestFocus() ? 2012/7/16 Simon Giddings mr.s.giddi...@gmail.com I have a simple dialog built with the compatibility libraries DialogFragment. It holds only 1. EditText 2. 2 buttons When the dialog is shown, the edit text control has the focus. At this point, I want to open the soft keyboard automatically. Here is what I am doing within the onCreateView method : EditText et; et = (EditText)v.findViewById(R.id.txtAddress); Activity act = getActivity(); if(act != null) { InputMethodManager imm = (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE); if(imm != null) imm.showSoftInput(et, InputMethodManager.SHOW_FORCED); } Even though I get to the showSoftInput step with no problem, the keyboard is still not displayed. So, how can I correctly get the soft keyboard to be shown ? -- 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] LaunchMode ConfigChange HELP!
I was trying to make a litlle game but i cant figure how to properly make my game to not restart each time the keyboard get in/out or when the screen rotate. Your app restarts when the onscreen keyboard shows up? That doesn't really make sense... As far as screen orientation, that is the default behavior. For the screen i locked is orientation to landscape. That is one way to handle it... The other way to handle it is to implement onSaveInstanceState() and onRestoreInstanceState() i tried to add lauchmode or configchange in the manifest but both not seems to work. Care to provide a little more info here? What exactly have you tried? And what exactly do you mean by not seems to work? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jul 15, 2012 at 7:26 PM, XiNoX noname...@gmail.com wrote: Hi, am new here and on android app .I was trying to make a litlle game but i cant figure how to properly make my game to not restart each time the keyboard get in/out or when the screen rotate. For the screen i locked is orientation to landscape. i tried to add lauchmode or configchange in the manifest but both not seems to work. Sorry for my bad english. can anybody help me ?! 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] License of Task API for Android
On Mon, Jul 16, 2012 at 6:16 AM, Michael Leung michaelchi...@gmail.comwrote: Does any one know whether Task API( https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android ) use other parties libraries? Do I know put their licenses in my application? This is off-topic for this list. Read their docs and terms of service. - 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 block Sharing data via share intent
To be honest, I also do not remember that the standard Android SDK WebView is capable of creating social sharing popups as context menus. Especially on long clicks. My web views don't do anything on long clicks by default. If I'm not totally mistaken this would be a feature you have to explicitly add to your WebView by calling: registerForContextMenu(myWebView); I think the OP should look at the Activity which contains the WebView and search for registerForContextMenu. By not executing that line of code, the popup would be gone. On Monday, July 16, 2012 8:43:45 AM UTC-5, Kristopher Micinski wrote: On Mon, Jul 16, 2012 at 9:40 AM, Bunty syed ...@gmail.com wrote: Sorry if i presented the content wrong way. Let me put this way.. If I open a webview in my app using webview android widget that means control is still in my application. Now if in the webview, some link is long pressed then android will pop up a context menu with some options to share. I want to block that so that any data within my app control wont be shared via mail,msg,facebook,etc.. Really? This is the behavior? I don't remember that... Why don't you just make it so those links aren't clickable in the HTML then? 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
Re: [android-developers] DialogFragment - show soft keyboard upon creation
Yes, I use this as well, but forgot to include it in the code I posted here. On Monday, 16 July 2012 18:06:41 UTC+2, Kostya Vasilyev wrote: Have you tried et.requestFocus() ? 2012/7/16 Simon Giddings I have a simple dialog built with the compatibility libraries DialogFragment. It holds only 1. EditText 2. 2 buttons When the dialog is shown, the edit text control has the focus. At this point, I want to open the soft keyboard automatically. Here is what I am doing within the onCreateView method : EditText et; et = (EditText)v.findViewById(R.id.txtAddress); Activity act = getActivity(); if(act != null) { InputMethodManager imm = (InputMethodManager)act.getSystemService(Context.INPUT_METHOD_SERVICE); if(imm != null) imm.showSoftInput(et, InputMethodManager.SHOW_FORCED); } Even though I get to the showSoftInput step with no problem, the keyboard is still not displayed. So, how can I correctly get the soft keyboard to be shown ? -- 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: search box - search in sqlite
http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jul 15, 2012 at 7:41 AM, Béla Kürthy kurthyb...@gmail.com wrote: I don't know how can i display it on screen. -- bé -- 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] Open preferences menu from andengine sprite touch
I am creating a full-screen andengine based app. In the app there are some settings that the user can select, and I've used the PreferencesActivity available in android. All of this works if the device has a physical menu button. Since this button will be disappearing over time, I have added a ButtonSprite to my screen that I would like to open the preferences activity as if the menu button was pressed. I am not using an action bar as this is a full screen app and do not want to forfeit any more screen real estate. I have everything wired up so that I know when the button is touched, but am at a loss to determine what I should call to instantiate the preferences activity. I am sure that this is a simple matter, however, the documentation and examples have not provided any clues, at least to me. So, given that I know where to place the call to get the preferences activity displayed, what do I call to actually get this to happen? Thanks in advance, B. -- 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] hwlp me why this Error is arriving ;( in the log cat...
07-15 14:39:43.311: I/Choreographer(643): Skipped 280 frames! The application may be doing too much work on its main thread. This line isn't clear enough? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Jul 15, 2012 at 3:47 AM, Sami Khan samikhan0...@gmail.com wrote: -- 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] Open preferences menu from andengine sprite touch
On Mon, Jul 16, 2012 at 6:34 PM, billb b...@briskynet.com wrote: So, given that I know where to place the call to get the preferences activity displayed, what do I call to actually get this to happen? Try yourMainActivity.startActivity (new Intent (yourMainActivity, YourPrefsActivity.class)); -- 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] Installing ADT on Eclipse Juno
Which distribution of Eclipse did you download? Make sure you have one that includes the XML support, for example Eclipse IDE for Java Developers. Do you by any chance have the checkbox Contact all update sites during install to find required software unchecked? I often uncheck it myself since having it enabled makes update checks take much longer. But if you have it disabled, and you enable it, I think it might be able to find WST on its own. -- Tor On Fri, Jul 13, 2012 at 3:48 PM, marcelozep marcelopalmadenoro...@hotmail.com wrote: Hi. I´m receiving this error while trying to install ADT Plugin for Eclipse Juno. Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) Missing requirement: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found What should I do? -- 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] Open preferences menu from andengine sprite touch
Thank you! I knew it was a beginner question, and well, that's me. Thanks so much for breaking my log jam! B. ~~~ Try yourMainActivity.startActivity (new Intent (yourMainActivity, YourPrefsActivity.class)); -- 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: Installing ADT on Eclipse Juno
In the Preferences window (Window - Preferences), check the Available Software Sites under the Install/Update section. Make sure that http://download.eclipse.org/releases/juno; is listed as an available site. If it isn't add it, then try the install again. Eclipse will then be able to install the required stuff. On Friday, July 13, 2012 6:48:46 PM UTC-4, marcelozep wrote: Hi. I´m receiving this error while trying to install ADT Plugin for Eclipse Juno. Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) Missing requirement: Android Development Tools 20.0.0.v201206242043-391819 (com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found What should I do? -- 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: Please native 3G-324M videocall support!
Please do it ... it is basic feature for a smart phone .. it is unbelievable that it does not there in android and why there is so much delay in implementing it This is not the place to request features for Android... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 12, 2012 at 5:25 AM, mihir mehta mihirpme...@gmail.com wrote: Please do it ... it is basic feature for a smart phone .. it is unbelievable that it does not there in android and why there is so much delay in implementing 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