Re: [android-developers] How I disable GPS when i exit Application
If you are calling location updates from gps in your activity, you can stop listening to location updates on onPause() method. In onResume(), you can start listening to it back again. If you are requesting location updates from a service, you should stop the service in the onPause() method of the activity, and handle it accordingly in onResume. On Wed, Mar 28, 2012 at 10:50 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); killThisPackageIfRunning(HomePage.this,getApplication().getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.killBackgroundProcesses(packageName); } -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Digest for android-developers@googlegroups.com - 25 Messages in 16 Topics
Test1 android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - Android database [1 Update] http://groups.google.com/group/android-developers/t/928689d165201899 - How to close the dialogbox when clicking on the menu button [2 Updates] http://groups.google.com/group/android-developers/t/587b0e14b8eafb8e - Save the whole Intent and context at somewhere [1 Update] http://groups.google.com/group/android-developers/t/f1acdc89e4f5b861 - write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity [1 Update] http://groups.google.com/group/android-developers/t/ee12e80415602680 - How to get the TextView values in ListView [1 Update] http://groups.google.com/group/android-developers/t/ee501f85d2669d64 - sdk tools 17 and 'normal' java projects in eclipse [1 Update] http://groups.google.com/group/android-developers/t/424e824988d722b5 - google io [1 Update] http://groups.google.com/group/android-developers/t/2e36f5de40c00563 - caller uid x is different than the authenticator's uid [1 Update] http://groups.google.com/group/android-developers/t/e3703e7fec68110d - record video with camera [1 Update] http://groups.google.com/group/android-developers/t/182a21874079ea32 - Transitioning from debug to release builds [6 Updates] http://groups.google.com/group/android-developers/t/efd61960d7c92ce6 - Adding Java JCE provider statically as part of Android [3 Updates] http://groups.google.com/group/android-developers/t/3f38f24e3360b80 - Problem for calling ListActivity [1 Update] http://groups.google.com/group/android-developers/t/dcde8666c6f69b6d - How to send/pass string to a web service from emulator and that web service returns same string. [1 Update] http://groups.google.com/group/android-developers/t/53391b5823479233 - use of audio streams [2 Updates] http://groups.google.com/group/android-developers/t/e658807b69ba6eab - Referring other library projects from within a library project. [1 Update] http://groups.google.com/group/android-developers/t/630dfb153d7a82be - The linked program is no longer installed on your phone [1 Update] http://groups.google.com/group/android-developers/t/e36fec7f3c3f8fa1 = Topic: Android database Url: http://groups.google.com/group/android-developers/t/928689d165201899 = -- 1 of 1 -- From: Kirupa answerofandr...@gmail.com Date: Mar 27 10:33PM -0700 Url: http://groups.google.com/group/android-developers/msg/5273220a61b7cfa4 How can we access database of a android application(in android phone) from another database of a same android application but another android phone through the Bluetooth.(same application, same database but different android phone) = Topic: How to close the dialogbox when clicking on the menu button Url: http://groups.google.com/group/android-developers/t/587b0e14b8eafb8e = -- 1 of 2 -- From: android developer android.developer4...@gmail.com Date: Mar 28 10:32AM +0530 Url: http://groups.google.com/group/android-developers/msg/713f82801ad11b99 Hi Good morning to all. Please help me on this. How to close the dialogbox when clicking on the menu button? Thanks you all. -- 2 of 2 -- From: ravindra bhavsar ravindra.bhavs...@gmail.com Date: Mar 28 10:43AM +0530 Url: http://groups.google.com/group/android-developers/msg/70d9786fa90c78c4 Ummm..why? On Wed, Mar 28, 2012 at 10:32 AM, android developer = Topic: Save the whole Intent and context at somewhere Url: http://groups.google.com/group/android-developers/t/f1acdc89e4f5b861 = -- 1 of 1 -- From: jagruti sangani jugni1sm...@gmail.com Date: Mar 28 10:18AM +0530 Url: http://groups.google.com/group/android-developers/msg/5a68a315b1eb3b74 Thanks Ali for your reply, broadcastreceiver is perfectly work when my application is run in front but when it go in background then call will not handle. -- Regards jagruti Sangani *iNextrix Technologies* = Topic: write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity Url: http://groups.google.com/group/android-developers/t/ee12e80415602680
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 14 Topics
Dfghh Nhst nhst...@gmail.com wrote: android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - How good phonegap in security support, while developing mobile web apps? [2 Updates] http://groups.google.com/group/android-developers/t/9d5792ef40cbb435 - How to sent SMS text message to any email address. [8 Updates] http://groups.google.com/group/android-developers/t/a711e6c404b18a14 - Multiselection [1 Update] http://groups.google.com/group/android-developers/t/1f6679ccdb0068e9 - Merchant Account no longer available [1 Update] http://groups.google.com/group/android-developers/t/1ffa4137d62c2df4 - Highlight Text in Webview [2 Updates] http://groups.google.com/group/android-developers/t/b9b3f7920d0f41ce - android.permission.ACCESS_WIFI_STATE or android.permission.WAKE_LOCK for wifi lock [1 Update] http://groups.google.com/group/android-developers/t/6cdcf46888635c00 - how to get SMS center number in android [1 Update] http://groups.google.com/group/android-developers/t/4997397c77df29b4 - Re : passing data between activities [3 Updates] http://groups.google.com/group/android-developers/t/e7ae3e9af03ebcc5 - [Android - developers] Exponential Smoothing on Latitude and Langitude [1 Update] http://groups.google.com/group/android-developers/t/4852f75dc3d0cfcc - R17: a library project cannot depend on another library project? [1 Update] http://groups.google.com/group/android-developers/t/1e179daaa985853c - Calendar edit event force close error [1 Update] http://groups.google.com/group/android-developers/t/65eee56323ecd6a1 - working on web view [1 Update] http://groups.google.com/group/android-developers/t/2baae54bbb873a43 - Broadcast receiver execution. [1 Update] http://groups.google.com/group/android-developers/t/a520636e18952db - Blocking/changing original Android OS is legal? [1 Update] http://groups.google.com/group/android-developers/t/2045d3854b52d066 = Topic: How good phonegap in security support, while developing mobile web apps? Url: http://groups.google.com/group/android-developers/t/9d5792ef40cbb435 = -- 1 of 2 -- From: nvlakshmi vakiti lakshmi.vad...@gmail.com Date: Mar 26 06:19PM +0530 Url: http://groups.google.com/group/android-developers/msg/fa1ad8a9e94dd3a9 Hi all, How good phonegap in security support, while developing mobile web apps? -- Thanks Regards Lakshmi.V -- 2 of 2 -- From: Anirudh Loya loya.anir...@gmail.com Date: Mar 26 06:33PM +0530 Url: http://groups.google.com/group/android-developers/msg/76ae02cd3a6b2367 Its Excellent !! On Mon, Mar 26, 2012 at 6:19 PM, nvlakshmi vakiti -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* = Topic: How to sent SMS text message to any email address. Url: http://groups.google.com/group/android-developers/t/a711e6c404b18a14 = -- 1 of 8 -- From: ravindra bhavsar ravindra.bhavs...@gmail.com Date: Mar 26 04:10AM -0700 Url: http://groups.google.com/group/android-developers/msg/bf2d9c9232c2326c Hi, I want to sent Text Message from my android emaulator to any email address. How to i do that Plz anybody Help me? -- 2 of 8 -- From: asheesh arya asheesharya...@gmail.com Date: Mar 26 03:16AM -0800 Url: http://groups.google.com/group/android-developers/msg/87cfca50a6a7a58 this is not possible via emulator you can do this whrn you test your application on real device. -- 3 of 8 -- From: Narendra Singh Rathore nsr.curi...@gmail.com Date: Mar 26 04:49PM +0530 Url: http://groups.google.com/group/android-developers/msg/a18c0a3e4be7b73c On Mon, Mar 26, 2012 at 4:40 PM, ravindra bhavsar address. How to i do that Plz anybody Help me? You need to configure your emulator with your gmail account in order to send email. -- 4 of 8 -- From: ravindra bhavsar ravindra.bhavs...@gmail.com Date: Mar 26 05:31PM +0530 Url: http://groups.google.com/group/android-developers/msg/4564eff19e3424eb Thanks for reply Narendra, can u tell me how do i configure my emulator with gmail? On Mon, Mar 26, 2012 at 4:49 PM, Narendra Singh Rathore -- 5 of 8 -- From: Narendra Singh Rathore
[android-developers] Re: Background listener getting killed
Hello , i have the android:enable=true.but when my application is run in background then call will not work that means we cant accept or reject call.When i am in application in front then all this work perfectly so what can i do?Thanks in advance. On Thursday, 26 November 2009 00:00:12 UTC+5:30, Ravi wrote: I have an app that listens to incming Calls. If the user has another app that listens to the same (Call popup applicaitons in specific) my process is getting killed - any solutions or ideas on how to prevent this ? On Thursday, 26 November 2009 00:00:12 UTC+5:30, Ravi wrote: I have an app that listens to incming Calls. If the user has another app that listens to the same (Call popup applicaitons in specific) my process is getting killed - any solutions or ideas on how to prevent 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
[android-developers] Creating a plug-in in android
Hi, Am building an application which will list all the printers connected in a wireless network. am able to create the android application apk successfully. Now i want to make this application as a plug-in which will support on android browsers is it possible to do so? and if so how we can create a plug-in from an existing android application. please note that i have used ndk for my app and created an so file which is used in my app. Thanks in advance Praveen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: i am looking job on android in banglore
On Mar 27, 7:02 pm, Anirudh Loya loya.anir...@gmail.com wrote: How much are you ready to pay if i fix your bug? Well, feel free to give me a quote privately (same applies for other developers interested to help..) Mail me. On Tue, Mar 27, 2012 at 1:26 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: On Mar 27, 5:57 pm, Tushar Lal tush...@gmail.com wrote: Yes, Sir I'm also open to remote contract jobs and can you please elaborate the term multimedia. I have worked with audio/video players in the phonegap application. But something thing tell me that you have some thing else in mind when you say the term multimedia. Well, 1st, see if you can solve this problem that we are having before we discuss other related projects we have. http://groups.google.com/group/android-developers/browse_thread/threa... On Tue, Mar 27, 2012 at 12:21 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: On Mar 27, 5:37 pm, Tushar Lal tush...@gmail.com wrote: I have a work experience of 1.3yr in Android, Blackberry, in which I have created both native phonegap application. I have worked on a Mobile banking application, Stock Trading application, Album/Artist Application and some native Blackberry applications. Any experience in multimedia? Interested in remote contract jobs or only Bangalore based jobs? Regards: Tushar On Tue, Mar 27, 2012 at 11:52 AM, Anirudh Loya loya.anir...@gmail.com wrote: 6 months experience or a fresher? On Tue, Mar 27, 2012 at 11:49 AM, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: what application did you build previously? On Mar 27, 5:46 am, rudraswamy mc rudraswamy.17...@gmail.com wrote: sir i have 6month exp on android.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 I disable GPS when i exit Application
thanks!! On Wed, Mar 28, 2012 at 11:31 AM, Farhan Tariq farhan@gmail.com wrote: If you are calling location updates from gps in your activity, you can stop listening to location updates on onPause() method. In onResume(), you can start listening to it back again. If you are requesting location updates from a service, you should stop the service in the onPause() method of the activity, and handle it accordingly in onResume. On Wed, Mar 28, 2012 at 10:50 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); killThisPackageIfRunning(HomePage.this,getApplication().getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.killBackgroundProcesses(packageName); } -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: how to insert image in text view
Use LinearLayout to put a TextView and an ImageView next to each other. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android database
It sounds like you need to implement a mini server for your Android application which will enable other phones access a local database. Google for implement server Android, if I remember it right stackoverflow has some good threads on this. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.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] User Interface
But Can we built the android gui with html,javaquey like IOS ? On Tue, Mar 27, 2012 at 8:50 AM, Mark Murphy mmur...@commonsware.comwrote: Use Eclipse and the Graphical Layout tool. On Tue, Mar 27, 2012 at 8:25 AM, kaushik p kaushiks...@gmail.com wrote: Hi all , Is there anyway we can build the user interface for the android in a very efficient and easy way. I have already tried droidraw , but is there something that is much better than that. -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to close the dialogbox when clicking on the menu button
Dialogs in Android have the dismiss method (http:// developer.android.com/guide/topics/ui/dialogs.html#DismissingADialog) I guess you need to call this method inside the on click listener of your menu button. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Save the whole Intent and context at somewhere
Hhhmmm, what about starting a service in your broadcast receiver, which will implement the functionality you are interested in? I expect this approach will work. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Are we allowed to email Google Play customers?
If you see the customer info, there is a field called Email Marketing. I've never seen any customer with Yes there, but if you see a Yes there, by all means, do it. Otherwise, it's a No, and if I developer contacted me with spam marketing, I would certain to report that developer to Google. On Wednesday, March 28, 2012 12:01:24 AM UTC+8, Damir wrote: I can't seem to find a concrete answer on this so I'm reaching out for some help. If I sell an app on Google Play, am I allowed to contact those customers (promotions, updates, stay in touch...)? I've seen some reports that is not permissable according to the rules but then I've seen people comment that they do it, so I'm not sure. And to make it clear, I'm not talking about contacting users who post feedback, but actual users of my app. In short, can I do CRM to my customers who purchase on Google Play. Much appreciate any feedback that I can get. 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: google io
I am in the same boat as you are. I was ready to fly all the way from Singapore to attend as I feel that any successful developer should have the chance to attend. That means, at the minimum, my trip would have cost me $3000, but it would have been worth it for the networking opportunities. Oh well, I will save my money for something else. On Wednesday, March 28, 2012 11:12:56 AM UTC+8, Greg Donald wrote: That's sad when scalpers can get Google IO tickets: http://www.ebay.com/sch/i.html?_nkw=google%20io_fscr=1 But a full time Android developer like myself only gets to see the No Tickets Available page from 7 to 7:29am. How can there be no tickets available at 7:04am, 7:09am, etc, but the sellout doesn't actually occur until 7:29am? Why did I have to be signed in to Google+ account? For selection purposes? Seems rigged as fuck to me. Thanks for nothing Google. I won't bother even trying next year. Keep it. -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [sip calling] application unregister and again register the user when push the notification during background running application
Hello All, i have problem like when i press the home button then it will run in background.when my call is come in application then it will popup the alertdialog box.But when i press the accept or reject button in dialogbox then call is not handle.I think that is bacause when once the application is go to background and comeback in root then call state will me remove because for takling application in root i have call one other activity in broadcastreceiver and comeback from that activity to broadcast receiver.I have also test when the application run in background and i push the notification then it will come in front but the user is unregister and then again register this will happen.This is may be occure because i have call the main activity when push the notification and my call is handle in broadcastreciver class.so can any body help me for solving the problem.Anyway i need the call will properly need to handle when the application come from background to front.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: My app was suspended for a donate button, Google hasn't responded?
150? That's nothing. Just change the package name be done with it. Waiting for Google to reply is a waste of your time and you will just drive yourself up the wall. Even if you do get a response, in all likelihood, it will be a form letter as they don't seem to actually read what you are writing to them. Make the Donate option an in-app purchase via Google Play. You didn't get suspended because your app was free and had a donate button, but because you circumvented Google from receiving their 30% cut. On Wednesday, March 28, 2012 7:13:02 AM UTC+8, Chris Gustafson wrote: I guess if that's their policy, then fine, I'll remove the feature and upload a new APK (which they suggested in the notification email). But I have no way of doing that since it's suspended. Other than changing the package name, but that would require the 150+ people who downloaded it to uninstall and re-install. Instead of just updating. Really wish they would just respond. :/ On Tuesday, March 27, 2012 7:01:02 PM UTC-4, Ali Chousein wrote: Well, I guess Google is quite strict on this. If you get money from users in any way, you have to pay Google the fee it's charging for using the Google Play platform. I have no idea how to reach them to discuss your case, but I see that what you did is indeed violation of their policies. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com On Tuesday, March 27, 2012 7:01:02 PM UTC-4, Ali Chousein wrote: Well, I guess Google is quite strict on this. If you get money from users in any way, you have to pay Google the fee it's charging for using the Google Play platform. I have no idea how to reach them to discuss your case, but I see that what you did is indeed violation of their policies. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OutofMemory exception
OutofMemory exception is in android. Do you know the reason for it? How we can solve 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
[android-developers] Re: OutofMemory exception
Out == No more of = Related to something Memory = those little ants that live inside your device maintaining your data So you have no more little ants left. Seriously, I vote for this one as the dumbest post of the year -- and it's not even the end of the first quarter. On Wednesday, March 28, 2012 3:44:03 PM UTC+8, Kirupa wrote: OutofMemory exception is in android. Do you know the reason for it? How we can solve 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
Re: [android-developers] Re: Save the whole Intent and context at somewhere
hello , can you provide me provide me any demo example which will use the servise and in that service start at end on our hand? because till now i have never use the service.i have read about service but i cant much understand so if possible the provide me. On Wed, Mar 28, 2012 at 12:47 PM, Ali Chousein ali.chous...@gmail.comwrote: Hhhmmm, what about starting a service in your broadcast receiver, which will implement the functionality you are interested in? I expect this approach will work. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.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 -- Regards jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sdk tools 17 and 'normal' java projects in eclipse
Am Mittwoch, 28. März 2012 06:02:11 UTC+2 schrieb Nikolay Elenkov: On Wed, Mar 28, 2012 at 2:29 AM, ehm djii ehmd...@gmail.com wrote: so, how can you reference normal java projects from an android project as of sdk tools 17? You can. The only change you need to make is to mark the project as exported, so its classes get added to classes.dex. 1. Open project properties 2. Open Java Build Path-Order and Export 3. Check the checkbox next to your 'normal' project i dont see my own project o its Order and Export tab. i only see the referenced projects there. and if those are marked for Order and Export, nothing changes. Am Mittwoch, 28. März 2012 06:02:11 UTC+2 schrieb Nikolay Elenkov: so, how can you reference normal java projects from an android project as of sdk tools 17? You can. The only change you need to make is to mark the project as exported, so its classes get added to classes.dex. 1. Open project properties 2. Open Java Build Path-Order and Export 3. Check the checkbox next to your 'normal' project 4. Clean and run your project 5. Profit :) thanks but i dont see the project itself on its Order and Export tab. i only see the referenced projects there. and if those are marked for Order and Export, nothing changes. also, if this is the recommended way to get things working, was this documented anywhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sdk tools 17 and 'normal' java projects in eclipse
Am Mittwoch, 28. März 2012 06:02:11 UTC+2 schrieb Nikolay Elenkov: so, how can you reference normal java projects from an android project as of sdk tools 17? You can. The only change you need to make is to mark the project as exported, so its classes get added to classes.dex. 1. Open project properties 2. Open Java Build Path-Order and Export 3. Check the checkbox next to your 'normal' project 4. Clean and run your project 5. Profit :) thanks but i dont see the project itself on its Order and Export tab. i only see the referenced projects there. and if those are marked for Order and Export, nothing changes. also, if this is the recommended way to get things working, was this documented anywhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
Afaik you should never use android.os.Process.killProcess or ActivityManager.killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); killThisPackageIfRunning(HomePage.this,getApplication().getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.killBackgroundProcesses(packageName); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Browser.EXTRA_APPLICATION_ID do not work in the tablet. Do you know other work around to reuse the tab of Browser.apk?
EXTRA_APPLICATION_ID seems not to work in the tablet. Do you know other work around to reuse tab of the Browser.apk when starting the Browser by intent from my service. This is directly related to [9902225]. Any hints is appreciated. [9902225]: http://stackoverflow.com/questions/9901820/browser-extra-application-id-not-working-in-ics Cause: The resuseTab() will not be called if the device is a tablet. See line: * 3-tablet) Open new tab See line: if (activateVoiceSearch || !BrowserActivity.isTablet(mActivity)) { // Browser.apk source code (Android 4.0.3_r1-6) com.android.browser.IntentHandler void onNewIntent(Intent intent) { /* * TODO: Don't allow javascript URIs * 0) If this is a javascript: URI, *always* open a new tab * 1) If this is a voice search, re-use tab for appId *If there is no appId, use current tab * 2) If the URL is already opened, switch to that tab * 3-phone) Reuse tab with same appId * 3-tablet) Open new tab */ final String appId = intent .getStringExtra(Browser.EXTRA_APPLICATION_ID); if (!TextUtils.isEmpty(urlData.mUrl) urlData.mUrl.startsWith(javascript:)) { // Always open javascript: URIs in new tabs mController.openTab(urlData); return; } if ((Intent.ACTION_VIEW.equals(action) // If a voice search has no appId, it means that it came // from the browser. In that case, reuse the current tab. || (activateVoiceSearch appId != null)) !mActivity.getPackageName().equals(appId)) { if (activateVoiceSearch || ! BrowserActivity.isTablet(mActivity)) { Tab appTab = mTabControl.getTabFromAppId(appId); if (appTab != null) { mController.reuseTab(appTab, urlData); return; } } // No matching application tab, try to find a regular tab // with a matching url. Tab appTab = mTabControl.findTabWithUrl(urlData.mUrl); if (appTab != null) { // Transfer ownership appTab.setAppId(appId); if (current != appTab) { mController.switchToTab(appTab); } // Otherwise, we are already viewing the correct tab. } else { // if FLAG_ACTIVITY_BROUGHT_TO_FRONT flag is on, the url // will be opened in a new tab unless we have reached // MAX_TABS. Then the url will be opened in the current // tab. If a new tab is created, it will have true for // exit on close. Tab tab = mController.openTab(urlData); if (tab != null) { tab.setAppId(appId); if ((intent.getFlags() Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) { tab.setCloseOnBack(true); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren johan.appelg...@gmail.com wrote: Afaik you should never use android.os.Process.**killProcess or ActivityManager.killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.**killProcess(android.os.**Process.myPid()); System.exit(0); killThisPackageIfRunning(**HomePage.this,getApplication()** .getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.** getSystemService(Context.**ACTIVITY_SERVICE); activityManager.**killBackgroundProcesses(**packageName); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] sdk tools 17 and 'normal' java projects in eclipse
On Wed, Mar 28, 2012 at 5:21 PM, ehm djii ehmd...@gmail.com wrote: Am Mittwoch, 28. März 2012 06:02:11 UTC+2 schrieb Nikolay Elenkov: thanks but i dont see the project itself on its Order and Export tab. i only see the referenced projects there. and if those are marked for Order and Export, nothing changes. I am pretty sure it works, but maybe your setup is different. In short, any dependent project or libraries need to exported to be included in classes.dex. Jars under lib/ are automatically exported. also, if this is the recommended way to get things working, was this documented anywhere? I believe it is. I've even posted the link to this list a couple of times. You should really subscribe to the ADT tools changes feed if you want to use Eclipse with ADT. http://tools.android.com/recent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] difference between service and thread android
HI, difference between service and thread android any one can explain in easiest way -- Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
It is still the wrong thing to do. Just because the API allows you to do something wrong doesn't mean you have to do it. On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote: Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren wrote: Afaik you should never use android.os.Process.**killProcess or ActivityManager.killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.**killProcess(android.os.**Process.myPid()); System.exit(0); killThisPackageIfRunning(**HomePage.this,getApplication()** .getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.** getSystemService(Context.**ACTIVITY_SERVICE); activityManager.**killBackgroundProcesses(**packageName); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
so can you tell me the process On Wed, Mar 28, 2012 at 2:25 PM, Johan Appelgren johan.appelg...@gmail.comwrote: It is still the wrong thing to do. Just because the API allows you to do something wrong doesn't mean you have to do it. On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote: Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren wrote: Afaik you should never use android.os.Process.**killPro**cess or ActivityManager.**killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.**killProcess**(android.os.**Process.myPid()); System.exit(0); killThisPackageIfRunning(**HomeP**age.this,getApplication()**.** getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.** getSy**stemService(Context.**ACTIVITY_**SERVICE); activityManager.**killBackground**Processes(**packageName); } -- You received this 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: difference between service and thread android
check out this http://crazyaboutandroid.blogspot.in/search/label/Difference%20between%20Android%20Service On Mar 28, 1:51 pm, Perumss Naren peru2...@gmail.com wrote: HI, difference between service and thread android any one can explain in easiest way -- Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get kno when camera is opened??
Hai... i just want to genearte a toast when the camera is opened. plz help me -- Mohammed Shafnaz Hamza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to get kno when camera is opened??
If by camera opened, you mean when the camera app is started, you cannot. On Wednesday, March 28, 2012 5:50:14 PM UTC+8, Shaffz wrote: Hai... i just want to genearte a toast when the camera is opened. plz help me -- Mohammed Shafnaz Hamza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to get kno when camera is opened??
OK thanks... :) On Wed, Mar 28, 2012 at 3:31 PM, Zsolt Vasvari zvasv...@gmail.com wrote: If by camera opened, you mean when the camera app is started, you cannot. On Wednesday, March 28, 2012 5:50:14 PM UTC+8, Shaffz wrote: Hai... i just want to genearte a toast when the camera is opened. plz help me -- Mohammed Shafnaz Hamza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mohammed Shafnaz Hamza -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 application through hold-pressing home key will unregister the user then again register the user
hello all, I press the home key for move the application to run in background and when i want to open that application then i pressing home key long time it will display all running activity.and i click on my application so i need it will open at last state where it is run in background but it will execute some code of application which will register the user in main activity.can we said that it is run from oncreate() or on what state?.or how can we perevent this code will not execute when the application come from background to front.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: open application through hold-pressing home key will unregister the user then again register the user
now it is fixed.Actually onstart() i have call the function so that when the application come in front then it is call the onstart() thats why i am getting this unregister and register process. On Wednesday, 28 March 2012 15:50:59 UTC+5:30, jugni wrote: hello all, I press the home key for move the application to run in background and when i want to open that application then i pressing home key long time it will display all running activity.and i click on my application so i need it will open at last state where it is run in background but it will execute some code of application which will register the user in main activity.can we said that it is run from oncreate() or on what state?.or how can we perevent this code will not execute when the application come from background to front.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] Does a android phone/emulator always ship with X509Certificates
Hello, I am trying to build a authentication system that will run with my android phones. I ran into a wonderful blog http://nelenkov.blogspot.in/2011/12/using-custom-certificate-trust-store-on.html explaining how to use the Android X509Certificate. I wrote the following in a extends AndroidUnitTestCase class X509Certificate[] certList = xtm.getAcceptedIssuers() ; for (X509Certificate cert : certList) { String certStr = S: + cert.getSubjectDN().getName() + \nI: + cert.getIssuerDN().getName(); System.out.println(certStr++cert.getPublicKey()+) ; } This prints out S:C=US,O=VeriSign\, Inc.,OU=VeriSign Trust Network,OU=(c) 1999 VeriSign\, Inc. - For authorized use only,CN=VeriSign Class 4 Public AND THE PUBLIC KEY Does the above certificate always ship with Android phones and emulators ? I am hoping to always use Verisign's cert.getPublicKey to encrypt some of my data to achieve client authentication. But if Verisign does not ship with all phones and emulators, I hope to identify a minimal set of certificates that do ship (for sure). So that I can play with that. Thanks Anmol -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] record video with camera
On Tue, Mar 27, 2012 at 7:05 PM, MANJINDER SANDHA manjindersing...@gmail.com wrote: i want code of recording video with camera in android... I want anjelina angelina jolie !!! LoL... Do some google search before posting some questions here. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Broadcast receiver won't receive camera event!
The action com.android.camera.NEW_PICTURE is not documented. Why should it work on different devices? On Saturday, January 1, 2011 6:46:54 PM UTC+2, androidman wrote: Hi, I'm trying to make an app that detects when a user takes a photo. I set up a broadcast receiver class and registered it in the manifest file by: receiver android:name=photoReceiver intent-filter action android:name=com.android.camera.NEW_PICTURE/ data android:mimeType=image/*/ /intent-filter /receiver No matter what I try to do the program won't receive the broadcast. Here is my receiver class: public class photoReceiver extends BroadcastReceiver { private static final String TAG = photoReceiver; @Override public void onReceive(Context context, Intent intent) { CharSequence text = caught it; int duration = Toast.LENGTH_LONG; Log.d(TAG, Received new photo); Toast toast = Toast.makeText(context, text, duration); toast.show(); } } If I remove the mimeType line in the manifest and in my activity I send my own broadcast using Intent intent = new Intent(com.android.camera.NEW_PICTURE); sendBroadcast(intent); then I successfully receive the broadcast and can see the log and toast window. Am I approaching this the right way? Is there any thing that I need to add? Thanks in advance for the help! Also, the NEW_PICTURE is defined in the camera source, see a thread here: stackoverflow.com/questions/3015448/…, when a picture is taken it calls sendBroadcast(new Intent(com.android.camera.NEW_PICTURE, mLastContentUri)); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Access Point Change detection (WiFi)
0 down vote favorite share [g+] share [fb] share [tw] Hello My application has to open a socket and send/receive some message to the server. This works fine but the problem is when I move inside the building, then the device changes from one access points to the other (same wifi network). In that moment, I have (1) to store the messages, (2) create again the socket and (3) send stored messages. I not able to recognize that moment and I am not storing all the messages. I detect “A Connection timed out” exception in the BufferedReader and then I start storing messages. I have tried to detect that moment by this registering to this Intents but I am still missing messages: //To detect Connectivity changes. cmIntent.addAction(ConnectivityManager.CONNECTIVITY_ACTION); cmReceiver = new connectionChangeReceiver(); context.registerReceiver(cmReceiver, cmIntent); intentFilter intentFilter = new IntentFilter(); intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); context.registerReceiver(cmReceiver, intentFilter); Thank you so much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
Follow the proper application/activity lifecycle. Let the user decide (by pressing the Back button), or call finish() in your activity. If you properly stop listening to the GPS, and were the only listener, the GPS icon will disappear after a few seconds. On Wednesday, March 28, 2012 4:58:08 AM UTC-4, Ankit Kasliwal wrote: so can you tell me the process On Wed, Mar 28, 2012 at 2:25 PM, Johan Appelgren johan.appelg...@gmail.com wrote: It is still the wrong thing to do. Just because the API allows you to do something wrong doesn't mean you have to do it. On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote: Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren wrote: Afaik you should never use android.os.Process.**killPro**cess or ActivityManager.**killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.**killProcess**(android.os.**Process.myPid()); System.exit(0); killThisPackageIfRunning(**HomeP**age.this,getApplication()**.** getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.** getSy**stemService(Context.**ACTIVITY_**SERVICE); activityManager.**killBackground**Processes(**packageName); } -- You received this 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
If you want to programatically leave (finish) the current activity you can use Activity.finish but in most cases you don't have to do anything, the user will either leave the current activity using their back or home button. Then all you need to do is properly handle the activity lifecycle events. In any case Android will take care of managing the process for you. http://developer.android.com/guide/topics/fundamentals/activities.html#ShuttingDown http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle On Wednesday, March 28, 2012 10:58:08 AM UTC+2, Ankit Kasliwal wrote: so can you tell me the process On Wed, Mar 28, 2012 at 2:25 PM, Johan Appelgren wrote: It is still the wrong thing to do. Just because the API allows you to do something wrong doesn't mean you have to do it. On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote: Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren wrote: Afaik you should never use android.os.Process.**killPro**cess or ActivityManager.**killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.**killProcess**(android.os.**Process.myPid()); System.exit(0); killThisPackageIfRunning(**HomeP**age.this,getApplication()**.** getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.** getSy**stemService(Context.**ACTIVITY_**SERVICE); activityManager.**killBackground**Processes(**packageName); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How I disable GPS when i exit Application
That's right, as Ibendlin says, don't kill the app off under any circumstances, it implies that your app is horribly broken (or at the very least, is just plain cheap). Instead, follow the lifecycle events.. kris On Wed, Mar 28, 2012 at 4:58 AM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: so can you tell me the process On Wed, Mar 28, 2012 at 2:25 PM, Johan Appelgren johan.appelg...@gmail.com wrote: It is still the wrong thing to do. Just because the API allows you to do something wrong doesn't mean you have to do it. On Wednesday, March 28, 2012 10:41:04 AM UTC+2, Ankit Kasliwal wrote: Johan i use that command the it's working properly. On Wed, Mar 28, 2012 at 12:39 PM, Johan Appelgren wrote: Afaik you should never use android.os.Process.killProcess or ActivityManager.killBackgroundProcesses. On Wednesday, March 28, 2012 7:50:40 AM UTC+2, Ankit Kasliwal wrote: Hello, I have problem in my application when i press exit i try to close all my activity but GPS running so how i disable GPS status and close my application (because when i go to Application manager it's show mw my application running and force close button enable) my code to close all activity are.. android.os.Process.killProcess(android.os.Process.myPid()); System.exit(0); killThisPackageIfRunning(HomePage.this,getApplication().getPackageName()); finish(); public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); activityManager.killBackgroundProcesses(packageName); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] User Interface
Use PhoneGap. On Wed, Mar 28, 2012 at 2:33 AM, kaushik p kaushiks...@gmail.com wrote: But Can we built the android gui with html,javaquey like IOS ? On Tue, Mar 27, 2012 at 8:50 AM, Mark Murphy mmur...@commonsware.com wrote: Use Eclipse and the Graphical Layout tool. On Tue, Mar 27, 2012 at 8:25 AM, kaushik p kaushiks...@gmail.com wrote: Hi all , Is there anyway we can build the user interface for the android in a very efficient and easy way. I have already tried droidraw , but is there something that is much better than that. -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ThanksRegards Kaushik Pendurthi http://kaushikpendurthi.blogspot.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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting Acquired: Selling Apps and Games to a Business/Investor
I'm working on an article about app developers selling their apps/games to larger companies for Phandroid.com and hoping some developers here may be able to offer some insight. If you have any experience, insight, stories to share, or people to refer, please respond here or shoot me an E-Mail at rob (at) phandroid (.) com Some specific questions I have: - Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? - If so, what are the requirements? - If not, is this something Google may plan for the future? - Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications? Perhaps creating a separate dev account for each account, or signing each app with a different key, or any other practices? - Can a developer change the signing key of an app upon request or through any automated means? I'm guessing the process is rudimentary and relegated to the huge companies buying big name apps like Draw Something, but curious to hear your thoughts. I'm still hoping Google will implement some simpler Developer features like Github-style organization/team management so multiple developers can administer an application in the Market/Play. Thanks 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] NFC bidirecional communication with Android ICS using two Nexus S
I am working on my Computer Science’s thesis about NFC and I’m facing some unexpected difficulties in Android ICS. My application basically needs to implement these steps (using two Nexus S): 1 – Phone one sends a NDEF message to the phone two; 2 –The phone two receives and process this message and returns a new message to the phone one; 3 – The phone one receives and stores this message. The problem is that I can only send one message by tap and along with it, I’m forced to touch the “Touch to Beam” UI. Isn’t it possible to have a bidirectional communication between two Android NFC enabled phones? I can even give up using NDEF if I can achieve the above behavior, mas I can’t accept that this limitation is real. In this way, it is not possible to write an application in a most used architecture where you need to perform an action based on a confirmation. The current onNdefPushComplete callback method will only tell my application that the message was correctly sent, but I have no way to know it was received by correct application and processed with success. Any help is appreciated. Best regards. Woody -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] fragment pagers continued
its possible in android fragment pagers that make the swiping between page continue from last to first not stopped mean if i have 4 fragment i can move from page 4 to page1 any help with that thx on advice -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Access Point Change detection
favorite share [g+] share [fb] share [tw] Hello, My application has to open a socket and send/receive some message to the server. This works fine but the problem is when I move inside the building, then the device changes from one access points to the other (same wifi network). In that moment, I have (1) to store the messages, (2) create again the socket and (3) send stored messages. I not able to recognize that moment and I am not storing all the messages. I detect “A Connection timed out” exception in the BufferedReader and then I start storing messages. I have tried to detect that moment by this registering to this Intents but I am still missing messages: //To detect Connectivity changes. cmIntent.addAction(ConnectivityManager.CONNECTIVITY_ACTION); cmReceiver = new connectionChangeReceiver(); context.registerReceiver(cmReceiver, cmIntent); intentFilter intentFilter = new IntentFilter(); intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); context.registerReceiver(cmReceiver, intentFilter); Thank you so much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
- Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? No. They only care about your developer account and signing key. - If so, what are the requirements? - If not, is this something Google may plan for the future? Am I going to win Mega million jackpot this time? - Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications? Perhaps creating a separate dev account for each account, or signing each app with a different key, or any other practices? No. And why should they. See the answer to the first question. - Can a developer change the signing key of an app upon request or through any automated means? There is no way a signing key could be changed either manually or automated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: difference between service and thread android
It's like asking what is the difference between apples and oranges. Did you even bother to read the developer docs about services and threads? It should be clear if you take time to read. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
To say why should they seems like a pretty short-sighted response. That would be like someone 15 years ago suggesting buying/selling domain names or websites as a ludicrous concept. Apps and Games are already the foundation of many multi-million dollar companies. Many of them are rags-to-riches stories. Others are earning an honest living through app sales and ad revenue. Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. However sarcastic your response, thanks for replying. On Wed, Mar 28, 2012 at 10:10 AM, Nadeem Hasan nha...@nadmm.com wrote: - Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? No. They only care about your developer account and signing key. - If so, what are the requirements? - If not, is this something Google may plan for the future? Am I going to win Mega million jackpot this time? - Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications? Perhaps creating a separate dev account for each account, or signing each app with a different key, or any other practices? No. And why should they. See the answer to the first question. - Can a developer change the signing key of an app upon request or through any automated means? There is no way a signing key could be changed either manually or automated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: google io
Google has changed the rules somewhat, so the likelihood of scalpers getting tickets is reduced. Google I/O 2012 registration terms and conditions: - An individual can only purchase one ticket. - Tickets may only be used by original purchaser. Tickets may not be resold. The resale of a ticket will render the ticket null and void without any responsibility to Google. - Tickets may be transferred at Google’s sole discretion. Google reserves the right to reject any transfer requests. - Persons who are: 1. residents of embargoed countries, 2. ordinarily resident in embargoed countries, or 3. otherwise prohibited by applicable export controls and sanctions programs may not attend the conference. - In order to register, users must have a Google Account and access to Google+. - Photographs and/or video taken at Google I/O by Google, or others on behalf of Google, may include your image, voice, or likeness. You agree that Google may use such photographs and/or video recordings for any purpose without compensation to you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. That would be like someone 15 years ago suggesting buying/selling domain names or websites as a ludicrous concept. Apps and Games are already the foundation of many multi-million dollar companies. Many of them are rags-to-riches stories. Others are earning an honest living through app sales and ad revenue. Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. However sarcastic your response, thanks for replying. While you seem to believe this to be a serious issue -- and it may be -- but the Marketplace is fairly lax about these kinds of things. It does seem that they would want some kind of facility for handling this stuff, but as far as I've seen, the market tends to be fairly hands off, and while you're allowed to publish apps in it, you don't really get much help beyond that. (This doesn't seem to be too much different from any other app marketplace either..) I'm not sure how many apps form the foundation of multi-million dollar companies, but I sure can't think of many, and I would suspect that in the cases where this does happen, the companies handle it without help from the market.. 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] Re: google io
That doesn't reduce the odds of scalpers getting tickets. It reduces the odds of people buying tickets from scalpers actually being able to use them. On Wed, Mar 28, 2012 at 2:31 AM, John Coryat cor...@gmail.com wrote: Google has changed the rules somewhat, so the likelihood of scalpers getting tickets is reduced. Google I/O 2012 registration terms and conditions: An individual can only purchase one ticket. Tickets may only be used by original purchaser. Tickets may not be resold. The resale of a ticket will render the ticket null and void without any responsibility to Google. Tickets may be transferred at Google’s sole discretion. Google reserves the right to reject any transfer requests. Persons who are: residents of embargoed countries, ordinarily resident in embargoed countries, or otherwise prohibited by applicable export controls and sanctions programs may not attend the conference. In order to register, users must have a Google Account and access to Google+. Photographs and/or video taken at Google I/O by Google, or others on behalf of Google, may include your image, voice, or likeness. You agree that Google may use such photographs and/or video recordings for any purpose without compensation to 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor
I'm also not sure I believe your analogy to domains. For domains, it seems like there's something that can suddenly become popular overnight and have a high contention, because you can simply rip down what's there and put up something new. This is like billboard space on a suddenly busy roadway. But it's not really what happens with apps. Apps have some amount of inherent value, they're not something that really changes statically (except for when they're first released) and become popular and less popular in waves, they're not commodities... So while I see people trading advertising space and domains, I don't see people dealing in apps as commodities... kris On Wed, Mar 28, 2012 at 10:34 AM, Kristopher Micinski krismicin...@gmail.com wrote: On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. That would be like someone 15 years ago suggesting buying/selling domain names or websites as a ludicrous concept. Apps and Games are already the foundation of many multi-million dollar companies. Many of them are rags-to-riches stories. Others are earning an honest living through app sales and ad revenue. Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. However sarcastic your response, thanks for replying. While you seem to believe this to be a serious issue -- and it may be -- but the Marketplace is fairly lax about these kinds of things. It does seem that they would want some kind of facility for handling this stuff, but as far as I've seen, the market tends to be fairly hands off, and while you're allowed to publish apps in it, you don't really get much help beyond that. (This doesn't seem to be too much different from any other app marketplace either..) I'm not sure how many apps form the foundation of multi-million dollar companies, but I sure can't think of many, and I would suspect that in the cases where this does happen, the companies handle it without help from the market.. 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] C# webclient in Android/Java
you need use KSOAP2 to do it Vào 15:16 Ngày 27 tháng 3 năm 2012, Brofalad hihans...@gmail.com đã viết: Hi, I have this example code in C#, but I what to use Android/Java C#/.NET var baseUrl = *https://eventor.orientering.se/api/*https://eventor.orientering.se/api/ ; var client = new System.Net.WebClient(); client.Headers.Add(ApiKey, 99xd**0307); var bytes = client.DownloadData(baseUrl + events?fromDate=2010-04-01**toDate=2010-04-30); var responseString = System.Text.Encoding.UTF8.**GetString(bytes); How do I convert this to Java? //Brofalad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *NGO HAI NAM **Hanoi University of Technology* *** *http://www.google.com.vn/url?sa=tsource=webcd=2ved=0CCQQFjABurl=http%3A%2F%2Fwww.hut.edu.vn%2Fweb%2Fen%2Fhome%3Bjsessionid%3D9418B4B925AE17FAD70908946180BE85ei=kAuaTLf3A8LBcZqMgdoHusg=AFQjCNEPs2jwxh5k8qwtq-zql1D7y4EWPAsig2=aMMwo80lB-gNU1JaNCEVQQ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wednesday, March 28, 2012 10:20:22 AM UTC-4, Rob Jackson wrote: Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. Because that is one of the the primary business function of a registrar. Primary business function of Google play is to facilitate buying and selling of application not the application ownership. However sarcastic your response, thanks for replying. I was actually trying to be funny since you are trying to create a story where no story exists. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding application created data access on android phone
Yes, you can't. You have three choices: 1) Build extra functionality into your app to copy the database to the sdcard or make it world-readable 2) Make your apk debuggable and use run-as your.package.name from the adb shell to copy the database. You may need to use cat and a redirect if your device does not have a cp command. 3) Root the device or do your testing on the emulator which as your discovered is 'rooted' by default. On Tuesday, March 27, 2012 6:05:04 AM UTC-4, ashiq sayyad wrote: Hi, Hope all doing well. My application created on database programatically.. On emulator,I can see the created database using File Explorer under data folder .. But on device I cant see my app data.. Thanks Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
Thanks for the thoughtful response, Kristopher. And Nadeem, I certainly appreciate hearing all angles/opinions, but perhaps you should be a bit more open minded regarding the possibility that other people have different opinions than you're own? And they might be right? I know (first hand) of app developers facing issues/problems with this, which is why I began researching in the first place. To say it's a non story is a bit premature. And given the above, probably wrong. In the very least I think it's an interesting discussion. On Wed, Mar 28, 2012 at 10:38 AM, Nadeem Hasan nha...@nadmm.com wrote: On Wednesday, March 28, 2012 10:20:22 AM UTC-4, Rob Jackson wrote: Google generates revenue by facilitating a marketplace for these goods to be bought and sold, and to be quite honest, transferring ownership of an app should be no more foreign a concept than a registrar allowing the transfer of a domain name. Because that is one of the the primary business function of a registrar. Primary business function of Google play is to facilitate buying and selling of application not the application ownership. However sarcastic your response, thanks for replying. I was actually trying to be funny since you are trying to create a story where no story exists. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. Not to that particular question (Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications?). There are lots of things where we could use best practices. Providing advice on the transfer of assets as part of corporate acquisitions would be relatively low on my priority list, because it affects relatively few developers. That being said, I think there is a slightly different answer for: Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? My understanding is that if you can get in touch with somebody involved in Google Play that they can do this. Getting in touch with somebody involved in Google Play can be troublesome. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor
Thanks Mark. Can you expound a bit on your meaning of troublesome? On Wed, Mar 28, 2012 at 10:31 AM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. Not to that particular question (Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications?). There are lots of things where we could use best practices. Providing advice on the transfer of assets as part of corporate acquisitions would be relatively low on my priority list, because it affects relatively few developers. That being said, I think there is a slightly different answer for: Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? My understanding is that if you can get in touch with somebody involved in Google Play that they can do this. Getting in touch with somebody involved in Google Play can be troublesome. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
He means that if you email them they are unlikely to respond. Which is why you see so many complaints of people having their app banned and not being able to get it put up again. kris On Wed, Mar 28, 2012 at 10:51 AM, Rob Jackson robjackso...@gmail.com wrote: Thanks Mark. Can you expound a bit on your meaning of troublesome? On Wed, Mar 28, 2012 at 10:31 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. Not to that particular question (Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications?). There are lots of things where we could use best practices. Providing advice on the transfer of assets as part of corporate acquisitions would be relatively low on my priority list, because it affects relatively few developers. That being said, I think there is a slightly different answer for: Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? My understanding is that if you can get in touch with somebody involved in Google Play that they can do this. Getting in touch with somebody involved in Google Play can be troublesome. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
Nigh impossible.based on what I have read in this list... Mark (not Murphy) On Mar 28, 2012 7:52 AM, Rob Jackson robjackso...@gmail.com wrote: Thanks Mark. Can you expound a bit on your meaning of troublesome? On Wed, Mar 28, 2012 at 10:31 AM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Mar 28, 2012 at 10:20 AM, Rob Jackson robjackso...@gmail.com wrote: To say why should they seems like a pretty short-sighted response. Not to that particular question (Does Google recommend any best practices for Android Developers so that they may one day sell their app with minimal complications?). There are lots of things where we could use best practices. Providing advice on the transfer of assets as part of corporate acquisitions would be relatively low on my priority list, because it affects relatively few developers. That being said, I think there is a slightly different answer for: Does Google currently facilitate the transfer of acquired apps/games from one developer account to another? My understanding is that if you can get in touch with somebody involved in Google Play that they can do this. Getting in touch with somebody involved in Google Play can be troublesome. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wednesday, March 28, 2012 10:45:27 AM UTC-4, Rob Jackson wrote: And Nadeem, I certainly appreciate hearing all angles/opinions, but perhaps you should be a bit more open minded regarding the possibility that other people have different opinions than you're own? And they might be right? I know (first hand) of app developers facing issues/problems with this, which is why I began researching in the first place. Of course there could be a few developers facing this issue. But as I said, I don't see Google getting involved in this. There is a lot of history that would validate this. Nothing to do with me being open minded or not, just simple facts that have come to pass. To say it's a non story is a bit premature. And given the above, probably wrong. In the very least I think it's an interesting discussion. It may be premature but nothing I have seen in this discussion that would make it wrong. And I agree, it is an interesting discussion but one that does not belong here. This a place for technical matters regarding Android development. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting Acquired: Selling Apps and Games to a Business/Investor
On Wed, Mar 28, 2012 at 10:51 AM, Rob Jackson robjackso...@gmail.com wrote: Thanks Mark. Can you expound a bit on your meaning of troublesome? Expanding on the other answers you have already received... For rank-and-file developers, getting a response from Google Play is akin to waiting for Godot. OTOH, I imagine that Google Play has Rovio on speed dial, and not just for hints on how to get past a certain level. A firm interesting in acquiring an app developer (or just acquiring rights to that app) should, as part of its prep work, attempt to get in touch with Google Play, probably through back-channel means (vs. randomly posting on a Play support Google Group). That will smooth the transition process if/when the acquisition occurs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Missing classes when running in emulator (new to R17)
So, I just updated SDK to R17, and updated my ADT to match. I just noticed that it doesn't appear to be including my third party libraries any more. I have the commons net 1.4.1 jar in my project, everything compiles like a champ, but when it runs I get a runtime error saying it cannot find a class in that JAR. Any ideas?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Missing classes when running in emulator (new to R17)
Rename your lib directory to libs. Clean and rebuild the project and try again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Missing classes when running in emulator (new to R17)
http://stackoverflow.com/questions/9824491/android-sdk-r17-ruins-working-projects/9824539#9824539 On Wed, Mar 28, 2012 at 11:16 AM, RedBullet scottedchap...@gmail.com wrote: So, I just updated SDK to R17, and updated my ADT to match. I just noticed that it doesn't appear to be including my third party libraries any more. I have the commons net 1.4.1 jar in my project, everything compiles like a champ, but when it runs I get a runtime error saying it cannot find a class in that JAR. Any ideas?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Access Point Change detection
When the connectivity changes, some (it seems most) firmwares force-close any currently open connections, but some do not (two examples: Motorola Milestone with 2.1, and a much more recent HTC Incredible S with 2.3...). Given the latter, I, too, had to implement code to close and reopen TCP/IP sockets upon connectivity changes. On the surface, it's pretty simple: just watch for CONNECTIVITY_ACTION. But, as it often happens, it's complicated by various device- and firmware- specific erm... quirks... In particular, I've seen firmwares send a DISCONNECT event for a connection type that was disabled a long time ago (like, disconnect Mobile, connect WiFi, then five minutes later - hey, we're disconnected from Mobile, really). I've seen a CONNECT event for WiFi being sent twice when swtiching from Mobile, the first time being before the new connection is usable. CONNECTIVITY_ACTION events are also sent for network types that have nothing to do with general purpose Internet connectivity, such as TYPE_SUPL which can come and go without affecting the Internet. So, to summarize: 1) you're on the right track with CONNECTIVITY_ACTION but expect to do a lot of testing and debugging before it really works. 2) based on my experience, watching WifiManager events isn't necessary to detect general purpose connectivty changes. And finally, if your code misses messages, it means that your store-and-send logic isn't implemented correctly. Debug and fix it. -- K On 03/28/2012 02:57 PM, Hera wrote: favorite share [g+] share [fb] share [tw] Hello, My application has to open a socket and send/receive some message to the server. This works fine but the problem is when I move inside the building, then the device changes from one access points to the other (same wifi network). In that moment, I have (1) to store the messages, (2) create again the socket and (3) send stored messages. I not able to recognize that moment and I am not storing all the messages. I detect “A Connection timed out” exception in the BufferedReader and then I start storing messages. I have tried to detect that moment by this registering to this Intents but I am still missing messages: //To detect Connectivity changes. cmIntent.addAction(ConnectivityManager.CONNECTIVITY_ACTION); cmReceiver = new connectionChangeReceiver(); context.registerReceiver(cmReceiver, cmIntent); intentFilter intentFilter = new IntentFilter(); intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); intentFilter.addAction(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); context.registerReceiver(cmReceiver, intentFilter); Thank you so much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Missing classes when running in emulator (new to R17)
Thanks! On Wednesday, March 28, 2012 11:22:38 AM UTC-4, Nadeem Hasan wrote: Rename your lib directory to libs. Clean and rebuild the project and try again. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: OutofMemory exception
Its because ur application is leaking memory . are you using loads of drawables in ur application ??? On Wed, Mar 28, 2012 at 1:22 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Out == No more of = Related to something Memory = those little ants that live inside your device maintaining your data So you have no more little ants left. Seriously, I vote for this one as the dumbest post of the year -- and it's not even the end of the first quarter. On Wednesday, March 28, 2012 3:44:03 PM UTC+8, Kirupa wrote: OutofMemory exception is in android. Do you know the reason for it? How we can solve 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
[android-developers] Who/what is the user
I am just starting to learn Android programming (but have 50 years of programming experience). In the developer.android.com/guide/topics/fundamentals.html I see The Android operating system is a multi-user Linux system in which each application is a different user. So this says that an application is a user. Further down, under Application Components, Activities, I see An /activity/ represents a single screen with a user interface. Has the Dev Guide now switched to a human user? As I continue through the Dev Guide, how do I determine when it is referring to a human user versus a software (application) user? --Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Start service
Use *context.startService(new Intent(this,aService.class));*to start the service . It is because Broadcastreceiver class does not extend the Context class so we have to use the context provided in the onReceive method. Cheers Tarun On Tue, Mar 27, 2012 at 6:18 PM, jugni jugni1sm...@gmail.com wrote: write like context.startservice(); On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote: Hi there, I am trying to start a service from the BroadcastReceiver, but I keep getting the startService line marked as an error (The constructor Intent(alarmReceiver, ClassaService) is undefined) public class alarmReceiver extends BroadcastReceiver{ NotificationManager notifMgr; private static final int NOTIFICATION_ID = 0; @Override public void onReceive(Context context, Intent intent) { startService(new Intent(this,aService.class)); } } Any help is greatly appreciated. Thanks!! On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote: Hi there, I am trying to start a service from the BroadcastReceiver, but I keep getting the startService line marked as an error (The constructor Intent(alarmReceiver, ClassaService) is undefined) public class alarmReceiver extends BroadcastReceiver{ NotificationManager notifMgr; private static final int NOTIFICATION_ID = 0; @Override public void onReceive(Context context, Intent intent) { startService(**new Intent(this,aService.class)); } } Any help is greatly 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Who/what is the user
99% of the time, it is referring to a human user. The only times user will be a Linux user account should be fairly obvious, because it will be in the context of Linux user accounts or application user IDs. On Wed, Mar 28, 2012 at 11:32 AM, Bob Plantz rgpla...@gmail.com wrote: I am just starting to learn Android programming (but have 50 years of programming experience). In the developer.android.com/guide/topics/fundamentals.html I see The Android operating system is a multi-user Linux system in which each application is a different user. So this says that an application is a user. Further down, under Application Components, Activities, I see An activity represents a single screen with a user interface. Has the Dev Guide now switched to a human user? As I continue through the Dev Guide, how do I determine when it is referring to a human user versus a software (application) user? --Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!
Thanks guys for the help, the problem was solved just by making two different classes, one for buttons and listviews and the other is just for textview...thanks again... Justin i hope u ll get will soon mate, take care, cheers. On Mar 25, 5:43 am, Justin Anderson magouyaw...@gmail.com wrote: Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware 2012/3/24 Kostya Vasilyev kmans...@gmail.com 25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id No. The two-argument constructor takes a *layout* id: https://github.com/android/platform_frameworks_base/blob/master/core/... and it's assumed that the layout consists of just one TextView at the root. https://github.com/android/platform_frameworks_base/blob/master/core/... So: res/layout/item_simple.xml: ?xml version=1.0 encoding=utf-8? TextView / and then: new ArrayAdapter(this, R.layout.item_simple) Constructor #2 takes a layout id and a view id: https://github.com/android/platform_frameworks_base/blob/master/core/... and uses findViewId with the last (third) parameter locate the text view within the layout: https://github.com/android/platform_frameworks_base/blob/master/core/... res/layout/item_complex: ?xml version=1.0 encoding=utf-8? LinearLayout ... or something else TextView android:id=@+id/item_text_view / ImageView ... or something else / /LinearLayout and then new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Who/what is the user
On 3/28/2012 8:37 AM, Mark Murphy wrote: 99% of the time, it is referring to a human user. The only times user will be a Linux user account should be fairly obvious, because it will be in the context of Linux user accounts or application user IDs. Thank you, Mark, that's very helpful. Having written a textbook (on assembly language), I know first-hand how difficult it is to make these things clear. Writing is God's way of showing us how unclear our thinking is. --Bob On Wed, Mar 28, 2012 at 11:32 AM, Bob Plantzrgpla...@gmail.com wrote: I am just starting to learn Android programming (but have 50 years of programming experience). In the developer.android.com/guide/topics/fundamentals.html I see The Android operating system is a multi-user Linux system in which each application is a different user. So this says that an application is a user. Further down, under Application Components, Activities, I see An activity represents a single screen with a user interface. Has the Dev Guide now switched to a human user? As I continue through the Dev Guide, how do I determine when it is referring to a human user versus a software (application) user? --Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] C# webclient in Android/Java
Use any Web Services concept and do it. SOAP or HTTPost !! On Wed, Mar 28, 2012 at 7:24 PM, hnlovefb hnlov...@gmail.com wrote: you need use KSOAP2 to do it Vào 15:16 Ngày 27 tháng 3 năm 2012, Brofalad hihans...@gmail.com đã viết: Hi, I have this example code in C#, but I what to use Android/Java C#/.NET var baseUrl = *https://eventor.orientering.se/api/*https://eventor.orientering.se/api/ ; var client = new System.Net.WebClient(); client.Headers.Add(ApiKey, 99xd**0307); var bytes = client.DownloadData(baseUrl + events?fromDate=2010-04-01**toDate=2010-04-30); var responseString = System.Text.Encoding.UTF8.**GetString(bytes); How do I convert this to Java? //Brofalad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *NGO HAI NAM **Hanoi University of Technology* *** *http://www.google.com.vn/url?sa=tsource=webcd=2ved=0CCQQFjABurl=http%3A%2F%2Fwww.hut.edu.vn%2Fweb%2Fen%2Fhome%3Bjsessionid%3D9418B4B925AE17FAD70908946180BE85ei=kAuaTLf3A8LBcZqMgdoHusg=AFQjCNEPs2jwxh5k8qwtq-zql1D7y4EWPAsig2=aMMwo80lB-gNU1JaNCEVQQ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Creating a plug-in in android
Why you want to create a plugin ? You can just make it as a Library or Anyone who wants this feature will implement your .APK ! On Wed, Mar 28, 2012 at 11:27 AM, praveen mr praveenmr...@gmail.com wrote: Hi, Am building an application which will list all the printers connected in a wireless network. am able to create the android application apk successfully. Now i want to make this application as a plug-in which will support on android browsers is it possible to do so? and if so how we can create a plug-in from an existing android application. please note that i have used ndk for my app and created an so file which is used in my app. Thanks in advance Praveen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bidirecional communication with Android ICS using two Nexus S
Are you using the openfire server or trying some how to connect driectly between two phones? If so, how are you publishing and discovering an IP? On Wed, Mar 28, 2012 at 4:46 AM, Woody Lemes N. Costa woody.co...@gmail.com wrote: I am working on my Computer Science’s thesis about NFC and I’m facing some unexpected difficulties in Android ICS. My application basically needs to implement these steps (using two Nexus S): 1 – Phone one sends a NDEF message to the phone two; 2 –The phone two receives and process this message and returns a new message to the phone one; 3 – The phone one receives and stores this message. The problem is that I can only send one message by tap and along with it, I’m forced to touch the “Touch to Beam” UI. Isn’t it possible to have a bidirectional communication between two Android NFC enabled phones? I can even give up using NDEF if I can achieve the above behavior, mas I can’t accept that this limitation is real. In this way, it is not possible to write an application in a most used architecture where you need to perform an action based on a confirmation. The current onNdefPushComplete callback method will only tell my application that the message was correctly sent, but I have no way to know it was received by correct application and processed with success. Any help is appreciated. Best regards. Woody -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!
Justin i hope u ll get will soon mate, take care, cheers. Thanks, I'm better now... I can actually breathe and I'm no longer on pain meds, so hopefully next time my help will actually help... :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/3/28 Soyer mblack...@gmail.com Thanks guys for the help, the problem was solved just by making two different classes, one for buttons and listviews and the other is just for textview...thanks again... Justin i hope u ll get will soon mate, take care, cheers. On Mar 25, 5:43 am, Justin Anderson magouyaw...@gmail.com wrote: Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware 2012/3/24 Kostya Vasilyev kmans...@gmail.com 25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id No. The two-argument constructor takes a *layout* id: https://github.com/android/platform_frameworks_base/blob/master/core/. .. and it's assumed that the layout consists of just one TextView at the root. https://github.com/android/platform_frameworks_base/blob/master/core/. .. So: res/layout/item_simple.xml: ?xml version=1.0 encoding=utf-8? TextView / and then: new ArrayAdapter(this, R.layout.item_simple) Constructor #2 takes a layout id and a view id: https://github.com/android/platform_frameworks_base/blob/master/core/. .. and uses findViewId with the last (third) parameter locate the text view within the layout: https://github.com/android/platform_frameworks_base/blob/master/core/. .. res/layout/item_complex: ?xml version=1.0 encoding=utf-8? LinearLayout ... or something else TextView android:id=@+id/item_text_view / ImageView ... or something else / /LinearLayout and then new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] android tablet 3.0
IN the attached screenshot how to create the left most views for android tablet 3.0 You do some programming... And then make it look like that. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 28, 2012 at 4:53 AM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi friends, IN the attached screenshot how to create the left most views for android tablet 3.0 -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Run Shell Script file On Android Embedded Device using System function in Android NDK
All Here i want to run .sh file via system call in android NDK. I able to run cp,rm command via system call. but sh command is not working via system call. I also installed busy-box on android.I am using below code.I set all permission on test.sh. Code : #include stdlib.h #include stdio.h #include android/log.h #include jni.h #define LOG_TAG Demo #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) void Java_com_ndkdemo_NDKdemoActivity_systemcall(JNIEnv * env, jobject obj) { int result; result = system(cp /mnt/sdcard/test /Download); LOGD(result is cp %d, result); result = system(sh ./test.sh); LOGD(result of test.sh is %d, result); } Output : result is cp 0. result of test.sh is 0. Here i am getting 0 in system(sh ./test.sh); but not started the test.sh script. cant get output Hi on console. test.sh contains #!/system/bin/ echo Hi If i am executing direct command on prompt than its working fine and its given output Hi on console. Please Help me to figure out 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
Re: [android-developers] Re: Are we allowed to email Google Play customers?
If you see the customer info, there is a field called Email Marketing. I've never seen any customer with Yes there, but if you see a Yes there, by all means, do it. Where do you go to see that info? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 28, 2012 at 1:29 AM, Zsolt Vasvari zvasv...@gmail.com wrote: If you see the customer info, there is a field called Email Marketing. I've never seen any customer with Yes there, but if you see a Yes there, by all means, do it. Otherwise, it's a No, and if I developer contacted me with spam marketing, I would certain to report that developer to Google. On Wednesday, March 28, 2012 12:01:24 AM UTC+8, Damir wrote: I can't seem to find a concrete answer on this so I'm reaching out for some help. If I sell an app on Google Play, am I allowed to contact those customers (promotions, updates, stay in touch...)? I've seen some reports that is not permissable according to the rules but then I've seen people comment that they do it, so I'm not sure. And to make it clear, I'm not talking about contacting users who post feedback, but actual users of my app. In short, can I do CRM to my customers who purchase on Google Play. Much appreciate any feedback that I can get. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity
Thanks Justin Anderson, but when in our class which does not extend any activity thenh we can write any control like ((Activity) context).findviewbyid(R.id. button1); Ok... but that has nothing to do with preferences. Thats way i want to write this addprefernce.. line. You can't do that. You would have to write your own XML layout and manually tie it to the same preferences... meaning you would use the same key that your preference xml does. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 27, 2012 at 10:46 PM, jagruti sangani jugni1sm...@gmail.comwrote: Thanks Justin Anderson, but when in our class which does not extend any activity thenh we can write any control like ((Activity) context).findviewbyid(R.id.button1); Thats way i want to write this addprefernce.. line. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 bidirecional communication with Android ICS using two Nexus S
mdp, no no, I'm talking about NFC (Near Field Communication) in p2p mode, there is no IP involved in such techonology. Em quarta-feira, 28 de março de 2012 13h20min48s UTC-3, mpd escreveu: Are you using the openfire server or trying some how to connect driectly between two phones? If so, how are you publishing and discovering an IP? On Wed, Mar 28, 2012 at 4:46 AM, Woody Lemes N. Costa woody.co...@gmail.com wrote: I am working on my Computer Science’s thesis about NFC and I’m facing some unexpected difficulties in Android ICS. My application basically needs to implement these steps (using two Nexus S): 1 – Phone one sends a NDEF message to the phone two; 2 –The phone two receives and process this message and returns a new message to the phone one; 3 – The phone one receives and stores this message. The problem is that I can only send one message by tap and along with it, I’m forced to touch the “Touch to Beam” UI. Isn’t it possible to have a bidirectional communication between two Android NFC enabled phones? I can even give up using NDEF if I can achieve the above behavior, mas I can’t accept that this limitation is real. In this way, it is not possible to write an application in a most used architecture where you need to perform an action based on a confirmation. The current onNdefPushComplete callback method will only tell my application that the message was correctly sent, but I have no way to know it was received by correct application and processed with success. Any help is appreciated. Best regards. Woody -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 get the TextView values in ListView
String[] data; public void onItemClick(AdapterView? arg0, View arg1, int position, long id) { String temp= data[position]; TextView tv = (TextView)findViewById(R.id. videoId); tv.setText(temp); } This is not correct... He is not wanting to SET the text of the text view. He is wanting to GET the text from the text view. Also, you can't do findViewById in here because every list view row has the same id. You are going to get the first one every time doing this. i want to extract the textview values of that corresponding row. No you don't... The textviews in a list view are intended for display purposes only. They are intended to be a user display of the back-end data that you have, meaning your adapter How to get these values..??? What you need to do is access the DATA in your adapter at the given position... So there are a couple ways to get this data... If you have a refrence to your adapter, you could do something like this: String value = (String)_adapter.getItem(position); Or, if you have direct access to your data structure, say, an array of strings, you could do something like this: String value = stringVals[position]; Hope that helps... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 27, 2012 at 10:07 PM, BNReddy narayanareddy...@gmail.comwrote: String[] data; public void onItemClick(AdapterView? arg0, View arg1, int position, long id) { String temp= data[position]; TextView tv = (TextView)findViewById(R.id.videoId); tv.setText(temp); } -- Regards, Narayanareddy.B 9032478372 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 different button design using xml code
http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 27, 2012 at 5:02 AM, chayan chowdhury chowdhury.andr...@gmail.com wrote: hi i want to create different size button like circle,oval using xml codeing.can u help me anyone.so i ll be greatful to u people. regards chowdhury -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two ListViews and viewpager
Are your listviews taking advantage of the ViewHolder pattern? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 27, 2012 at 10:46 AM, Frederic frederic.re...@gmail.com wrote: I have an activity that has a layout with a Listview and a Viewpager in it. The Viewpager is basically another listView that can change pages. So the data description for the first ListView is contained in the view pager listView. So one row of data in the first listView correspond to one row of data in the ViewPager. When I scroll the first ListView, I want the second to scroll at the same time and vice-versa. I've tried many things (setPositionFromTop, smoothScrollTo..). Nothing seems to give me the performance needed. I feel this should be a common problem as this behaves like a spreadsheet program. Do you have any suggestion as to how to scroll two list view together with good performance (no lag). 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] NFC bidirecional communication with Android ICS using two Nexus S
Oh yes sorry. I have not worked on NFC yet. Maybe some one that has will reply On Wed, Mar 28, 2012 at 9:44 AM, Woody Lemes N. Costa woody.co...@gmail.com wrote: mdp, no no, I'm talking about NFC (Near Field Communication) in p2p mode, there is no IP involved in such techonology. Em quarta-feira, 28 de março de 2012 13h20min48s UTC-3, mpd escreveu: Are you using the openfire server or trying some how to connect driectly between two phones? If so, how are you publishing and discovering an IP? On Wed, Mar 28, 2012 at 4:46 AM, Woody Lemes N. Costa woody.co...@gmail.com wrote: I am working on my Computer Science’s thesis about NFC and I’m facing some unexpected difficulties in Android ICS. My application basically needs to implement these steps (using two Nexus S): 1 – Phone one sends a NDEF message to the phone two; 2 –The phone two receives and process this message and returns a new message to the phone one; 3 – The phone one receives and stores this message. The problem is that I can only send one message by tap and along with it, I’m forced to touch the “Touch to Beam” UI. Isn’t it possible to have a bidirectional communication between two Android NFC enabled phones? I can even give up using NDEF if I can achieve the above behavior, mas I can’t accept that this limitation is real. In this way, it is not possible to write an application in a most used architecture where you need to perform an action based on a confirmation. The current onNdefPushComplete callback method will only tell my application that the message was correctly sent, but I have no way to know it was received by correct application and processed with success. Any help is appreciated. Best regards. Woody -- You received this 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] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity
It would really help if you learned a bit more about Java. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: google io
That doesn't reduce the odds of scalpers getting tickets. It reduces the odds of people buying tickets from scalpers actually being able to use them. Caveat emptor! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bluetooth keyboard
Hi All, I wanted to programatically detect if bluetooth keyboard is connected to my device. Is there any way to achieve it in Java? Thanks, Channa -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!
Penalty for wrong answer: you have to share your pain meds ;) Mark On Mar 24, 2012 6:45 PM, Justin Anderson magouyaw...@gmail.com wrote: Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/3/24 Kostya Vasilyev kmans...@gmail.com 25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id No. The two-argument constructor takes a *layout* id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96 and it's assumed that the layout consists of just one TextView at the root. https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378 So: res/layout/item_simple.xml: ?xml version=1.0 encoding=utf-8? TextView / and then: new ArrayAdapter(this, R.layout.item_simple) Constructor #2 takes a layout id and a view id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107 and uses findViewId with the last (third) parameter locate the text view within the layout: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381 res/layout/item_complex: ?xml version=1.0 encoding=utf-8? LinearLayout ... or something else TextView android:id=@+id/item_text_view / ImageView ... or something else / /LinearLayout and then new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Access Point Change detection
On Wed, Mar 28, 2012 at 8:28 AM, Kostya Vasilyev kmans...@gmail.com wrote: When the connectivity changes, some (it seems most) firmwares force-close any currently open connections, but some do not (two examples: Motorola Milestone with 2.1, and a much more recent HTC Incredible S with 2.3...). We have had fixes around resetting connections with connectivityservice controlling it now. It would be good to know if there are devices beyond ICS that still have issues around not resetting socket connections when a network goes away. Ideally, apps should not have to listen to any broadcasts to handle network switches and should get resets on an existing socket. Irfan Given the latter, I, too, had to implement code to close and reopen TCP/IP sockets upon connectivity changes. On the surface, it's pretty simple: just watch for CONNECTIVITY_ACTION. But, as it often happens, it's complicated by various device- and firmware- specific erm... quirks... In particular, I've seen firmwares send a DISCONNECT event for a connection type that was disabled a long time ago (like, disconnect Mobile, connect WiFi, then five minutes later - hey, we're disconnected from Mobile, really). I've seen a CONNECT event for WiFi being sent twice when swtiching from Mobile, the first time being before the new connection is usable. CONNECTIVITY_ACTION events are also sent for network types that have nothing to do with general purpose Internet connectivity, such as TYPE_SUPL which can come and go without affecting the Internet. So, to summarize: 1) you're on the right track with CONNECTIVITY_ACTION but expect to do a lot of testing and debugging before it really works. 2) based on my experience, watching WifiManager events isn't necessary to detect general purpose connectivty changes. And finally, if your code misses messages, it means that your store-and-send logic isn't implemented correctly. Debug and fix it. -- K On 03/28/2012 02:57 PM, Hera wrote: favorite share [g+] share [fb] share [tw] Hello, My application has to open a socket and send/receive some message to the server. This works fine but the problem is when I move inside the building, then the device changes from one access points to the other (same wifi network). In that moment, I have (1) to store the messages, (2) create again the socket and (3) send stored messages. I not able to recognize that moment and I am not storing all the messages. I detect “A Connection timed out” exception in the BufferedReader and then I start storing messages. I have tried to detect that moment by this registering to this Intents but I am still missing messages: //To detect Connectivity changes. cmIntent.addAction(**ConnectivityManager.**CONNECTIVITY_ACTION); cmReceiver = new connectionChangeReceiver(); context.registerReceiver(**cmReceiver, cmIntent); intentFilter intentFilter = new IntentFilter(); intentFilter.addAction(**WifiManager.SUPPLICANT_** CONNECTION_CHANGE_ACTION); intentFilter.addAction(**WifiManager.NETWORK_STATE_**CHANGED_ACTION); intentFilter.addAction(**WifiManager.SUPPLICANT_STATE_**CHANGED_ACTION); context.registerReceiver(**cmReceiver, intentFilter); Thank you so much -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-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
Re: [android-developers] Re: Hello everyone, i couldn't figure out what this error in the logcat means!!!
I second that motion. Taking Vicodin Ex with a glass of red wine after my own deviated septum surgery some twenty years ago was great :) -- K On 03/28/2012 09:36 PM, Mark Phillips wrote: Penalty for wrong answer: you have to share your pain meds ;) Mark On Mar 24, 2012 6:45 PM, Justin Anderson magouyaw...@gmail.com mailto:magouyaw...@gmail.com wrote: Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Access Point Change detection
On 03/28/2012 09:50 PM, Irfan Sheriff wrote: On Wed, Mar 28, 2012 at 8:28 AM, Kostya Vasilyev kmans...@gmail.com mailto:kmans...@gmail.com wrote: When the connectivity changes, some (it seems most) firmwares force-close any currently open connections, but some do not (two examples: Motorola Milestone with 2.1, and a much more recent HTC Incredible S with 2.3...). We have had fixes around resetting connections with connectivityservice controlling it now. That the connecitons are not getting reset on an old Motorola Milestone is understandable, it's really old. Seeing the same on an HTC Incredible S with the latest 2.3 firmware is quite amazing, especially since its twin brother HTC Desire S properly resets connections. So while I appeciate your response and the fact that some work has been done in this area, it does not help much for existing devices. It would be good to know if there are devices beyond ICS that still have issues around not resetting socket connections when a network goes away. Beyond ICS? I don't know what this means. My flagship Galaxy Nexus still hasn't received 4.0.3. And what do you mean by would be good to know? Should we, developers, and our users, moonlight as Android's test department? Ideally, apps should not have to listen to any broadcasts to handle network switches and should get resets on an existing socket. Not ideally -- really -- apps are supposed to work on more than the 1.6% of devices with ICS. And beyond ICS - what portion of the market is that, at this time, exactly? -- K Irfan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] fragment pagers continued
On Wed, Mar 28, 2012 at 8:44 AM, Live Happy livehap...@gmail.com wrote: its possible in android fragment pagers that make the swiping between page continue from last to first If you're swiping, how would it make sense to move from the last to first in one swipe? - 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] Remove / change website elements?
On Tue, Mar 27, 2012 at 4:09 PM, adr990 arnold...@gmail.com wrote: I would like to change the layout of a website on the fly, with just an andriod app. Like removing images and change divs elements etc. Download the web page elements, modify them as you see fit, then re-display in a WebView. The specific of this is not really Android-specific though. - 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] fragment pagers continued
If you're swiping, how would it make sense to move from the last to first in one swipe? I've actually seen this on some apps and, if done right, it works... I basically just turns the pages into a loop. That way if you have n pages are on the last page you don't have to swipe n - 1 times to get back to the first page... A single swipe can bring you back to the first. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Mar 28, 2012 at 12:23 PM, TreKing treking...@gmail.com wrote: If you're swiping, how would it make sense to move from the last to first in one swipe? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 upload picture which taken by camera to web service
On Tue, Mar 27, 2012 at 9:48 AM, My Heaven hnlov...@gmail.com wrote: Hi all , i want upload some pic to web service using SOAP protocol how to write code for web service in C# to do it This has about zero to do with Android development. - 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]
My android app needs to talk to a MySQL database on a server. I have been googling for solutions and found recommendations for Jersey and Restlet. I have looked at these two frameworks, but from reading I cannot tell which is better. I am new to REST, but have experience in Java, servlets, and jsp. So I was wondering if anyone on this list has experience with one or both, and any recommendations you may have. I am looking for a simple way to CRUD data in my database (~ 15-20 tables). Any hands-on feedback is appreciated! Thanks! Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] fragment pagers continued
On Wed, Mar 28, 2012 at 1:34 PM, Justin Anderson magouyaw...@gmail.comwrote: If you're swiping, how would it make sense to move from the last to first in one swipe? I've actually seen this on some apps and, if done right, it works... I basically just turns the pages into a loop. That way if you have n pages are on the last page you don't have to swipe n - 1 times to get back to the first page... A single swipe can bring you back to the first Oohh, durf, that makes sense, to wrap around. I thought the OP wanted to go from 4 to 1 *past 2 and 3*. That would not make sense. As for the actual problem, sorry, haven't used those classes. - 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