[android-developers] Re: How to delegate layout in an abstract ViewGroup
O god, ViewStub is declared final. Why??? I can't extend it. How do I reuse it? On Jul 13, 7:14 pm, Tapomay Dey tapomay@gmail.com wrote: Thanks for the ViewStub approach. On Jul 13, 6:08 pm, Kostya Vasilyev kmans...@gmail.com wrote: Yeah, why not? Presumably, you have some logic in the code that knows the type of UI it's building. Add a ViewGroup to your layout with a known id, and have the code inflate the actual layout, then add it to the view group. Another option is to use ViewStubs in the parent layout, and call inflate / show on just the needed stub. This will let you specify the actual layout in the XML. Once a ViewStub is inflated / shown, it removes itself from the view hierarchy, replacing itself with the inflated layout. -- Kostya 13.07.2011 16:42, Tapomay Dey пишет: Following could be a solution: In the setter method for layout resourceID, inflate the layout and add it as child to the this View object. Is this a clean approach? Regards, Tapomay. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BroadcastReceivers and orientation changes
Thanks Mark, I no sure about the difference between registering the event on the activity or registering it on the application context, can ´t I pass the broadcastReceiver object thought onRetainNonConfigurationInstance() if I made it on the activity? Another problem would be what happends if I have another listener (i.e. GPS location update listenes) in the same activity, with this solution is not posible to pass 2 different objects(listeners) to the onRetainNonConfigurationInstance, any solution? Thank you so much. On 15 jul, 00:14, Mark Murphy mmur...@commonsware.com wrote: Rather than calling registerReceiver() on the Activity, call it on the Application context via getApplicationContext().registerReceiver(). Then, pass the receiver object via onRetainNonConfigurationInstance(), so you unregister the same receiver when you are done. On Thu, Jul 14, 2011 at 7:27 AM, Hera aide...@gmail.com wrote: Hello, I’m having problems with BroadcastReceivers when the screen orientation changes. My Activity registers for receiving WiFi scans with a BroadcastReceiver and when the scan is done: (1) unregisterReceiver(mWifiReceiver), (2) I made some things with the results (by using an AsynkTask thread) and finally, when the thread is finished (3) the activity starts another WiFi scan and the whole process starts again. Everything works fine until a screen orientation changes occurs: If I do not unregisterReceiver() on the onRetainNonConfigurationInstance method I get this exception Activity myActivity has leaked IntentReceiver myActivity $WifiReceiver@405efad0 that was originally registered here. Are you missing a call to unregisterReceiver()? While if I unregisterReceiver(), I get this one: ERROR/AndroidRuntime(1490): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS } in myActivity $WifiReceiver@406b4668 Could someone tell me the correct way to manage BroadcastReceiver in screen orientation changes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Send dtmf tone on uplink
Hi Everyone, I want to send dtmf tone 12345 when called party picked up the phone . I am not getting idea from where to start ? is any one can guide me for sending dtmf tone from where to strat ? is it possible on android ? 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: Best way to support mobile app customers
Hi, The best way would be in person, especially if you charge by the hour + expenses. I use a website, accessible by pressing an About button within the app + email for semi automated bug reports where user opts to send each email. The Android market allows links to website email the developer for your app. Regards On Jul 15, 3:47 pm, Atlan off...@mikemitterer.at wrote: I know it's an unusual question for an developer but how do you support your Mobile-App customers? What's the best way to communicate with them? - Website - Twitter - Facebook - Google+ - Contactform - eMail - Bugtracker - ... How do you use these techniques - I mean how do you show your customer that a WebSite / Facebook or Twitterfeed exists for the app? Samples? Experience? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Missing gen folder R.java in googlecode
I created a new android project from the beginning and manually imported all the resource file source code and the R.java is automatically generated by Eclipse. *wow! lots of manual tasks here, but it works! Thanks, my problem is solved! On Jul 15, 9:47 am, mas_apri aprid...@gmail.com wrote: Hi Thomas, Here's what i did: I created a gen-folder manually by right clicks the project - Build Path - Configure Build Path - on the Source Tab I clicked Add Folder - Create New Folder Then I build the project again,... nothing happened I tried to remove on of resource file, a jpeg file and added it back again,... still nothing happened No R.java file was automatically created. Help please 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: What is programming
http://en.wikipedia.org/wiki/Computer_programming On Jul 15, 2:20 pm, Conny mcon...@gmail.com wrote: Well, if you have a robot who only knows how to move in 4 directions, you will need to give it a set of instructions to walk to the nearby grocery store and pick up some heavy bags for you and then get back home. All those instructions that you will give to the robot is programming the robot. Clear ? On Jul 13, 11:54 am, BrightestSirius kyawth.soe.k...@gmail.com wrote: What is programming. I just want to know. Please reply 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] Gesture Detector
Hi guys, I need on help. I develop a sample application using gesture detector. Its working on api leven 2.1 and 2.2. But its not working on Api level 4.. Can u help me? -- With Regards, SHANMUGANATHAN. A Software Engineer Trainee, Citrisys Solution, Phone: +91.44.22311173 Mail To: sayyadu...@citrisys.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] arun
?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/ll android:background=@drawable/circle6 TextView android:text=Country android:id=@+id/t1 android:layout_height=wrap_content android:layout_width=115dip/TextView TextView android:text=State android:id=@+id/t2 android:layout_height=wrap_content android:layout_width=105dip/TextView TextView android:text=District android:id=@+id/t3 android:layout_height=wrap_content android:layout_width=wrap_content/TextView /LinearLayout am having a circle shaped background image in which text is placed ...but when am checking on different screen resolution then my text is displaying in an improper way. ---how to make background image look similar in all devices Thakyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] background image
-- Forwarded message -- From: arun kumar arun.kata...@gmail.com Date: Fri, Jul 15, 2011 at 12:45 PM Subject: arun To: android-developers@googlegroups.com ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/ll android:background=@drawable/circle6 TextView android:text=Country android:id=@+id/t1 android:layout_height=wrap_content android:layout_width=115dip/TextView TextView android:text=State android:id=@+id/t2 android:layout_height=wrap_content android:layout_width=105dip/TextView TextView android:text=District android:id=@+id/t3 android:layout_height=wrap_content android:layout_width=wrap_content/TextView /LinearLayout am having a circle shaped background image in which text is placed ...but when am checking on different screen resolution then my text is displaying in an improper way. ---how to make background image look similar in all devices Thakyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Prompting a user once
Yes, or a simple static variable if it's the case of a per-instance dialog. 2011/7/15 TreKing treking...@gmail.com On Wed, Jul 13, 2011 at 4:01 PM, elvisdsdev elvisds...@gmail.com wrote: How do I have the app remember that it's already called the AlertDialog and the user's gone through those location steps already?? SharedPreferences. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] arun
Hi Arun, U have to set ur background image for all three screen resolution. Insert your image in drawable-hdpi for 420*800, drawable-mdpi for 320*400, and drawable-ldpi for 240*320. u have to insert three background according to ur screen resolution. i hope it will work for u. On Fri, Jul 15, 2011 at 12:45 PM, arun kumar arun.kata...@gmail.com wrote: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:id=@+id/ll android:background=@drawable/circle6 TextView android:text=Country android:id=@+id/t1 android:layout_height=wrap_content android:layout_width=115dip/TextView TextView android:text=State android:id=@+id/t2 android:layout_height=wrap_content android:layout_width=105dip/TextView TextView android:text=District android:id=@+id/t3 android:layout_height=wrap_content android:layout_width=wrap_content/TextView /LinearLayout am having a circle shaped background image in which text is placed ...but when am checking on different screen resolution then my text is displaying in an improper way. ---how to make background image look similar in all devices Thakyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Best way to support mobile app customers
I mean how do you show your customer that a WebSite / Facebook or Twitterfeed exists for the app? Maybe you can display the relevant links on an About dialog in your application. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius) https://marketplace.cisco.com/apphq/products/510 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: database query
Actually if you navigate to the SQLite page on Android Developers (by simply using the search bar and the SQL keyword), the Notepad tutorial is mentioned there, so it is nowhere hidden, you just need to use the search and reading skills. 2011/7/15 Indicator Veritatis mej1...@yahoo.com Obviously. But without being a little more specific, he will think you are just being rudely flippant. Especially since the title of the tutorial best for learning how to use the SQL database in Android does not even suggest that it covers SQL! I have in mind, of course, the tutorial he should start with (assuming he has completed the really basic ones), http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html On Jul 14, 2:49 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: I suggest you read the tutorials on the Android Developers site. 2011/7/14 kirti waykole kirti.carr...@gmail.com hello all, I am new in android . I want to use database for storing my application data.Plz tell me how to use database in android application Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is programming
What is programming. Man!!! How soon do you plan to publish your application? -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ Cisco Android marketplace (Chosen for Cisco Cius) https://marketplace.cisco.com/apphq/products/510 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 service
If service stopped by user or any other situation . I want to start the service again . or user dont want stop the service delete the option to user to stop the service for our app. is there any flags .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to delegate layout in an abstract ViewGroup
You don't need to subclass ViewStub to use it. http://developer.android.com/resources/articles/layout-tricks-stubs.html -- Kostya 15.07.2011 10:02, Tapomay Dey пишет: O god, ViewStub is declared final. Why??? I can't extend it. How do I reuse it? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Weird java.util.Timer behavior in App Widget
Hey guys, I have an app widget which looks like this. public class MyWidget extends AppWidgetProvider { public static String ACTION_WIDGET_RECEIVER = ActionReceiverWidget; public Timer timer = new Timer(); public int count = 0; @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main); Intent active = new Intent(context, MyWidget.class); active.setAction(ACTION_WIDGET_RECEIVER); active.putExtra(msg, Message for Button 1); PendingIntent actionPendingIntent = PendingIntent.getBroadcast(context, 0, active, 0); remoteViews.setOnClickPendingIntent(R.id.button_one, actionPendingIntent); appWidgetManager.updateAppWidget(appWidgetIds, remoteViews); } @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION_WIDGET_RECEIVER)) { final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); final ComponentName thisWidget = new ComponentName(context, MyWidget.class.getName()); count = 0; timer.cancel(); timer.purge(); timer = new Timer(); timer.scheduleAtFixedRate(new UpdatedTimerTask(this, context, appWidgetManager), 0, 1000); } super.onReceive(context, intent); } } My UpdatedTimerTask looks like this. public class UpdatedTimerTask extends TimerTask { private Context context; private AppWidgetManager appWidgetManager; private RemoteViews remoteViews; private ComponentName thisWidget; private MyWidget widget; public UpdatedTimerTask(MyWidget widget, Context context, AppWidgetManager appWidgetManager) { this.widget = widget; this.context = context; this.appWidgetManager = appWidgetManager; this.remoteViews = new RemoteViews(context.getPackageName(), R.layout.main); this.thisWidget = new ComponentName(context, MyWidget.class); } @Override public void run() { this.remoteViews.setTextViewText(R.id.label3, Count: + widget.count); this.appWidgetManager.updateAppWidget(this.thisWidget, this.remoteViews); widget.count ++; } } When I press Button1 on this widget its acts as I would expect. The count gets updated every second and displays in label3. Button1 Count: 1 Count: 2 Count: 3 etc However when I press Button1 again I expect the count to reset to 0 and continue from there. Whats actually happening is the two Timers are firing overlapped. Button1 Count: 1 Count: 2 Count: 3 Button1 Count: 1 Count: 4 Count: 2 etc Why aren't my calls to timer.cancel() and timer.purge() stopping the first timer before replacing it? How do I fix this issue??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Weird java.util.Timer behavior in App Widget
AppWidgetProvider is a subclass of BroadcastReceiver, and can (and will) be destroyed soon after processing an event. Do not store your data or object references there. -- Kostya Vasilyev 15.07.2011 12:04 пользователь cathal coffey coffey.cat...@gmail.com написал: Hey guys, I have an app widget which looks like this. public class MyWidget extends AppWidgetProvider { public static String ACTION_WIDGET_RECEIVER = ActionReceiverWidget; public Timer timer = new Timer(); public int count = 0; @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main); Intent active = new Intent(context, MyWidget.class); active.setAction(ACTION_WIDGET_RECEIVER); active.putExtra(msg, Message for Button 1); PendingIntent actionPendingIntent = PendingIntent.getBroadcast(context, 0, active, 0); remoteViews.setOnClickPendingIntent(R.id.button_one, actionPendingIntent); appWidgetManager.updateAppWidget(appWidgetIds, remoteViews); } @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(ACTION_WIDGET_RECEIVER)) { final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); final ComponentName thisWidget = new ComponentName(context, MyWidget.class.getName()); count = 0; timer.cancel(); timer.purge(); timer = new Timer(); timer.scheduleAtFixedRate(new UpdatedTimerTask(this, context, appWidgetManager), 0, 1000); } super.onReceive(context, intent); } } My UpdatedTimerTask looks like this. public class UpdatedTimerTask extends TimerTask { private Context context; private AppWidgetManager appWidgetManager; private RemoteViews remoteViews; private ComponentName thisWidget; private MyWidget widget; public UpdatedTimerTask(MyWidget widget, Context context, AppWidgetManager appWidgetManager) { this.widget = widget; this.context = context; this.appWidgetManager = appWidgetManager; this.remoteViews = new RemoteViews(context.getPackageName(), R.layout.main); this.thisWidget = new ComponentName(context, MyWidget.class); } @Override public void run() { this.remoteViews.setTextViewText(R.id.label3, Count: + widget.count); this.appWidgetManager.updateAppWidget(this.thisWidget, this.remoteViews); widget.count ++; } } When I press Button1 on this widget its acts as I would expect. The count gets updated every second and displays in label3. Button1 Count: 1 Count: 2 Count: 3 etc However when I press Button1 again I expect the count to reset to 0 and continue from there. Whats actually happening is the two Timers are firing overlapped. Button1 Count: 1 Count: 2 Count: 3 Button1 Count: 1 Count: 4 Count: 2 etc Why aren't my calls to timer.cancel() and timer.purge() stopping the first timer before replacing it? How do I fix this issue??? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 127.0.0.1 Connection refused when not connected to WiFi
As I mentioned in the original post, I need to use the numeric address. In any case, this is not a name lookup issue. The port is definitely open (verified with netstat), and the behaviour is consistent: WiFi on, connection succeeds; WiFi off, connection refused. I have tested switching the WiFi on and off without restarting the server, and it's the same thing every time. In other words, it's not related to the opening of the socket either; it's purely a runtime issue which is why I'm thinking routing. I can ping 127.0.0.1 from the device without WiFi connectivity, so ICMP is getting through - but TCP is not. My next step will be to write my own client too, in order to eliminate the browser itself as the cause. Cheers, /Uffe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ninepatch
Hi how to make background image as nine patch image. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] arun
thanks for ur reply. i placed the image in hdpi,ldpi and mdpi..but its getting the same issueor i have to make that image as nine patchhow to make image as ninepatch Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: To integrate SSL certificate in android app
Still no reply. Please help anyone. Its urgent. On Jul 12, 9:41 am, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi In my application, there is need ofSSLcertificateto add and make an https connection in theandroidconnection. I follow the steps from this link http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certifi... but get exception and the logcat is as: 07-12 04:35:47.683: INFO/System.out(219): exception javax.net.ssl.SSLException: Not trusted servercertificate 07-12 04:35:47.683: WARN/System.err(219): javax.net.ssl.SSLException: Not trusted servercertificate 07-12 04:35:47.703: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 360) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java: 92) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java: 321) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java: 129) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java: 119) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java: 348) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 555) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 487) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 465) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity.showImeiCheck(SplashActivity.java: 80) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity $ImeiCheckTask.doInBackground(SplashActivity.java:213) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity $ImeiCheckTask.doInBackground(SplashActivity.java:1) 07-12 04:35:47.712: WARN/System.err(219): atandroid.os.AsyncTask $2.call(AsyncTask.java:185) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1068) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:561) 07-12 04:35:47.712: WARN/System.err(219): at java.lang.Thread.run(Thread.java:1096) 07-12 04:35:47.712: WARN/System.err(219): Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found. 07-12 04:35:47.712: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java: 168) 07-12 04:35:47.712: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 355) 07-12 04:35:47.712: WARN/System.err(219): ... 18 more 07-12 04:35:47.712: WARN/System.err(219): Caused by: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found. 07-12 04:35:47.722: WARN/System.err(219): at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java: 149) 07-12 04:35:47.722: WARN/System.err(219): at java.security.cert.CertPathValidator.validate(CertPathValidator.java: 211) 07-12 04:35:47.722: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java: 164) Kindly provide me the proper example or tutorial to establishssl connection. Thanks and regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: To integrate SSL certificate in android app
A simple search would definitely give you some hints. Try those and come back if you have any specific problem. http://stackoverflow.com/questions/995514/https-connection-android Mention a little more about your implementation. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Jul 15, 2011 at 2:16 PM, Sapna Srivastav sapna.ari...@gmail.comwrote: Still no reply. Please help anyone. Its urgent. On Jul 12, 9:41 am, Sapna Srivastav sapna.ari...@gmail.com wrote: Hi In my application, there is need ofSSLcertificateto add and make an https connection in theandroidconnection. I follow the steps from this link http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certifi. .. but get exception and the logcat is as: 07-12 04:35:47.683: INFO/System.out(219): exception javax.net.ssl.SSLException: Not trusted servercertificate 07-12 04:35:47.683: WARN/System.err(219): javax.net.ssl.SSLException: Not trusted servercertificate 07-12 04:35:47.703: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 360) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java: 92) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java: 321) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java: 129) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java: 119) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java: 348) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 555) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 487) 07-12 04:35:47.703: WARN/System.err(219): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 465) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity.showImeiCheck(SplashActivity.java: 80) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity $ImeiCheckTask.doInBackground(SplashActivity.java:213) 07-12 04:35:47.712: WARN/System.err(219): at com.ariose.activity.SplashActivity $ImeiCheckTask.doInBackground(SplashActivity.java:1) 07-12 04:35:47.712: WARN/System.err(219): atandroid.os.AsyncTask $2.call(AsyncTask.java:185) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1068) 07-12 04:35:47.712: WARN/System.err(219): at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:561) 07-12 04:35:47.712: WARN/System.err(219): at java.lang.Thread.run(Thread.java:1096) 07-12 04:35:47.712: WARN/System.err(219): Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found. 07-12 04:35:47.712: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java: 168) 07-12 04:35:47.712: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 355) 07-12 04:35:47.712: WARN/System.err(219): ... 18 more 07-12 04:35:47.712: WARN/System.err(219): Caused by: java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found. 07-12 04:35:47.722: WARN/System.err(219): at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java: 149) 07-12 04:35:47.722: WARN/System.err(219): at java.security.cert.CertPathValidator.validate(CertPathValidator.java: 211) 07-12 04:35:47.722: WARN/System.err(219): at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java: 164) Kindly provide me the proper example or tutorial to establishssl connection. Thanks and regards Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this
[android-developers] How to find the load time of UI
Hi, i want to know time taken to load UI / activity on to UI Thank you... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] the application looks like be forced change the configration after landscape application be called
when the application running request portrait mode, then start camera or mediaplayer who's screen orientation is landscape mode. when return back to my application, the onSizeChanged method of the application layout view will be called. be the onConfigrationChanged method of the activity is not called. this will cause some problem. like webview based app on HTC desire HD, when click a stream media url on webview, then onpen the system player, when return back, the webview will not work, any link will not opened. any one know this problem? how to resolve it? thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] arun
Hi Arun, You need to insert images with same name is each drawable , but each image size will change according to their screen resolution. You have to make three images with different sizes but same name. On Fri, Jul 15, 2011 at 2:07 PM, arun kumar arun.kata...@gmail.com wrote: thanks for ur reply. i placed the image in hdpi,ldpi and mdpi..but its getting the same issueor i have to make that image as nine patchhow to make mage as ninepatch Thankyou arun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to measure activity load time
i am looking for a tool that will do this, because i have a application with more then 100 activity or any method or class in android sdk will help On Jul 15, 7:31 am, TreKing treking...@gmail.com wrote: On Thu, Jul 14, 2011 at 6:34 AM, sreenivas p m sreenivas...@gmail.comwrote: how to identify load time of all the 3 screens Identify the load time of each individually (which is all that really matters at any given time) ... then add. - 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] Re: ninepatch
First read docs, then ask here. http://developer.android.com/guide/developing/tools/draw9patch.html On Jul 15, 10:34 am, arun kumar arun.kata...@gmail.com wrote: Hi how to make background image as nine patch image. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: alert dialog with refreshable listview
so my final solution is A. create custom adapter based on CursorAdapter (or BaseAdapter) B. create custom row layout in xml and inflate it in adapter C. create AlertDialog and setItem(new CharSeq[0], null) - this will create default list with default look and feel, without this code listView is not initialized D. in onPrepareDialog get ListView from dialog and set custom adapter with new data, add click event handler which is called with item position and id of the row(if cursor adapter was used) when I tried creating custom dialog with scroll view and list view I had to additionally setup layout_width and height for the dialog AFTER it was created (so in onPrepareDialog callback) if not dialog was quite small. PK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 service
What exactly do you want to achieve? When the user stops your service, they have a reason to do so, so I don't think the app should automatically restart it. On Jul 15, 9:31 am, yanamala siddaiah siddaiahforj...@gmail.com wrote: If service stopped by user or any other situation . I want to start the service again . or user dont want stop the service delete the option to user to stop the service for our app. is there any flags .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Style resource parent can be specified with or without @ symbol. Bug or documentation error?
Hi, the documentation for styles states that the parent attribute should start with an @ but it does not seem to be mandatory. http://developer.android.com/guide/topics/resources/style-resource.html parent=@[package:]style/style_to_inherit However looking at iosched app it never uses this form but leaves out the @ http://code.google.com/p/iosched/source/browse/android/res/values/styles.xml style name=Theme parent=android:style/Theme / style name=ListItemContainer parent=style/ListItemContainerBase / Can someone confirm if this is a bug in implementation or documentation? thanks, James -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to measure activity load time
I'm not sure about the others, but I have a really bad feeling about an application with more than 100 Activities. 2011/7/15 sreenivas p m sreenivas...@gmail.com i am looking for a tool that will do this, because i have a application with more then 100 activity or any method or class in android sdk will help On Jul 15, 7:31 am, TreKing treking...@gmail.com wrote: On Thu, Jul 14, 2011 at 6:34 AM, sreenivas p m sreenivas...@gmail.com wrote: how to identify load time of all the 3 screens Identify the load time of each individually (which is all that really matters at any given time) ... then add. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] image view listener
Hi am having two image one is placed rightside and other is placed leftside to the layout when i click on image 1 image 3 has to display inbetween image 1 and image 2similarly when i click on image 2... image 4 has to display inbetween image1 and image2 for me here when i click on image1 ...image 3 has appearing and when i click on image 2.. image 4 along with image 3 has appearing//here image 3 has to disappear i set images 3and 4 as invisible in xml file ...in java file i wrote onclick listener for image1 and image 2 . ImageView android:layout_height=wrap_content android:scaleType=center android:id=@+id/iv8 android:visibility=invisible android:layout_width=20dip android:src=@drawable/logo8/ImageView ImageView android:layout_height=wrap_content android:scaleType=center android:visibility=invisible android:onClick=@drawable/logo android:id=@+id/iv5 android:layout_width=30dip android:src=@drawable/logo5/ImageView final ImageView img1=( ImageView)findViewById(R.id.iv1); img1.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub ImageView img3 = (ImageView)findViewById(R.id.iv3); if (((ImageView) v).isClickable()) { img3.setVisibility(View.VISIBLE); } else { img3.setVisibility(View.INVISIBLE); } }); final ImageView img2=( ImageView)findViewById(R.id.iv2); img2.setOnClickListener(new OnClickListener() { public void onClick(View v) { ImageView img8=(ImageView)findViewById(R.id.iv4); if (((ImageView) v).isClickable()) { img4.setVisibility(View.VISIBLE); } else { img4.setVisibility(View.INVISIBLE); } } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] popupwindow on onCreate()
Hi All, I am displaying a popwindow onCreate() of an Activity A.When launching Activity A from Activity B am getting this popupwindow?...I dont want this behaviour Any ideas? Regards Bhavani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Take low Resolution Image
Hello Every One, I am trying to click image in my application and send it to over server in Bytes so please help coz i need Low resolution image and send it to server in small bytes. but my current code click image and convert it in bytes but the image size may be big. I use this code try { parameters.setPreviewSize(100, 100); parameters.setPictureFormat(PixelFormat.JPEG); parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); parameters.setJpegQuality(75); mCamera.setParameters(parameters); mCamera.startPreview(); } catch (Exception e) { parameters.setPreviewSize(100, 100); parameters.setPictureSize(20, 20);//parameters.setZoom(1); /*Not in 1.6*/ //parameters.setZoom(0); /*Not in 1.6*/ parameters.setPictureFormat(PixelFormat.JPEG); //parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); /*Not in 1.6*/ //parameters.setJpegQuality(100); /*Not in 1.6*/ mCamera.setParameters(parameters); mCamera.startPreview(); } and for send Bytes use this code try { PImgString = Base64.encodeToString(PImg, 1); Log.d(PImgString, PImgString); } catch (Exception e) { PImgString = new String(PImgString); Log.d(PImgString catch, PImgString); } For Send Query String over my handler file which i create in .Net postParameters.add(new BasicNameValuePair(PImg, PImgString )); -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] popupwindow on onCreate()
Insert some extra to the Intent indicating you don't want to show the popup? 2011/7/15 bhavani sankari bhavani...@gmail.com Hi All, I am displaying a popwindow onCreate() of an Activity A.When launching Activity A from Activity B am getting this popupwindow?...I dont want this behaviour Any ideas? Regards Bhavani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gridview row background
Hi all, How to set the background for a particular row in gridview in android. i reffered the below link -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] sendBroadcast vs ContentProvider
Hi , I have a scenario where data needs to be continously exchanged between two applications or rather, one application acts as the data provider and the other simply uses it. I am thinking of two possible solutions, 1. Use the sendBroadcast() - broadcast a app-directed intent with the specific data 2. Make the data provider application as a content provider, where all the data is written to sqlite data base, and the first application queries for the data after every x seconds. Here the data is mostly String, but can be a very long String. The frequency of updates is very frequent. The two applications cannot be combined.. :( I am not sure of the implications of either approach, fast vs performance vs preferred.. What should be the suggested approach? 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] How to Delay between Two frames in Frame-By-Frame Animation
Now I have four Images and I have applied frame animation on these four images 1.one 2.two 3.three 4.Go I want to give a time delay between three and Go frame which would be a random time. Here is my code int d=5000; AnimationDrawable drawable=new AnimationDrawable(); drawable.addFrame(getResources().getDrawable(R.drawable.one), 1000); drawable.addFrame(getResources().getDrawable(R.drawable.two), 1000); drawable.addFrame(getResources().getDrawable(R.drawable.three),d); drawable.addFrame(getResources().getDrawable(R.drawable.go),d); drawable.setOneShot(true); iv3.setBackgroundDrawable(drawable); drawable.start(); Where iv3 is my ImageView And I also want to give Scale animation with frame-by-frame animation on these images. Please Help me out... Th@nks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing. How to store information about transactions of unmanaged products?
On 15 июл, 04:20, Nikolay Elenkov nikolay.elen...@gmail.com wrote: Use REQUEST_ID to link orders to your custom information? Thanks for your answer. But I don't realy understand how could I use REQUEST_ID. As I see REQUEST_ID is unique for every new request. I need to associate REQUEST_ID of RequestPurchase with orders. And there is no any connectivity between this id and orders, or it exists? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: alert dialog with refreshable listview
Not sure why you need step C. Other than that, yes, AlertDialog has a getListView method, which you can call from onPrepareDialog, get the adapter, and tell it about the new data. -- Kostya 15.07.2011 13:44, kamiseq пишет: so my final solution is A. create custom adapter based on CursorAdapter (or BaseAdapter) B. create custom row layout in xml and inflate it in adapter C. create AlertDialog and setItem(new CharSeq[0], null) - this will create default list with default look and feel, without this code listView is not initialized D. in onPrepareDialog get ListView from dialog and set custom adapter with new data, add click event handler which is called with item position and id of the row(if cursor adapter was used) when I tried creating custom dialog with scroll view and list view I had to additionally setup layout_width and height for the dialog AFTER it was created (so in onPrepareDialog callback) if not dialog was quite small. PK -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to measure activity load time
Fine with me - as long as each activity has an image of a Korean girl in a bikini :) 15.07.2011 13:50, Filip Havlicek ?: I'm not sure about the others, but I have a really bad feeling about an application with more than 100 Activities. 2011/7/15 sreenivas p m sreenivas.pm http://sreenivas.pm@gmail.com http://gmail.com i am looking for a tool that will do this, because i have a application with more then 100 activity or any method or class in android sdk will help On Jul 15, 7:31 am, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Thu, Jul 14, 2011 at 6:34 AM, sreenivas p m sreenivas...@gmail.com mailto:sreenivas...@gmail.comwrote: how to identify load time of all the 3 screens Identify the load time of each individually (which is all that really matters at any given time) ... then add. - 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 mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@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 -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BroadcastReceivers and orientation changes
On Fri, Jul 15, 2011 at 2:17 AM, Hera aide...@gmail.com wrote: Thanks Mark, I no sure about the difference between registering the event on the activity or registering it on the application context, can ´t I pass the broadcastReceiver object thought onRetainNonConfigurationInstance() if I made it on the activity? No, because you will leak the old activity. Another problem would be what happends if I have another listener (i.e. GPS location update listenes) in the same activity, with this solution is not posible to pass 2 different objects(listeners) to the onRetainNonConfigurationInstance, any solution? Return something that holds both the receiver and the listener. I have used a static inner class named State for situations like that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Image Issue Please help me
Hello Everyone, Is there anyway to reduce the resolution of picture taken using camera? It takes long time to upload the image to server Coz i m converting the image in bytes and send to server and may be the size of image may be 3 MB. Here is my code which i use. SurfaceHolder.Callback surfaceCallback=new SurfaceHolder.Callback() { public void surfaceCreated(SurfaceHolder holder) { mCamera=Camera.open(); try { mCamera.setPreviewDisplay(previewHolder); mCamera.setOneShotPreviewCallback(null); ColorMatrix cm = new ColorMatrix(); cm.setSaturation(.5f); //paint.setColorFilter(new ColorMatrixColorFilter(cm)); } catch (Throwable t) { Log.e(PictureDemo-surfaceCallback,Exception insetPreviewDisplay(), t); Toast.makeText(TakePic.this,t.getMessage(), Toast.LENGTH_LONG).show(); } } public void surfaceChanged(SurfaceHolder holder,int format, int width, int height) { Camera.Parameters parameters=mCamera.getParameters(); /*int bestWidth = 0; int bestHeight = 0; //Customise width/height here - otherwise defaults to screen width/height ListCamera.Size previewSizes = parameters.getSupportedPreviewSizes(); if (previewSizes.size() 1) { IteratorCamera.Size cei = previewSizes.iterator(); while (cei.hasNext()) { Camera.Size aSize = cei.next(); Log.v(SNAPSHOT,Checking + aSize.width + x + aSize.height); if (aSize.width bestWidth aSize.width = LARGEST_WIDTH aSize.height bestHeight aSize.height = LARGEST_HEIGHT) { // So far it is the biggest without going over the screen dimensions bestWidth = aSize.width; bestHeight = aSize.height; } } } if (bestHeight != 0 bestWidth != 0) { Log.v(SNAPSHOT, Using + bestWidth + x + bestHeight); parameters.setPreviewSize(bestWidth, bestHeight); View cameView = null; //cameraView.setLayoutParams(new LinearLayout.LayoutParams( bestWidth,bestHeight)); }*/ /*Not in 1.6*/ /*Not in 1.6*/ try { parameters.setPreviewSize(100, 100); parameters.setPictureFormat(PixelFormat.JPEG); parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); parameters.setJpegQuality(75); mCamera.setParameters(parameters); mCamera.startPreview(); } catch (Exception e) { parameters.setPreviewSize(100, 100); parameters.setPictureSize(20, 20);//parameters.setZoom(1); /*Not in 1.6*/ //parameters.setZoom(0); /*Not in 1.6*/ parameters.setPictureFormat(PixelFormat.JPEG); //parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); /*Not in 1.6*/ //parameters.setJpegQuality(100); /*Not in 1.6*/ mCamera.setParameters(parameters); mCamera.startPreview(); } //-- Must add the following callback to allow the camera toautofocus. mCamera.autoFocus(new Camera.AutoFocusCallback(){ public void onAutoFocus(boolean success, Camera camera) { } } ); } public void surfaceDestroyed(SurfaceHolder holder) { if(mCamera != null){ mCamera.stopPreview(); mCamera.release(); mCamera=null; } } }; Camera.PictureCallback photoCallback=new Camera.PictureCallback() { public void onPictureTaken(byte[] data, Camera camera) { ImgName = String.format(%d.jpg, System.currentTimeMillis()); //FileOutputStream outStream = null; try { byte[] imgBtye = data; ColorMatrix cm = new ColorMatrix(); float contrast = 2; float brightness = -25; cm.set(new float[] { contrast, 0, 0, 0, brightness,0, contrast, 0, 0, brightness,0, 0, contrast, 0, brightness,0, 0, 0, contrast, 0 }); Paint paint = new Paint(); cm.setSaturation(2f); paint.setColorFilter(new ColorMatrixColorFilter(cm)); Log.d(TAG, onPictureTaken - wrote bytes: + imgBtye.toString()); GetLocationService(); Intent i = new Intent(TakePic.this, AddDetail.class); i.putExtra(Pimg, imgBtye);
Re: [android-developers] Send dtmf tone on uplink
On Fri, Jul 15, 2011 at 2:32 AM, Amit Mangal forum.amit.man...@gmail.com wrote: I want to send dtmf tone 12345 when called party picked up the phone . I am not getting idea from where to start ? is any one can guide me for sending dtmf tone from where to strat ? is it possible on android ? Not generally. If the device is in speakerphone mode, you can use ToneGenerator for this, and I think it will work. However, you do not have direct access to the in-call audio stream. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing. How to store information about transactions of unmanaged products?
The Order ID is available as well - and that doesn't change once you get one that goes through. 15.07.2011 15:03, Mc Bell пишет: On 15 июл, 04:20, Nikolay Elenkovnikolay.elen...@gmail.com wrote: Use REQUEST_ID to link orders to your custom information? Thanks for your answer. But I don't realy understand how could I use REQUEST_ID. As I see REQUEST_ID is unique for every new request. I need to associate REQUEST_ID of RequestPurchase with orders. And there is no any connectivity between this id and orders, or it exists? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fwd: Gridview row background
Hi all, How to set the background for a particular row in gridview in android. i referred the below link http://erikw.eu/?p=77 -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] sendBroadcast vs ContentProvider
A ContentProvider doesn't have to be SQL based - you can store the data in memory, as long as you use a Cursor subclass that's not SQL based either. What is a very long String? Depending on your data size, you may want to use Messenger: http://developer.android.com/reference/android/os/Messenger.html -- Kostya 15.07.2011 14:38, sriram пишет: Hi , I have a scenario where data needs to be continously exchanged between two applications or rather, one application acts as the data provider and the other simply uses it. I am thinking of two possible solutions, 1. Use the sendBroadcast() - broadcast a app-directed intent with the specific data 2. Make the data provider application as a content provider, where all the data is written to sqlite data base, and the first application queries for the data after every x seconds. Here the data is mostly String, but can be a very long String. The frequency of updates is very frequent. The two applications cannot be combined.. :( I am not sure of the implications of either approach, fast vs performance vs preferred.. What should be the suggested approach? Thanks in advance.. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 highlight specific date in calendar view?
Hi Frnds, I have list of specific date.. then How to highlight that specific date in calendar view? Thanks -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Weird java.util.Timer behavior in App Widget
Thanks Kostya but where should I store my objects? Is the correct approach to spawn a service and store my objects there? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing. How to store information about transactions of unmanaged products?
On 15 июл, 14:11, Kostya Vasilyev kmans...@gmail.com wrote: The Order ID is available as well - and that doesn't change once you get one that goes through. But I don't have order id at the moment when I need to store my additional information) And I don't have additional information when I receive signedData with orders. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Weird java.util.Timer behavior in App Widget
A service can get killed too, and I don't think you'd want a foreground-class service just to update your widget. The usual solution is to use AlarmManager, possibly combined with a service, or not. Keep in mind that updating a widget every few seconds can be a huge battery drain, no matter how you trigger those updates. -- Kostya 15.07.2011 15:29, cathal coffey пишет: Thanks Kostya but where should I store my objects? Is the correct approach to spawn a service and store my objects there? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 highlight specific date in calendar view?
I have not used CalendarView, but it would appear that you should call setDate(). On Fri, Jul 15, 2011 at 7:22 AM, vijayakumar M iamvijayaku...@gmail.comwrote: Hi Frnds, I have list of specific date.. then How to highlight that specific date in calendar view? Thanks -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-app billing. How to store information about transactions of unmanaged products?
On 15 июл, 14:35, Kostya Vasilyev kmans...@gmail.com wrote: Have you considered using the |DEVELOPER_PAYLOAD |field? You've got a point! I didn't think about developer_payload... That might help. I'll try to use this. Thanks for your advice! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In-app billing. How to store information about transactions of unmanaged products?
Have you considered using the |DEVELOPER_PAYLOAD |field? http://developer.android.com/guide/market/billing/billing_reference.html 15.07.2011 15:30, Mc Bell пишет: On 15 июл, 14:11, Kostya Vasilyevkmans...@gmail.com wrote: The Order ID is available as well - and that doesn't change once you get one that goes through. But I don't have order id at the moment when I need to store my additional information) And I don't have additional information when I receive signedData with orders. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 service
You cannot hide stopping a service... all one has to do is close it from the settings. Also restarting a service after the user explicity shut it down will quickly turn users away from your application. You can flag the service for restart after the system shuts it down by using the START_STICKY flag -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Display on Screen
hello all, I am new in android . I want display all data from database. i am not using any gridview.on plan Screen i want display all data from database. How should i do this . plz guide me. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] android service
Hi yanamala , ya we can achieve that by Boolean flag the scenario of service can destroy are: 1. when user itself can stop the service by settings- application settings - Running service- then your app service 2. when the mobile switch off so service can stop. *how can we archive:* - Using shared preference store a Boolean value for eg: *status* - Once service started change that flag to true - If service is going to destroy then by default it will call ondestroy() method in service class in that change the *status *to false - If there is no service it will be false else it will be true - so from that u can check is service is running or not if running leave it else again start service did i help u ? Regards, Perumal.N On Fri, Jul 15, 2011 at 1:01 PM, yanamala siddaiah siddaiahforj...@gmail.com wrote: If service stopped by user or any other situation . I want to start the service again . or user dont want stop the service delete the option to user to stop the service for our app. is there any flags .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Querying the max value of a column in SQLite For Android.
why are you asking for index -1? You should ask for the first row which has the index of 0. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Display on Screen
use sql lite to save data check for Databasehelper and sqllite data base classes of android and use list view to display the data on UI search for tutorials of sql lite and list view On Fri, Jul 15, 2011 at 5:41 PM, kirti waykole kirti.carr...@gmail.comwrote: hello all, I am new in android . I want display all data from database. i am not using any gridview.on plan Screen i want display all data from database. How should i do this . plz guide me. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Querying the max value of a column in SQLite For Android.
No, i just execute a query. The result is an cursors which has the index -1.I think is due to a malformed query. Well i guess i should dig more in SQLite to find the answer. Thank you for reply. On Fri, Jul 15, 2011 at 3:26 PM, lbendlin l...@bendlin.us wrote: why are you asking for index -1? You should ask for the first row which has the index of 0. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Querying the max value of a column in SQLite For Android.
Thank you, i'll try it. I'll just do a study of SQLite and see. On Fri, Jul 15, 2011 at 7:04 AM, gjs garyjamessi...@gmail.com wrote: Hi, I think you have the parameters wrong, you probably want the resulting query to be SELECT MAX(price) FROM spending. Then use that value for subsequent queries about the rows with the max price. Regards On Jul 15, 2:17 am, ilcredo ilcr...@gmail.com wrote: This is the method used in my database adapter : -- public Cursor getBiggestInTheColumn() { return db.query(DATABASE_TABLE, null, MAX(price), null, null, null, null);} -- It should work but when i call the method : - cursor = dbadp.getBiggestInTheColumn(); I Get a Runtime Error Like This(LogCat) : 07-14 12:38:51.852: ERROR/AndroidRuntime(276): Caused by: android.database.sqlite.SQLiteException: misuse of aggregate function MAX(): , while compiling: SELECT * FROM spendings WHERE MAX(price) Any ideas? I suspect this is due to the bad query, but this is the best one that i can come up with. Other queries are working well. Also the table has some data in it. I know i should look documentation but i'm out of time. I've been given an advice to use rawQuery() instead, so i changed the query to : --- db.rawQuery(SELECT MAX(price) FROM spendings, null); --- I guess it solved the problem but now it returns me this : ERROR/AndroidRuntime(335): Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1 Thank you in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Freemium Model with In-App Purchases
I'm close to releasing a new iPhone/Android local multiplayer game and I'm looking into monetization issues. My ad revenue is still dismal this year, even though impressions and clicks are fairly robust. And the format of the game is such that I want to encourage new users to easily try the game for free, so I was thinking of using a freemium model where the app is free to download, then locks after a certain amount of gameplay and prompts the user to unlock the full version using in-app purchases. I'd be interested to hear any experiences of any developers who might currently be using this approach. From a marketing/sales perspective, how well does this model work? I know in-app purchases for virtual goods is extremely lucrative if done well, but I haven't heard any experiences of the unlock-full-version model on the Android Market. From a technical perspective, how easy is it for users to exploit such a model, e.g. uninstalling and reinstalling the app or wiping local data associated with the app in order to circumvent the limitations of the free version? Are there best practices to avoid this? From a legal perspective, should developers (especially indie ones like me) be concerned about the current patent trolling and lawsuits by companies like Lodsys? Google still hasn't publicly commented on patent trolls targeting Android developers, have they? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 127.0.0.1 Connection refused when not connected to WiFi
I have now tested with a simple client, and also with Opera. It works in both those cases. In other words, this is not an IP stack issue but an issue with the default browser, or possibly with the settings enforced by the manufacturer (Samsung) or carrier (Telenor Sweden). Either way, there is a workaround: use Opera. Good enough for me, for now. /Uffe -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Need Help regrading sound meter
Thanks for the input Gary... could you tell me I am using the example API demos there it has example of equalizer and visualizer class but when I am running that application NoClassDefFoundError its throwing .I have tested it with the api-9,10,11 and 12. do you know how to resolve that issue. I know that class loader is not able to get the definition of the file at runtime then only it throws this error however this class is present in the android platforms what should I do to resolve this issue. Thanks in a advance Amritesh On Jul 15, 7:56 am, gjs garyjamessi...@gmail.com wrote: http://stackoverflow.com/questions/5734332/vu-audio-meter-when-record... On Jul 14, 9:34 pm, Amritesh amriteshmad...@gmail.com wrote: Hello Guys, I need help seriously as I am in middle of this app. and I am stuck at this point. I am making an application which will play songs from phone and also it has four tracks which allows user to record and play that vocal records exactly at the time vocals has been recorded while playing songs. Now I have also thesoundmeter for every song player and the vocal records, but I don't have any idea how to implement thesoundmeter functionality as well as the UI part of thatsoundmeter . Guys plz help me out. I am new to android as well as media thing and I am really stuck at this time. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebView Scale
I am having trouble manually controlling the scale of a WebView. My Webview is loading html content with a known body size. When the app is rotated and/or pages are loaded, I want to be able to manually control the scale of the WebPage to control how the content is displayed. I am currently using WebView.setInitialScale. This works the first time I call it, but it seems that subsequent calls do not affect the visible scale of the WebView. I am also watching the onScaleChanged event of my WebViewClient. When the event is fired, I often see scale values that do not reflect what I have manually set. My html content does specify a scale value. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView Scale
I meant to type my html content does NOT specify a scale value... On Jul 15, 8:52 am, Mark mbus...@bitwisecontrols.com wrote: I am having trouble manually controlling the scale of a WebView. My Webview is loading html content with a known body size. When the app is rotated and/or pages are loaded, I want to be able to manually control the scale of the WebPage to control how the content is displayed. I am currently using WebView.setInitialScale. This works the first time I call it, but it seems that subsequent calls do not affect the visible scale of the WebView. I am also watching the onScaleChanged event of my WebViewClient. When the event is fired, I often see scale values that do not reflect what I have manually set. My html content does specify a scale value. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Gesture Detector
On Fri, Jul 15, 2011 at 2:09 AM, shanmu nathan win.sha...@gmail.com wrote: Can u help me? Not if that is the extent of the information you have to provide. http://www.catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to measure activity load time
On Fri, Jul 15, 2011 at 4:28 AM, sreenivas p m sreenivas...@gmail.comwrote: i have a application with more then 100 activity Why? I would really, really like to know why. - 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] Re: Display on Screen
Through the magic of search I found... This awesome information... http://developer.android.com/guide/topics/data/data-storage.html Which led me to this information which is awesome too... http://developer.android.com/guide/topics/data/data-storage.html#db Which in turn led me to even more awesome information... http://developer.android.com/guide/topics/providers/content-providers.html Now I had to stop there because I was being crushed under all the awesomeness... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is programming
Why is the sky blue? Why is the grass green? How does posi-trak on a Plymouth work? Some things we'll never know. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What is programming
On Fri, Jul 15, 2011 at 12:43 PM, rich friedel rich.frie...@gmail.com wrote: How does posi-trak on a Plymouth work? Some things we'll never know. Oh, no, that one's easy: it's a Plymouth, *nothing* works. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Streaming Wav Audio Error: MediaPlayer Prepare failed status=0x1
We have tried prepareAsync() and it does not work either. On Jul 13, 5:24 am, Praveen Raj praveenraj1...@gmail.com wrote: You should use prepareAsync() for streams, inplace ofprepare(). On Jul 13, 3:42 am, nbonwit nevi...@freescalemcu.org wrote: Hello, We are streaming audio via http from ffserver/ffmpeg on Angstrom Linux. The ffmpeg audio codec is PCM signed 16-bit little endian pcm_s16le. The ffmpeg stream format is wav. Both of these are claimed to be supported on Android here:http://developer.android.com/guide/appendix/media-formats.html#core VLC finds and plays the stream without any problems. Under VLC Codec Details, it says: Type: Audio, Codec: PCM S16 LE (araw) Channels: Stereo Sample rate: 48000 Hz Bits per sample: 16 We built the simple test application below to pick up and play the stream in Android and get this error: java.io.IOException:Preparefailed.: status=0x1 We checked the HTTP header using HTTP Debugger Pro. The Response Header items (when playing normally via VLC) are: [Response]: HTTP/1.0 200 OK Pragma: no-cache Content-Type: audio/x-wav We have been searching the web for help on this issue for over two days and have come up empty-handed. Any help would be *greatly* appreciated. Thanks, Neville TEST APP package com.shaneahern.streamtest; import java.io.IOException; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; public class BareBonesStreamTestActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String streamUrl = http://192.168.24.123:8080/test.wav;; MediaPlayer mp = new MediaPlayer(); Log.i(BareBonesStreamTestActivity, MediaPlayer created); try { mp.setDataSource(streamUrl); Log.i(BareBonesStreamTestActivity, setDataSource to + streamUrl); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); Log.i(BareBonesStreamTestActivity, setAudioStreamType to AudioManager.STREAM_MUSIC); mp.prepare(); Log.i(BareBonesStreamTestActivity, preparesucceeded, calling start); mp.start(); } catch (IllegalStateException e) { Log.i(BareBonesStreamTestActivity, preparefailedwith IllegalStateException); e.printStackTrace(); } catch (IOException e) { Log.i(BareBonesStreamTestActivity, preparefailedwith IOException); e.printStackTrace(); } } } ERROR LOG I/BareBonesStreamTestActivity( 727): MediaPlayer created I/StagefrightPlayer( 33): setDataSource('http://192.168.24.123:8080/ test.wav') I/BareBonesStreamTestActivity( 727): setDataSource tohttp://192.168.24.123:8080/test.wav I/BareBonesStreamTestActivity( 727): setAudioStreamType to AudioManager.STREAM_MUSIC E/MediaPlayer( 727): error (1, -2147483648) I/BareBonesStreamTestActivity( 727):preparefailedwith IOException W/System.err( 727): java.io.IOException:Preparefailed.: status=0x1 W/System.err( 727): at android.media.MediaPlayer.prepare(Native Method) W/System.err( 727): at com.shaneahern.streamtest.BareBonesStreamTestActivity.onCreate(BareBonesStr eamTestActivity.java: 30) W/System.err( 727): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) W/System.err( 727): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) W/System.err( 727): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) W/System.err( 727): at android.app.ActivityThread.access $2300(ActivityThread.java:125) W/System.err( 727): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:2033) W/System.err( 727): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err( 727): at android.os.Looper.loop(Looper.java:123) W/System.err( 727): at android.app.ActivityThread.main(ActivityThread.java:4627) W/System.err( 727): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 727): at java.lang.reflect.Method.invoke(Method.java:521) W/System.err( 727): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) W/System.err( 727): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) W/System.err( 727): 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] How to cancel the default longclick menu on edittext
Hi, I am trying not get the default longclick menu (input method selections etc) when longclicking an edittext The menu still appears after I displayed by date and timepicker dialogs. I am not sure what I am doing wrong here. private View.OnLongClickListener MyLongClickListener = new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { if (v.getId() == R.id.textviewDayStart){ v.cancelLongPress(); mSettingStartDate = true; showDialog(DATE_DIALOG); } if (v.getId() == R.id.textviewDayFinish){ mSettingStartDate = false; v.cancelLongPress(); showDialog(DATE_DIALOG); } if (v.getId() == R.id.textviewTimeStart){ mSettingStartDate = true; v.cancelLongPress(); showDialog(TIME_DIALOG); } if (v.getId() == R.id.textviewTimeFinish){ mSettingStartDate = false; v.cancelLongPress(); showDialog(TIME_DIALOG); } return false; } }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: What is programming
http://en.wikipedia.org/wiki/Computer_programming On Jul 12, 11:54 pm, BrightestSirius kyawth.soe.k...@gmail.com wrote: What is programming. I just want to know. Please reply 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] Retrieve and send data between MySQL and Android App
Hi everyone, I want to know a way to retrieve and send data to my MsSQL database in my server Is there any method or activity that does that? I already know how to use the sqlite database inside android, but i need to access a external database. I can use JDBC inside android to connect to the MySQL 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
[android-developers] Re: What is programming
Actually, ask.com would give a better answer. But the question was quite off-topic for this group anyway. On Jul 14, 4:06 pm, TreKing treking...@gmail.com wrote: On Wed, Jul 13, 2011 at 1:54 AM, BrightestSirius kyawth.soe.k...@gmail.comwrote: What is programming. I just want to know. Please reply me. *http://tinyurl.com/2rfwr* - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Ayuda con el emulador Android
Nice answer Indicator Veritatis ;) The translation you made is pretty good but i'm not sure because i can't understand very well the original question in spanish (and it's my native language). Only a minor detail Jonathan says that the issue started after an upgrade of the SDK (for windows) and that he can't upgrade in linux. Jonathan, can you give us some extra info? what is the issue on windows? do you have any log or extra info for us? Jonathan, podrías darnos alguna información extra ¿qué problema tienes en windows? ¿tienes algún log o datos extra para nosotros? On Thu, Jul 14, 2011 at 10:37 PM, Indicator Veritatis mej1...@yahoo.comwrote: Well, obviously, yes it is English. However, Google headquarters is located in California, where by the Treaty of Guadalupe-Hidalgo, the State of California is obliged to treat Spanish as co-official with English. Of course, we got around this clause of the treaty by pointing out that we HAVE no concept in our law of an official language, but that is a poor excuse for continuing the bad behavior. Besides: Google translate does an OK job on this. It would do better if Mr Roa would have broken the sentence up into smaller sentences, connecting them with the relevant pronouns. In particular, combining the Win7 issue and the Ubuntu issue into one sentence was not a good idea. And 'cualquiera' looks like it should be followed by another word. Of course, it would also help if he would SPELL in Spanish correctly! The word is, of course, 'después', not 'despues'! Likewise, it is no sé, not no se. Sheesh! But I assume what he reallymeant was something like: I have a problem when I start the Android emulator, either version 2.3.1 or any other after it is launched in Windows 7 ['it' = Android SDK] for the latest version I have this problem, Linux Ubuntu 11.04 Android SDK attempt to launch and I do not know if it is the connection or what but no progress but when you start to launch, and because of this I can not test the application I am developing. And yes, I am amazed that Google Translate could not translate the tense correctly on that last verb. The tenses are identical to English throughout this passage! On Jul 14, 2:45 pm, Filip Havlicek havlicek.fi...@gmail.com wrote: The official language for this group is English as far as I know. 2011/7/14 Jonathan Fajardo Roa jfajardor9...@gmail.com Buenos días señores, Tengo un problema cuando voy a iniciar un emulador Android con la versión 2.3.1 y cualquiera, despues de que actualice en Windows 7 el SDK de Android por la ultima versión tengo este problema, por Linux Ubuntu 11.04 intento actualizar el SDK Android y no se si es la conexión o que pero no avanza nada cuando empieza a actualizar, y pues debido a esto no puedo probar las aplicaciones que voy elaborando. Gracias a toda la comunidad. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse - Android - can't connect my device to Eclipse
On linux you need a little script, check the developers site, all the info is in there. On Thu, Jul 14, 2011 at 8:27 PM, TreKing treking...@gmail.com wrote: On Thu, Jul 14, 2011 at 8:31 AM, Zwiebel hunzwie...@gmail.com wrote: What can I do? Thanks for help! If you're on Windows, you need drivers. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Regarding Wifi in android
Hi All, I want to develop an android app that is based on Wifi. App should always be active to receive wifi signal. From my research I have come to know that I have to use WifiManager.WifiLock class. But this will consume battery a lot. Please let me know that is it only the way to get wifi signal or I should use some other way. Regards, Sohan Badaya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NFC : Device Configuration Gate
Can any one explain the device configuration gate used in Android NFC. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] wants to catch event before shutting down and background wallpaper change.
How may I get the SHUTDOWN event of android mobile, means to say that when user tries to shut its mobile off, I want to make some changes in shared preferences before shutting down. Similarly I want to do some changes when User tries to change its background wallpaper. --desperately waiting for reply-- 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] How to grab data from a website in android?
Hi, I want to grab data from the website and display that data in my app, Like daily horoscope. Every day the data in the website will change. so i have to grab that data and display that in to my app. can anyone help me please? i tried in searching google with no result . Please help me suggesting me code or any website that helps me. Thanks, Anilkumar. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Reading SQL Query row by row
Hi there, I'm using a large SQLite DB from which a query could return 70k+ rows. As i understand, the query result is written to the CursorWindow, in which the SQLiteCursor is moving freely to get values. Since I want to limit the memoryfootprint of my query result, i want to keep the size of the cursorwindow small. Is it possible to get only one row at a time and explicitly step to the next answer, even if the DB would have to be locked during this time? I had a look into the android-api sources and it appears to me that the window always contains all returned rows, so it could always have a rowcount of up to (Integer.maxValue). Only except the query would be fired using the (at the moment) unsupported Function public Cursor rawQuery(String, String[], int initialRead, int maxRead) Is there another way to get the query results row by row? Changing the SQL query or the database would be Plan C at best... Thanks a lot! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 service
no On Fri, Jul 15, 2011 at 1:01 PM, yanamala siddaiah siddaiahforj...@gmail.com wrote: If service stopped by user or any other situation . I want to start the service again . or user dont want stop the service delete the option to user to stop the service for our app. is there any flags .. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ninepatch
Use the 9patch tool from the android-sdk. http://developer.android.com/guide/developing/tools/draw9patch.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] background image
Using the 9patch-tool, you can try adding equal 1 pixel regions on all 4 sides of the text-area such that the guidelines surround the text-area but do not intersect the text-area in the image. [image: 9patch-guideline.png] regards CVS -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en9patch-guideline.pngattachment: 9patch-guideline.png
[android-developers] How to check caching in DefaultHttpClient on Android
My Android application requires to cache the response text from a web service call using DefaultHttpClient. The cache should be valid till the expiry time set in the Http response header. I found similar questions but they were complaints that the DefaultHttpClient is caching their responses. Funny I need it but could not get working. Or there solutions suggested that are file based.br/ http://stackoverflow.com/questions/5575181/does-android-keeps-the- images-downloaded-from-http-in-cachebr/ http://stackoverflow.com/questions/5389524/how-to-do-image-caching-in- androidbr/ I wrote a sample app that requests for a url on click of a button and prints the response status and headers. DefaultHttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(url); HttpResponse response; response = client.execute(request); System.out.println(Response status - + response.getStatusLine().getStatusCode()); And my GAE servlet code is, public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); resp.setHeader(Expires, Wed, 11 Jul 2012 12:00:00 GMT); resp.setHeader(Cache-Control, max-age=2592000); resp.getWriter().println(Hi!); } Clicking on the button the every time gives me the status code as 200. I expect this should be the case for the first time only. Response status - 200 * Response Headers * Content-Type - text/plain; charset=iso-8859-1 Expires - Wed, 11 Jul 2012 12:00:00 GMT Cache-Control - max-age=2592000 Date - Wed, 13 Jul 2011 06:54:57 GMT Server - Google Frontend Transfer-Encoding - chunked I edited the servlet and published; the client reads the latest change. I tested the servlet application on Chrome browser and caching works fine. I added the Cache-control property in the request header, but did not get the expected result. How do I ensure the DefaultHttpClient caches the response content and does not send request to the server again until the expiry time? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help me to create my application(data to be edited real time)
I want to create an application which stores the given data such as name, DOB, address, mail, and etc., into sqlite database and then goes to another activity and that activity shows the data like tableview . i've done this by listing data in listview in column. But it is not aligned well. the address field is not synchronized with name. My aim is to edit the data in real time(means when i press long in a row it must be editable ) and update the edited data to sqlite database. Any one please help me. Give me ideas how to do it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Undestanding the dumpsys meminfo format
Hi all! I've been working a while with the dumpsys meminfo process_id tool to fetch some statistics of the memory usage of my application, but there is something that still dont get: Applications Memory Usage (kB): Uptime: 103374017 Realtime: 103374015 ** MEMINFO in pid 554 [com.example.myapp] ** native dalvikothertotal size: 9016 7687 N/A16703 allocated: 7705 3900 N/A11605 free: 282 3787 N/A 4069 (Pss): 5210 3827 632015357 (shared dirty): 1476 4120 980415400 (priv dirty): 5140 2880 1508 9528 Objects Views:0ViewRoots:0 AppContexts:0 Activities:0 Assets:2AssetManagers:2 Local Binders:4Proxy Binders: 833 Death Recipients: 412 OpenSSL Sockets:2 SQL heap: 3224 memoryUsed: 3224 pageCacheOverflo: 311 largestMemAlloc: 255 DATABASES Pagesize Dbsize Lookaside Dbname 1024 753500 example.db I understand the rows good, the one relatives to Pss and shared dirty (Uss) are the ones that I'm interested in. I know that I can get this data with procrank, but I'm interested in the columns. Native and dalvik columns are ok, but don't have any idea what is that 'other' column for. Anyone that can bring me light? 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] Scrollviews within tabs
Hi everybody, I'm building an application with 4 tabs; each tab has a scrollview with some textview, some spinners and 2 buttons... my problem is that only the current tab is displayed, when I click on other tabs, nothing happens... tabs don't switch and no error is logging I manage all tabs in just one activity, but I've tried to set an activity for each tab, with their own layout xml, but the problem was the same If I disable the scrollviews, I can see all tabs Thanks to anyone who will help me :) here my layout xml: TabHost android:layout_width=match_parent android:layout_height=match_parent android:id=@android:id/tabhost xmlns:android=http://schemas.android.com/apk/res/android; TabWidget android:layout_width=match_parent android:layout_height=wrap_content android:id=@android:id/tabs/ FrameLayout android:layout_width=match_parent android:layout_height=match_parent android:id=@android:id/tabcontent !-- TAB PORTIERI -- LinearLayout android:id=@+id/tabPortieri android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; ScrollView android:id=@+id/scroll1 android:layout_height=match_parent android:layout_width=match_parent LinearLayout android:layout_width=match_parent android:layout_height=wrap_content android:id=@+id/bodyPortieri android:orientation=vertical android:paddingTop=60px TextView android:layout_width=match_parent android:layout_height=50px android:text=Scegli 3 portieri: android:textSize=20dp android:textStyle=bold android:id=@+id/txtPortieri/ TextView android:id=@+id/lblGk1 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #1: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk1 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ TextView android:id=@+id/lblGk2 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #2: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk2 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ TextView android:id=@+id/lblGk3 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #3: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk3 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ RelativeLayout android:id=@+id/gkBtnBar android:layout_width=match_parent android:layout_height=wrap_content Button android:id=@+id/btnSaveGk android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal android:layout_marginTop=10sp android:text=Salva /Button Button android:id=@+id/btnResetGk android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal
[android-developers] Unable to send UDP msg from host to emulator.
Hi All, I'm running UDP application in host and emulator. My host is Fedora13 and emulator is running on same host. The Host application receives UDP msg on 192.168.1.3:9020 from 192.168.1.3:32456 (from emulator). Now from host I tried to send response to the emulator at 192.168.1.3:32456 but it doesn't seem to get to the emulator. I see those two packets in wireshark and no icmp destination unreachable. I also tried to setup redir as below: 1. Telnet localhost 5554 redir add udp:9010 udp:9099 In wireshark I see message arriving from 9010 (if I remember correctly) and I send the response back to the same port and still doesn't work. No errors spotted in wireshark. Should I try telnet 192.168.1.3 5554 (emulator port) and set port redirection. Thanks in advance. lb -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.
Do we have any word yet on the status of unlocking CDMA bootloaders? A lot of developers and consumers are feeling left high and dry without an unlock 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] Discrepancy between streaming data over localhost vs WIFI network interfaces on 3.0
Hi all, I have written a proxy server which takes a remote HLS video and simply streams the content to the MediaPlayer (running on a Galaxy Tab 10.1 - Android 3.0.1).Whatever request the MediaPlayer makes, the proxy mirrors onto a remote web server. I have noticed that the MediaPlayer will not play the video correctly (it stops, as if buffering) when using the localhost (http://localhost URL) but while binding the server to the WIFI interface (http:// 172.30.17.X URL) it happily plays it. Has anyone ever seen a discrepancy like this when using the different interfaces? Any ideas on how to resolve this? Binding to the WIFI address is of course OK in many cases but makes things a little tricky when on 3G. Any suggestions and or comments on this would be appreciated! Cheers, Johan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: NFC Secure Element
Do any of you have an image that can be applied directly to a Nexus S? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GPS app
Hi guys, New to Android developing, but I do have slight experience in Php and Java, so I'm not a complete newbie. From searching online, it appears that it is pretty trivial to get GPS coordinates out of the phone. My question is if there is any existing interface available that would allow me to take the GPS coordinates and retrieve, for example, what county I'm in, what the closest lake or state park is, etc. I imagine that it will require some kind of interface with an external map server; ArcGis, Google maps, etc. I don't necessarily want to show a map of the closest lake, park, etc, but rather just use the name to extract attributes of the lake, park, etc from a separate DB. I already have the external DB, so it's just a matter of being able to come up with a name to reference the entries. Is this something that can be accomplished, perhaps with the google maps API? Thanks in advance, Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WARN/ActivityManager(68): Launch timeout has expired, giving up wake lock!
Hello, i am new to android, and i am having trouble with my application. It launches fine, and sends me to the main screen, which it is supposed to do, but when i click a button in the main screen, it crashes and the log file says: WARN/ActivityManager(68): Launch timeout has expired, giving up wake lock! Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] wants to catch event before shutting down and background wallpaper change.
On Fri, Jul 15, 2011 at 1:50 AM, Talha Hafeez talha.haf...@confiz.com wrote: How may I get the SHUTDOWN event of android mobile, means to say that when user tries to shut its mobile off, I want to make some changes in shared preferences before shutting down. Listen for ACTION_SHUTDOWN broadcasts. Similarly I want to do some changes when User tries to change its background wallpaper. I am not aware of a broadcast for this, though there could be one -- I don't deal with wallpaper much. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] WARN/ActivityManager(68): Launch timeout has expired, giving up wake lock!
If it crashes, then there will be an error, not a warning, and usually there will be a Java stack trace associated with the error. Please look more closely at your LogCat output. On Fri, Jul 15, 2011 at 2:19 PM, jamiller40 jamille...@hotmail.com wrote: Hello, i am new to android, and i am having trouble with my application. It launches fine, and sends me to the main screen, which it is supposed to do, but when i click a button in the main screen, it crashes and the log file says: WARN/ActivityManager(68): Launch timeout has expired, giving up wake lock! 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scrollviews within tabs
You only have one tab. Your tabs, in this design, are the immediate children of your FrameLayout. You have one such child -- a LinearLayout. On Fri, Jul 15, 2011 at 10:43 AM, homerz dgel...@gmail.com wrote: Hi everybody, I'm building an application with 4 tabs; each tab has a scrollview with some textview, some spinners and 2 buttons... my problem is that only the current tab is displayed, when I click on other tabs, nothing happens... tabs don't switch and no error is logging I manage all tabs in just one activity, but I've tried to set an activity for each tab, with their own layout xml, but the problem was the same If I disable the scrollviews, I can see all tabs Thanks to anyone who will help me :) here my layout xml: TabHost android:layout_width=match_parent android:layout_height=match_parent android:id=@android:id/tabhost xmlns:android=http://schemas.android.com/apk/res/android; TabWidget android:layout_width=match_parent android:layout_height=wrap_content android:id=@android:id/tabs/ FrameLayout android:layout_width=match_parent android:layout_height=match_parent android:id=@android:id/tabcontent !-- TAB PORTIERI -- LinearLayout android:id=@+id/tabPortieri android:layout_width=match_parent android:layout_height=match_parent android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; ScrollView android:id=@+id/scroll1 android:layout_height=match_parent android:layout_width=match_parent LinearLayout android:layout_width=match_parent android:layout_height=wrap_content android:id=@+id/bodyPortieri android:orientation=vertical android:paddingTop=60px TextView android:layout_width=match_parent android:layout_height=50px android:text=Scegli 3 portieri: android:textSize=20dp android:textStyle=bold android:id=@+id/txtPortieri/ TextView android:id=@+id/lblGk1 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #1: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk1 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ TextView android:id=@+id/lblGk2 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #2: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk2 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ TextView android:id=@+id/lblGk3 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Portiere #3: android:layout_alignParentLeft=true/ Spinner android:id=@+id/spnGk3 android:layout_height=wrap_content android:layout_width=match_parent android:drawSelectorOnTop = true/ RelativeLayout android:id=@+id/gkBtnBar android:layout_width=match_parent android:layout_height=wrap_content Button android:id=@+id/btnSaveGk android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center_horizontal android:layout_marginTop=10sp android:text=Salva /Button Button android:id=@+id/btnResetGk