[android-developers] gdata calendar parse exception in Android
I am creating a widget to access the events stored in a google calendar. Target : Android 2.1 I have included following external jar : google-collect-1.0-rc1.jar jsr305.jar gdata-calendar-2.0.jar, gdata-calendar-meta-2.0.jar, gdata-client-1.0.jar, gdata-client-meta-1.0.jar, gdata-core-1.0.jar I get the following exception : com.google.gdata.util.ParseException : org.xml.sax Can some one help me please ? here is my code: HelloWidget.java package de.thesmile.android.widget2; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.util.ArrayList; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.util.Log; import android.widget.RemoteViews; import com.google.gdata.client.calendar.*; import com.google.gdata.data.*; import de.thesmile.android.widget2.R; public class HelloWidget extends AppWidgetProvider { int number =0; public String gooleres() { String result=new String(Unable to login into your account); // Create a CalenderService and authenticate try { URL feedUrl = new URL(https://www.google.com/calendar/feeds/ default/private/full); CalendarQuery myQuery = new CalendarQuery(feedUrl); myQuery.setMinimumStartTime(DateTime.parseDateTime(2011-03-01T00:00:00)); myQuery.setMaximumStartTime(DateTime.parseDateTime(2011-03-06T23:59:59)); CalendarService myService = new CalendarService(wqewq); myService.setUserCredentials(sunnycool...@gmail.com, XX); //Send the request and receive the response: Feed resultFeed = myService.query(myQuery, Feed.class); for (int i = 0; i resultFeed.getEntries().size(); i++) { Entry entry = resultFeed.getEntries().get(i); result= entry.getTitle().getPlainText().toString(); } } catch(Exception e) { result=Exception raised +e.toString(); } return result; } @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { for (int appWidgetId : appWidgetIds) { RemoteViews views = new RemoteViews(context.getPackageName(),R.layout.main); views.setTextViewText(R.id.widget_textview, gooleres()); appWidgetManager.updateAppWidget(appWidgetId, views); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.3 Causes memory intensive app to crash
Actually Zsolt i think the green icons is a feature that you should also see in the simulator - from the 2.3 manualhttp://www.google.nl/url?sa=tsource=webcd=2sqi=2ved=0CCsQFjABurl=http%3A%2F%2Fwww.google.com%2Fgooglephone%2FAndroidUsersGuide-2.3.pdfrct=jq=nexus%20s%20manualei=jJV0Tf-5GsqfOq7t5F0usg=AFQjCNGiUuQnTKXnryY1RGF8_2H-uGWAGQsig2=mqOD6AtYl6MM8QByXTM56A : Network status icons turn green if you have a Google Account added to your phone and the phone is connected to Google services I've also noticed that when turning my 3G on and off - like i constantly need to do on 2.3.3 to conserve battery - it stays white for a bit before it connects to the Google Services. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can i create ListView in tabbed layout ?.
Hi, I am trying to create a ListView in tabbed Layout, like the first tab contains the list of all songs alphabetically and the second tab contains albums in list view..is there any way i can create ListView in tabbed layout ?. thanks regards, G.Santhosh Kumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 2.3 Causes memory intensive app to crash
Ah, thanks. That's a relief. On Mar 7, 4:25 pm, David Goemans dgoem...@gmail.com wrote: Actually Zsolt i think the green icons is a feature that you should also see in the simulator - from the 2.3 manualhttp://www.google.nl/url?sa=tsource=webcd=2sqi=2ved=0CCsQFjABurl... : Network status icons turn green if you have a Google Account added to your phone and the phone is connected to Google services I've also noticed that when turning my 3G on and off - like i constantly need to do on 2.3.3 to conserve battery - it stays white for a bit before it connects to the Google Services. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Start laoding when scroll reaches end
Hey guys I am parsing xml and i want that when the scroll is reached to the end then the request to new data is handled. For ex if the list is showing only 10 results and when i scrolled down to the last result item ,then :- 1. how to show the loading view same as it is in market when we search for applications and scroll down the loading text appears. 2. and then show the list of the result items appended to the existing list My approach till now :- I have made a custom ScrollView and am printing the message when the scroll reaches the end. Now i want to show the loading text on activity screen when the scroll reaches end. 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] Problem with resources while drawing
Hi, I am drawing some images on the canvas with a delay of 1sec continuously. I am getting the following exception when my app comes from background to foreground. Can any one tell me what this exception is?? Also, some times when my apps goes to background, it gives exception saying it could not find the image resource. 03-07 15:03:21.082: ERROR/qsd8k.gralloc(97): /dev/pmem: no more pmem available 03-07 15:03:21.082: ERROR/qsd8k.gralloc(97): couldn't open pmem (Try again) 03-07 15:03:21.082: ERROR/qsd8k.gralloc(97): gralloc failed err=Out of memory 03-07 15:03:21.082: WARN/GraphicBufferAllocator(97): alloc(800, 718, 1, 0133, ...) failed -12 (Out of memory) 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): Allocated buffers: 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x33a7b8: 539.75 KiB | 519 ( 544) x 254 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x388318: 1346.25 KiB | 480 ( 480) x 718 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x3d0e48: 1428.75 KiB | 480 ( 480) x 762 |1 | 0x0303 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x42f5b0: 1500.00 KiB | 480 ( 480) x 800 |2 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x451a70: 1500.00 KiB | 480 ( 480) x 800 |2 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x456a48: 750.00 KiB | 480 ( 480) x 800 |4 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4591e0: 1500.00 KiB | 480 ( 480) x 800 |2 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x472a28: 539.75 KiB | 519 ( 544) x 254 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x47bc60: 1500.00 KiB | 480 ( 480) x 800 |2 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4b7ac8: 60.00 KiB | 102 ( 128) x 120 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4c1990: 1428.75 KiB | 480 ( 480) x 762 |1 | 0x0303 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4cb548: 1500.00 KiB | 480 ( 480) x 800 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4d4230: 1500.00 KiB | 480 ( 480) x 800 |2 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4d9900: 539.75 KiB | 519 ( 544) x 254 |1 | 0x0133 03-07 15:03:21.082: DEBUG/GraphicBufferAllocator(97): 0x4dc0a0: 204.25 KiB | 603 ( 608) 03-07 15:03:21.082: ERROR/SurfaceFlinger(97): Layer::requestBuffer(this=0x491a10), index=0, w=800, h=718 failed (Out of memory) 03-07 15:03:21.082: ERROR/Surface(264): Surface (identity=4) requestBuffer(0, 0, 0, 0, 0033) returned a buffer with a null handle 03-07 15:03:21.082: ERROR/Surface(264): getBufferLocked(0, 0, 0, 0, 0033) failed (Out of memory) 03-07 15:03:21.082: ERROR/Surface(264): dequeueBuffer failed (Out of memory) 03-07 15:03:21.092: INFO/zephyr.android.mhealth.ftiab.gui.ZephyrOmniSense(10622): onStart 03-07 15:03:21.092: INFO/zephyr.android.mhealth.ftiab.gui.ZephyrOmniSense(10622): onResume 03-07 15:03:21.102: ERROR/ViewRoot(264): OutOfResourcesException locking surface 03-07 15:03:21.102: ERROR/ViewRoot(264): android.view.Surface$OutOfResourcesException 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.view.Surface.lockCanvasNative(Native Method) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.view.Surface.lockCanvas(Surface.java:314) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.view.ViewRoot.draw(ViewRoot.java:1456) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.view.ViewRoot.performTraversals(ViewRoot.java:1258) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.os.Handler.dispatchMessage(Handler.java:99) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.os.Looper.loop(Looper.java:123) 03-07 15:03:21.102: ERROR/ViewRoot(264): at android.app.ActivityThread.main(ActivityThread.java:3683) 03-07 15:03:21.102: ERROR/ViewRoot(264): at java.lang.reflect.Method.invokeNative(Native Method) 03-07 15:03:21.102: ERROR/ViewRoot(264): at java.lang.reflect.Method.invoke(Method.java:507) 03-07 15:03:21.102: ERROR/ViewRoot(264): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 03-07 15:03:21.102: ERROR/ViewRoot(264): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-07 15:03:21.102: ERROR/ViewRoot(264): at dalvik.system.NativeStart.main(Native Method) Thanks, Shashidhar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit
[android-developers] Re: Install % drop again?
My install % is down to 46% now that the latest count has been updated. Diane, I am sorry to directly e-mail you, but I am copying you on this -- please forward as appropriate. I've been trying to help people on here, but I now need help from Google -- this problem is ruining my business. My developer account is under my e-mail, and I am only publishing one paid app. Could you let me know if you get anywhere, and if so which channel was helpful ? Did you try here: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email's message threading
Dear all, For message threading on Email app, I know it lacks the conversation view (like Gmail's conversation view) on message list. can any expert give me any advices on the indexing mechanism in Email's sync mechanism?! Thanks! Gary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Email's message threading
Don't know if I qualify as an expert but - Mail messages can contain a header, Message-ID, whose value uniquely identifies that particular message. Message ID values can be used to cross-reference related messages to one another. Specifically, there are two headers, In-Reply-To and References, which may contain the message ID values of original (replied to) and referenced (e.g. a mailing list thread) messages. These are defined by RFC 2822, section 3.6.4: http://www.apps.ietf.org/rfc/rfc2822.html#sec-3.6.4 -- Kostya 07.03.2011 12:55, Gary Wang пишет: Dear all, For message threading on Email app, I know it lacks the conversation view (like Gmail's conversation view) on message list. can any expert give me any advices on the indexing mechanism in Email's sync mechanism?! Thanks! Gary -- Kostya Vasilyev -- http://kmansoft.wordpress.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: Install % drop again?
Did you try here: http://www.google.com/support/androidmarket/bin/request.py?contact_ty... There is no free-form e-mail option there that I can see, and none of the topics apply in my case. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use normal class object as context?
hi, i have one database class.in which i have public Database(Context ctx) { context = ctx; DBHelper = new DatabaseHelper(context); } where DatabaseHelper is a static class. Now my problem is that if i call it from activity class than there is no problem. but i have one normal java class. like public class xyz { } how to instantiate database class from this class. if i do like db = new Database(this); it gives me error. so how can i achieve this? thankx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 use normal class object as context?
how to instantiate database class from this class. if i do like db = new Database(this); it gives me error. so how can i achieve this? normal class got no idea what Context is. There's same thread on friday or sat if I remember correctly. The sugested solution was to extend Application class with singleton pattern and add static method to get the content. Check group archive. -- Regards, Marcin Orlowski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can i create ListView in tabbed layout ?.
Yes. See this sample project: https://github.com/commonsguy/cw-andtutorials/tree/master/06-Tabs/LunchList On Mon, Mar 7, 2011 at 3:26 AM, Santhosh Kumar santhoshgu...@gmail.com wrote: Hi, I am trying to create a ListView in tabbed Layout, like the first tab contains the list of all songs alphabetically and the second tab contains albums in list view..is there any way i can create ListView in tabbed layout ?. thanks regards, G.Santhosh Kumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs at bottom of Activity
Hi All, I want to make an Activity which would have tabs at bottom of screen not at top. I have tried many thing even i have set the paddingTop parameter of tabwidget to fix . i.e 220px. But this would not work for different screen sizes. If somebody have any solution, let me know. Thanks Chetan Chauhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can i create ListView in tabbed layout ?.
Thanks Mark..that was a perfect help :) thanks regards, G.Santhosh Kumar +91 9966973790 On Mon, Mar 7, 2011 at 5:49 PM, Mark Murphy mmur...@commonsware.com wrote: Yes. See this sample project: https://github.com/commonsguy/cw-andtutorials/tree/master/06-Tabs/LunchList On Mon, Mar 7, 2011 at 3:26 AM, Santhosh Kumar santhoshgu...@gmail.com wrote: Hi, I am trying to create a ListView in tabbed Layout, like the first tab contains the list of all songs alphabetically and the second tab contains albums in list view..is there any way i can create ListView in tabbed layout ?. thanks regards, G.Santhosh Kumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Install % drop again?
On Mon, Mar 7, 2011 at 4:44 AM, Zsolt Vasvari zvasv...@gmail.com wrote: There is no free-form e-mail option there that I can see, and none of the topics apply in my case. Just pick one - maybe the bugs one - it's the closest you're going to get to support for this issue. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] gdata calendar parse exception in Android
On Mon, Mar 7, 2011 at 2:08 AM, Gaurav Shah sunnycool...@gmail.com wrote: I get the following exception : com.google.gdata.util.ParseException : org.xml.sax Can some one help me please ? Try a group or forum dedicated to the gdata library. This has nothing to do with Android. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AIDL stubs are not generated anymore
Hi, I have recently upgraded to SDK tools r10 and SDK platform tools r3. At first everything worked fine, for a couple days. Then I changed very few things in a layout and in my attrs.xml and the build is now failing in Eclipse. Reverting the changes didn't help. R.java is here but the AIDL stubs are not generated anymore. However, everything works fine when I build from the command line. My project targets android-8, with android-3 for the min sdk version. I can't find any useful warning/error when either building in Eclipse (verbose) or from the command line. What's up? I got plenty of work to do, and this is about to kill my day. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Connection problem
HI, I read developer.android.com and via class connectivitymanager should I get network state info. I want to know is my mobile connected to the internet? I try it like this but it doesn't work. can you help me what I am doing wrong? I have this in onCreate method. ConnectivityManager cm = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); NetworkInfo ni = cm.getActiveNetworkInfo(); boolean variable = ni.isConnected(); if (variable) Toast.makeText(this, I'm connected, Toast.LENGTH_SHORT).show(); thank you very much R. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AIDL stubs are not generated anymore
Oh, and by the way, this affects two absolutely distinct projects which both have AIDL files, and which used to build just fine. I have cleaned many times, and even reimported a project, but it didn't help. I am using Eclipse 3.4.2 Ganymede. Olivier On 03/07/2011 02:48 PM, Olivier Guilyardi wrote: Hi, I have recently upgraded to SDK tools r10 and SDK platform tools r3. At first everything worked fine, for a couple days. Then I changed very few things in a layout and in my attrs.xml and the build is now failing in Eclipse. Reverting the changes didn't help. R.java is here but the AIDL stubs are not generated anymore. However, everything works fine when I build from the command line. My project targets android-8, with android-3 for the min sdk version. I can't find any useful warning/error when either building in Eclipse (verbose) or from the command line. What's up? I got plenty of work to do, and this is about to kill my day. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help with Location Updates
My appwidget seems to work for every user except this one guy with a Droid2. The app needs to be kept apprised of the user's current location but is happy with a coarse location. I use the following code for tracking the user's location: public void setDynamicLocation() { logger.verbose( TAG, Setting dynamic location ); // list all known providers ListString all = mLocationManager.getAllProviders(); logger.debug( TAG, All available location providers: + all.toString() ); // find the best location provider available Criteria criteria = new Criteria(); criteria.setAccuracy( Criteria.ACCURACY_COARSE ); criteria.setAltitudeRequired( false ); criteria.setBearingRequired( false ); criteria.setCostAllowed( true ); criteria.setPowerRequirement( Criteria.POWER_LOW ); String provider = mLocationManager.getBestProvider( criteria, true ); logger.debug( TAG, Best location provider: + provider ); // register for location updates setListenerInitialized( true ); mLocationManager.requestLocationUpdates( provider != null ? provider : LocationManager.NETWORK_PROVIDER, LOCATION_PERIOD, LOCATION_CHANGE_TRIGGER, this ); } For this specific user, I see the following in my log: Setting dynamic location All available location providers: [network, passive, gps] Best location provider: null onProviderDisabled: network That last entry is coming from my listener. My user tells me that the phone is in good working order, that he uses it to make phone calls, and that his GPS is functioning and on. So here is what I need to understand: 1) Why would getBestProvider return null? Shouldn't it always be able to tell me something? 2) Why would a network provider be disabled? Shouldn't that always be available - assuming that you are not in airplane mode and can make phone calls? 3) If the GPS is on, shouldn't my code pick up the GPS if network is disabled? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Help with Location Updates
On Mon, Mar 7, 2011 at 8:55 AM, Jake Colman col...@ppllc.com wrote: 1) Why would getBestProvider return null? GPS is not POWER_LOW, AFAIK. Shouldn't it always be able to tell me something? If you ask for criteria that cannot be met, you will get null. 2) Why would a network provider be disabled? Because the user didn't check the checkbox to enable it. Shouldn't that always be available - assuming that you are not in airplane mode and can make phone calls? No. 3) If the GPS is on, shouldn't my code pick up the GPS if network is disabled? GPS is not POWER_LOW, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Curve Gallery or listview with center zoom in and other zoom out option.
hi, I want a list or gallery that scroll like arc. Also current item must zoom in and other item must zoom out... as like the sample image i attached. http://i.imgur.com/7yFZ1.png 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] Android Curve Gallery or listview with center zoom in and other zoom out option.
On Mon, Mar 7, 2011 at 8:28 AM, Ganapathy cganapa...@gmail.com wrote: I want a list or gallery that scroll like arc. Also current item must zoom in and other item must zoom out... as like the sample image i attached. http://i.imgur.com/7yFZ1.png Thanks. I want a cheetah or puma that runs like wind. Also should be house-broken and good with kids as like the sample image i attached. http://students.cis.uab.edu/wazjose2/cheeta.jpg Thanks. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] TableLayout Problem
To Mark Thanks for the advice and link Here is What debug gives when I activate the Activity which has a TableRow with an EditView NOTE: If I change EditView to TextView All works well DalvikVM[localhost:8635] Thread [1 main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2663 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] Thread [6 Binder Thread #2] (Running) Thread [5 Binder Thread #1] (Running) LogCat has 03-07 10:11:36.264: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) 03-07 10:11:36.997: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) 03-07 10:11:37.244: INFO/ActivityManager(59): Displayed activity org.example.demo/.demoMainActivity: 362441 ms (total 362441 ms) 03-07 10:12:02.824: INFO/ActivityManager(59): Starting activity: Intent { cmp=org.example.demo/.demoStockTakeActivity } 03-07 10:12:12.854: WARN/ActivityManager(59): Launch timeout has expired, giving up wake lock! 03-07 10:12:12.951: WARN/ActivityManager(59): Activity idle timeout for HistoryRecord{45155548 org.example.demo/.demoStockTakeActivity} The Layout is as follows TableLayout android:layout_x=0dp android:layout_y=90dp android:scrollbars=vertical android:layout_width=match_parent android:layout_height=wrap_content TableRow android:layout_margin=2dp TextView android:id=@+id/stkRowQty android:text=Qty / Unit android:layout_margin=2dp android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=80dp android:layout_height=wrap_content / EditView --- Problem HERE android:id=@+id/stkRowCount android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=80dp android:layout_height=wrap_content / TextView android:id=@+id/stkRowDiff android:text=Diff. android:layout_margin=2dp android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=60dp android:layout_height=wrap_content / /TableRow /TableLayout Thanks in advance On Mar 6, 2011, at 8:53 PM, Mark Murphy wrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. It is definitely possible to have EditTexts in TableRows: https://github.com/commonsguy/cw-andtutorials/blob/master/03-FancierForm/LunchList/res/layout/main.xml On Sun, Mar 6, 2011 at 7:54 PM, New Developer secur...@isscp.com wrote: I'm trying to create a simple Table Layout Within the TableRow I can have TextView 's but when I place an EditView in the TableRow It crashes is an Error and ideas how I can create a table row with both an TextView and an EditView 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers
Re: [android-developers] TableLayout Problem
Allow Eclipse to run past the point of the exception and get the real stack trace in LogCat. On Mon, Mar 7, 2011 at 10:17 AM, New Developer secur...@isscp.com wrote: To Mark Thanks for the advice and link Here is What debug gives when I activate the Activity which has a TableRow with an EditView NOTE: If I change EditView to TextView All works well DalvikVM[localhost:8635] Thread [1 main] (Suspended (exception RuntimeException)) ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2663 ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2679 ActivityThread.access$2300(ActivityThread, ActivityThread$ActivityRecord, Intent) line: 125 ActivityThread$H.handleMessage(Message) line: 2033 ActivityThread$H(Handler).dispatchMessage(Message) line: 99 Looper.loop() line: 123 ActivityThread.main(String[]) line: 4627 Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method] Method.invoke(Object, Object...) line: 521 ZygoteInit$MethodAndArgsCaller.run() line: 868 ZygoteInit.main(String[]) line: 626 NativeStart.main(String[]) line: not available [native method] Thread [6 Binder Thread #2] (Running) Thread [5 Binder Thread #1] (Running) LogCat has 03-07 10:11:36.264: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) 03-07 10:11:36.997: DEBUG/KeyguardViewMediator(59): pokeWakelock(5000) 03-07 10:11:37.244: INFO/ActivityManager(59): Displayed activity org.example.demo/.demoMainActivity: 362441 ms (total 362441 ms) 03-07 10:12:02.824: INFO/ActivityManager(59): Starting activity: Intent { cmp=org.example.demo/.demoStockTakeActivity } 03-07 10:12:12.854: WARN/ActivityManager(59): Launch timeout has expired, giving up wake lock! 03-07 10:12:12.951: WARN/ActivityManager(59): Activity idle timeout for HistoryRecord{45155548 org.example.demo/.demoStockTakeActivity} The Layout is as follows TableLayout android:layout_x=0dp android:layout_y=90dp android:scrollbars=vertical android:layout_width=match_parent android:layout_height=wrap_content TableRow android:layout_margin=2dp TextView android:id=@+id/stkRowQty android:text=Qty / Unit android:layout_margin=2dp android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=80dp android:layout_height=wrap_content / EditView --- Problem HERE android:id=@+id/stkRowCount android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=80dp android:layout_height=wrap_content / TextView android:id=@+id/stkRowDiff android:text=Diff. android:layout_margin=2dp android:background=#00 style=@style/CodeFont android:gravity=center android:layout_width=60dp android:layout_height=wrap_content / /TableRow /TableLayout Thanks in advance On Mar 6, 2011, at 8:53 PM, Mark Murphy wrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. It is definitely possible to have EditTexts in TableRows: https://github.com/commonsguy/cw-andtutorials/blob/master/03-FancierForm/LunchList/res/layout/main.xml On Sun, Mar 6, 2011 at 7:54 PM, New Developer secur...@isscp.com wrote: I'm trying to create a simple Table Layout Within the TableRow I can have TextView 's but when I place an EditView in the TableRow It crashes is an Error and ideas how I can create a table row with both an TextView and an EditView 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TouchEvent - ACTION_UP after ~30 seconds
Hi, I need the user touching the screen for a long period of time, but approximately after 30 seconds there is an ACTION_UP event automatically. I tested on three devices and it always happen. To understand what I'm saying, just swype on your home screen (to switch home screens) but keep your finger touching the screen, you will see that after 30 seconds you will release the finger from the screen. Any idea how to solve this issue? Thanks, Thiago -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TableLayout Problem
Never mind I had EditView and NOT EditText my mistake Thanks On Mar 6, 2011, at 8:53 PM, Mark Murphy wrote: Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. It is definitely possible to have EditTexts in TableRows: https://github.com/commonsguy/cw-andtutorials/blob/master/03-FancierForm/LunchList/res/layout/main.xml On Sun, Mar 6, 2011 at 7:54 PM, New Developer secur...@isscp.com wrote: I'm trying to create a simple Table Layout Within the TableRow I can have TextView 's but when I place an EditView in the TableRow It crashes is an Error and ideas how I can create a table row with both an TextView and an EditView 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs at bottom of Activity
Hi, I think u might go for menu items if u want tabs. Menu items work same as tabs and more than that they are at the bottom of the page Lalit Poptani T. Saltriver InfoSystem pvt. ltd. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AIDL stubs are not generated anymore
Ok, for the records, I did a fresh install of Eclipse Helios, re-imported my projects, and the problem's gone. Olivier On 03/07/2011 02:55 PM, Olivier Guilyardi wrote: Oh, and by the way, this affects two absolutely distinct projects which both have AIDL files, and which used to build just fine. I have cleaned many times, and even reimported a project, but it didn't help. I am using Eclipse 3.4.2 Ganymede. Olivier On 03/07/2011 02:48 PM, Olivier Guilyardi wrote: Hi, I have recently upgraded to SDK tools r10 and SDK platform tools r3. At first everything worked fine, for a couple days. Then I changed very few things in a layout and in my attrs.xml and the build is now failing in Eclipse. Reverting the changes didn't help. R.java is here but the AIDL stubs are not generated anymore. However, everything works fine when I build from the command line. My project targets android-8, with android-3 for the min sdk version. I can't find any useful warning/error when either building in Eclipse (verbose) or from the command line. What's up? I got plenty of work to do, and this is about to kill my day. -- Olivier -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TouchEvent - ACTION_UP after ~30 seconds
I found this: There is a setting in the touch IC that causes touches that stay in more or less the same place for extended periods of time to be calibrated out. That is the setting that is causing this ACTION_UP message to be sent if you press and hold for more than 20 seconds (20-30 seconds is our typical setting). The reason this feature exists is to allow for false touches to eventually be removed from the screen (false touches can be generated in a number of ways, most likely water on the screen during operation). There are many arguments for and against this type of behavior, but I can say that at this time we do not have a coherent system strategy to deal with this type of operation. There are no requirements that specify exactly how persistent touches should be handled and the implementations we have today are based on the individual products desired use case support . Is there any way to avoid this? Or to fool it? Thiago On Mon, Mar 7, 2011 at 12:23, Thiago Lopes Rosa thiago.r...@gmail.comwrote: Hi, I need the user touching the screen for a long period of time, but approximately after 30 seconds there is an ACTION_UP event automatically. I tested on three devices and it always happen. To understand what I'm saying, just swype on your home screen (to switch home screens) but keep your finger touching the screen, you will see that after 30 seconds you will release the finger from the screen. Any idea how to solve this issue? Thanks, Thiago -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TouchEvent - ACTION_UP after ~30 seconds
It just seems to me - as a user - like a strange requirement to have. I can't imagine holding my finger on the screen for 20 seconds or longer in order to use a program. Um, unless it's an application intended to prevent prison breaks :) -- Kostya 07.03.2011 18:48, Thiago Lopes Rosa ?: I found this: There is a setting in the touch IC that causes touches that stay in more or less the same place for extended periods of time to be calibrated out. That is the setting that is causing this ACTION_UP message to be sent if you press and hold for more than 20 seconds (20-30 seconds is our typical setting). The reason this feature exists is to allow for false touches to eventually be removed from the screen (false touches can be generated in a number of ways, most likely water on the screen during operation). There are many arguments for and against this type of behavior, but I can say that at this time we do not have a coherent system strategy to deal with this type of operation. There are no requirements that specify exactly how persistent touches should be handled and the implementations we have today are based on the individual products desired use case support . Is there any way to avoid this? Or to fool it? Thiago On Mon, Mar 7, 2011 at 12:23, Thiago Lopes Rosa thiago.r...@gmail.com mailto:thiago.r...@gmail.com wrote: Hi, I need the user touching the screen for a long period of time, but approximately after 30 seconds there is an ACTION_UP event automatically. I tested on three devices and it always happen. To understand what I'm saying, just swype on your home screen (to switch home screens) but keep your finger touching the screen, you will see that after 30 seconds you will release the finger from the screen. Any idea how to solve this issue? Thanks, Thiago -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.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] when will the source code for Android 3.0 released?
I am trying to find out nuances with the new features of home screen widgets. I am wondering when will the source code for Android 3.0 be availabe in git repositories. Thanks Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can't communicate with NfcB tag
Ok, for #1 I'll just keep trying the card and see if I can manage to talk to it. For the additional issues, the sequence of events and relevant code is as follows: I scan a card with my app set to receive the scans. The appropriate Activity opens, retrieves a Tag object, and executes an AsyncTask. The AsyncTask determines the card technology and based on the card technology, attempts to open a connection to that card as follows: private static NfcB getNfcBTag(Tag tag) throws Exception { NfcB myTag = NfcB.get(tag); try { if(!myTag.isConnected()) { myTag.connect(); } } catch(Exception e) { Log.e(TAG, e.getMessage()); } return myTag; } The above method throws an exception on myTag.connect(). The exception is a java.IOException, but the message and source are both null, so I have no idea why it's happening. Now, if I change this method to be IsoDep instead of NfcB (or NfcA, for that matter), I am able to successfully connect to the card, send a message to the card, and retrieve a response from that card. -- Paul Christensen On Sun, Mar 6, 2011 at 10:06 PM, Nick Pelly n...@android.com wrote: Hi Paul, For (1), it is very hard to discover NfcB credit card on the Nexus S. Many NfcB credit cards only work well with high powered readers. That said, if you play with the credit card orientation against the back of the Nexus S (where the NFC antenna is) you should be able to eventually scan it. For (2), (3) and (4), can you provide some sample code, and tell us exactly where it is failing. Nick On Fri, Mar 4, 2011 at 10:30 AM, Paul Christensen p.ellischristen...@gmail.com wrote: Ok, so I've learned additional, somewhat less than encouraging things. 1. I have a Discover Zip card, no idea what the ISO technology is, all I do know is the Nexus S does not respond at all to this card. 2. I have a Visa NfcB card that will connect as IsoDep, but not as NfcB. 3. I have an Amex NfcB card that will connect as IsoDep, but not as NfcB. 4. I have a MasterCard NfcA card that will connect as IsoDep, but not as NfcA. Any thoughts would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help with Location Updates
MM == Mark Murphy mmur...@commonsware.com writes: MM On Mon, Mar 7, 2011 at 8:55 AM, Jake Colman col...@ppllc.com wrote: 1) Why would getBestProvider return null? MM GPS is not POWER_LOW, AFAIK. Shouldn't it always be ble to tell me something? MM If you ask for criteria that cannot be met, you will get null. The API docs say that all criteria but cost will be relaxed until a match can be found. Is the API buggy or did I misunderstand the intention? 2) Why would a network provider be disabled? MM Because the user didn't check the checkbox to enable it. Hm. That never occurred to me! I didn't think there was a separate option for network locating; I thought it was just for GPS. Shouldn't that always be available - assuming that you are not in airplane mode and can make phone calls? MM No. Because it might be disabled as you stated above? 3) If the GPS is on, shouldn't my code pick up the GPS if network is disabled? MM GPS is not POWER_LOW, AFAIK. Ok. So what is recommended practice for my location needs? I am happy with a coarse location so if network and GPS are both available I'd prefer using the network (uses less power and can obtain a fix more quickly). On other hand, if all you have is GPS I certainly don't mind making use of that. Is removing the power requirements the proper way to achieve that? if my own phone had this issue I would test it. Since I am sending a beta app to my user I'd rather have an idea of what to expect before writing some new code. Thanks. -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Reviews showing up in developer account but not in Android market.
It would be really developer friendly if Android market showed comments in English as well, perhaps behind a button click if not by default. In a lot of European countries, even though the primary language is not English(eg. Germay, France, Denmark), most users are reasonably fluent in English. A single 1 star comment (despite above average ratings) adversely impacts the quality perception of an app. With no option of responding to the comment or providing our side of the story, the current systems is extrmely biased against developers. --MB On Mar 6, 10:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So true... On Mar 7, 2:01 pm, brian purgert brianpurge...@gmail.com wrote: I get worse reviews from non english speaking people for some reason. So its good they don't show up for me. On Mar 6, 2011 10:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The comment won't show up if the person who wrote it has a device set to use a different language than the person viewing the comments. It's just another puzzling decision by the Market team as: a) The comment may still be in English, regardless of the phone's setting b) The star rating by itself has some value On the other hand, applications written for a different country DO show up even though they are completely useless outside of their country. For example, if you look at the Finance category, it's littered with apps written for the Korean and Japanese markets. On Mar 7, 10:36 am, MB manoj.bi...@gmail.com wrote: Hi, I've a few reviews that show up in my developer account but they do not show up in the Android market. - I've checked the Android market both on the website (market.android.com) as well as on the device (Verizon droid). -These reviews are a few week to a few months old. I would really appreciate if anyone could provide any explanation for why this would happen. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Reviews showing up in developer account but not in Android market.
07.03.2011 19:11, MB пишет: It would be really developer friendly if Android market showed comments in English as well, perhaps behind a button click if not by default. In a lot of European countries, even though the primary language is not English(eg. Germay, France, Denmark), most users are reasonably fluent in English. A single 1 star comment (despite above average ratings) adversely impacts the quality perception of an app. With no option of responding to the comment or providing our side of the story, the current systems is extrmely biased against developers. That's the real issue here, IMO - not being able to respond to user comment made by others about your own application. This could be a viable supplementary support channel, as well. As a user, I like the idea about being able to see comments made from other locales. There could be translation, too - Cyrket had it working that way, and it was pretty useful to be able to read comments posted in, say, French or Japanese (I don't understand either). -- Kostya --MB On Mar 6, 10:36 pm, Zsolt Vasvarizvasv...@gmail.com wrote: So true... On Mar 7, 2:01 pm, brian purgertbrianpurge...@gmail.com wrote: I get worse reviews from non english speaking people for some reason. So its good they don't show up for me. On Mar 6, 2011 10:06 PM, Zsolt Vasvarizvasv...@gmail.com wrote: The comment won't show up if the person who wrote it has a device set to use a different language than the person viewing the comments. It's just another puzzling decision by the Market team as: a) The comment may still be in English, regardless of the phone's setting b) The star rating by itself has some value On the other hand, applications written for a different country DO show up even though they are completely useless outside of their country. For example, if you look at the Finance category, it's littered with apps written for the Korean and Japanese markets. On Mar 7, 10:36 am, MBmanoj.bi...@gmail.com wrote: Hi, I've a few reviews that show up in my developer account but they do not show up in the Android market. - I've checked the Android market both on the website (market.android.com) as well as on the device (Verizon droid). -These reviews are a few week to a few months old. I would really appreciate if anyone could provide any explanation for why this would happen. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- Kostya Vasilyev -- http://kmansoft.wordpress.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] Camera startPreview() failed on Nexus S with Gingerbread
Hi there! I've tested my app developed with SDK 2.2 as target on a Nexus S with Gingerbread. All it goes ok, except the activity that uses the Camera hardware to take pictures. I don't know what's wrong... :( Is there anyone who has had the same problem? Please help me! Thanks in advance! This is my logcat: 03-07 17:47:04.457: ERROR/SecCamera(75): ERR(int android::fimc_v4l2_reqbufs(int, v4l2_buf_type, int)):VIDIOC_REQBUFS failed 03-07 17:47:04.457: ERROR/SecCamera(75): int android::SecCamera::startPreview()::828 fail. errno: Out of memory, m_camera_id = 0 03-07 17:47:04.457: ERROR/CameraHardwareSec(75): ERR(virtual android::status_t android::CameraHardwareSec::startPreview()):Fail on mSecCamera-startPreview() 03-07 17:47:04.460: DEBUG/AndroidRuntime(793): Shutting down VM 03-07 17:47:04.460: WARN/dalvikvm(793): threadid=1: thread exiting with uncaught exception (group=0x40015560) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): FATAL EXCEPTION: main 03-07 17:47:04.468: ERROR/AndroidRuntime(793): java.lang.RuntimeException: startPreview failed 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.hardware.Camera.startPreview(Native Method) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at it.visitotuscany.CameraActivity.surfaceChanged(CameraActivity.java: 330) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.SurfaceView.updateWindow(SurfaceView.java:549) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:348) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.drawChild(ViewGroup.java:1644) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.View.draw(View.java:6883) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.widget.FrameLayout.draw(FrameLayout.java:357) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.drawChild(ViewGroup.java:1646) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.View.draw(View.java:6883) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.widget.FrameLayout.draw(FrameLayout.java:357) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1862) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewRoot.draw(ViewRoot.java:1522) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewRoot.performTraversals(ViewRoot.java:1258) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.os.Handler.dispatchMessage(Handler.java:99) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.os.Looper.loop(Looper.java:123) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at android.app.ActivityThread.main(ActivityThread.java:3683) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at java.lang.reflect.Method.invokeNative(Native Method) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at java.lang.reflect.Method.invoke(Method.java:507) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 03-07 17:47:04.468: ERROR/AndroidRuntime(793): at dalvik.system.NativeStart.main(Native Method) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help with Location Updates
Incidentally, in the emulator I have both network and gps listed as available but getBestProvider always returns null even if I relax the criteria. And the locationListener tells me that network is disabled. -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Tabs at bottom of Activity
Try these: http://www.anddev.org/viewtopic.php?p=21932 http://stackoverflow.com/questions/2395661/android-tabs-at-the-bottom/2710404#2710404 On Mon, Mar 7, 2011 at 8:43 AM, lalit poptani lalit.popt...@gmail.comwrote: Hi, I think u might go for menu items if u want tabs. Menu items work same as tabs and more than that they are at the bottom of the page Lalit Poptani T. Saltriver InfoSystem pvt. ltd. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem with resources while drawing
* Can any one tell me what this exception is??* Yes... check the link below * 03-07 15:03:21.102: ERROR/ViewRoot(264): OutOfResourcesException locking surface* http://developer.android.com/reference/android/view/Surface.OutOfResourcesException.html On Mon, Mar 7, 2011 at 2:42 AM, Shashidhar shashi.zep...@gmail.com wrote: f -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help with Location Updates
Jake == Jake Colman col...@ppllc.com writes: Jake Incidentally, in the emulator I have both network and gps Jake listed as available but getBestProvider always returns null Jake even if I relax the criteria. And the locationListener tells Jake me that network is disabled. Ignore this last part. I did not have network enabled on the emulator. -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Change Keyboard Key label at runtime
* Ok. I am sorry if I upset you. I felt a little bruised myself. * No worries. Sorry for the initial bruising... it wasn't intended to be anything more than a gentle reminder to do some form of homework before posting a question. On Sun, Mar 6, 2011 at 3:57 PM, trans transf...@gmail.com wrote: Ok. I am sorry if I upset you. I felt a little bruised myself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Can you use include / with @layout-land?
Did you try creating layout/mylargelayout.xml, then include that from within layout-large/mylayout.xml and from layout-xlarge/mylayout.xml ? In your code, you'd always refer to mylayout, but for large and xlarge, it would end up looking for mylargelayout which would be found in layout. I haven't tried this, but it seems like it could work. - dave On Mar 6, 5:51 pm, Hari Edo hari@gmail.com wrote: On Mar 6, 5:00 pm, Romain Guy romain...@android.com wrote: If the layout you want to include is *exactly* the same for all configurations, just put it in res/layout. I once tried to have small rotation-independent clusters of views included from layout/, while the activity xml was in layout-land. It seemed to have trouble finding layout/ to resolve include tags. Trouble of the NullPointerException variety. Since then, I dropped that approach, and keep everything that a layout-land/ xml might need in layout-land/. Maybe later builds have fixed that bug. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: java.lang.NullPointerException encountered while running Android Pre Compiler.
Now that we have four different group members (Ajay, Copscu, Purple Dev, Nathan) reporting the problem, do you still consider it extremely strange? How likely are we to get the same problem if we also upgrade to the latest ADT SDK? On Feb 24, 2:40 pm, Xavier Ducrohet x...@android.com wrote: This is extremely strange. Can you send me the log of your workspace? On Wed, Feb 23, 2011 at 9:52 PM, Chopcsu st...@kilsby.com.au wrote: Hi All, I have just installed ADT 10 with SDK 3.0. Eclipse has been working ok, but now all of a sudden my project has broken down with eclipse either complaining there is something wrong with xml files where there is nothing wrong (tested on a non adt10 eclipse and works fine) or giving errors Errors running builder 'Android Pre Compiler' on project ''. java.lang.NullPointerException encountered while running Android Pre Compiler. Or giving errors Problems occurred when invoking code from plug-in: org.eclipse.core.resources. java.lang.NullPointerException at com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java: 198) at org.eclipse.core.internal.events.BuildManager $2.run(BuildManager.java:633) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 170) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 201) at org.eclipse.core.internal.events.BuildManager $1.run(BuildManager.java:253) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 256) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java: 309) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java: 341) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java: 140) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java: 238) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) At the moment I am going through the paces of changing adt back to an older verison, Does anyone have an idea of these problems? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc.http://developer.android.com|http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can't communicate with NfcB tag
Thanks. I appreciate you looking in to this. To verify, yes, I am only trying to connect to one tech at a time. I am not connecting to IsoDep, and then attempting to connect to NfcB/NfcA. I only know about IsoDep working because after failing to connect to NfcB, I swapped out my objects and attempted to connect to the same cards using IsoDep, which was successful. -- Paul Christensen On Mon, Mar 7, 2011 at 11:04 AM, Nick Pelly n...@android.com wrote: I'll try and reproduce. But I just want to make sure, are you only connecting NfcB / NfcA, and never connecting IsoDep first? Because you can only connect one tech at a time. Nick On Mon, Mar 7, 2011 at 7:57 AM, Paul Christensen p.ellischristen...@gmail.com wrote: Ok, for #1 I'll just keep trying the card and see if I can manage to talk to it. For the additional issues, the sequence of events and relevant code is as follows: I scan a card with my app set to receive the scans. The appropriate Activity opens, retrieves a Tag object, and executes an AsyncTask. The AsyncTask determines the card technology and based on the card technology, attempts to open a connection to that card as follows: private static NfcB getNfcBTag(Tag tag) throws Exception { NfcB myTag = NfcB.get(tag); try { if(!myTag.isConnected()) { myTag.connect(); } } catch(Exception e) { Log.e(TAG, e.getMessage()); } return myTag; } The above method throws an exception on myTag.connect(). The exception is a java.IOException, but the message and source are both null, so I have no idea why it's happening. Now, if I change this method to be IsoDep instead of NfcB (or NfcA, for that matter), I am able to successfully connect to the card, send a message to the card, and retrieve a response from that card. -- Paul Christensen On Sun, Mar 6, 2011 at 10:06 PM, Nick Pelly n...@android.com wrote: Hi Paul, For (1), it is very hard to discover NfcB credit card on the Nexus S. Many NfcB credit cards only work well with high powered readers. That said, if you play with the credit card orientation against the back of the Nexus S (where the NFC antenna is) you should be able to eventually scan it. For (2), (3) and (4), can you provide some sample code, and tell us exactly where it is failing. Nick On Fri, Mar 4, 2011 at 10:30 AM, Paul Christensen p.ellischristen...@gmail.com wrote: Ok, so I've learned additional, somewhat less than encouraging things. 1. I have a Discover Zip card, no idea what the ISO technology is, all I do know is the Nexus S does not respond at all to this card. 2. I have a Visa NfcB card that will connect as IsoDep, but not as NfcB. 3. I have an Amex NfcB card that will connect as IsoDep, but not as NfcB. 4. I have a MasterCard NfcA card that will connect as IsoDep, but not as NfcA. Any thoughts would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Change the Icon on a Keyboard key.
Have you tried the invalidateKey() method after changing the icon? http://developer.android.com/reference/android/inputmethodservice/KeyboardView.html#invalidateKey%28int%29 On Sun, Mar 6, 2011 at 2:30 PM, trans transf...@gmail.com wrote: Well, I've looked for an answer for over an hour, but I can't figure out how to change the icon image of a keyboard key. Here is the particular field involved: http://developer.android.com/reference/android/inputmethodservice/Keyboard.Key.html#icon My current attempt is this (where image[i] refers to some R.drawable.name ): Bitmap bmp = BitmapFactory.decodeResource(res, image[i]); BitmapDrawable bmpDraw = new BitmapDrawable(bmp); k.icon = bmpDraw; But no go. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Can we set the Nexus S Tag Id?
I am experimenting with an NFC tag reader, and I've found that when I have NFC turned on on my Nexus S, the tag reader is able to read my phone. The problem is that when the reader reads my phone it is detecting a 4 byte Id that changes on each read. I'm investigating the possibility of an application for my organization that requires that the Id be static. What exactly is going on here with the Id that's being read from my phone, and is it possible to make that Id static, or even set it to a specified value? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting an Uninitialized Location
Is there a way to distinguish between an uninitialized Location object and one that actually represents a lat/long of 0.0? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: cropping and changing images on a soft keyboard
Please don't double-post... I believe I answered your question in the other thread. On Sun, Mar 6, 2011 at 2:04 PM, trans transf...@gmail.com wrote: Tried this and it does not seem to work for me :-( In my code image[i] holds the resource reference: Log.v(debug, res: + image[i]); Bitmap bmp = BitmapFactory.decodeResource(res, image[i]); BitmapDrawable bmpDraw = new BitmapDrawable(bmp); k.icon = bmpDraw; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [Monkeyrunner]: How to simulate short press on power button
Hi, I tested this on Nexus S and it worked in the way I expected. If I specify DOWN_AND_UP, the screen locks and goes to sleep. If I specify just DOWN, I get the Phone options. I tried with the emulator and saw the same behavior you saw, I'm not sure why. Let me try and borrow an Xperia from somebody to reproduce there. On Thu, Mar 3, 2011 at 5:50 PM, aniruddha dhamal ani123.dha...@gmail.comwrote: Thanks Bill, But this code for short press on POWER button isn't working. I tried with emulator (Android 1.6, Android 2.1) and also on Xperia device. I also tried with controlling duration of the press but it opens the Phone Options. I wanted to simulate lock screen by pressing on POWER Button. With this command [ *device.press('KEYCODE_POWER', 'down') *] you can open the dialogue box which gives the Phone options (Silent Mode, Airplane Mode and Power off). Is there any other way to simulate the lock screen? Really Appreciate your help. On Thu, Mar 3, 2011 at 4:30 PM, Bill Napier nap...@android.com wrote: This worked for me. It turned off my Nexus S when I tried it. What you were doing was only sending the down part of the DOWN_AND_UP, so it was like you were pressing the POWER button and then never ever taking your finger off of it. If you want even more control over the duration of the press, you can do a DOWN, sleep for a bit, and then do the UP. DOWN_AND_UP runs the commands with no delay in-between at all (a really short press). - code snipped - from com.android.monkeyrunner import MonkeyRunner as mr from com.android.monkeyrunner import MonkeyDevice device = mr.waitForConnection() device.press(POWER, MonkeyDevice.DOWN_AND_UP) On Mon, Feb 28, 2011 at 11:56 AM, aniruddha dhamal ani123.dha...@gmail.com wrote: I tried to use *device.press('KEYCODE_POWER', 'down')* but this works for long press on power button. Thanks, On Sat, Feb 26, 2011 at 4:01 PM, Andya ani123.dha...@gmail.com wrote: Hello guys, Any help on how to simulate short key press on Power button using MonkeyRunner? I am using the following code but to no avail device.press('KEYCODE_POWER','DOWN') Really appreciate!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: TouchEvent - ACTION_UP after ~30 seconds
It is for a game! =) Thiago On Mon, Mar 7, 2011 at 12:53, Kostya Vasilyev kmans...@gmail.com wrote: It just seems to me - as a user - like a strange requirement to have. I can't imagine holding my finger on the screen for 20 seconds or longer in order to use a program. Um, unless it's an application intended to prevent prison breaks :) -- Kostya 07.03.2011 18:48, Thiago Lopes Rosa пишет: I found this: There is a setting in the touch IC that causes touches that stay in more or less the same place for extended periods of time to be calibrated out. That is the setting that is causing this ACTION_UP message to be sent if you press and hold for more than 20 seconds (20-30 seconds is our typical setting). The reason this feature exists is to allow for false touches to eventually be removed from the screen (false touches can be generated in a number of ways, most likely water on the screen during operation). There are many arguments for and against this type of behavior, but I can say that at this time we do not have a coherent system strategy to deal with this type of operation. There are no requirements that specify exactly how persistent touches should be handled and the implementations we have today are based on the individual products desired use case support . Is there any way to avoid this? Or to fool it? Thiago On Mon, Mar 7, 2011 at 12:23, Thiago Lopes Rosa thiago.r...@gmail.comwrote: Hi, I need the user touching the screen for a long period of time, but approximately after 30 seconds there is an ACTION_UP event automatically. I tested on three devices and it always happen. To understand what I'm saying, just swype on your home screen (to switch home screens) but keep your finger touching the screen, you will see that after 30 seconds you will release the finger from the screen. Any idea how to solve this issue? Thanks, Thiago -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can you use include / with @layout-land?
On Sun, Mar 6, 2011 at 2:51 PM, Hari Edo hari@gmail.com wrote: I once tried to have small rotation-independent clusters of views included from layout/, while the activity xml was in layout-land. It seemed to have trouble finding layout/ to resolve include tags. Trouble of the NullPointerException variety. There should be no such problem. This is really very simple: there is one resource thing for all of the configurations. Any time you try to load that resource (such as with setContentView() or include /), the framework will retrieve whichever of the resources under that name best matches the current configuration. The include / tag works *exactly* the same as setContentView(), which works exactly the same as every other resource lookup. If you want to have a layout that you use in different configurations, just do as Romain suggested and put it in the base layout/ dir. Do NOT put any different layouts in any other configurations, or else one of those different ones will be picked if the current configuration matches them. Also if you have a layout in some other configuration (layout-land/ or whatever), you should ALWAYS also have a layout in the base configuration. Otherwise if you get in a situation where the current configuration doesn't match (for example here you are now running portrait) then trying to load the layout will fail because there is no value defined that matches the current configuration. (Of course everything I say here about layouts also applies to all other resources; configurations are a generic resource concept, nothing specific to layout resources.) -- 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] Spinner Retrievation
* I have created list elements in spinner from strings.xml. * * I store element in database using spinner1.getSelectedItem().**toString(); * This code doesn't show how you store the info in the database. It shows how you get the data to be stored in the database. * How to retrieve that element from database?* That depends on the structure of your database... What exactly is the code you are using for putting the values in the database. On Sat, Mar 5, 2011 at 9:53 AM, Brad Stintson geek.bin...@gmail.com wrote: I have created list elements in spinner from strings.xml. I store element in database using spinner1.getSelectedItem().toString(); How to retrieve that element from database? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Compare MonkeyImage
@bill, You mentioned that you compare the subsequent snapshots. I have questions: Do you use *sameAs* method as an assertion method (like Assert in JUnit) to verify pass or failure of the testcase? How do you say that this percentage have changed with the next screenshot so that testcase is passed? Because that wouldn't make my testcases obsolete even if i change the background color. Thanks a lot for your help. On Tue, Feb 15, 2011 at 4:11 PM, Bill Napier nap...@android.com wrote: Hi Christopher, Being able to load an image into MonkeyRunner from the filesystem makes a lot of sense, I don't see how I had missed that. All the test's we've been using MonkeyRunner before only ever wanted to compare to subsequent snapshots (to see what has changed). This looks pretty straight forward feature to add, but may take me a couple days to get to it. Bill On Mon, Feb 14, 2011 at 6:14 PM, Christopher M. Judd javaj...@gmail.com wrote: According to the monkeyrunner documentation, you can compare screenshot output to known screenshot for regression testing. How do you do this? I see the method sameAs on MonkeyImage but that takes a MonkeyImage presumably one saved on disk for regression testing but there appears to be no way to load one from disk. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Detecting an Uninitialized Location
On Mon, Mar 7, 2011 at 12:32 PM, Jake Colman col...@ppllc.com wrote: Is there a way to distinguish between an uninitialized Location object and one that actually represents a lat/long of 0.0? Try getTime() - that's probably something consistent for unintialized objects. Although realistically, the odds on getting a location of EXACTLY 0 / 0 are pretty small. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Array list to spinner OR json Array to java Array ?
Hi, All I am fetching data from json to array list, code given below. JSONArray jsonArray = new JSONArray(json_string); String[] anArrayOfStrings; ListString items = new ArrayListString(); for (int i=0; ijsonArray.length(); i++) { items.add( jsonArray.getString(i) ); } Now all my data is in Array List items I would like to populate/generate Spinner out of this array List, How i will do that. there are lot of examples available on the internet to create Spinner with Arrays but not Array List. or How i can convert this Array List to normal Array OR How i can populate an array using above for loop. I am beginner to android/java etc...Help will be really appreciated. Thanks in advance. -- Atif Musaddaq -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Help with Location Updates -- Resolved!
Jake == Jake Colman col...@ppllc.com writes: Jake My user tells me that the phone is in good working order, that Jake he uses it to make phone calls, and that his GPS is functioning Jake and on. So here is what I need to understand: Jake 1) Why would getBestProvider return null? Shouldn't it always Jakebe able to tell me something? Jake 2) Why would a network provider be disabled? Shouldn't that Jakealways be available - assuming that you are not in airplane Jakemode and can make phone calls? Jake 3) If the GPS is on, shouldn't my code pick up the GPS if Jakenetwork is disabled? I ran some tests. I configured my app with ACCURACY_FINE_LOCATION permission and with a criteria of FINE_LOCATION. In that situation: 1) If the GPS and Network are both enabled it will return GPS as best provider. 2) If only Network is enabled it will return Network as best provider. The above makes sense and is logical. But it doesn't solve the problem of preferring to use Network in lieu of GPS when both are available. If, however, you have ACCURACY_FINE_LOCATION permission but use a criteria of COARSE_LOCATION, then the following will be true: 1) If the GPS and Network are both enabled it will return Network as best provider. 2) If only Network is enabled it will return Network as best provider. 3) If only GPS is enabled it will return GPS as best provider. The conclusion: in order to use GPS -- even just as a fallback for when Network is not enabled -- you need ACCURACY_FINE_LOCATION. In that case, if your criteria is COARSE_LOCATION you will pick up Network if available instead of GPS but it still use GPS if it has no other choice. -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Can we set the Nexus S Tag Id?
Thanks. -- Paul Christensen On Mon, Mar 7, 2011 at 1:04 PM, Nick Pelly n...@android.com wrote: On Mon, Mar 7, 2011 at 10:23 AM, Paul Christensen p.ellischristen...@gmail.com wrote: I am experimenting with an NFC tag reader, and I've found that when I have NFC turned on on my Nexus S, the tag reader is able to read my phone. The problem is that when the reader reads my phone it is detecting a 4 byte Id that changes on each read. I'm investigating the possibility of an application for my organization that requires that the Id be static. What exactly is going on here with the Id that's being read from my phone, and is it possible to make that Id static, or even set it to a specified value? That ID is randomly generated by the NFC Controller. There is no SDK API to make it static, or to set 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Array list to spinner OR json Array to java Array ?
On Mon, Mar 7, 2011 at 1:59 PM, Atif Musaddaq atif.musad...@gmail.comwrote: How i can convert this Array List to normal Array http://developer.android.com/reference/java/util/ArrayList.html#toArray() http://developer.android.com/reference/java/util/ArrayList.html#toArray() OR How i can populate an array using above for loop. I am beginner to android/java etc. Please spend some time learning Java, preferably outside of Android. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Fragments for Google Maps add on?
Sweet, so it turns out you can make the Activity which manages your Fragments extend MapActivity. Then you can make a MapFragment with a MapView. Seems to work so far. Thanks to Valentin here: http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb On Fri, Mar 4, 2011 at 4:07 AM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Mar 4, 2011 at 12:37 AM, Dianne Hackborn hack...@android.com wrote: Sorry, nothing scheduled. There is nothing preventing you from writing a little code to put MapView in your own fragment, is there? The bigger issue is that MapView has to be in a MapActivity, and there may be some problems there: http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb I have not yet tried this personally, as I was waiting for the backwards-compatibility library before diving headlong into fragments (and many thanks for that library!). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Location Change Triggering for Network but not for GPS
When setting up a listener for location changes, is there anything different that is required to trigger the GPS to get a location fix that you don't need to do for network? I am using the followig code: mLocationManager.requestLocationUpdates( provider, LOCATION_PERIOD, LOCATION_CHANGE_TRIGGER, this ); In the code that follows, if provider is equal to network, the onLocationChanged method is called almost immediately. If the provider is gps, it does not seem to get triggered ever (and I waited a while). Is there something else that needs to be done in order to force the GPS to actually get a fix? -- Jake Colman -- Android Tinkerer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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-developers] Samplerate
How can I detect the allowed microphone samplerates of the device my app is running on? A link to a list of allowed samplerates for various phones would also work for my purpose. Or, if anyone knows what samplerate Samsung phones use for their voice mics that would also 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] [Monkeyrunner]: How to simulate short press on power button
Hi, I tried with Nexus S also [DOWN_AND_UP], but it didn't work ( behaviour: nothing happens). It might have locked the screen in your case because Display time (in Settings) was 15 sec (that's what happened with me initially but after changing that to 30 minutes it didn't work). I thought there is same behavior like emulator that when you press the power button it comes to the Lock screen. Coming to the lock screen can be achieved by restarting the device. But when i power it off, I lose the connection to the device (I have to restart the device manually). Thanks a lot, On Mon, Mar 7, 2011 at 10:58 AM, Bill Napier nap...@android.com wrote: Hi, I tested this on Nexus S and it worked in the way I expected. If I specify DOWN_AND_UP, the screen locks and goes to sleep. If I specify just DOWN, I get the Phone options. I tried with the emulator and saw the same behavior you saw, I'm not sure why. Let me try and borrow an Xperia from somebody to reproduce there. On Thu, Mar 3, 2011 at 5:50 PM, aniruddha dhamal ani123.dha...@gmail.comwrote: Thanks Bill, But this code for short press on POWER button isn't working. I tried with emulator (Android 1.6, Android 2.1) and also on Xperia device. I also tried with controlling duration of the press but it opens the Phone Options. I wanted to simulate lock screen by pressing on POWER Button. With this command [ *device.press('KEYCODE_POWER', 'down') *] you can open the dialogue box which gives the Phone options (Silent Mode, Airplane Mode and Power off). Is there any other way to simulate the lock screen? Really Appreciate your help. On Thu, Mar 3, 2011 at 4:30 PM, Bill Napier nap...@android.com wrote: This worked for me. It turned off my Nexus S when I tried it. What you were doing was only sending the down part of the DOWN_AND_UP, so it was like you were pressing the POWER button and then never ever taking your finger off of it. If you want even more control over the duration of the press, you can do a DOWN, sleep for a bit, and then do the UP. DOWN_AND_UP runs the commands with no delay in-between at all (a really short press). - code snipped - from com.android.monkeyrunner import MonkeyRunner as mr from com.android.monkeyrunner import MonkeyDevice device = mr.waitForConnection() device.press(POWER, MonkeyDevice.DOWN_AND_UP) On Mon, Feb 28, 2011 at 11:56 AM, aniruddha dhamal ani123.dha...@gmail.com wrote: I tried to use *device.press('KEYCODE_POWER', 'down')* but this works for long press on power button. Thanks, On Sat, Feb 26, 2011 at 4:01 PM, Andya ani123.dha...@gmail.com wrote: Hello guys, Any help on how to simulate short key press on Power button using MonkeyRunner? I am using the following code but to no avail device.press('KEYCODE_POWER','DOWN') Really appreciate!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- Thanks and Regards Aniruddha Dhamal ani123.dha...@gmail.com No matter which direction you start Its always against the wind coming back -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Location Change Triggering for Network but not for GPS
On Mon, Mar 7, 2011 at 2:41 PM, Jake Colman col...@ppllc.com wrote: Is there something else that needs to be done in order to force the GPS to actually get a fix? Using the emulator, push a fix with DDMS. Using a device, go outside. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Trivializing Android development alongside with Windows Phone
Hello, We are going to push forward common mobile development trivialization across platform-boundaries. Our current experience evolves around Microsoft's platform and hence around Windows Phone - hence the first technology demonstrations are built around that: http://www.youtube.com/watch?v=rXuX0sIY3Ls The video demonstrates the absolute trivialization, where an application development can be made straight from the phone (the example uses InfoPath to show trivial XML content as a form) - however we are going to provide more developer-focused examples. We are focusing to provide support on Android as well, however any community support or centralized effort would be of great help here. We are relatively new to Eclipse development environment and our resources are currently relatively limited. We can provide all the examples and help on creating the alike abstractions to support on Android that we are building for Windows Phone. Only requirement is Visual Studio 2010 (or 2008) with the tools that are described within the technology documentation at: http://abstraction.codeplex.com Even if we cannot get any interest raised, this post can serve as heads-up on what should be coming in the future :-) Happy Droiding, Kalle -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth Pairing
Hi All, I've seen a few threads on this but haven't really found a good answer. Plus there seems to be some confusion around the behaviour of the pairing dialog. I am connecting my nexus 1 to a bluetooth spp server device to read and write data. After some experimentation I have found the following 1. If I offload the establishment of the connection from the UI thread (which I would consider a good idea) the pairing dialog (enter pin) is not displayed - rather a notification item appears which the user must click to pair the devices. 2. If I establish the connection from within the UI thread then the paring dialog will come to the foreground but obviously there is a small ugly UI pause while waiting for this. In either case the request to establish the connection is timing out before the user (me) can enter the pin with an IOException Service discovery failed. My ideal would be that the pairing dialog comes to the front (without have to block my UI thread) and that the connection attempt would not time out while waiting on pairing entry. Has anyone come up with a way to make this work? Cheers Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [Q] Modification SemcHome.apk for X10 mini
Here we have stock home screen from SE on X10 mini. I was completely satisfied with it, except for three things which I will describe below. And if you help me understand how to fix them, then I think it would be ideal for the home screen of this phone model. Moreover I would be very grateful And so: 1. Long press on the widgets and on the list of programs. This causes the editing widget or program list. Terribly inconvenient function. The editing widget or program list also caused by a hard button Menu and this is sufficient. [Q] How to disable Long press on the widgets and on the list of programs? 2. All applications in the list of the programs have a label under the icon. [Q] How to disable icons label show? 3. In X10 mini pro when open qwerty keyboard - a home screen adopts a horizontal position. But there is no qwerty keyboard in X10 mini that would change the orientation of the home screen. At the same time we have an accelerometer and a function that reads it values. And so we have a function to change the orientation of the home screen that is invoked when you open the qwerty keyboard. Consequently, in the function that modifies the orientation of the home screen, we must substitute instead of checking on opening the keyboard - to check screen position. [Q] In which folder, which file, which line of the file and what will I have to change that would make changing the orientation of the home screen when the phone is in horizontal position? In which folder, which file, which line of the file and what will I have to change this is as in addition to questions 1 and 2. --- SemcHome.apk http://www.mediafire.com/?x7jq5jsqu6xmaaf P.S. Alternative home screen does not offer -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Client Server Communication Confusion
Project Description:- I have to make an application in android which get the Latitude and Longitude from GPS and forward their location with identification to server. At server end there should be web page which continuously receiving the message from Android application and show location on Google map. Suppose there are 10 Android devices at different places in which our application running. At Server end we have to show 10 markers on Google map at the location of devices. What I have Done:- I have make an application in android which get Lat and Long from GPS. Know about the Socket programming in android. Implemented the web page at server end which have Google map and showing the markers at particular Lat, Long. Confusion:- The confusion is that 1. How can I make a server. 2.How to transfer data from Android to server and what application required at server end which receive the data from Android. Is any desktop or console application needed which bind it-self at particular port of server, or web page is enough for me to achieve this target. 3.What protocol which I have to use UDP or TCP/IP, or use directly the HTTP or HTTPS steam? P.S:- Sorry for the English mistakes. Secondly I just need the direction about my problem because I never worked in Android and Client Server Communication. If you think this Question is vague, I have to more specific with the problem, then please recommend the Book about Networking or any which you think is suitable for 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] Re: NFC question: card emulation is not supported in the Android SDK yet, right?
Hi Nick, I notice there is the package org.opennfc.cardemulation provided the OpenNFC project. Do you happen to know whether the this support for this card emulation implementation is device-specific? In particular will it work on the Nexus S? Many thanks, akly On Feb 28, 3:54 pm, Nick Pelly npe...@google.com wrote: Hi Dave, Correct, we do not support Card Emulation in the SDK. It's actually very hard to do this in a consistent way across the Android platform, due to the current hardware architecture of NFC. Different NFC hardware can support Card Emulation in very different ways, to the point where its very hard to design a useful and consistent API. Peer-to-peer is the way to go. We have just one API call for this now - NfcAdapter.enableForegroundNdefPush() but it is surprisingly powerful. Nick On Fri, Feb 25, 2011 at 9:33 AM, davemac davemac...@gmail.com wrote: I'm no NFC guru, but from what I can tell of the docs and the samples, there's no way to do card emulation on an Android device at this time, using the SDK. Is that correct? I see the published classes/methods for reading/writing tags, and for the Ndef push using P2P and the mysterious com.android.npp package (anyone know where there's more information on that?). But that doesn't get me to turning the Android device into whatever tag I want it to be read as by some other NFC reader, at least I'm pretty sure it doesn't. Unless the NFC sensor reads and writes my device's tag if there happens to be one on the device. Is that how it's supposed to work? If that last part is true, is there some sort of convention on how I recognize my tag as compared to any other tag I come into contactless with? I saw posts describing how to do this from the NDK level but I'm asking about from the SDK level. I also saw source code with unpublished methods for card emulation, which leads me to believe that it's just not possible, yet. Thanks for any help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] unaligned memory access in ndk r5
Hi All, I'm using ndk r5 to build my own video decoder projects and met failures calling Bus Error. The code is as below. m_uiNextBits = *m_pulStreamPacket++; m_uiNextBits is unsigned int, and m_ pulStreamPacket point to unsigned int array. I print the addr of the pointer and it's unaligned (0xb2ff09). I think the error is caused by unaligned memory access, in the pipeline the pointer address is changed before arm getting the right value so caused bus crash. There are two ways to work around. 1. Force to be aligned memory access. Using memcpy to copy the data to an aligned address before accessing. 2. Add some nops before changing the address. m_uiNextBits = *m_pulStreamPacket; __asm(nop); __asm(nop); ...//no less than 8 loops would be ok. __asm(nop); __asm(nop); m_pulStreamPacket ++; However, I wonder if there is a better way to solve this problem without introducing any extra CPU mips. Thanks. BTW: I'm using the default toolchain arm-eabi-gcc with gcc 4.4.0 version. Best Regards, Ray -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] $5K for Lead Android Developer at Box
I'm looking for an Lead Android Developer to join the mobile team at Box. We just raised another $48 million from top tier VCs Andreessen- Horowitz, Meritech, DFJ, Emergence, US VP and Scale VP, and are poised to overtake the enterprise content management space. If you know anyone who fits the bill, please send them my way or email referr...@box.net and mention my name. There's a $5K referral fee. While you're at it, here are other engineering/ops roles we need to fill (same referral fee applies): http://www.box.net/company/careers/job_openings. Thanks in advance! Jamie -- Jamie S. Perlman | http://flavors.me/jamieperlman -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gallery with buttons
Hi This is my first message in this mailing list and I'm honoured to have some advices from other people. As the object explains, I need to setup a Gallery with 2 Buttons. The problem is that the gallery won't scroll anymore. I have tried to search the internet without success (maybe I'm using the wrong keywords), but if anyone has a link to an explanation or can explain me a warkaround to this problem. Thank you for your time 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] Out of memory issue in Android
Hi, I am using the byte array for storing the image. I want to store image in binary format back to file. While calculating the length of byte array, i am getting the Out of memory issue. So please help me to overcome this problem. Thanks in advance... Thanks and Regards, Rohit D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] [GPS Localization] how to get location quickly and How to obtain a position on every launch
Dear all, I'm a french android developpeur. I'm developping an application of geolocalisation. I need to get a position with a good accuracy quickly, so i use only GPS provider. I test my app on my N1 in 2.2.1. I have several problems : Regularly i don't get position, and even after waiting about 10min. I decide to use NetwordProvider, but the accuracy of this method is bad. I test sereval solution : - Launch the Network acquisition and after the gps acquisition to refine the position but doesn't work - Launche the network and gps acquisition simultaneously but doesn't work I see this link http://developer.android.com/guide/topics/location/obtaining-user-location.html#Flow but i don't really understand this. If anyone have an idea I'm interested. Thank's Matthieu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Propagating exception caught in GL render thread
I searched but could not find info about this: Situation: 1. GL used + Looping sounds (soundpool) 2. want to prevent leaving user to reboot to get rid of looping sound in case of app error. In onDrawFrame, a try-catch block catches exceptions, and stops the sounds. So-far, so-good. But: cant rethrow exception (cant change GLSurfaceView.Renderer prototype). Therefore, can't propagate exception to OS, disabling the ability to get stack traces from users by means of the developer console. Result: sound stops, but UI thread happily runs (and depending on the exception the render thread as well). This is a serious issue: either I cant get stacktraces, or leave users of the app with looping sounds which ia (a) annoying to reboot, (b) drains battery. Anyone know a way around this (besides not getting exceptions...). 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] android default browser
Hi All, my issue is, when i open(jump to) the android default browser in the my apps, how can i set the attributes of the browser, for example ,the screen orientation ,the url address can not be changed,.. 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] Something similar to CALayer core animation in Android?
Hi, I'm porting an iOS app to Android. The app uses a compass view in order to show the current heading/bearing. The compass rotation (bitmap) works great in iOS, using CALayer CoreAnimation. But I'm appearing difficulties under Android. Basically I'm getting the sensor information and I'm sure to have at least the heading (with reference to magnetic north) correctly and with a reasonable frequency. But if I try to apply the heading value to a bitmap in order to rotate the image, the framerate is 1 per minute and the drawing is... strange. Here is the code, which is used if a new heading value is available (heading in degrees, iv is an ImageView) : Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.compass_background); int w = bmp.getWidth(); int h = bmp.getHeight(); Matrix mtx = new Matrix(); mtx.postRotate(-heading); Bitmap rotatedBMP = Bitmap.createBitmap(bmp, 0, 0, w, h, mtx, true); BitmapDrawable bmd = new BitmapDrawable(rotatedBMP); iv.setImageDrawable(bmd); It seems, this is not the way to go. What other opportunities do I have? Kind regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Embedded web server
Hi all, I'm an embedded sw engineer, and we are jumping on android as a platform for some of our embedded projects. I'm in the process of doing some technological evaluation and one of the requirements is to configure and consult the device via en embedded web server. I'd like thus to have a solution (library ot source code) to implement that, and any suggestion, help or advice about the matter is precious. Thanks in advance, Gianandrea. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] LinearLayout problem
Hello i have sort a problem with my layout i would like somethine like this : +---+ | | |A | | | height : fill_parent | | | | | | +---+ | B |height : wrap_content (40dip) +---+ | C|height : wrap content +---+ A : linearLayout (vertical) B : linearLayout (horizontal) C: TextView but when i do this my A component take all the screen. i've trived this but it doesnt work Display display = getWindowManager().getDefaultDisplay(); int heightScreen = display.getHeight(); int hauteurBarre = ((LinearLayout)findViewById(R.id.bar)).getHeight(); int hauteurOrange = ((TextView)findViewById(R.id.orange)).getHeight(); LayoutParams l =new LayoutParams(LayoutParams.FILL_PARENT, heightScreen-hauteurBarre-hauteurOrange); ((LinearLayout)findViewById(R.id.view)).setLayoutParams(l); does anyone have an idea? 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] Using Droid-fu
Hello everyone, I'm trying to use the droid-fu libraries in my project but I guess I have no idea what I am doing. I plan on using BetterAsyncTask to send a couple of images to a server and then have the program return a response. The problem I am having is after I add the droid-fu .jar file into my build path. I then try to extend my main activity as follows import com.github.droidfu.activities.BetterDefaultActivity; public class MainActivity extends BetterDefaultActivity { /** Called when the activity is first created. */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Before I even add any code to my project the program crashes if I try to run it. I get the following exception: 03-02 20:43:47.784: ERROR/AndroidRuntime(3238): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.marco.servertest/com.marco.servertest.MainActivity}: java.lang.ClassCastException: android.app.Application Any help would really be appreciated! I am about ready to give up on the droid-fu libraries and just use the regular AsyncTask . Do I need to add anything to my manifest file?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create an email account in android programatically?
Hello, Does anyone know how to add email accounts to the default email application programatically? 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] Android Client Server Communication Confusion
*Project Description:-* I have to make an application in android which get the Latitude and Longitude from GPS and forward their location with identification to server. At server end there should be web page which continuously receiving the message from Android application and show location on Google map. Suppose there are 10 Android devices at different places in which our application running. At Server end we have to show 10 markers on Google map at the location of devices. *What I have Done:-* I have make an application in android which get Lat and Long from GPS. Know about the Socket programming in android. Implemented the web page at server end which have Google map and showing the markers at particular Lat, Long. *Confusion:-* The confusion is that 1. How can I make a server. 2. How to transfer data from Android to server and what application required at server end which receive the data from Android. Is any desktop or console application needed which bind it-self at particular port of server, or web page is enough for me to achieve this target. 3. What protocol which I have to use UDP or TCP/IP, or use directly the HTTP or HTTPS steam? *P.S:-* Sorry for the English mistakes. Secondly I just need the direction about my problem because I never worked in Android and Client Server Communication. If you think this Question is vague, I have to more specific with the problem, then please recommend the Book about Networking or any which you think is suitable for 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] Re: Cursor management issue with Honeycomb
I saw the same error. In my case, I told the activity to manage a cursor (Activity.startManagingCursor(cursor) and later on replaced the cursor with a new one due to changes in my filter settings without stopping the management of the previous cursor (i.e. without calling Activity.stopManagingCursor(cursor)). performRestart() then tried to requery the old and already closed cursor. Maybe, you forgot stopManagingCursor() too? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Apn Setting Insert Problem
ContentValues values = new ContentValues(); values.put(name,Ramesh); values.put(numeric,310995); values.put(mcc,315); values.put(mnc,995); values.put(apn,email); values.put(user,elkjop); values.put(server,www.moota.com); values.put(password,elkjop); values.put(proxy,12); values.put(port,12); values.put(mmsproxy,12); values.put(mmsport,12); values.put(mmsc,12); values.put(type,a); getContentResolver().insert(Uri.parse(content://telephony/carriers), values); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Local ftp issue
Hi , I want to ftp a file from /data/data/com.sample.abc/files/text.txt to my system using FTPClient. I am using XAMPP server which contain filezilla. Can any one please tel me what is the ftp port number in android .( similar to 10.0.2.2 for apache ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Web controller
Hey I am very new to android developing, therefore this question might seem very silly to most of you. I want to build an app that uses the internet. I am sure there should be something like a web controller that i can put on the app. Kindly guide me on how to do so. Cherian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: aapt crashes with -v
I found that this issue only occurred when there was a drawable resource in an Android Library that was being overloaded in either another Android Library or Android Application. Are any of the icons/bitmaps in your project being redefined in a dependent project i.e. they have the same id? I also found the issue did not occur when Verbose build option is off. Craig On Mar 1, 11:17 pm, Andreas andreas.rossbac...@gmail.com wrote: I noticed in my project that the latest appt crashes if verbose (-v) output is turned on. Works fine without verbose output on the same project. Thats the last output I see: trying overlaySet Key=icn_dropdown_43x43.png baseFile zd has flavor (null) overlayFile zd has flavor (null) found a match (zd) for overlay file (null), for flavor icn_dropdown_43x43.png trying overlaySet Key=icon.png baseFile zd has flavor (null) overlayFile zd has flavor (null) Platform is win32. I could also provide more details of the crash from the Windows crash reporter if required. This was really annoying to find. :-) Andreas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Receiver Intent Filter to listen for MUTE and UNMUTE?
I am writing my very first android app and have been learning over the last few days, so bear with me. What I want to do is simple: I am on conference calls a lot with my Motorola Droid X with a wired headset that has a mute/unmute button on it. I go on and off mute constantly but since my Droid screen is off during the call I always have to light up the screen to see whether I am on mute or not before I start talking. So what I want to do is simply listen for MUTE/UNMUTE (doesn't matter whether or not I have the wired headset plugged in) and when it mutes/ unmutes I want to light up the LED indicator with a Purple (or whatever) color flashing indicator. My problem is that I cannot for the life of me figure out, in my AndroidManifest.xml file, exactly what action I should be listening for so that my BroadcastReceiver can act on it. I've tried several, such as android.intent.action.PHONE_STATE but that didn't work. For testing purposes, I know my code is working because I set the action to android.net.wifi.WIFI_STATE_CHANGED and my code fires off when turning on/off the wifi. So it's just a matter of finding the right action to listen for. Any help? Code from AndroidManifest.xml: - receiver android:name=MuteIntentReceiver intent-filter action android:name=android.net.wifi.WIFI_STATE_CHANGED / /intent-filter /receiver - Code from MuteIntentReceiver.java: - public class MuteIntentReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { AudioManager audioMgr = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); if (audioMgr.isMicrophoneMute()) { // code goes here } else { // code goes here } } } - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Jsoup
Hi, I am using JSoup to extract images from a website. Could someone tell me how to then display them in an android app? Can I use webview? They are currently elements Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC question: card emulation is not supported in the Android SDK yet, right?
Ok never mind, I just realised they are just interfaces but not classes. On Feb 28, 3:54 pm, Nick Pelly npe...@google.com wrote: Hi Dave, Correct, we do not support Card Emulation in the SDK. It's actually very hard to do this in a consistent way across the Android platform, due to the current hardware architecture of NFC. Different NFC hardware can support Card Emulation in very different ways, to the point where its very hard to design a useful and consistent API. Peer-to-peer is the way to go. We have just one API call for this now - NfcAdapter.enableForegroundNdefPush() but it is surprisingly powerful. Nick On Fri, Feb 25, 2011 at 9:33 AM, davemac davemac...@gmail.com wrote: I'm no NFC guru, but from what I can tell of the docs and the samples, there's no way to do card emulation on an Android device at this time, using the SDK. Is that correct? I see the published classes/methods for reading/writing tags, and for the Ndef push using P2P and the mysterious com.android.npp package (anyone know where there's more information on that?). But that doesn't get me to turning the Android device into whatever tag I want it to be read as by some other NFC reader, at least I'm pretty sure it doesn't. Unless the NFC sensor reads and writes my device's tag if there happens to be one on the device. Is that how it's supposed to work? If that last part is true, is there some sort of convention on how I recognize my tag as compared to any other tag I come into contactless with? I saw posts describing how to do this from the NDK level but I'm asking about from the SDK level. I also saw source code with unpublished methods for card emulation, which leads me to believe that it's just not possible, yet. Thanks for any help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web controller
Hey I am new to android developing, i need to find a way to put a web controller on the app. Pleasee help!! Cherian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is Nexus S NFC card sharing done with P2P or card emulation?
Is Nexus S NFC Tag sharing done with P2P or card emulation? If P2P, how is it able to activate when not the foreground app? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Exception in Klasse ListPreference.java mit excerciser monkey
Hallo all, ich habe ein Android Projekt, das mit dem UI/Application Exerciser Monkey getestet wird. Nach event 2996 gibt es einen Systemcrash, der vermutlich durch die Klasse ListPreference.java aus Android verursacht wird: ArrayIndexOutOfBoundsException. Ist so etwas bekannt? Ich konnte in den Foren nichts dazu finden! Vielen Dank Gerrit -- ... schnipp: :Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.categ ory.LAUNCHER;launchFlags=0x1000;component=.../.StartAc tivity;end // Allowing start of Intent { act=android.intent.action.MAIN cat=[android.in tent.category.LAUNCHER] cmp=.../.StartActivity } in packag e com.gigatronik.bluetronic :Sending Pointer ACTION_DOWN x=107.0 y=477.0 :Sending Pointer ACTION_UP x=107.0 y=477.0 :Sending Pointer ACTION_DOWN x=425.0 y=146.0 // CRASH: ... (pid 2094) // Short Msg: java.lang.ArrayIndexOutOfBoundsException // Long Msg: java.lang.ArrayIndexOutOfBoundsException // Build Label: vodafone_uk/htc_bravo/bravo/bravo:2.2/ FRF91/284385:user/release- keys // Build Changelist: 284385 // Build Time: 1289310579000 // java.lang.ArrayIndexOutOfBoundsException // at android.preference.ListPreference.onDialogClosed(ListPreference.java: 218) // at android.preference.DialogPreference.onDismiss(DialogPreference.java:3 84) // at android.app.Dialog $ListenersHandler.handleMessage(Dialog.java:1047) // at android.os.Handler.dispatchMessage(Handler.java:99) // at android.os.Looper.loop(Looper.java:144) // at android.app.ActivityThread.main(ActivityThread.java:4937) // at java.lang.reflect.Method.invokeNative(Native Method) // at java.lang.reflect.Method.invoke(Method.java:521) // at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit .java:868) // at com.android.internal.os.ZygoteInit.main(ZygoteInit.java: 626) // at dalvik.system.NativeStart.main(Native Method) // ** Monkey aborted due to error. Events injected: 2996 :Dropped: keys=0 pointers=0 trackballs=0 flips=0 ## Network stats: elapsed time=30719ms (0ms mobile, 0ms wifi, 30719ms not connec ted) ** System appears to have crashed at event 2996 of 5000 using seed 0 -schnapp -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Reduce Camera Resolution?
Does anyone knows how to reduce camera resolution programmatically ? If it is possible, does anyone knows whether is it possible to set a lower resolution than what the camera offers? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC question: card emulation is not supported in the Android SDK yet, right?
There appears to be an card emulation implementation in OpenNFC. Can anyone confirm whether it works on the Nexus S? On Feb 28, 3:54 pm, Nick Pelly npe...@google.com wrote: Hi Dave, Correct, we do not support Card Emulation in the SDK. It's actually very hard to do this in a consistent way across the Android platform, due to the current hardware architecture of NFC. Different NFC hardware can support Card Emulation in very different ways, to the point where its very hard to design a useful and consistent API. Peer-to-peer is the way to go. We have just one API call for this now - NfcAdapter.enableForegroundNdefPush() but it is surprisingly powerful. Nick On Fri, Feb 25, 2011 at 9:33 AM, davemac davemac...@gmail.com wrote: I'm no NFC guru, but from what I can tell of the docs and the samples, there's no way to do card emulation on an Android device at this time, using the SDK. Is that correct? I see the published classes/methods for reading/writing tags, and for the Ndef push using P2P and the mysterious com.android.npp package (anyone know where there's more information on that?). But that doesn't get me to turning the Android device into whatever tag I want it to be read as by some other NFC reader, at least I'm pretty sure it doesn't. Unless the NFC sensor reads and writes my device's tag if there happens to be one on the device. Is that how it's supposed to work? If that last part is true, is there some sort of convention on how I recognize my tag as compared to any other tag I come into contactless with? I saw posts describing how to do this from the NDK level but I'm asking about from the SDK level. I also saw source code with unpublished methods for card emulation, which leads me to believe that it's just not possible, yet. Thanks for any help on this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] redirct the an alert or replay to the device that send sms
Anybody know of any Android/iOS Developers open for contract opps in Florida? You all are very hard to find! We have some great opportunities in some great shops, but we are lacking the developers. The pay rate is pretty much open as the urgency of this need has risen, and therefore we are doing all we can. Let me know if anybody knows someone! Breece Lynn Veredus Corporation Advancing Business with People! Phone/fax: 813.463.0265 email: bl...@vereduscorp.com web: http://www.vereduscorp.com -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Marcin Orlowski Sent: Thursday, March 03, 2011 11:00 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] redirct the an alert or replay to the device that send sms On 3 March 2011 16:29, vineeshkc kcvine...@gmail.com wrote: Is it possible to either redirect incoming messages to another application or allow the other application to receive the sms as well You can register for broadcast message when SMS comes. It was discussed a few days ago, so search the group archive or redirct the sms to the save device that send There's no redirect nor I do not really know what save device is, but once you got the SMS you can send it to the next device (at regular SMS cost) -- Regards, Marcin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Authenticate Non-AppEngine Webservice using Google Account
You could see this. http://code.google.com/intl/en/apis/accounts/ 2011/3/4 Jesse gotosl...@gmail.com I feel it is Android specific because the main unknown is what type of authtoken does the Android AccountManager API give us for google accounts (ClientLogin, OAuth, something else?). But, I'll try asking elsewhere. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Authenticate Non-AppEngine Webservice using Google Account
have you tried stackoverflow.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: Apn Setting Insert Problem
look, this is the case , when I take _id out , there is no bug , but this time I cannot add string :( codes are above ... 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