Re: [android-developers] Disaster! - Inexplicable collapse in downloads.
Agreed. I don't think anything *happened* to your app. It was probably indexed by a few outside sources, etc..., that made it popular for a while. There's not really anything you could have done wrong after it was released. Are you (instead) if that Market's stats are in some way broken? This is perhaps more likely based on what we've seen, but the greatest probability is that you are doing nothing wrong and your app simply needs some external promotion. Kris 2012/3/4 Harri Smått har...@gmail.com: On Mar 4, 2012, at 3:39 AM, decastro wrote: But why would my download count previously be increasing so neatly exponentially, i.e. 8-10% growth per day. I really can't tell for sure how users got to install your application yet alone had an idea how it gained popularity. But considering you saw a drop once month changed it simply sounds like it was removed from Android Market new listing, or something similar, by that time. It's been discussed a few times here that if you want to see your application made it to the top spot you really should do more than just upload it to the market and hope for the best. -- H -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hyper terminal to be opened using python
Hi, As I to run at commands on phone using the hyper-terminal which should accept the commands from python.Is it possible to open the hyper terminal using python.Please give me some idea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Where did canvas.setViewport(int, int) go since ICS?
Where did method Canvas' method public void setViewport(int width, int height) go since ICS? I used the method before prior to ICS, now when I use it, the method can't be resolved. And it's not mentioned nor marked as deprecated at http://developer.android.com/reference/android/graphics/Canvas.html (anymore)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Killing an app and restarting it from root activity
Hello, I am in a need to close the application when a button is pressed and after the app exits, it should restart itself from the root activity. I have used Intent.FLAG_ACTIVITY_CLEAR_TOP but for that I have to keep the root activity alive, but I want it to be destroyed as the user navigates away from it. 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
Re: [android-developers] Re: Does a device have Wi-Fi or not?
I know that the MAC may not be available if wifi is not turned no. That is not what I was asking. I want to know if the device even has the capability for wifi. Can I find that out reliably even if wifi happens to be turned off? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does a device have Wi-Fi or not?
You could try turning it on with WifiManager.setWifiEnabled, and check the return value. With appropriate UI it might not be so bad. Another idea is to check for the presence of low-level WiFi related files (such as /etc/wifi/wpa_supplicant.conf). This is clearly outside the boundaries of what a proper app is supposed to do, but then again, if the documented APIs are broken (yet again)... Yet another idea is to maintain a list of devices that are known to have WiFi and report is being absent, identifying them by fields found in android.os.Build . Time consuming, but doable. -- K 4 марта 2012 г. 15:28 пользователь RLScott fixthatpi...@yahoo.com написал: I know that the MAC may not be available if wifi is not turned no. That is not what I was asking. I want to know if the device even has the capability for wifi. Can I find that out reliably even if wifi happens to be turned off? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CVPixelBufferGetBaseAddressOfPlane in Android
Is there an equivalent in Java/Android of the next iOS function? CVPixelBufferGetBaseAddressOfPlane Description: Returns the base address of the plane at the specified plane index. void * CVPixelBufferGetBaseAddressOfPlane (CVPixelBufferRef pixelBuffer, size_t planeIndex); pixelBuffer: The pixel buffer containing the plane whose base address you want to obtain. planeIndex: The index of the plane. Return Value: The base address of the plane, or NULL for nonplanar pixel buffers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Check Database
How to check database created or not..Pro-grammatically? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CVPixelBufferGetBaseAddressOfPlane in Android
How to check Database created or not Pro-grammatically -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] abhijeet tomar wants to chat
--- abhijeet tomar wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-ae8ccd4858-6cd96ceb21-3xHeeZyq4tR-PbgC-RAphle6v-o You'll need to click this link to be able to chat with abhijeet tomar. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with abhijeet tomar, visit: http://mail.google.com/mail/a-ae8ccd4858-6cd96ceb21-3xHeeZyq4tR-PbgC-RAphle6v-o Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into conversations - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] OAuth Redirect URI
I am developing an Android application for location based event recommendation. I am trying to understand the OAuth documentation but its giving me a lot of difficulties. Basically I am going to use the EventBrite API for my application and when registering for the app key I am supposed to provide with a redirect URI. What should I give the redirect URI as? I've tried http://my inet address/home/anushree/workspace/CSE598C/ src/com/research/CSE598C/HomePage.java and http://localhost/home/anushree/workspace/CSE598C/src/com/research/CSE598C/HomePage.java But this gives me an error saying that the webpage is not available. Also, once I am able to resolve this issue how do I redirect this page to my android homepage? I will require the value of the code from the URL https://www.eventbrite.com/oauth/authorize?response_type=codeclient_id=my application id Can anyone tell me how to retrieve value of the code parameter to do that? Thanks- Anushree -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Disaster! - Inexplicable collapse in downloads.
On Sunday, March 4, 2012 5:25:31 AM UTC, Anirudh Loya wrote: Was it a Gaming App ? Yes. Its called tangle twister. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CVPixelBufferGetBaseAddressOfPlane in Android
Class Sql helper. Em 04/03/2012 09:29, abhijeet tomar abhijeet...@gmail.com escreveu: How to check Database created or not Pro-grammatically -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] CVPixelBufferGetBaseAddressOfPlane in Android
Bitmapfactory Em 04/03/2012 10:53, Marcelo Henrique marceloh...@gmail.com escreveu: Class Sql helper. Em 04/03/2012 09:29, abhijeet tomar abhijeet...@gmail.com escreveu: How to check Database created or not Pro-grammatically -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does a device have Wi-Fi or not?
The Parrot Asteroid is a prime example. It does have BT, however, so instead of using the WiFi MAC address I use the BT MAC address as part of the unique identifier. On Tuesday, February 21, 2012 5:55:39 PM UTC-5, RLScott wrote: I may have found a problem in using the Wi-Fi Mac Address as a unique device id. If the Wi-Fi is turned off, I can detect that OK and ask the user to turn it on, provided I know that the device has Wi-Fi. I have been using PackageManager.hasSystemFeatures(PackageManager.FEATURE_WIFI) to determine this, and then resort to an inferior backup scheme in the rare cases where the devices does not have Wi-Fi capability. However I have evidence that some devices are returning FALSE even though they have Wi-Fi, if that Wi-Fi happens to be turned off. This evidence is only circumstantial based on the number of times my app has had to fall back to the inferior backup scheme for device id. Can anyone confirm whether this is really true? If you boot up your device with Wi-Fi off, does PackageManager.hasSystemFeatures(PackageManager.FEATURE_WIFI) return FALSE? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] List with expandable
Hi i have done with listactvity in my application ,now i need expand when clicks and for each item and again click on expandble list items should be back in same screen. can you please guide me any one about this /// package com.android.samplelisy; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; public class samplelist extends ListActivity { String[] values = new String[] { Application, product, Sabicproduct }; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); // Use your own layout ArrayAdapterString adapter = new ArrayAdapterString(this, R.layout.main, R.id.label, values); setListAdapter(adapter); } @Override protected void onListItemClick(ListView l, View v, int position, long id) { String item = (String) getListAdapter().getItem(position); switch (position) { case 0: l.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView? av, View v, int pos, long id) { // onListItemClick(v,pos,id); } private void onListItemClick(View v, int pos, long id) { // TODO Auto-generated method stub } }); break; case 1: break; } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: device.png
[android-developers] Get a Code
hii, get a code that to draw circle with ontouchlistener and it should increase its size on MotionEvent.Action_Move and finally circle should get display on MotionEvent.Action_Up on the canvas by clicking on Menu which is having text as Draw Circle that will open menu item in android to draw circle on the canvas. Regards, Siddharth Chopra -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Multiple many many thumbnails
Hi All I'm trying to have users find their pictures using thumbnails much like gallery (and also like the Golf Channel app) However, sadly I keep running out of memory after loading 20 - 30 thumbnails Any tricks to get through this limit 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] removing items from listview and array list problem
I have this code i am used to pass an array list to another page and show it as a listview. When the list shows up, i want to be able to check an item and remove it at button click which will modify the array. public class Oppout extends Activity { int selectedPosition; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.oppout); final ListView lv2 = (ListView) findViewById (R.id.custom_list_view); lv2.setClickable(true); lv2.setAdapter(new ArrayAdapterString(Oppout.this, android.R.layout.simple_list_item_checked, Entername.playerList)); lv2.setOnItemClickListener ( new AdapterView.OnItemClickListener() { public void onItemClick(AdapterView adapterView, View view,int arg2, long arg3) { int selectedPosition = adapterView.getSelectedItemPosition(); Toast.makeText(getBaseContext(), mu+ selectedPosition, Toast.LENGTH_SHORT).show(); } } ); Button next = (Button) findViewById(R.id.button1); next.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { //on click call the adapterview and delete string at selected position..this is my problem, //i just don't know how to do it int selectedPosition = adapterView.getSelectedItemPosition(); adapterView.remove(player.SelectedPosition); Intent myIntent = new Intent (view.getContext(), Callacab.class); startActivityForResult(myIntent, 0); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Check Database
How to check database created or not..Pro-grammatically? Hi Abhijeet, I have solution for you. private boolean checkDataBase() { SQLiteDatabase checkDB = null; try { checkDB = SQLiteDatabase.openDatabase(DB_FULL_PATH, null, SQLiteDatabase.OPEN_READONLY); checkDB.close(); } catch (SQLiteException e) { // database doesn't exist yet. } return checkDB != null ? true : false; } Use this, I hope this will help 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: Does a device have Wi-Fi or not?
2012/3/4 Kostya Vasilyev kmans...@gmail.com: You could try turning it on with WifiManager.setWifiEnabled, and check the return value. With appropriate UI it might not be so bad. Another idea is to check for the presence of low-level WiFi related files (such as /etc/wifi/wpa_supplicant.conf). This is clearly outside the boundaries of what a proper app is supposed to do, but then again, if the documented APIs are broken (yet again)... Yet another idea is to maintain a list of devices that are known to have WiFi and report is being absent, identifying them by fields found in android.os.Build . Time consuming, but doable. -- K This strikes me as a case where there should be an external library (in lieu of the official API) written to handle this.. 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] Where did canvas.setViewport(int, int) go since ICS?
This method was removed because it had no effect whatsoever. It was a remnant of an old and failed experiment. On Sun, Mar 4, 2012 at 1:07 AM, Mathias Lin m...@mathiaslin.com wrote: Where did method Canvas' method public void setViewport(int width, int height) go since ICS? I used the method before prior to ICS, now when I use it, the method can't be resolved. And it's not mentioned nor marked as deprecated at http://developer.android.com/reference/android/graphics/Canvas.html (anymore)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] In ImageSwicher/ViewFlipper ImageView is blurry when i set zoom Animation?
In my App i am showing slideshow of images preloaded on Drawable. In Slideshow i used all ImageSwicher/ViewFlipper/ViewSwicher. In slideshow every image have it's own animation like zoom and scale. I get blurry image when animation is on progress... Please help me as soon as possible. Note- Image quality is good. Animation zoomimage = AnimationUtils.loadAnimation(getContext(), R.anim.zoomscale); zoomimage.setRepeatCount(0); _imageSwitcher.startAnimation(zoomimage); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] layout configuration qualifiers
I have an app that uses configuration qualifiers for different size screens like so: layout layout-large layout-normal layout-xlarge But when I run the app on the emulator using different skins, they all seem to use the normal layout file. Even skins that should use the layout-large file use the layout-normal file. Any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need help in breaking out of a WebView - This code is complex!
Before his death my partner wrote a wonderful app for me call A Wallpaper Master in Android 1.5, downloadable from http://www.advancedappsstore.com/AWallpaperMaster.apk and this app works, well almost. One of the things I'm trying to modify is how the Pay For Packages works and for this I need some serious help. Matt never did anything the simple way if he could find a hard way to do something! When someone goes to add a package they can have FREE image packs, Private image packs secure with a password or Pay for a specific image pack. Matt wanted to set this Pay for Packs up but never got around to it so I thought I could modify the program and direct the users to a PayLoadz.com page to pay and download a code to add the pack through the Private Packages method that does work. What I've found though was that I cannot break out of the custom WebView when directing them to the HTTPS page. I think I've isolated where the activity and intent are in the frmAddPackages.java file (attached). My problem lies in modifying this so when the user clicks the package they want the actionbox opens as it now does and the users selects YES to add or Cancel to do nothing. When selecting YES instead of opening : [syntax=java] } else if (PACKAGE_TYPE == 1) { Intent i1 = new Intent(frmAddPackages.this, com.advanced.android.awallpapermaster.GetPackages.GoToWeb.class); i1.putExtra(com.advanced.android.awallpapermaster.package, strings[iPos].replace( , )); try { startActivity(i1); } catch (Exception e) { Utilities.ErrorHandler(e); [/ syntax] which resolves to advancedappstore.com/www/mobile/buypackages.php inside the webview via the GoToWeb.class they instead go to advancedappstore.com/www/mobile/buypackages.php in the native android browser. From there I can link the user to whatever package they want on a HTTPs page. Yes, I know about the SSLError that is going to be generated but I can live with that. Right now when the user goes from the buypackages.php page to the PayLoadz.com HTTPS or PayPal.com HTTPS page all the users gets is a blank page! Can anyone help me PLEASE!!! I've written other small, simple apps using webviews but have never run across this problem before though I know there is a way to ignore the SSLError I have not implemented it and I know that there is a way to ignore it using HTML5 that I've used but I don't control the pages of PayLoadz or PayPal so can't modify those pages. How can I change this code to take the user to advancedappstore.com/www/mobile/ buypackages.php in a native browser when the user clicks the YES button? :? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Synchronize data on cloud?
Hey, i am creating one application which is use for synchronize the contact,image,video on cloud. but i didn't find any information. pls provide me some tutorial or code. 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] Not able to display map in android app.
I am not able to display map in my android app. I am getting Exception Couldn't get connection factory client. Anyone please help me for that. Thanks And Regards Ashish Keshri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Event listner for calender event like meetings in ICS
I am using android ICS new calendar API. I want to do some action when an event from calendar start and stops. Say for example I have a meeting in my calender at 5.30 Saturday to 6.00 PM i want to do some action at 5.29 and 6.01 PM. Is there any listener that I can configure for such events? I can read the event details from calender and write a lot of custom code to do so but just wanted to know if there is any other mechanism to do so? In case I need to read all the event details in calender, is there any service which I can use which calls back my class at a certain time? Just like springs scheduler or something? JD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Gmail Authentication failed
Dear Sir, I am using http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-a For Sending an Email. I am doing 1. Static Entry of Username password in side the code. 2. Send 5 email repeatedly from the code Problem : 1. After Sending Some Email I am getting : Authentication failed. 2. When i log in to the Email,its giving to enter captcha. What would be the solution.please 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] API's use
Hello All, I want to use Zomato APIs in my android application. Does anyone know how to proceed for the same? Thanks in advance!! Kinds Regards Megha Agrawal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 19 Topics
Hi , During the EAPOL handshake , all the data packets other than EAPOL packets should be dropped . In android , which module is responsible for taking care of this? IS there any document available , which provide the information on wifi architecture on Android? Regards Gagan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] hardware codes
i need to disable my proximity sensor because it does not work good at all i have a mytouch 4g i found an app that lets you disable hardware but do not know which of these is for the proximity sensor if you could let me know i would really appreciate it /sys/bus/i2c/drivers/dummy/ 2- 2-0077 2-0066 7- /sys/bus/i2c/drivers/tps65200/ 0-006a /sys/bus/i2c/drivers/atmega-microp/ 0-0066 /sys/bus/i2c/drivers/marimba-core/ 2-000c /sys/bus/i2c/drivers/atmel_qt602240/ 0-004a /sys/bus/i2c/drivers/akm8975/ 0-000d /sys/bus/i2c/drivers/s5k4elgx/ 4-0010 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Run Multiple Apks in Single Process
Hi, I want to run 2 Apks in a Single process, so that the sharing of data is possible between these two Apks. As i know in Android each Apks create there own process. Please point me to any literature if this already discussed. Regards, Animesh K. Bhadra. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Move horizontalscrollView of Android from left to right
I'm using horizontalscrollView along with the animation to move set of images as a slideshow. I'm able to move the images from right to left using the following code : public void getScrollMaxAmount(){ int actualWidth = (horizontalOuterLayout.getMeasuredWidth()-512); //int actualWidth = (horizontalOuterLayout.getScrollX()-512); scrollMax = actualWidth; } public void startAutoScrolling(){ if (scrollTimer == null) { scrollTimer = new Timer(); final Runnable Timer_Tick = new Runnable() { public void run() { moveScrollView(); } }; if(scrollerSchedule != null){ scrollerSchedule.cancel(); scrollerSchedule = null; } scrollerSchedule = new TimerTask(){ @Override public void run(){ runOnUiThread(Timer_Tick); } }; scrollTimer.schedule(scrollerSchedule, 30, 30); } } public void moveScrollView(){ //scrollPos = (int) (horizontalScrollview.getScrollX() + 1.0); scrollPos = (int) (horizontalOuterLayout.getMeasuredWidth() - 1.0); if(scrollPos = scrollMax){ scrollPos = 0; } /*if(scrollPos = scrollMax){ scrollPos = 0; }*/ horizontalScrollview.scrollTo(scrollPos, 0); //horizontalScrollview.scrollTo(0,scrollPos); } I now want to move the images from right to left as a slideshow. I'm unable to find the right formula/logic. Kindly assist me. :( -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Required Help to create activity
import com.phonegap.DroidGap; import android.os.Bundle; public class RestApi_PhoneGapActivity extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl(file:///android_asset/www/ fieldForceDemo.html); //super.loadUrl(file:///android_asset/www/ dojoXmlDebug.html); //use this to output the nodeTree (for debugging) } } I have extended DroidGap from phonegap and in fieldforcedemo.htmli have got ui for each button there i have js file written to perform some functionality. Now can any one tell me how to add a new activity here because i have not extended default activity class for which i am planning to use android specific classes to be specific webview. Or can i add some button in html page on click of which an activity has to be triggered? Please 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] Calendar on Emulator with ICS
Hello All, I am very new to android development. I am trying to develop an application where I want to use the new public Calendar API of ICS. The problem is that on simulator I do see a calendar icon but I cannot add events to it. It asked me every time to add an account. I added my gmail account and enabled sync on simulator and it showed me my email folders but did not sync the calender. Due to this, I do not have any test data and a test calender on the simulator and hence when I try try read all the calenders on the device, the list is just empty. How do I get a test calender in emulator to test my application? Unfortunately I have a android phone but it has OS version of 2.3 (Samsung galaxy S) and I do not think it would get upgrade soon to ICS. Please help me out with this. JD -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android developer-activity testing tutorial
I followed the section named Adding a UI test of the tutorial at http://developer.android.com/resources/tutorials/testing/activity_test.html. I was confused about why it wanted to interact with UI by UI-thread and send keys via instrumentation at the same test testSpinnerUI() method. I think it causes a race condition. public void testSpinnerUI(){ Thread.currentThread().getId(); mActivity.runOnUiThread( new Runnable() { public void run() { // Thread.currentThread().getId(); mSpinner.requestFocus(); mSpinner.setSelection(INITIAL_POSITION); } // end of run() method definition } // end of anonymous Runnable object instantiation ); this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); for (int i = 1; i = TEST_POSITION; i++) { this.sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); } // end of for loop this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); //code emitted } I used Thread.currentThread().getId() in the run() method and the same API in the testSpinnerUI() method. I found they were different thread. Is it a logical bug lead to a race condition? I also tried to modified the code like this public void testSpinnerUI(){ this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); for (int i = 1; i = TEST_POSITION; i++) { this.sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); } // end of for loop this.sendKeys(KeyEvent.KEYCODE_DPAD_CENTER); mActivity.runOnUiThread( new Runnable() { public void run() { mSpinner.requestFocus(); mSpinner.setSelection(INITIAL_POSITION); } // end of run() method definition } // end of anonymous Runnable object instantiation ); //code emitted } by switching the order. Then, I got NullPointerException at mSpinner.requestFocus(). However, the testPreConditions() method test is passed. public void testPreConditions() { assertTrue(mSpinner!=null); assertTrue(mPlanetData != null); assertEquals(mPlanetData.getCount(),ADAPTER_COUNT); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] videos uploading in android
Hi, my requiremet is from my application we can upload videos, who ever instal the application can upload videos and uploaded videos will be avilable to all the persons who are using that application. Is there any site to provide this functionality?? suppose my app is using 100 members, anyone can upload the videos and anyone can see the all the uploaded videos. please help me 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] OpenMax and Android Middleware
I am designing a broadcast middleware in Android platform. It will use a DASH (video) decoder and DRM agent. I would like to know if the OpenMax IL is the best choice for this work. The design requires flexibility and scalability, such as today's software DASH decoder component can be replaced with a hardware decoder in the future without changing other software. The OpenMax AL or DL is either too high or too low for this job. Please help by your generous comments. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Verrou système
Bonjour à tous , je veut savoir comment je peut verrouiller mon Android à travers un service que je voudrai le développer et merci d'avance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ayuda
buenas buenas tengo un xperia x8 y se quedo muerto, no pasa de la pantalla de inicio con el primer logo de Sony ya probe con PC Companion y nada, necesito una mano para revivirlo. El telefono esta root, por aquello Gracias espero puedan ayudarme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Didn't Android 4.0 have the class com.android.settings.LocalePicker ?
In my project, I want to change the language,so I call the class: com.android.settings.LocalePicker. My codes are as follows: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName(com.android.settings, com.android.settings.LocalePicker); startActivity(intent); But I caught an exception ( on Android 4.0.x Platform): AndroidRuntime(10354): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.LocalePicker}; have you declared this activity in your AndroidManifest.xml? So I want to know, didn't Android 4.0 have the class com.android.settings.LocalePicker ? Instead, how should I do? Thanks for helping me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Customized ActionBarCompat
Hello, I'm just learning Android and I need a search bar in ActionBarCompat instead of the provided TextView. I had some failed attempts to do that, but now I don't know what to do, so I'm asking you guys: What is the approach to customize the ActionBar with a brand new EditText instead of that TextView, having in the same time access to that EditText from the MainActivity? Short description of one of my failed attempts: I have tried to define an EditText in the layout/actionbar_compat.xml file and included this layout in the layout/main.xml file, and in this way I had access to the EditText from the MainActivity (with findViewById), but the problem was that there were 2 EditTexts. Can you help me out with this, guys? 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] Custom Permission and installation order
Hi Dianne, could you please comment which would be a correct way to handle this limitation then? If I want to protect a plugin to my application with a custom permission, should I declare this permission in both apps? Thanks. On Wednesday, February 22, 2012 12:11:33 AM UTC+4, Dianne Hackborn wrote: Sorry, no this is a current limitation of permissions, they need to be known at install time to be granted. On Tue, Feb 21, 2012 at 11:52 AM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: I'm trying to implement a custom permission to be used between two of my apps. In AppA I declare: uses-permission android:name=com.teslacoilsw.TEST_PERMISSION / And in AppB I declare: permission android:name=com.teslacoilsw.TEST_PERMISSION android:label=TeslaCoil Test android:protectionLevel=normal / ... service android:name=.TestService android:exported=true android:permission=com.teslacoilsw.TEST_PERMISSION / If I install AppB and then install AppA, it work as expected (AppA can bind to AppB's service). However if I install AppA and then install AppB, I get a SecurityException when trying to bind to the service as the permission is not granted. (Tested on Android 4.0.3) I've investigated adding the permission declaration to both manifests and this does seem to work, I assume because the permission now always exists at install time. However this feels wrong to me. Is there a correct way for an app to declare a permission in an environment like the Market where installation order is not guaranteed? Thanks, -Kevin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] correct XML?
Yes this looks right. These should be mapped from the AndroidManifest.xml but is there a reason that you have and intent for the Main_Activity? April Randolph On Thu, Mar 1, 2012 at 10:00 AM, bob b...@coolfone.comze.com wrote: Can someone tell me if this is correct XML? Not sure about the two intent-filters. activity android:name=com.bob.Main_Activity android:label=@string/app_name android:screenOrientation=landscape intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=com.bob.Main_Activity / /intent-filter /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] My country is not listed as an available billing address when trying to register as a developer
Hello ! I am trying to register as a developer in Android Market. I am from a country which is not a supported one for PAID applications but it is in the list for publishing of FREE applications. I've decided to register and got surprised that my country is not included in the list of billing address countries. So, the question is - provided that I am eligible to publish FREE applications, what's the legal way to enter Android Market? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem using IBinder accross two services
Hi, I'm doing something really simple. I have two services A, and B. Both started with startService. The steps are as follows, 1)First service A calls startService to create service B. 2)Then service B calls bindService to bind to service A. 3)Once service B is bound to A, it calls a method in A through a IBinder interface that looks like registerCallback(interfaceB). 4)Then service A receives the registerCallback call through IBinder. The method is executed. So far so good. The problem is that interfaceB is always null no matter what I do. I have defined the aidl for InterfaceB as with typical Activity/ Service communication. But no matter what I do, I always get a null reference. Any idea on what could be wrong?. Alberto. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with drawing text in scaled Canvas on Android 4.0
Hi, I am using a Typeface to draw text in canvas which have scale matrix. So first I measure the width of text when scale is 1.0. Then I measure the width of text when scale is different than 1.0. And I expect that non scaled width * scale will be equal to scaled width. This is true on devices with Android OS below 4.0, but on Android 4.0 it is not true. Here is sample function that I wrote to test it. static void checkGoodForScale(Typeface face) { TextPaint p = new TextPaint(); p.setAntiAlias(true); p.setSubpixelText(true); p.setTypeface(face); final String text = During that discussion, we touched a bit on the psychological impact all of this—the earthquake; final float textSize = 22.f; p.setTextSize(textSize); float textWidth = p.measureText(text); float scale = 0.05f; while (scale 1.509) { p.setTextSize(textSize * scale); float scaledTextWidth = p.measureText(text); if (Math.abs(scaledTextWidth - textWidth*scale) 1.5f) { Log.d(FontScaleTest, Diff in scale width. 100% = + textWidth*scale + + (int)(scale*100f) + % = + scaledTextWidth + diff = + (scaledTextWidth - textWidth*scale) ); } scale += 0.01f; } } The above function didn't print any messages in log on Android below 4.0. On android 4.0 there is difference on each scale percent. I noticed that widths are separated in groups of 4-5 percents. For example for scale 45% if width is W it is the same for 46%, 47%, 48% and then on 49% it is different. May be there is some kind of cache for closer font sizes. Here is a part of my logcat: D/FontScaleTest( 4408): Diff in scale width. 100% = 686.5115 51% = 660.1074 diff = -26.404053 D/FontScaleTest( 4408): Diff in scale width. 100% = 699.7136 52% = 720.1172 diff = 20.403564 D/FontScaleTest( 4408): Diff in scale width. 100% = 712.9157 53% = 720.1172 diff = 7.201477 D/FontScaleTest( 4408): Diff in scale width. 100% = 726.11786 54% = 720.1172 diff = -6.0006714 D/FontScaleTest( 4408): Diff in scale width. 100% = 739.32 55% = 720.1172 diff = -19.20282 D/FontScaleTest( 4408): Diff in scale width. 100% = 752.52216 56% = 780.12695 diff = 27.604797 D/FontScaleTest( 4408): Diff in scale width. 100% = 765.72424 57% = 780.12695 diff = 14.40271 D/FontScaleTest( 4408): Diff in scale width. 100% = 792.12854 59% = 780.12695 diff = -12.001587 D/FontScaleTest( 4408): Diff in scale width. 100% = 805.3307 60% = 780.12695 diff = -25.203735 D/FontScaleTest( 4408): Diff in scale width. 100% = 818.53284 61% = 840.1367 diff = 21.603882 D/FontScaleTest( 4408): Diff in scale width. 100% = 831.7349 62% = 840.1367 diff = 8.401794 D/FontScaleTest( 4408): Diff in scale width. 100% = 844.9371 63% = 840.1367 diff = -4.800354 D/FontScaleTest( 4408): Diff in scale width. 100% = 858.1392 64% = 840.1367 diff = -18.002502 D/FontScaleTest( 4408): Diff in scale width. 100% = 871.3414 65% = 900.1465 diff = 28.805115 D/FontScaleTest( 4408): Diff in scale width. 100% = 884.5435 66% = 900.1465 diff = 15.602966 D/FontScaleTest( 4408): Diff in scale width. 100% = 897.7456 67% = 900.1465 diff = 2.400879 D/FontScaleTest( 4408): Diff in scale width. 100% = 910.94775 68% = 900.1465 diff = -10.80127 D/FontScaleTest( 4408): Diff in scale width. 100% = 924.1499 69% = 900.1465 diff = -24.003418 Do you think this is bug in android or I am not using it the correct way. I tried this with turned on and off hardware acceleration but there is no difference. Kaloyan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android spinner help
I am making an app that uses a spinner that has a dropdownlist of bua routes. What I am having trouble figuring out is how to have the user select an item from the dropdown list then have them push a buttom and a pdf file with the route they selected will start to download. The pdf files are already online and I have their locations. I just don't know how to configure the button. Please help. Be sure to list any imports I may need. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ICC Profiles
Is there any support for applying ICC profiles in the Android SDK or any future plans to do so? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Playing YouTube video in WebView
In my case, the YouTube video doesn't play at all if I click the play button inside the WebView client. On Friday, April 8, 2011 10:03:08 AM UTC-4, Dan wrote: I am using webview client. shouldOverrideUrlLoading is a method of webview client. The issue I am having is the difference in response between KEYCODE_DPAD_CENTER and the touch event. On Apr 8, 2:16 am, Kapil Lokhande kpl.lokha...@gmail.com wrote: Hi, Use webview client. best example is on android developers | webview. go tohttp://developer.android.com/resources/tutorials/views/hello-webview -- Thanks Regards, Kapil Lokhande | Dexter Advisory Pvt. Ltd. http://dexterltd.com/ | Android Developer [image: dexterlogo.jpg] On Thu, Apr 7, 2011 at 7:24 PM, Dan danielmoses2...@gmail.com wrote: I am trying to implement a web browser within my app and using WebView for that. For playing youtube video I used the following resource to start playing the video: http://stackoverflow.com/questions/3815090/webview-and-html5-video To stay in the webView when a link is pressed and not go to the web browser, I had to add @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } This seems to work well if I am touching the screen to start the video. However if I call webView.dispatchKeyEvent to navigate to the video image on the screen and then send a dispatchKeyEvent KEYCODE_DPAD_CENTER Down followed by up, the image shows loading and stays in the same state. So it did react to this key event but did not start playing the video. I noticed that if I touch on the video image, onShowCustomView is called in WebChromeClient. However, if the a KEYCODE_DPAD_CENTER is sent to the selected video image, shouldOverrideUrlLoading is called. Can anyone help how to get this video playing with a dispatchKeyEvent ? 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 dexterlogo.jpg 6KViewDownload -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Apple suing ....what to do
Apple is suing my Android Market application. Just got email from greedy lawyer firm. They work for apple. Can you guys help me? Google/Android team can you help? I don't know ...what to do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to listen for touch events from *Lock Screen* and *Home Screen*
Hi, I have a a similar problem... But I am not sure this tread gives me the answer Is there any way to get event (touch event) *from the main android view* (the home screen of the phone...) to use it in a service running in background...? Thanks a lot. ___ Le dimanche 26 juillet 2009 21:58:23 UTC-7, Dianne Hackborn a écrit : Depends on how you define better. Allowing apps to see users draw their lock pattern would be not too cool, for example. On Sun, Jul 26, 2009 at 9:31 PM, Riyaz goo...@riyaz.otherinbox.comwrote: Thanks Dianne Hackborn, however it will be better if there is a way to listen for events from these screens. On Jul 24, 10:06 pm, Dianne Hackborn hack...@android.com wrote: Sorry, no way without modifying that code. On Thu, Jul 23, 2009 at 10:26 PM, Riyaz goo...@riyaz.otherinbox.com wrote: I want to listen for the touch events from Lock Screen and Home Screen, is there any way i can tap those to my applications. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 each row of the ListView loaded at the same time?
My recent app is like a forum, i use listview to show each thread. Each of the item contain in the ListView is combined by some textview, one of them called contentTextView is used to show the content of the thread, i also use TextView.fromHtml to show some custom tags and pictures. Sometimes there is a lot of pictures in one thread, for example 100. Although i use Bitmap.imageScale to get a smaller pictures, but maybe the image is so many there always a out-of-memory error. I have check all the solution on the internet, but i only find some way like WeakReference...i think my problem is because of the TextView always trying to show everything in it at the same time So I am wandering if there is a solution to make it load what it should be seen by user? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: reading pdf in my android app
You can use MuPDF or Poppler libraries, though both are GPL licensed. Cheers On Feb 29, 6:15 pm, Jags jag...@gmail.com wrote: hi all, i am trying to read a pdf file in my android app. i realised, unlike safari in iphone android webview does not render pdf file as a local url . hence i am exploring itextpdf. i followed following tutorialhttp://www.vogella.de/articles/JavaPDF/article.html#installation while reading file, the author is trying to create a file using PDFWriter. he also uses writer to get a page as in Image. My question is, is it essential to use a writer ? cant we use only reader to extract entire page as an image ? what i plan here, is get all pages as an image and put them in a scroll view. thanks in advance jags -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] App suspended
One of my apps was suspended (I suspect I know why). The email that I received from Google stated: please feel free to make any necessary revisions and upload a new version of the application but in the developer section of the market (i.e. https://market.android.com/publish/Home), I can't either upload a new version of the app OR edit it's description. So, how do I modify the app and/description if I cannot access it via the Developer Console? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: custom attributes in library projects
Im using a slightly better kludge. Instead of having to include the xml files, I declare the namespace as a string resource. So in your layout just do xmlns:my=@string/package_ns then just have the project that uses it define the namespace. Seems to work ok. On Tuesday, February 8, 2011 8:01:27 AM UTC-6, Adam Tybor wrote: Its not great but what I have been doing is using includes and redefining the include in the application project. You can still define the attribute in the library project, you can use simple framelayouts or whatever to define a fake placeholder layout in the library project, then in the application project define the real view. When compiling the real view in the application project it will override the library project. This allows the code to compile with the R.syles stuff in the lirbary, yet still have the views work too. Best of luck, its kludgy but workable. Adam Library res/values/attrs.xml: resources declare-styleable name=MyWidget attr name=customValue format=integer/ /declare-styleable /resources res/layout/myWidget.xml TextView android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent android:text=Replace Me/ res/layout/main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/myWidget.xml android:id=@+id/my_widget / /LinearLayout App Project res/layout/myWidget.xml com.mycompany.test.lib.MyWidget xmlns:android= http://schemas.android.com/apk/res/android; xmlns:my=http://schemas.android.com/apk/res/ android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent my:customValue=324/ On Tuesday, February 8, 2011 8:01:27 AM UTC-6, Adam Tybor wrote: Its not great but what I have been doing is using includes and redefining the include in the application project. You can still define the attribute in the library project, you can use simple framelayouts or whatever to define a fake placeholder layout in the library project, then in the application project define the real view. When compiling the real view in the application project it will override the library project. This allows the code to compile with the R.syles stuff in the lirbary, yet still have the views work too. Best of luck, its kludgy but workable. Adam Library res/values/attrs.xml: resources declare-styleable name=MyWidget attr name=customValue format=integer/ /declare-styleable /resources res/layout/myWidget.xml TextView android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent android:text=Replace Me/ res/layout/main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/myWidget.xml android:id=@+id/my_widget / /LinearLayout App Project res/layout/myWidget.xml com.mycompany.test.lib.MyWidget xmlns:android= http://schemas.android.com/apk/res/android; xmlns:my=http://schemas.android.com/apk/res/ android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent my:customValue=324/ On Tuesday, February 8, 2011 8:01:27 AM UTC-6, Adam Tybor wrote: Its not great but what I have been doing is using includes and redefining the include in the application project. You can still define the attribute in the library project, you can use simple framelayouts or whatever to define a fake placeholder layout in the library project, then in the application project define the real view. When compiling the real view in the application project it will override the library project. This allows the code to compile with the R.syles stuff in the lirbary, yet still have the views work too. Best of luck, its kludgy but workable. Adam Library res/values/attrs.xml: resources declare-styleable name=MyWidget attr name=customValue format=integer/ /declare-styleable /resources res/layout/myWidget.xml TextView android:id=@+id/my_widget android:layout_width=fill_parent android:layout_height=fill_parent android:text=Replace Me/ res/layout/main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent include layout=@layout/myWidget.xml
[android-developers] Required Help to create activity
import com.phonegap.DroidGap; import android.os.Bundle; public class RestApi_PhoneGapActivity extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl(file:///android_asset/www/ fieldForceDemo.html); //super.loadUrl(file:///android_asset/www/ dojoXmlDebug.html); //use this to output the nodeTree (for debugging) } } I have extended DroidGap from phonegap and in fieldforcedemo.htmli have got ui for each button there i have js file written to perform some functionality. Now can any one tell me how to add a new activity here because i have not extended default activity class for which i am planning to use android specific classes to be specific webview. Or can i add some button in html page on click of which an activity has to be triggered? Please 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] preferences.xml
Hi i put the preferences.xml file into the res area but the eclipse Console showing me this message : Error in an XML file: aborting build. Plus in the SipSettings.java and Walkietakie.java file the eclipse in the line : addPreferencesFromResource(R.xml.preferences); finds error R cannot be resolved to a variable Does anyone knows how to fix it.??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can I get a Global Service in android?
These days I get a task. I need to do a plugin jar insert into other apps. In this jar, I design a download service to run download task. I soon find that if two different apps include my jar, then there would be two different service run in the two different app-process.(one app- process match one service as a pair, and there are two pairs) This is not I want, I just want a common service run in background and the two apps can share it. That is, I want to know if I can get a global service run in background, and applications that include my plugin jar can start that service and run download task. Is there any solution to my design? or how can I optimize my design. 3ks~ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Emulator for nfc in india
Hi, I am a college student in India and my college project is based on NFC. There is no nfc-enabled android phone that has been launched yet in Indian market. So i can't deploy my app on any set available. Is there any emulator for NFC with which i can deploy my app easily??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Splitting Android Royalties among two developers
Hi all I'm currently developing an app with a co-developer, and of course we want to split any earnings from the app we make. However, we live in different countries, and so transferring large amounts of money into/ out of a country is often a headache. There are also often tax implications in large transfers. Is there any way to split the income at source? That is, is there any way that, whenever our app is downloaded, 50% of the income goes to one account and 50% to another (after Google's 30% of course). Does anyone know if this is possible, or would it be better to handle it afterwards. Thanks, M -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to find how many SSIDs are on one WiFi channel...can i select a channel for hotspot
I need to switch to any channel i.e. being least used in Android...I know Access Point gives support to find out channel avaialble...bu tnot sure how to dot his android...is there any API? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Stopping a long-running thread when a service is destroyed
Hello, I have a service which launches a worker thread. This one launches another thread (a queue) used to send data though the network (so the sending of one file can be slow because I have to wait for the server's response). In the service's onDestroy() method, I have to wait for the end of the worker thread, which has to wait for the queue thread. I am currently using join(), but I read it is not a good solution and indeed I experienced that (force close message). My queue thread knows when to finish its job thanks to a BlockingQueue: the queue receives messages which can be the name of a file to send or a shutdown signal. The problem is that the onDestroy() method can be called right after the queue pops a new file name, so it starts to send it through the network. This operation can take about 10 seconds if the network is not very responsive. I know I could set a smaller timeout, but I would like to know the server's response, in order to keep the application in a correct state. I have thought about sending a shutdown signal to the queue without waiting for it (no join()), but if the service is garbage-collected my thread will be an orphan, so it is also elligible for GC. I have had another idea: in the service's onDestroy() method, I could schedule a task (executed only one time), which holds a reference to the worker thread, sends the shutdown message to the queue and join()s it. Because the thread used by the task would be managed by the system, it would not be elligible for GC, so as the worker and queue threads. However, this last solution seems to be dirty. What do you think about it, and have you another solution to this problem ? Thanks NB: I have found this thread which discusses about this problem, but I cannot reply to it: http://groups.google.com/group/android-developers/browse_thread/thread/47a310494882eb5a/776eef8519d1a4da?#776eef8519d1a4da I quote an intersting message from this discussion. I use the BlockingQueue Mark Murphy proposed, in my queue thread (the one to stop as fast as possible). On 31 jan 2009, 00:29, Mark Murphy mmur...@commonsware.com wrote: I try to use queues for controlling work done in background threads, mostly because that's how I was controlling background threads in pre-Android development. LinkedBlockingQueue is a great choice, though there are plenty of others in java.util.concurrent. (java.util.concurrent, by the way, written by Doug Lea, author of the book and the extract of same that M. Perrot linked to) So, in onDestroy(), I just pop my own KillEvent object on the queue(s) and, once the queues get to that message, they terminate their own threads simply by falling out of the queue-processing loop. So long as your queues don't get backed up too deep, you should be OK, and I think there's a priority queue implementation in java.util.concurrent as well if your threads still aren't closing up shop fast enough. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTP POST to Web Server running on Android Device
line=POST / HTTP/1.1 line=Content-Length: 23 No you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown. You did not see that because the catch does nothing. Add a Log.i there and you will see. You modified the original code which checked for an empty line. Take the original code again. Add a check for the Content-Lengh: line and decode the contentlength. (in your example 23) Then outside the loop do something like: [code] if ( contentlength 0 ){ char [] buffer = new char[contentlength]; int nread = in.read (buffer, 0, contentlength); String Parameters = new String( buffer); // well you should check nread == contentlength } [/code] I am wondering where the HTTP POST data is? That just follows the empty line. But as that data is not ended with a newline in.readLine() cannot be used. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] FrameLayout with GLSurfaceView, VideoView and SurfaceView
Hello, I'm newbie developing Android applications, and I have started a projected alredy started. The project has 3 views: one view is a VideoView (public class VRVideoPlayerSensaciones extends VideoView implements MediaPlayer.OnErrorListener, OnPreparedListener), other GLSurfaceView (public class VRView extends GLSurfaceView), and the last one a surfaceview to do the preview image from de camera (public class VRCameraPreview extends SurfaceView implements SurfaceHolder.Callback, Camera.PreviewCallback, Camera.AutoFocusCallback) . All theses views are added to a framelayout. My problem is that the first time I execute the application, all the views they work properly. The surface for VRCameraPreview is in the back, the GLSurfaceView to represent openGL scene, and the last one the videoview (VRVideoPlayerSensaciones ) is in the top of the layout. But after starting another activity, for instance, to send and e-mail, with the activity resume, all the views doesn't respect the z-order from the beginning, and the top view, is the preview frame (VRCameraPreview), and the last one VideoView (VRVideoPlayerSensaciones). Do you if there is a way to respect the original zorder of these views? All the vies are builded at runtime, here you can see the code: public void onCreate(Bundle savedInstanceState) { mView = new VRView(getApplication()); mView.init(false, sDemo, bUseCamera); if(bUseCamera) mCamPreview = new VRCameraPreview(getApplication(), this); frame = new FrameLayout(this.getApplicationContext()); // videoview to play video m_VideoPlayerSensaciones = new VRVideoPlayerSensaciones(getApplication()); m_VideoPlayerSensaciones.Init(frame); //, 250, 80, 320, 240); frame.addView(m_VideoPlayerSensaciones); frame.addView(mView); if(bUseCamera) frame.addView(mCamPreview); setContentView(frame); } I have tried to use bringToFront from the view, to use AddContentView from the main activity2, and bringChildToFront from FrameLayout, but nothing work properly. Thank you in advance and sorry by my poor English -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android.os.StrictMode$InstanceCountViolation
Hi, On enabling StrictMode, getting following messages in StrictMode log. What does the message mean? The test was run on Samsung Galaxt Tab 10.1 with Android OS 3.1 with ThreadPolicy VMPolicy set to detectAll(). 02-05 04:13:45.390: ERROR/StrictMode(15009): class com.mo.android.mobileoffice.mobileofficeDispatcher; instances=3; limit=2 02-05 04:13:45.390: ERROR/StrictMode(15009): android.os.StrictMode $InstanceCountViolation: class com.mo.android.mobileoffice.mobileofficeDispatcher; instances=3; limit=2 02-05 04:13:45.390: ERROR/StrictMode(15009): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1) regards, Roopesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NFC Secure Element
Hi all, Before digging deeply in all this. I wonder if it will be worth it. My aim is to emulate the key I have to enter my building. It is a Mifare 1k, 16secrots, of which I have the keys. Would this be possible ? Le vendredi 10 février 2012 20:47:18 UTC+1, malls a écrit : When the card emulation is detected, the call is routed to nfc_jni_transaction_callback() of SecureElement. From here the event is posted to NfcService for example AID_SELECTED events are all posted to NfcService. I was wondering if there is way to communicate to SecureElement through this handle. If I try to open SecureElement parallel y, the call throws error that External RF Field is detected, when this channel is open, I believe there must be a way to wait until this mode is finished and communicate back to SecureElement or use the same channel to communicate. In fact, If I view the ice-scream sandwich code, there is new event subscription APDU_RECIEVED in the secure element callback. It looks like the PICC interface is open now. Hopefully we should be able to communicate. Le vendredi 10 février 2012 20:47:18 UTC+1, malls a écrit : When the card emulation is detected, the call is routed to nfc_jni_transaction_callback() of SecureElement. From here the event is posted to NfcService for example AID_SELECTED events are all posted to NfcService. I was wondering if there is way to communicate to SecureElement through this handle. If I try to open SecureElement parallel y, the call throws error that External RF Field is detected, when this channel is open, I believe there must be a way to wait until this mode is finished and communicate back to SecureElement or use the same channel to communicate. In fact, If I view the ice-scream sandwich code, there is new event subscription APDU_RECIEVED in the secure element callback. It looks like the PICC interface is open now. Hopefully we should be able to communicate. Le vendredi 10 février 2012 20:47:18 UTC+1, malls a écrit : When the card emulation is detected, the call is routed to nfc_jni_transaction_callback() of SecureElement. From here the event is posted to NfcService for example AID_SELECTED events are all posted to NfcService. I was wondering if there is way to communicate to SecureElement through this handle. If I try to open SecureElement parallel y, the call throws error that External RF Field is detected, when this channel is open, I believe there must be a way to wait until this mode is finished and communicate back to SecureElement or use the same channel to communicate. In fact, If I view the ice-scream sandwich code, there is new event subscription APDU_RECIEVED in the secure element callback. It looks like the PICC interface is open now. Hopefully we should be able to communicate. Le vendredi 10 février 2012 20:47:18 UTC+1, malls a écrit : When the card emulation is detected, the call is routed to nfc_jni_transaction_callback() of SecureElement. From here the event is posted to NfcService for example AID_SELECTED events are all posted to NfcService. I was wondering if there is way to communicate to SecureElement through this handle. If I try to open SecureElement parallel y, the call throws error that External RF Field is detected, when this channel is open, I believe there must be a way to wait until this mode is finished and communicate back to SecureElement or use the same channel to communicate. In fact, If I view the ice-scream sandwich code, there is new event subscription APDU_RECIEVED in the secure element callback. It looks like the PICC interface is open now. Hopefully we should be able to communicate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTP POST to Web Server running on Android Device
line=POST / HTTP/1.1 line=Content-Length: 23 No, you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown which you did not see because the catch statement is empty. Add a Log.i there and you will see. You modified the original code where the loops ends at the first empty line. Take the original code again en check for the Content-Length line. Parse out the value for contentlength; After the loop add following code [code] if ( contentlength 0 ) { char [] buffer = new char[contentlength]; int nread = in.read (buffer, 0, contentlength); String Parameters = new String( buffer); // well you should check if nread equals contentlength } [/code] I am wondering where the HTTP POST data is? That just follows the empty line. But as this post data is not terminated with a newline character in.readLine() cannot be used. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] unable to respond to intent in an activity
My application is to respond to the following intent Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(geo: 45.0,34.0)); Filtering in the manifest is setup correctly and user is presented with choice, but once the choice is made the activity does not respond in receiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { Log.d(intent, Received intent + intent); } }; even though it was presumably set up correctly IntentFilter intentFilter = new IntentFilter(); intentFilter.addDataScheme(geo); intentFilter.addAction(Intent.ACTION_VIEW); registerReceiver(receiver, intentFilter); The same setup does respond to battery power change but for some reason fails here. Any help is greatly appreciated. Regards, Tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HttpURLConnection on android 2.3.5 and 2.3.6
Hallo, After upgrade to android 2.3.5 and 2.3.6, the code for android HttpURLConnection class: urlconn.connect(), urlconn.getOutputStream() and urlconn.getInputStream() becomes very slow (each command takes more than 5 second, under version 2.3.2 or 2.2 it just take less than 1 sec). Does any one has the same situation? My codes looks like this: getUrl = new URL(url); urlConn = (HttpURLConnection) getUrl.openConnection(); urlConn.setUseCaches(false); urlConn.setRequestMethod(httpMethod.name()); urlConn.setConnectTimeout(HTTP_CONNECT_TIMEOUT); urlConn.setReadTimeout(HTTP_READ_TIMEOUT); urlConn.setDoInput(true); if (requestBody != null) urlConn.setFixedLengthStreamingMode(requestBody.length()); if (!(httpMethod == HttpMethod.GET)) urlConn.setDoOutput(true); urlConn.connect(); if (requestBody != null) { osw = new OutputStreamWriter(urlConn.getOutputStream()); osw.write(requestBody); osw.flush(); } in = urlConn.getInputStream(); buffer = new ByteArrayOutputStream(); int nRead; byte[] data = new byte[256]; while ((nRead = in.read(data, 0, data.length)) != -1) { buffer.write(data, 0, nRead); } buffer.flush(); responseBody = buffer.toByteArray(); responseCode = urlConn.getResponseCode(); Regards, Zheng -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HTTP POST to Web Server running on Android Device
line=POST / HTTP/1.1 line=Content-Length: 23 No, you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown which you did not see because the catch statement is empty. Add a Log.i there and you will see. You modified the original code where the loops ends at the first empty line. Take the original code again en check for the Content-Length line. Parse out the value for contentlength; After the loop add following code if ( contentlength 0 ) { char [] buffer = new char[contentlength]; int nread = in.read (buffer, 0, contentlength); String Parameters = new String( buffer); // well you should check if nread equals contentlength } I am wondering where the HTTP POST data is? That just follows the empty line. But as this post data is not terminated with a newline character in.readLine() cannot be used. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADB method profiling causes app to crash
Hi, The app I'm developing has very high CPU usage, causing the battery to run out very quickly when you run it. To more accurately pinpoint what consumes all that CPU I decided to use the ADB method profiling feature. Starting method profiling causes my app to crash however. I have tried to start method profiling both through Eclipse-DDMS and the command line, both with the same result. The only message I get from LogCat is *Fatal signal 11 (SIGSEGV) at 0x (code=1)*. I have tried starting method profiling several times and only once did I get a more verbose error message complaining about the Google Maps Service. I haven't been able to reproduce this message though which is why I cant post it here. I'm developing for Android Google API 14. I'm debugging on a Samsung Galaxy Nexus with Android version 4.0.2. Has anyone run into this problem or knows how to remedy it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Losing memory on tablet but not phone
you can find some information about direct bytebuffer in the documentation : http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html I'm not sure if it help you but it's a good start. by the way , in the documentations it is generally recommended that you use direct allocation if you wish to gain performance. maybe you should try using different allocation method of the byteBuffer class and see if it's still good in a performance manner. (sorry for my english , i haven't practice it for some time ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using setContentView(viewList) in current Activity
Hi, i'm new to android and trying to dispatch a ViewList from a current Activity. (Android 2.2) . I'm getting this exception java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. e.g. Like the search contacts dispatch a new window with the multiple possibilities and then go back to the 1'st Activity Does anyone know how you do it ? Appreciate quick response. Shani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hi to every body
Hi all, This is suraj I am planning to do develop an application fro reading the qr code for that i have searched in the net but I haven't find any thing if anybody have the source code for developing a qr code please sent it to me . you can use this mail as a reference for contacting me Thanks to all Regards, suraj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] My eclipse can't produce APK anymore
Hi Mark, Hope this helps you. http://stackoverflow.com/questions/7964600/project-properties-file-instead-of-default-properties-file On Thu, Mar 1, 2012 at 3:54 PM, mark2011 androidmark2...@gmail.com wrote: Dear All : Today I found that my eclipse went wrong. After I update the program save it in the projects, Eclipse doesn't produce the APK automatically. How do I to generate the apk? Thanks in advanced. My Eclipse is Indigo under Windows/XP. BR, 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] No sound when using mediaPlay in python program
Hi, I have a Samsung Galaxy S2 with android 4.0.3 (not an official release, I'm aware of it) and I don't have sound when using mediaPlay to play a sound file on my device. The program is the following one : import droid droid = android.Android(); play = droid.mediaPlay('/sdcard/download/sound.mp3'); print play When using the python interpreter, it works well and I can hear sound, but when using the exact same code inside a python program there is no sound (the result is immediately returned as if there were no error, i.e print play display {id=1, result=True, error=None}) I checked that my volume is not set to mute, that the file is playing (with droid.mediaPlayInfo) ... there seem to be no problem, but I still can't get it to work. When looking into the logs, I have : [03-04 12:20:28.815 1827:0x723 E/DivXPlugin] DivXPugin::onOpenDecryptSession() Not a Divx File. [03-04 12:20:28.840 1828:0x79f E/SoundAliveSpeedHandler] setSoundAlivePlayspeed(-1) [03-04 12:20:28.840 1828:0x79f E/SoundAliveSpeedHandler] speedtable(-0.502885) [03-04 12:20:28.950 6856:0x1cfb E/sl4a.Relay:157] Problem while handling incoming data in relay thread java.io.IOException: session closed at org.connectbot.transport.ProcessTransport.read(ProcessTransport.java: 81) at org.connectbot.service.Relay.run(Relay.java:125) at java.lang.Thread.run(Thread.java:856) Any help would be 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
[android-developers] power button
hi everyone! how can i set password on shutdown device or on press power button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 10:45 AM, Tom Ratajczak tom.ratajc...@gmail.com wrote: My application is to respond to the following intent Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(geo: 45.0,34.0)); Filtering in the manifest is setup correctly and user is presented with choice, but once the choice is made the activity does not respond in receiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { Log.d(intent, Received intent + intent); } }; even though it was presumably set up correctly IntentFilter intentFilter = new IntentFilter(); intentFilter.addDataScheme(geo); intentFilter.addAction(Intent.ACTION_VIEW); registerReceiver(receiver, intentFilter); The same setup does respond to battery power change but for some reason fails here. Any help is greatly appreciated. ACTION_VIEW is an activity action. It is used with startActivity(). It is not used with sendBroadcast(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Stopping a long-running thread when a service is destroyed
On Sun, Mar 4, 2012 at 8:04 AM, Romain Guidoux romain.guid...@gmail.com wrote: In the service's onDestroy() method, I have to wait for the end of the worker thread, which has to wait for the queue thread. Why do you think you have to do this? onDestroy() should not be waiting for anything. I have thought about sending a shutdown signal to the queue without waiting for it (no join()), but if the service is garbage-collected my thread will be an orphan, so it is also elligible for GC. Active threads are not eligible for GC, as they are held by the OS. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Apple suing ....what to do
Find an attorney. Ask your attorney your questions. This list is for programming questions, not legal advice. On Sat, Mar 3, 2012 at 6:51 AM, App support dssfeedb...@gmail.com wrote: Apple is suing my Android Market application. Just got email from greedy lawyer firm. They work for apple. Can you guys help me? Google/Android team can you help? I don't know ...what to do? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Didn't Android 4.0 have the class com.android.settings.LocalePicker ?
On Thu, Mar 1, 2012 at 3:00 AM, Raphael raphael.li...@gmail.com wrote: In my project, I want to change the language,so I call the class: com.android.settings.LocalePicker. This is not part of the Android SDK. My codes are as follows: Intent intent = new Intent(Intent.ACTION_MAIN); intent.setClassName(com.android.settings, com.android.settings.LocalePicker); startActivity(intent); But I caught an exception ( on Android 4.0.x Platform): AndroidRuntime(10354): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.LocalePicker}; have you declared this activity in your AndroidManifest.xml? So I want to know, didn't Android 4.0 have the class com.android.settings.LocalePicker ? Instead, how should I do? startActivity(new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB serial with D2XXSamplefrom FTDI doesn't detect my device.
Thank you for your response Chris. I'm using a zenithink ZT280 C91. I don't know if anyone has been able to do USB host with this tablet but I finally managed to do it. and it was really quite simple :S First, I have to say that 2.3.4 supports only USB accesory mode. Therefore... I changed my device to 4.0.3. Finally, one must compile a the ftdi_sio.ko module and add it to the kernel. (insmod ftdi_sio.ko) When you do this your ftdi USB cable gets detected and shows up with dmesg at /dev/ttyUSB0 To use it you can code your own app or use android-serialport-api which you can find in google code. As for the D2XXSample project on the ftdi page (marked specifically for android devices) I really don't know what is the idea behind this beta release... I tried it on 2.3.4 aswell as in 4.0.3 and it just doesn't work. Always crashes. On Feb 29, 11:42 pm, Chris Stratton cs07...@gmail.com wrote: On Monday, February 27, 2012 4:28:46 PM UTC-5, Gett wrote: I'm trying to use an FTDI USB chip on Android following the instructions at: http://www.ftdichip.com/Android.htm http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_... The problem is that when I launch the D2XXSample app, the number of devices detected when I click the Info button is always 0. I'm working with Android 2.3.4. Are you working on an android device that is known to have usb host capability, and has a host (or OTG) driver in its kernel and has decided to go into usb host mode? The most important thing you haven't mentioned is the android device you are testing on. Some thing you could try: - first search to see if anyone else has done usb host work with the android device in question - use a voltmeter to verify the FTDI chip is powered - many pre-official-usb-host-support android devices aren't capable of providing this - adb pull, uncompress, and examine /proc/config.gz to see what options your kernel was compiled with - run dmesg from the adb shell shortly after a host usage attempt (or even during it with a terminal app) and see if there's any mention of a new usb device -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Beam demo on PC
Hello, i am a student and also new to android. I did the changes you told here, but when i run the nfc beam demo given at http://developer.android.com/guide/topics/nfc/nfc.html#p2p, it come up with the final result as NFC is not available. I am running this at android 4.0. Please help. thanks On Sat, Mar 3, 2012 at 9:53 AM, goodline surekh...@gmail.com wrote: Got the error fixed! Refer to following post: http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 can be annotated with @Override, but in Java 1.5 can only be applied to methods overriding a superclass method). Go to your project/ide preferences and set the java compiler level to 1.6 and also make sure you select JRE 1.6 to execute your program from eclipse. With Eclipse Galileo you go to Eclipse - Preferences menu item, then select Java and Compiler in the dialog. Now it still may show compiler compliance level at 1.6, yet you still see this problem. So now select the link Configure Project Specific Settings... and in there you'll see the project is set to 1.5, now change this to 1.6. You'll need to do this for all affected projects. This byzantine menu / dialog interface is typical of Eclipse's poor UI design. -Goodline On Jan 29, 7:08 pm, goodline surekh...@gmail.com wrote: Hi, I am a student and new to android development. I am planning to do a project on android nfc peer-to-peer mode. I was wondering if it is possible to create two virtual devices(AVD's) on a windows machine and send data from one device to another with nfc as the medium? Also, when I try to run the sample AndroidBeamDemo project, I see some errors in Beam.java: 1. The method createNdefMessage(NfcEvent) of type Beam must override a superclass method 2. The method onNdefPushComplete(NfcEvent) of type Beam must override a superclass method Any help is appreciated. -Goodline -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Shantanu Jain, BE 4th year, Department of Computer Engineering, Delhi Technological University (formerly Delhi College of Engineering) Delhi - 42 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem with drawing text in scaled Canvas on Android 4.0
Hi, This is not the proper way to measure scaled text. The font size defines the height of the font, not its width. There is no guarantee whatsoever that scaling a font size by a number S will scale the width of the text by the same number S. The proper way is to always call measureText() with the font size you are actually going to use. If you apply a scale factor on the Canvas, simply multiply the result of measureText() with the scale factor. On Fri, Mar 2, 2012 at 4:02 AM, Kaloyan Donev kdo...@gmail.com wrote: Hi, I am using a Typeface to draw text in canvas which have scale matrix. So first I measure the width of text when scale is 1.0. Then I measure the width of text when scale is different than 1.0. And I expect that non scaled width * scale will be equal to scaled width. This is true on devices with Android OS below 4.0, but on Android 4.0 it is not true. Here is sample function that I wrote to test it. static void checkGoodForScale(Typeface face) { TextPaint p = new TextPaint(); p.setAntiAlias(true); p.setSubpixelText(true); p.setTypeface(face); final String text = During that discussion, we touched a bit on the psychological impact all of this—the earthquake; final float textSize = 22.f; p.setTextSize(textSize); float textWidth = p.measureText(text); float scale = 0.05f; while (scale 1.509) { p.setTextSize(textSize * scale); float scaledTextWidth = p.measureText(text); if (Math.abs(scaledTextWidth - textWidth*scale) 1.5f) { Log.d(FontScaleTest, Diff in scale width. 100% = + textWidth*scale + + (int)(scale*100f) + % = + scaledTextWidth + diff = + (scaledTextWidth - textWidth*scale) ); } scale += 0.01f; } } The above function didn't print any messages in log on Android below 4.0. On android 4.0 there is difference on each scale percent. I noticed that widths are separated in groups of 4-5 percents. For example for scale 45% if width is W it is the same for 46%, 47%, 48% and then on 49% it is different. May be there is some kind of cache for closer font sizes. Here is a part of my logcat: D/FontScaleTest( 4408): Diff in scale width. 100% = 686.5115 51% = 660.1074 diff = -26.404053 D/FontScaleTest( 4408): Diff in scale width. 100% = 699.7136 52% = 720.1172 diff = 20.403564 D/FontScaleTest( 4408): Diff in scale width. 100% = 712.9157 53% = 720.1172 diff = 7.201477 D/FontScaleTest( 4408): Diff in scale width. 100% = 726.11786 54% = 720.1172 diff = -6.0006714 D/FontScaleTest( 4408): Diff in scale width. 100% = 739.32 55% = 720.1172 diff = -19.20282 D/FontScaleTest( 4408): Diff in scale width. 100% = 752.52216 56% = 780.12695 diff = 27.604797 D/FontScaleTest( 4408): Diff in scale width. 100% = 765.72424 57% = 780.12695 diff = 14.40271 D/FontScaleTest( 4408): Diff in scale width. 100% = 792.12854 59% = 780.12695 diff = -12.001587 D/FontScaleTest( 4408): Diff in scale width. 100% = 805.3307 60% = 780.12695 diff = -25.203735 D/FontScaleTest( 4408): Diff in scale width. 100% = 818.53284 61% = 840.1367 diff = 21.603882 D/FontScaleTest( 4408): Diff in scale width. 100% = 831.7349 62% = 840.1367 diff = 8.401794 D/FontScaleTest( 4408): Diff in scale width. 100% = 844.9371 63% = 840.1367 diff = -4.800354 D/FontScaleTest( 4408): Diff in scale width. 100% = 858.1392 64% = 840.1367 diff = -18.002502 D/FontScaleTest( 4408): Diff in scale width. 100% = 871.3414 65% = 900.1465 diff = 28.805115 D/FontScaleTest( 4408): Diff in scale width. 100% = 884.5435 66% = 900.1465 diff = 15.602966 D/FontScaleTest( 4408): Diff in scale width. 100% = 897.7456 67% = 900.1465 diff = 2.400879 D/FontScaleTest( 4408): Diff in scale width. 100% = 910.94775 68% = 900.1465 diff = -10.80127 D/FontScaleTest( 4408): Diff in scale width. 100% = 924.1499 69% = 900.1465 diff = -24.003418 Do you think this is bug in android or I am not using it the correct way. I tried this with turned on and off hardware acceleration but there is no difference. Kaloyan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] ICC Profiles
Android currently does not support ICC profiles. On Fri, Mar 2, 2012 at 12:17 PM, Drewby_Ty hbar...@gmail.com wrote: Is there any support for applying ICC profiles in the Android SDK or any future plans to do so? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Stopping a long-running thread when a service is destroyed
On 4 mar, 20:21, Mark Murphy mmur...@commonsware.com wrote: Active threads are not eligible for GC, as they are held by the OS. Oh ok, I did not know that, this is very interesting. On Sun, Mar 4, 2012 at 8:04 AM, Romain Guidoux romain.guid...@gmail.com wrote: Why do you think you have to do this? onDestroy() should not be waiting for anything. Well, I did not absolutely wanted to wait in the onDestroy() method, but I wanted my thread stuff to terminate in a good and safe state. But now I know that a running thread cannot be GC, I have no reason to wait anymore. 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
Re: [android-developers] Re: Stopping a long-running thread when a service is destroyed
On Sun, Mar 4, 2012 at 3:44 PM, Romain Guidoux romain.guid...@gmail.com wrote: Well, I did not absolutely wanted to wait in the onDestroy() method, but I wanted my thread stuff to terminate in a good and safe state. But now I know that a running thread cannot be GC, I have no reason to wait anymore. Now, there *is* a chance that your process will be terminated shortly after onDestroy() is called, taking your threads with you. If whatever you are doing is something the user should be aware of, use startForeground() and stopForeground() during your file transfers to minimize the odds of having the service destroyed and process terminated. In general, though, you need to take into account that your current transfer may be cancelled (by means of the process being terminated), so you should be in position to pick up from where you left off at such time as your app runs again. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to find how many SSIDs are on one WiFi channel...can i select a channel for hotspot
The channel is selected on the router, not on the client. 1 марта 2012 г. 5:54 пользователь Sonia Gupta simply.myfam...@gmail.com написал: I need to switch to any channel i.e. being least used in Android...I know Access Point gives support to find out channel avaialble...bu tnot sure how to dot his android...is there any API? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 8:18 PM, Mark Murphy mmur...@commonsware.com wrote: On Sun, Mar 4, 2012 at 10:45 AM, Tom Ratajczak tom.ratajc...@gmail.com wrote: My application is to respond to the following intent Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(geo: 45.0,34.0)); Filtering in the manifest is setup correctly and user is presented with choice, but once the choice is made the activity does not respond in receiver = new BroadcastReceiver() { public void onReceive(Context context, Intent intent) { Log.d(intent, Received intent + intent); } }; even though it was presumably set up correctly IntentFilter intentFilter = new IntentFilter(); intentFilter.addDataScheme(geo); intentFilter.addAction(Intent.ACTION_VIEW); registerReceiver(receiver, intentFilter); The same setup does respond to battery power change but for some reason fails here. Any help is greatly appreciated. ACTION_VIEW is an activity action. It is used with startActivity(). It is not used with sendBroadcast(). I see the difference now, so this explains why the battery power intent was received. But I still don't know how to receive the intent that was sent with startActivity. 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
Re: [android-developers] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 4:13 PM, Tom Ratajczak tom.ratajc...@gmail.com wrote: I see the difference now, so this explains why the battery power intent was received. But I still don't know how to receive the intent that was sent with startActivity. Thanks for your help. Step #1: Implement an Activity. Step #2: Set up the intent-filter in the manifest to respond to the Intent you want. E.g., intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:scheme=geo / /intent-filter Step #3: Have a beer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 10:19 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Mar 4, 2012 at 4:13 PM, Tom Ratajczak tom.ratajc...@gmail.com wrote: I see the difference now, so this explains why the battery power intent was received. But I still don't know how to receive the intent that was sent with startActivity. Thanks for your help. Step #1: Implement an Activity. Step #2: Set up the intent-filter in the manifest to respond to the Intent you want. E.g., intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / data android:scheme=geo / /intent-filter Step #3: Have a beer. Wait with the beer for a moment:) This is what I am already doing and the activity is selected as one of many, but how do i process the geo:45.0,34.0 that the originating activity sends with startActivity(). This is the missing part here. Activity is selected based on filters but how does it know what number to dial. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 4:33 PM, Tom Ratajczak tom.ratajc...@gmail.com wrote: Wait with the beer for a moment:) Beer delayed is beer denied. This is what I am already doing and the activity is selected as one of many, but how do i process the geo:45.0,34.0 that the originating activity sends with startActivity(). This is the missing part here. Activity is selected based on filters but how does it know what number to dial. Call getIntent() to get the Intent that was used with startActivity(). You get your Uri from there by calling getData(). For a geo: Uri, I'm not completely certain what Uri getter would return the latitude and longitude, though getAuthority() would be my guess. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: power button
On Sunday, March 4, 2012 8:26:39 AM UTC-5, zasaz wrote: hi everyone! how can i set password on shutdown device or on press power button? Head on over to android-porting or xda-developers and build you own version of android itself - this isn't something SDK apps would be permitted to do. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ListSelector - Not Use or Make More Customised
I ended up approaching this problem a different way noted here: http://www.gauntface.co.uk/blog/2012/03/04/android-listview-with-rounded-corners-and-highlighting/ On Friday, 26 February 2010 22:29:31 UTC, Gaunt Face wrote: I've just found the following in the documentation: android:state_first android:state_last android:state_single These seem like all I need, however they don't seem to apply to the list selector, does anyone have any idea if it's possible? Cheers, Matt On Feb 26, 9:11 pm, Gaunt Face matt.t.ga...@googlemail.com wrote: Heya everyone, This is a bit of an odd one and I'm hoping someone will be able to help me out so I don't have to be done away with the focusing. 2 different cases. Case 1: I have a list of elements and the user can click on the items view and perform tasks. I'm happy using xml to define the drawables to be used for each state in a list selector. however I have a listview where the items at the top and bottom have rounded corners and the items in the middle are just strait rectangles. All have a slight drop shadow around the edge. Now the problem is I want to color the list item only inside the drop shadow, not the whole background. But what this means is I need to set a different list selector for the top, middle and bottom list items, that or I would rather handle the focusing and pressed states directly by each list item. However I've tried using a couple of things and can't seem to get anywhere. Does anyone know if the count position of the item in the list can be used in the list selector or if its possible to handle the states by the item itself? Case 2: I have a settings section where I would rather focusing were applied to checkboxes inside the list items, is this possible? I tried setting the listview to not be focusable but had no luck. Any help or suggestions would be great. Cheers, Matt -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SlickUSB2Serial usage
Anybody use the SlickUSB2Serial library to interface to a USB-serial module? I have and I would like to compare notes with others who have used it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adjust Screen Size When Soft Keyboard Shown
Right now in my app, when the soft keyboard is shown, it does not resize my activity to the upper half of the screen that is not being covered by the keyboard, higing some important elements. How would I detect that the soft keyboard has been shown, and then change my layout to fit? ~tinyClark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Adjust Screen Size When Soft Keyboard Shown
On Sun, Mar 4, 2012 at 5:57 PM, Matt Clark mrclark32...@gmail.com wrote: Right now in my app, when the soft keyboard is shown, it does not resize my activity to the upper half of the screen that is not being covered by the keyboard, higing some important elements. How would I detect that the soft keyboard has been shown, and then change my layout to fit? Consider wrapping your layout in a ScrollView, then setting android:windowSoftInputMode to adjustResize. http://developer.android.com/resources/articles/on-screen-inputs.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.os.StrictMode$InstanceCountViolation
The StrictMode source code is available as a download via SDK Manager. Note that the setClassInstanceLimit message you see in the log is faked: // Dummy throwable, for now, since we don't know when or where the // leaked instances came from. We might in the future, but for // now we suppress the stack trace because it's useless and/or // misleading. private static class InstanceCountViolation extends Throwable { final Class mClass; final long mInstances; final int mLimit; private static final StackTraceElement[] FAKE_STACK = { new StackTraceElement(android.os.StrictMode, setClassInstanceLimit, StrictMode.java, 1) }; The detectAll method imposes limits on instances of activities, cursors, and closable (e.g. InputStream) objects: public Builder detectAll() { return enable(DETECT_VM_ACTIVITY_LEAKS | DETECT_VM_CURSOR_LEAKS | DETECT_VM_CLOSABLE_LEAKS); } The instance limit for unknown activities seems to be created on the fly: Integer expected = sExpectedActivityInstanceCount.get(klass); Integer newExpected = expected == null ? 1 : expected + 1; sExpectedActivityInstanceCount.put(klass, newExpected); My guess is that mobileofficeDispatcher is an Activity, and therefore limited by the code above to 2 instances. On Feb 29, 11:10 pm, Roopesh roopesh.ko...@gmail.com wrote: Hi, On enabling StrictMode, getting following messages in StrictMode log. What does the message mean? The test was run on Samsung Galaxt Tab 10.1 with Android OS 3.1 with ThreadPolicy VMPolicy set to detectAll(). 02-05 04:13:45.390: ERROR/StrictMode(15009): class com.mo.android.mobileoffice.mobileofficeDispatcher; instances=3; limit=2 02-05 04:13:45.390: ERROR/StrictMode(15009): android.os.StrictMode $InstanceCountViolation: class com.mo.android.mobileoffice.mobileofficeDispatcher; instances=3; limit=2 02-05 04:13:45.390: ERROR/StrictMode(15009): at android.os.StrictMode.setClassInstanceLimit(StrictMode.java:1) regards, Roopesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en