Re: [android-developers] Sending GPS coordinates to a server
I have seen those links, Iam not sure how they can be much of a help to me, I just want to know How to develop an application(i.e. How to program in android eclipse) which could recieve the Location coordiantes(geo locations- Latitude and longitude) and send them directly to a server . Iam very much new to this android programming On Thu, Mar 22, 2012 at 3:37 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 1:04 AM, bhuvan bhuvanchandr...@gmail.com wrote: Iam very much new to android developing, so i was hoping whether anyone could help me in this regard http://developer.android.com/guide/index.html https://www.google.com/ http://catb.org/esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Modify a textview value in a custom listview after clicking
Hi, Justin May I ask why we shouldn't modify the view after it has been displayed? Cause I've been doing this a lot in my app... Thanks, Jason On Mar 26, 9:12 am, Justin Anderson magouyaw...@gmail.com wrote: Modify the data in the adapter and then call notifyDataSetChanged(). Once the view has been created and displayed on the screen you should NEVER modify it directly. Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 5:44 AM, Akram akram0...@gmail.com wrote: This listview has an adapter that is linked to a layout for each row (itemrow.xml) The price value (500-250 300) is a textview How can we access to it, to modify it, once clicked on a button ? Thanks you for the help. l Android Price: 500 l Php Price: 250 l C++ Price: 300 l -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Arduino vs Io-Io
The ioio is a controller board with USB host and a firmware designed to communication with android devices (the android devices work as usb devices in this case). I.e. the ioio is kind of a replacement for android accessory boards that works with android = 1.6 (?) while android accessories need android = 3.1(?). Arduino boards typically have a usb device connector (this depends on the concrete arduino variant). As such, it can only communicate with USB host devices, i.e. not with all android devices. I'm also not aware of android software to communicate with arduino via USB. So for an arduino solution, you need either an USB host shield (in that case, you ?fromgroups#%21forum/ioio-userswould have to write something like the firmware oand the android lib of the ioio yourself) or bluetooth (see e.g. http://www.amarino-toolkit.net). The latency via bluetooth will be significantly higher than via usb, which may be problem depending on your application. Normally, I would recommend to use the ioio. However, I don't know if your project has requirements that would change this recommendation. You may ask further questions on the ioio user list https://groups.google.com/forum/?fromgroups#!forum/ioio-users?fromgroups#%21forum/ioio-users. It seems more appropriate than this list. Ytai, the developer behind the ioio, is very active on that list and provides great support. The ioio docu lives at https://github.com/ytai/ioio/wiki Am Samstag, 24. März 2012 03:45:08 UTC+1 schrieb James Cardona: how I can communicate two IO-IO card, controlled by Android. And if android vs arduino communication is better than IO-IO vs 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
Re: [android-developers] R17: a library project cannot depend on another library project?
But the problem is that the code of library A and B are not owned by us, we can't simply change their source code, though we can access them. I'm just wondering if it's a change made in R17, as the code works with R16? 2012/3/26 Nikolay Elenkov nikolay.elen...@gmail.com On Mon, Mar 26, 2012 at 12:08 PM, James Su james...@gmail.com wrote: Hi all, Yesterday I updated my development environment to Android SDK R17, and then it failed to build one of my library project (say A) which depends on another library project (say B), because B's R class cannot be found in A. I checked the code in A's gen/ and found that B's R class was no longer there, but it was there when using R16. Does anybody know how to fix this issue? Change each project to use it's own R file. It will include all resources from projects it depends on. For example: In project B: import com.project.b.R; In project A: import com.project.a.R; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Calendar edit event force close error....
Hhmmm, as Michael mentioned above, you should provide your stack trace or the crash message from your LogCat. But, you say that event.put(allDay,0) is causing a crash, while event.put(allDay,1) works fine. Could it be the case that '0' is an invalid index in event.put(allDay,0)? To be sure, you should investigate the crash message in LogCat: http://developer.android.com/guide/developing/debugging/ddms.html If you cannot understand what the cause of the crash is, then you could share the crash message here so that other people can have a look at it. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] R17: a library project cannot depend on another library project?
On Mon, Mar 26, 2012 at 4:10 PM, James Su james...@gmail.com wrote: But the problem is that the code of library A and B are not owned by us, we can't simply change their source code, though we can access them. I'm just wondering if it's a change made in R17, as the code works with R16? I'm pretty sure this changed in R17, but check the project site for details: http://tools.android.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] R17: a library project cannot depend on another library project?
The code works again by adding project B into A's Java Build Path. Not sure if it's the correct solution. 2012/3/26 James Su james...@gmail.com But the problem is that the code of library A and B are not owned by us, we can't simply change their source code, though we can access them. I'm just wondering if it's a change made in R17, as the code works with R16? 2012/3/26 Nikolay Elenkov nikolay.elen...@gmail.com On Mon, Mar 26, 2012 at 12:08 PM, James Su james...@gmail.com wrote: Hi all, Yesterday I updated my development environment to Android SDK R17, and then it failed to build one of my library project (say A) which depends on another library project (say B), because B's R class cannot be found in A. I checked the code in A's gen/ and found that B's R class was no longer there, but it was there when using R16. Does anybody know how to fix this issue? Change each project to use it's own R file. It will include all resources from projects it depends on. For example: In project B: import com.project.b.R; In project A: import com.project.a.R; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R17: a library project cannot depend on another library project?
On Mon, Mar 26, 2012 at 4:15 PM, James Su james...@gmail.com wrote: The code works again by adding project B into A's Java Build Path. Not sure if it's the correct solution. It's not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Modify a textview value in a custom listview after clicking
Does the no modification rule apply to moving the views around? I've got a ListView object, where I'm using the TouchListView.java adaption to allow the user to resort the items Does this movement qualify as a modification? I'm performing data changes within the Adapter, but the actual view items are getting moved through the touch interface / view code. DD On Mar 25, 11:29 pm, Jason Tian tianji...@gmail.com wrote: Hi, Justin May I ask why we shouldn't modify the view after it has been displayed? Cause I've been doing this a lot in my app... Thanks, Jason On Mar 26, 9:12 am, Justin Anderson magouyaw...@gmail.com wrote: Modify the data in the adapter and then call notifyDataSetChanged(). Once the view has been created and displayed on the screen you should NEVER modify it directly. Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 5:44 AM, Akram akram0...@gmail.com wrote: This listview has an adapter that is linked to a layout for each row (itemrow.xml) The price value (500-250 300) is a textview How can we access to it, to modify it, once clicked on a button ? Thanks you for the help. l Android Price: 500 l Php Price: 250 l C++ Price: 300 l -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Sending GPS coordinates to a server
recieve the Location coordiantes http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android (The guidance provided by CommonsWare is simply excellent) send them directly to a server This depends what type of interface you have at the server side. Without knowing the server side interface, noone can tell you how to communicate with it from an Android platform. First you need to clarify your server side architecture, a question which is not directly related to Android SDK. If the server you should send data is already there, contact the responsible people to find out its interface. If you should develop the server also, I guess you need to research the best practices for server side architectures to decide which one fits best your scenario. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Broadcast receiver execution.
For anything which works asynchronously (BroadcastReceivers work asynchronously) I wouldn't make any assumptions that you are going to receive messages in order. - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Calendar edit event force close error....
Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: W/dalvikvm(2065): threadid=1: thread exiting with uncaught exception (group=0x2aac8578) 03-26 15:53:22.707: E/AndroidRuntime(2065): FATAL EXCEPTION: main 03-26 15:53:22.707: E/AndroidRuntime(2065): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.calendar/com.android.calendar.EditEvent}: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.access$1500(ActivityThread.java:121) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.os.Handler.dispatchMessage(Handler.java:99) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.os.Looper.loop(Looper.java:130) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.main(ActivityThread.java:3701) 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.lang.reflect.Method.invokeNative(Native Method) 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.lang.reflect.Method.invoke(Method.java:507) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624) 03-26 15:53:22.707: E/AndroidRuntime(2065): at dalvik.system.NativeStart.main(Native Method) 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.TimezoneAdapter.showInitialTimezones(TimezoneAdapter.java:255) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.TimezoneAdapter.init(TimezoneAdapter.java:198) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.EditEvent.init(EditEvent.java:755) 03-26 15:53:22.707: E/AndroidRuntime(2065): at com.android.calendar.EditEvent.onCreate(EditEvent.java:675) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 03-26 15:53:22.707: E/AndroidRuntime(2065): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623) 03-26 15:53:22.707: E/AndroidRuntime(2065): ... 11 more 03-26 15:53:22.717: W/ActivityManager(245): Force finishing activity com.android.calendar/.EditEvent 03-26 15:53:23.227: W/ActivityManager(245): Activity pause timeout for HistoryRecord{2b3b9820 com.android.calendar/.EditEvent} 03-26 15:53:25.757: I/Process(2065): Sending signal. PID: 2065 SIG: 9 03-26 15:53:25.797: I/ActivityManager(245): Process com.android.calendar (pid 2065) has died. 03-26 15:53:25.807: D/kernel(126): [10283.102874] binder: 245:396 transaction failed 29189, size 56-0 03-26 15:53:25.817: E/InputDispatcher(245): channel '2b3728a0 com.android.calendar/com.android.calendar.WeekActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 03-26 15:53:25.817: E/InputDispatcher(245): channel '2b3728a0 com.android.calendar/com.android.calendar.WeekActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 03-26 15:53:25.827: I/WindowManager(245): WIN DEATH: Window{2b3728a0 com.android.calendar/com.android.calendar.WeekActivity paused=false} 03-26 15:53:25.837: I/WindowManager(245): WIN DEATH: Window{2b06f7f8 com.android.calendar/com.android.calendar.EventInfoActivity paused=false} 03-26 15:53:25.937: W/InputManagerService(245): Got RemoteException sending setActive(false) notification to pid 2065 uid 10073 maybe someone can help me read this.thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Notifications when App in background!
Hello All, I have the same problem but in different application.I am making the sip calling application.I have also use the broadcastreceiver class in which the incomingcall is handle.When my application is running in the background and the call is come then the alert dialogbox is not popup and during that if we pulldown the notification the alert dialogbox is popup but it is not work properly like if we click on accept of alertdialogbox then call need to answer but not happened that.so what can i do now? On Mon, Mar 26, 2012 at 5:42 AM, A. Elk lancaster.dambust...@gmail.comwrote: There's an alternative way of handling this that doesn't require opening an Activity. The new Android Design guide is a good reference for this. Although the existing Developer Guide conflates the two, dialog boxes and notifications are fundamentally different UI experiences. It's important to choose the right one, based on the UI situation at the moment. A dialog is an *alert*, which brings attention to a situation in the currently-running activity. A Toast can also be an alert. In general, you should reserve Toasts for informative messages that confirm a user action. A dialog box is better suited to unusual conditions that the user should consider before moving on to another operation. You should use both of them with a bit of reserve. When possible, anticipate what the user would do next, and do it. For example, don't ask users if they want to make another move in a game if you already know that they can't. This is just annoying. A *notification* is a report from some part of an application that is not in the foreground, which sounds like the situation the OP is encountering. Notifications are displayed in the status bar. You can set the notification so that the user can remove it from the status bar by clicking it or sliding it. You can also set the notification so that it can only be removed by an application. One of these is what the OP is looking for. You should handle C2DM broadcasts in the background, in a service. The service can send a notification to the status bar. It could also send an intent to an Activity, but I don't think that's necessary. Anything related to communications between the network and your app should be done in the background. Of course, one should *never* pop an Activity into the foreground. Make the notification, then let the user decide what to do. If you think about it, all of the default applications that come with Android do this. BTW, handling notifications this way has nothing to do with C2DM. Anything that's not of immediate interest to the user should happen in the background, and any information that comes from the background should go into a notification. On Friday, March 23, 2012 4:31:33 PM UTC-7, PinkFluffyBunny wrote: Hi friends, I have implemented push notification for my Application using c2dm,but when I send a notification to the application, I need to open the app to see the notification alert dialog box. If an push notification is sent when the application is closed or minimized (running in background) then the notification alert will not pop up till we open the application window. I want the notification to pop up even when the app is running in the background or is stopped. It can pop the alert as a banner at the top that stays for sometime and goes away or it can be a alert dialog box that needs to be dismissed. Are there any parameters specific in the payload or header that need to be specified to achieve this? How to acheive this ??? Please help! Thanks! -- Thanks , Vani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Arduino vs Io-Io
there is also a comparison of some board over @xda http://forum.xda-developers.com/showthread.php?t=1371750 On Mon, Mar 26, 2012 at 9:02 AM, al achim.leub...@googlemail.com wrote: The ioio is a controller board with USB host and a firmware designed to communication with android devices (the android devices work as usb devices in this case). I.e. the ioio is kind of a replacement for android accessory boards that works with android = 1.6 (?) while android accessories need android = 3.1(?). Arduino boards typically have a usb device connector (this depends on the concrete arduino variant). As such, it can only communicate with USB host devices, i.e. not with all android devices. I'm also not aware of android software to communicate with arduino via USB. So for an arduino solution, you need either an USB host shield (in that case, you would have to write something like the firmware oand the android lib of the ioio yourself) or bluetooth (see e.g. http://www.amarino-toolkit.net). The latency via bluetooth will be significantly higher than via usb, which may be problem depending on your application. Normally, I would recommend to use the ioio. However, I don't know if your project has requirements that would change this recommendation. You may ask further questions on the ioio user list https://groups.google.com/forum/?fromgroups#!forum/ioio-usershttp://?fromgroups#%21forum/ioio-users. It seems more appropriate than this list. Ytai, the developer behind the ioio, is very active on that list and provides great support. The ioio docu lives at https://github.com/ytai/ioio/wiki Am Samstag, 24. März 2012 03:45:08 UTC+1 schrieb James Cardona: how I can communicate two IO-IO card, controlled by Android. And if android vs arduino communication is better than IO-IO vs 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Set Layout Background Image and change color of the image dynamically
Seems simple enough. The original poster has a LinearLayout, and he wants to set the background of said layout to be an image. Which you can do, using LinearLayout.setBackgroundDrawable() So he can just the image to be the drawable. He then wants to change the colour of the image. That is also possible, depending on the image itself, and whether has a bitmap with transparent areas through which the colour should show, or actually wants to change overall the colour of the bitmap. Just simple image processing, the when the image is how he wants it, call setBackgroundDrawable() with the new bitmap. On Sunday, March 25, 2012 9:47:15 AM UTC+8, Todd wrote: Yes. You are the only one confused by this question. the answer is, it can't be done. On Mar 24, 2012 1:44 PM, Justin Anderson magouyaw...@gmail.com wrote: Am I the only one confused by this question? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyawarehttp://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 1:45 PM, Android Developer c2dmdevelo...@gmail.com wrote: Hi, I have LinearLayout i want to set Image as background and i need to change the image color. I mean image remains transparent and it should reflect whatever background color we choose. I dont know how to start with any example is helpful. 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.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Broadcast receiver execution.
Hmm, that is actually quite surprising to me. Especially if I want to do something on screen-on and off. So in the above case, if I get the intents in this order Off, On, On, Off instead of the right sequence Off, On, Off, On, then all my logic will go horribly wrong. Are you sure about the system intents being delivered not in the sequence they were generated? On Monday, March 26, 2012 1:16:51 PM UTC+5:30, Ali Chousein wrote: For anything which works asynchronously (BroadcastReceivers work asynchronously) I wouldn't make any assumptions that you are going to receive messages in order. ----- Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspxhttp://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.comhttp://geo-filtered-assistant.blogspot.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Exception in Logcat
Hi, I have got the following exception when an activity was opened. The activity window finished unexpectedly with the following error in Logcat. What does this mean? E/InputDispatcher( 3102): channel '4093840976580ef8 com.example.OnVRViewer/com.example.OnVRViewer.OnVRViewer (server)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 3102): channel '40938ef8 com.example.OnVRViewer/ com.example.OnVRViewer.OnVRViewer (server)' ~ Channel is unrecoverably broken and will be disposed! E/InputDispatcher( 3102): channel '4097efa8 com.example.OnVRViewer/ com.example.OnVRViewer.Tabbar (server)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 3102): channel '4097efa8 com.example.OnVRViewer/ com.example.OnVRViewer.Tabbar (server)' ~ Channel is unrecoverably broken and will be disposed! I/WindowManager( 3102): WINDOW DIED Window{40938ef8 com.example.OnVRViewer/com.example.OnVRViewer.OnVRViewer paused=false} I/ActivityManager( 3102): Process com.example.OnVRViewer (pid 8060) has died. I/WindowManager( 3102): WINDOW DIED Window{4097efa8 com.example.OnVRViewer/com.example.OnVRViewer.Tabbar paused=false} D/Zygote ( 3092): Process 8060 terminated by signal (7) E/InputDispatcher( 3102): channel '40976580 com.example.OnVRViewer/ com.example.OnVRViewer.RecordedTimeDetails (server)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 3102): channel ' com.example.OnVRViewer/ com.example.OnVRViewer.RecordedTimeDetails (server)' ~ Channel is unrecoverably broken and will be disposed! E/InputDispatcher( 3102): channel '40a47e40 com.example.OnVRViewer/ com.example.OnVRViewer.AsyncRecordTrial (server)' ~ Consumer closed input channel or an error occurred. events=0x8 E/InputDispatcher( 3102): channel '40a47e40 com.example.OnVRViewer/ com.example.OnVRViewer.AsyncRecordTrial (server)' ~ Channel is unrecoverably broken and will be disposed! I/WindowManager( 3102): WINDOW DIED Window{40976580 com.example.OnVRViewer/com.example.OnVRViewer.RecordedTimeDetails paused=false} W/WindowManager( 3102): Failed looking up window W/WindowManager( 3102): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@409475d0 does not exist W/WindowManager( 3102): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 8578) W/WindowManager( 3102): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 8569) W/WindowManager( 3102): at com.android.server.WindowManagerService $WindowState$DeathRecipient.binderDied(WindowManagerService.java:7398) W/WindowManager( 3102): at android.os.BinderProxy.sendDeathNotice(Binder.java:381) W/WindowManager( 3102): at dalvik.system.NativeStart.run(Native Method) I/WindowManager( 3102): WIN DEATH: null I/WindowManager( 3102): WIN DEATH: Window{40a47e40 com.example.OnVRViewer/com.example.OnVRViewer.AsyncRecordTrial paused=false} W/WindowManager( 3102): Failed looking up window W/WindowManager( 3102): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4097edc8 does not exist W/WindowManager( 3102): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 8578) W/WindowManager( 3102): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 8569) W/WindowManager( 3102): at com.android.server.WindowManagerService $WindowState$DeathRecipient.binderDied(WindowManagerService.java:7398) W/WindowManager( 3102): at android.os.BinderProxy.sendDeathNotice(Binder.java:381) W/WindowManager( 3102): at dalvik.system.NativeStart.run(Native Method) I/WindowManager( 3102): WIN DEATH: null Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Change the theme in android
at where the theme is store? On Fri, Mar 23, 2012 at 5:04 PM, Juned Khan jkhan6...@gmail.com wrote: setTheme(android.R.style.Theme_Dialog); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re : passing data between activities
hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: [Android - developers] Exponential Smoothing on Latitude and Langitude
As well as multiplying twice by 1.0E6 (instead of multiplying and then dividing), another error is smoothingCoor[i] = smoothingCoor [i] +alpha * (coor[i] - smoothingCoor[i]); This should be smoothingCoor[i] = (smoothingCoor [i] * (1.0 - alpha)) + alpha * (coor[i] - smoothingCoor[i]); and the same for your bearing smoothing. Actually there is another problem with the bearing smoothing - consider what happens when the bearing goes from 359 to 1. 359 = 1 degree West of North so the 'smoothed' version would be close to zero degrees. However your simple smoothing might give a value close to 180 - which is completely wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 : passing data between activities
Google intents , putExtra and getExtras keywords On Mon, Mar 26, 2012 at 2:33 PM, vivek elangovan elangovan.vi...@gmail.comwrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 : passing data between activities
Please clearlly explain what you need.If you want to pass data between two activity each other then use the setactivityresulton() like this method and alos use the put extra for passing data. On Mon, Mar 26, 2012 at 3:52 PM, Farhan Tariq farhan@gmail.com wrote: Google intents , putExtra and getExtras keywords On Mon, Mar 26, 2012 at 2:33 PM, vivek elangovan elangovan.vi...@gmail.com wrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Regards, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Broadcast receiver execution.
On Mon, Mar 26, 2012 at 5:00 AM, Put_tiMe putt...@gmail.com wrote: Are you sure about the system intents being delivered not in the sequence they were generated? AFAIK, there is nothing in the documentation that guarantees the delivery order for events like this. Hence, it is risky to assume a particular order. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] working on web view
Hi All, I am working on opening the php page in my web view Here my php page is redirecting to another php page when the page is redirecting to another php page the java script in the redirected php are not loading i am using public void onPageFinished(WebView view, String url) method in webcromeclient but still unable to load the java script. Please help me. Thanks Naveen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Calendar edit event force close error....
A stack trace is this long error log which you have posted :-) The error is a NullPointerException which means: the app try to access a field which has no value. And the error appears here: java.util.TimeZone.getTimeZone(TimeZone.java:286) One possible solution: public static final String ALL_DAY Is the event all day (time zone independent). Column name. Try to set the right timezone. Ralph Am 26.03.12 09:56, schrieb Jast Vacaty: Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 gulp http://www.gulp.de/Profil/RalphBergmann.html linkedin http://www.linkedin.com/in/ralphbergmann java user group http://www.jug-bb.de | http://www.xing.com/net/jugbb ios dev grouphttp://www.xing.com/net/iosberlin pgp key id BED003DD883B9A80 pgp fingerprint 7865 EAD3 5834 705B D8B7 AD7C BED0 03DD 883B 9A80 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R17: a library project cannot depend on another library project?
Thanks a lot for your information. Is there any document describing the difference between adding a library into Java Build Path or as an android Library? 2012/3/26 Nikolay Elenkov nikolay.elen...@gmail.com On Mon, Mar 26, 2012 at 4:15 PM, James Su james...@gmail.com wrote: The code works again by adding project B into A's Java Build Path. Not sure if it's the correct solution. It's not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Re : passing data between activities
Hi, This is how my xml looks like remarks offense violationWITHOUT HELMET/violation rule177-A/rule amnt100/amnt date26-3-2012/date placechetpet signal/place /offense offense violationUSING CELLULAR PHONE WHILE DRIVING(H)/violation rule177-H/rule amnt1000/amnt date20-3-2012 /date placeTnagar signal /place /offense /remarks On Monday, March 26, 2012 3:03:38 PM UTC+5:30, vivek elangovan wrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: [Android - developers] Exponential Smoothing on Latitude and Langitude
Sorry, my mistake. The line smoothingCoor[i] = smoothingCoor [i] +alpha * (coor[i] - smoothingCoor[i]); is correct as it stands. However my comment on your nearing smoothing not taking into account the 359 degrees problem is correct. Two other problems with the code you have posted: I presume that coor is declared as int[] coor = new int[2]; and smoothingCoor as int[] smoothingCoor = null; So your line smoothingCorr = coor; causes both variables to refer to the same array so coor[0] and smoothingCoor[0] always have the same value. The other problem is that smoothLat should be smoothingCoor / 1.0E6. Of course smoothLat needs to be a double. In fact I can't see why you convert the lat/long values into ints - the smoothing agorithm is going to work better on floating point numbers. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Re : passing data between activities
Using DOMParser i m getting values and passing it to my IInd activity.In my IInd activity i need to display like this Violation : USING CELLULAR PHONE WHILE DRIVING(H) Place : chetpet signal Violation : WITHOUT HELMET Place : Tnagar signal On Monday, March 26, 2012 4:20:26 PM UTC+5:30, vivek elangovan wrote: Hi, This is how my xml looks like remarks offense violationWITHOUT HELMET/violation rule177-A/rule amnt100/amnt date26-3-2012/date placechetpet signal/place /offense offense violationUSING CELLULAR PHONE WHILE DRIVING(H)/violation rule177-H/rule amnt1000/amnt date20-3-2012 /date placeTnagar signal /place /offense /remarks On Monday, March 26, 2012 3:03:38 PM UTC+5:30, vivek elangovan wrote: hi members, I am having two activities in my project, In my Ist activity i m getting two values from my loop (for eg : Violation : WITHOUT HELMET and Violation : USING CELLULAR PHONE WHILE DRIVING(H) ) using putExtra i am passing these values to my IInd activity,what i need to display here is like this : violation : WITHOUT HELMET place : some place Violation : USING CELLULAR PHONE WHILE DRIVING(H) place : some place -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to get SMS center number in android
Hi all, Please help me on this issue how to get SMS center number in android Thank you all.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 sent SMS text message to any email address.
Hi, I want to sent Text Message from my android emaulator to any email address. How to i do that Plz anybody Help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
this is not possible via emulator you can do this whrn you test your application on real device. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Highlight Text in Webview
Hi All, I need to highlight the text in webview can any one give me the solution. Thanks Satya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
On Mon, Mar 26, 2012 at 4:40 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hi, I want to sent Text Message from my android emaulator to any email address. How to i do that Plz anybody Help me? You need to configure your emulator with your gmail account in order to send email. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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.permission.ACCESS_WIFI_STATE or android.permission.WAKE_LOCK for wifi lock
Hi there, the documentation (http://developer.android.com/reference/android/net/ wifi/WifiManager.WifiLock.html) clearly says that in order to acquire and lock Wifi state android.permission.WAKE_LOCK is needed in the manifest. Now, in Dev. console I'm getting errors from some users that goes like: java.lang.SecurityException: WifiService: Neither user 10078 nor current process has android.permission.ACCESS_WIFI_STATE. So, I'm not sure which one is it. I'm not very keen just to ask for a new permission if I don't really need to. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Highlight Text in Webview
On Mon, Mar 26, 2012 at 4:47 PM, Satya satya...@gmail.com wrote: Hi All, I need to highlight the text in webview can any one give me the solution. Refer the link as follows: http://stackoverflow.com/questions/5294562/android-webview-highlight-a-specific-word-in-a-page-using-javascript -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Merchant Account no longer available
I do some work on my Galaxy Tab, and it is pretty annoying that this account is no longer available on it. Can Google PLEASE read this, and fix it asap? Terry On Mar 25, 2:54 pm, Mickey reliagil...@gmail.com wrote: Same problem here. Can access it from a pc, but on the phone I can't On Mar 25, 5:14 am, Terry terb...@gmail.com wrote: When I try to ViewMerchantAccountfrom Developer Console, I get an error message saying that there is a Data connectivity problem - The page contains too many server redirects, and the following display: Web page not available The Web page at https://accounts.google.com/ServiceLogin? service=sierrapassive=1200continue=https://checkout.google.com/sell/ orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli %3D1ltmpl=sellerscc=1 miwght be temporarily down or it may have moved permanently to a new web address.Here are some suggestions:Check to make sure that your device has a signal and data connectionReload this web page later.View a cached copy of the web page from Google It has been like this for a few days. I hope that Google will fix it soon. Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 sent SMS text message to any email address.
Thanks for reply Narendra, can u tell me how do i configure my emulator with gmail? On Mon, Mar 26, 2012 at 4:49 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Mon, Mar 26, 2012 at 4:40 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hi, I want to sent Text Message from my android emaulator to any email address. How to i do that Plz anybody Help me? You need to configure your emulator with your gmail account in order to send email. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
On Mon, Mar 26, 2012 at 5:31 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Narendra, can u tell me how do i configure my emulator with gmail? Well Ravindra, I haven't tried it yet. But may the following link help you out. http://stackoverflow.com/questions/4032075/can-i-configure-gmail-in-android-emulator else you can google it out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multiselection
In my project, i'm implementing a grid whose cells are linearlayouts, and i want to use the cells multiselection. so i have used OnTouchListener event, but i don't know what action to use when i press on a cell and i move my finger. If someone has an idea please help me !!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
i configure my gmail account with emulator.How to send sms to perticular email address.? On Mon, Mar 26, 2012 at 5:46 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Mon, Mar 26, 2012 at 5:31 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Narendra, can u tell me how do i configure my emulator with gmail? Well Ravindra, I haven't tried it yet. But may the following link help you out. http://stackoverflow.com/questions/4032075/can-i-configure-gmail-in-android-emulator else you can google it out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
On Mon, Mar 26, 2012 at 5:59 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: i configure my gmail account with emulator.How to send sms to perticular email address.? Hi Ravindra, as I told you earlier, I haven't tried it yet. Just google out and you may find an appropriate answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 sent SMS text message to any email address.
k thank you. On Mon, Mar 26, 2012 at 6:02 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Mon, Mar 26, 2012 at 5:59 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: i configure my gmail account with emulator.How to send sms to perticular email address.? Hi Ravindra, as I told you earlier, I haven't tried it yet. Just google out and you may find an appropriate answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How good phonegap in security support, while developing mobile web apps?
Its Excellent !! On Mon, Mar 26, 2012 at 6:19 PM, nvlakshmi vakiti lakshmi.vad...@gmail.comwrote: Hi all, How good phonegap in security support, while developing mobile web apps? -- Thanks Regards Lakshmi.V -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sent SMS text message to any email address.
I used following code to send sms to destination email address but it does'nt work. 5554 is emulator port . SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(5554, null, username@domainname hello, null, null); How i resolve problem to send text message to email address?anybody help plz On Mon, Mar 26, 2012 at 6:03 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: k thank you. On Mon, Mar 26, 2012 at 6:02 PM, Narendra Singh Rathore nsr.curi...@gmail.com wrote: On Mon, Mar 26, 2012 at 5:59 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: i configure my gmail account with emulator.How to send sms to perticular email address.? Hi Ravindra, as I told you earlier, I haven't tried it yet. Just google out and you may find an appropriate answer. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] real streaming data in android
I want to send the real streaming data values into android mobile from a database. I used a webview(JSON) for this.but I achieve only static data.I want a stream of values Any body can help me -- ramalakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] R17: a library project cannot depend on another library project?
On Mon, Mar 26, 2012 at 7:47 PM, James Su james...@gmail.com wrote: Thanks a lot for your information. Is there any document describing the difference between adding a library into Java Build Path or as an android Library? This explains the changes in ADT17 and how libraries are handled, as well as the change that causes your issue (Cf 'Important change'). https://sites.google.com/a/android.com/tools/recent/dealingwithdependenciesinandroidprojects The best thing you can do is update your projects, or have them updated. If you can't do it right now, use ADT16 for the time being. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Sending GPS coordinates to a server
On Mon, Mar 26, 2012 at 1:04 AM, Bhuvan Chandra bhuvanchandr...@gmail.comwrote: I have seen those links, Iam not sure how they can be much of a help to me No? , I just want to know How to develop an application(i.e. How to program in android eclipse) That is covered in link #1. which could recieve the Location coordiantes(geo locations- Latitude and longitude) That is also covered in link #1. and send them directly to a server. That has nothing to do with Android Specificially, so you would use link #2 to help find more info on that topic. Iam very much new to this android programming Again, covered by #1 and #2. And since your question was so broad, I gave you # 3 so you could form a better question. - 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] Transparent Text Overlay on Video play
Hi, I have a requirement where a Transparent Text would display on a Video while playing for sometime and/or have the option to close the overlay text whenever user wants. I have seen this on youtube videos where some of the videos have transparent text overlay and get closed after certain period of time or user have some option to close that overlay text whenever he/she wants.. How can I accomplish this using android apis? Thanks in Advance.. DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Transparent Text Overlay on Video play
Step #1: Put the VideoView/SurfaceView/TextureView inside a RelativeLayout Step #2: Put your transparent text (whatever you think that is) inside the same RelativeLayout, as a later child (e.g., later in the XML) Step #3: Conditionally hide and show the transparent text as you see fit On Mon, Mar 26, 2012 at 10:30 AM, dillipk codersnet2...@gmail.com wrote: Hi, I have a requirement where a Transparent Text would display on a Video while playing for sometime and/or have the option to close the overlay text whenever user wants. I have seen this on youtube videos where some of the videos have transparent text overlay and get closed after certain period of time or user have some option to close that overlay text whenever he/she wants.. How can I accomplish this using android apis? Thanks in Advance.. DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Merchant Account no longer available
I do some work on my Galaxy Tab, and it is pretty annoying that this account is no longer available on it. Can Google PLEASE read this, and fix it asap? The people who would be fixing this problem are most likely not in this group... You might have more luck here: https://support.google.com/checkout/sell/?hl=enctx=help Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 5:42 AM, Terry terb...@gmail.com wrote: I do some work on my Galaxy Tab, and it is pretty annoying that this account is no longer available on it. Can Google PLEASE read this, and fix it asap? Terry On Mar 25, 2:54 pm, Mickey reliagil...@gmail.com wrote: Same problem here. Can access it from a pc, but on the phone I can't On Mar 25, 5:14 am, Terry terb...@gmail.com wrote: When I try to ViewMerchantAccountfrom Developer Console, I get an error message saying that there is a Data connectivity problem - The page contains too many server redirects, and the following display: Web page not available The Web page at https://accounts.google.com/ServiceLogin? service=sierrapassive=1200continue=https://checkout.google.com/sell/ orders?pli%3D1followup=https://checkout.google.com/sell/orders?pli %3D1ltmpl=sellerscc=1 miwght be temporarily down or it may have moved permanently to a new web address.Here are some suggestions:Check to make sure that your device has a signal and data connectionReload this web page later.View a cached copy of the web page from Google It has been like this for a few days. I hope that Google will fix it soon. Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Change the theme in android
http://developer.android.com/guide/topics/ui/themes.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 3:25 AM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: at where the theme is store? On Fri, Mar 23, 2012 at 5:04 PM, Juned Khan jkhan6...@gmail.com wrote: setTheme(android.R.style.Theme_Dialog); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Modify a textview value in a custom listview after clicking
May I ask why we shouldn't modify the view after it has been displayed? Certainly... It is pretty much a basic principle for good OO design. Your adapter represents the data that needs to be displayed. Your listview item views should do nothing more than use the data it has to decide how it should be displayed. Let's take a look at how listviews and adapters work in Android... Let's say your adapter has 100 data items in it. In your case each data item consists of a string (item name) and a price (int or float). Even though your adapter has 100 data items in it, the listview does not contain 100 views... It holds on to a few more views than can be displayed on the screen at any given time. So, if your screen can display 10 list view items at a time, the listview itself will only have about 13 or 14 actual views that it uses. When you scroll, it reuses those views to save on memory and the time it takes to create a brand new view. So, what happens if the user clicks on a view and you change the price in the view but not the adapter (data item)? When the user scrolls away and comes back the value that was changed will be lost and the original value will still be displayed. To get around that you could change both the view AND the adapter, but then you are violating the DRY principle: Don't Repeat Yourself. If you are making the same changes in different places then you are probably doing something wrong and there is a better way to go about doing it. Have you ever noticed how hard it is to get a reference to an individual list view item? There is a reason for that... it is only intended to be a display of your underlying data model. Anything that you want to do to change the views should be done in the data model. That way, you change things in one place, call notifyDataSetChanged() and then everything magically updates itself. Now, this means that if you are going to have a complex set of data (meaning typically more than a single type of data in the view) then you will most likely want to subclass one of the existing Adapter classes. I usually subclass BaseAdapter to suit my needs. You also will need to implement your getView() method in the adapter properly. That is where you use the data model to determine how the list view item should be displayed. I would recommend looking up the Android View Holder pattern and implementing that in this method as well, since that will help speed up the scrolling of your listviews. Does the no modification rule apply to moving the views around? I guess that would depend on how it is done. This case is obviously a little different from what the OP was wanting to do. I've got a ListView object, where I'm using the TouchListView.java adaption to allow the user to resort the items I've not familiar with that so I can't really comment on it. Does this movement qualify as a modification? I'm performing data changes within the Adapter, but the actual view items are getting moved through the touch interface / view code. As long as you are updating your adapter and not duplicating code by also manually updating the views you are probably ok. If you are duplicating some code you may want to look and see if there are some ways you can optimize what you are doing. Hope this helps clarify things a bit! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 1:21 AM, Danny D daniel.m.dev...@gmail.com wrote: Does the no modification rule apply to moving the views around? I've got a ListView object, where I'm using the TouchListView.java adaption to allow the user to resort the items Does this movement qualify as a modification? I'm performing data changes within the Adapter, but the actual view items are getting moved through the touch interface / view code. DD On Mar 25, 11:29 pm, Jason Tian tianji...@gmail.com wrote: Hi, Justin May I ask why we shouldn't modify the view after it has been displayed? Cause I've been doing this a lot in my app... Thanks, Jason On Mar 26, 9:12 am, Justin Anderson magouyaw...@gmail.com wrote: Modify the data in the adapter and then call notifyDataSetChanged(). Once the view has been created and displayed on the screen you should NEVER modify it directly. Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 5:44 AM, Akram akram0...@gmail.com wrote: This listview has an adapter that is linked to a layout for each row (itemrow.xml) The price value (500-250 300) is a textview How can we access to it, to modify it, once clicked on a button ? Thanks you for the help. l Android Price: 500 l Php Price: 250 l C++ Price: 300
Re: [android-developers] Re: Calendar edit event force close error....
yeah! I get it.. It only need to join one line * event.put(eventTimezone, Time.getCurrentTimezone()); *Thank for your help Ralph Bergmann於 2012年3月26日星期一UTC+8下午6時37分15秒寫道: A stack trace is this long error log which you have posted :-) The error is a NullPointerException which means: the app try to access a field which has no value. And the error appears here: java.util.TimeZone.getTimeZone(TimeZone.java:286) One possible solution: public static final String ALL_DAY Is the event all day (time zone independent). Column name. Try to set the right timezone. Ralph Am 26.03.12 09:56, schrieb Jast Vacaty: Well.I don't know what is stack trace. and I can't understand what this message mean... 03-26 15:53:22.707: E/AndroidRuntime(2065): Caused by: java.lang.NullPointerException 03-26 15:53:22.707: E/AndroidRuntime(2065): at java.util.TimeZone.getTimeZone(TimeZone.java:286) -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 gulp http://www.gulp.de/Profil/RalphBergmann.html linkedin http://www.linkedin.com/in/ralphbergmann java user group http://www.jug-bb.de | http://www.xing.com/net/jugbb ios dev grouphttp://www.xing.com/net/iosberlin pgp key id BED003DD883B9A80 pgp fingerprint 7865 EAD3 5834 705B D8B7 AD7C BED0 03DD 883B 9A80 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Many Android App Stores to Submit …?
Except Google's app store, there are Samsung app store, Amazon app store, etc... As a developer, do I have to submit my app to all of the stores one by one?? Or once I submitted my app to Google, all of the other stores would find my app and publish it on their store automatically?? If I have to submit it one by one, anybody could give me the list of major stores? As a Galaxy customer, is it better to download an app from Samsung's store instead of Google's store?? I am using iPhone for long time, I just feel a little bit confused... Thanks. Raymond -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.
On Saturday, March 24, 2012 8:27:15 PM UTC-4, MagouyaWare wrote: AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with choices to make between the browser YouTube App installed in the device. Instead of this how to force this behavior to have the URL to open in DEFAULT Android phone's browser. There are probably ways you can figure out what the default browser (for generic URLs) is. Wouldn't it then be possible to launch an explicit intent with that as the target? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How can i run C binary (executable file) in Android from Android Shell
I have Device on which i installed Android Gingerbread 2.3.4 Here i want to run C executable file on android device I am able to run android NDK application on Device and its run perfect But i want to run only onehello.c executable file on Device. /* #includes #defines ... */ int main(){ // Do something when this is executed return 0; } Is there any way to compile this file with Android NDK tool chain and we can run this file's executable I found one thing herehttp://my.opera.com/otaku_2r/blog/build-and-run-c-application-on-android but this is not working for me i am using Android NDK, Revision 7b of linux There is no directory structure like this. I got Output like this cd /data/local # ./hello /system/bin/sh: ./hello: not found I also used this /system/bin/hello but cant able to run this. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] DexClassLoader
On Sat, Mar 24, 2012 at 5:04 AM, moutaz al-azab azabk...@gmail.com wrote: I am wondering how can I use these classes. I am not expert in Android but I want to use these classes, does anyone has an idea? You should start by googling the class names. Beyond that you need to explain why you want to use some classes that you apparently have no knowledge of and be a bit more specific about what you're trying to do and what you need help with. 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] DexClassLoader
FYI... If you're not sure what you're doing, you really really shouldn't be using a class loader..., lest your app become infested with tons of security holes. kris On Sat, Mar 24, 2012 at 6:04 AM, moutaz al-azab azabk...@gmail.com wrote: Hi Everyone, I am trying to play with DexClassLoader http://developer.android.com/reference/dalvik/system/DexClassLoader.html and http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htm I am wondering how can I use these classes. I am not expert in Android but I want to use these classes, does anyone has an idea? Your Response Is Much Appreciated. Many Thanks/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] R17: a library project cannot depend on another library project?
How does one downgrade to r16, or any non-latest version of the SDK at any time? Doug On Monday, March 26, 2012 6:35:18 AM UTC-7, Nikolay Elenkov wrote: The best thing you can do is update your projects, or have them updated. If you can't do it right now, use ADT16 for the time being. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How can i run C binary (executable file) in Android from Android Shell
On Mon, Mar 26, 2012 at 1:18 PM, A B saurbh...@gmail.com wrote: I have Device on which i installed Android Gingerbread 2.3.4 Here i want to run C executable file on android device I am able to run android NDK application on Device and its run perfect But i want to run only onehello.c executable file on Device. /* #includes #defines ... */ int main(){ // Do something when this is executed return 0; } Is there any way to compile this file with Android NDK tool chain and we can run this file's executable No. The NDK is to create libraries that you link into an Android application via JNI, not to create executables. You are welcome to use a cross-compiler to try to get a C executable to run on Android. However, that, and the NDK, are not the subject matter of this Google Group. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 14 Topics
android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - How to place controls properly inside of a custom list view. [1 Update] http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 - Broadcast receiver execution. [1 Update] http://groups.google.com/group/android-developers/t/a520636e18952db - R17: a library project cannot depend on another library project? [2 Updates] http://groups.google.com/group/android-developers/t/1e179daaa985853c - Remove text edit border [1 Update] http://groups.google.com/group/android-developers/t/22952346c99cd4ce - onActivityResult not being called [1 Update] http://groups.google.com/group/android-developers/t/ae2be5c27d2ecbe5 - ALOGV not found [3 Updates] http://groups.google.com/group/android-developers/t/6ffa09773e5ff363 - Android keystore password recovery tool [1 Update] http://groups.google.com/group/android-developers/t/6f680da1a746745 - R17 does not add dependent jars unless exported [1 Update] http://groups.google.com/group/android-developers/t/3eee4e908e8d6949 - Modify a textview value in a custom listview after clicking [1 Update] http://groups.google.com/group/android-developers/t/b7a069e9ba495cb9 - Launching default messaging app for mms [9 Updates] http://groups.google.com/group/android-developers/t/e50a57e07cee177 - How to set the background image in ListView [1 Update] http://groups.google.com/group/android-developers/t/8bbf740d7460da8d - httpclient post - debug the request? [1 Update] http://groups.google.com/group/android-developers/t/c92274088e291ed7 - Notifications when App in background! [1 Update] http://groups.google.com/group/android-developers/t/1a551dd8f5f641d2 - How to get string text from AutoCompleteTextView in android? [1 Update] http://groups.google.com/group/android-developers/t/4aca4d8486b8002a = Topic: How to place controls properly inside of a custom list view. Url: http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:52PM -0700 Url: http://groups.google.com/group/android-developers/msg/23ae77047e87b3b7 It kind of worked when I switched to a framelayout. Otherwise it was turning out to be a pain trying to position the controls. I didn't try the layout_weight, it looks like that might have worked. But anyway On Sunday, March 25, 2012 7:21:15 AM UTC+5:30, MagouyaWare wrote: = Topic: Broadcast receiver execution. Url: http://groups.google.com/group/android-developers/t/a520636e18952db = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:49PM -0700 Url: http://groups.google.com/group/android-developers/msg/c8aa5d5f5963aa0b I have a class which is derived from 'BroadcastReceiver'. Here I've signed up for screen-off, screen-on, battery-changed and user-present intents. I want to know how my class receives messages. Are they received in the order they were raised? Or is there a chance that messages could arrive out of order. Ex. assume the screen was on. Now I switch it off, and immediately switch it back on. Then I switch it off immediately. Then I switch it on immediately. I'm talking about this whole sequence of events happening in less than a second. In this case will I be receiving the messages in this order: 1. Off 2. On 3. Off 4. On Is there any chance they can be out of order? Thanks = Topic: R17: a library project cannot depend on another library project? Url: http://groups.google.com/group/android-developers/t/1e179daaa985853c = -- 1 of 2 -- From: James Su james...@gmail.com Date: Mar 26 11:08AM +0800 Url: http://groups.google.com/group/android-developers/msg/e95099539e56afce Hi all, Yesterday I updated my development environment to Android SDK R17, and then it failed to build one of my library project (say A) which depends on another library project (say B), because B's R class cannot be found in A. I checked the code in A's gen/ and found that B's R class was no longer there, but it was there when using R16. Does anybody know how to fix this issue? Thanks a lot James Su -- 2 of 2 -- From: Nikolay Elenkov
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 14 Topics
android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - How to place controls properly inside of a custom list view. [1 Update] http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 - Broadcast receiver execution. [1 Update] http://groups.google.com/group/android-developers/t/a520636e18952db - R17: a library project cannot depend on another library project? [2 Updates] http://groups.google.com/group/android-developers/t/1e179daaa985853c - Remove text edit border [1 Update] http://groups.google.com/group/android-developers/t/22952346c99cd4ce - onActivityResult not being called [1 Update] http://groups.google.com/group/android-developers/t/ae2be5c27d2ecbe5 - ALOGV not found [3 Updates] http://groups.google.com/group/android-developers/t/6ffa09773e5ff363 - Android keystore password recovery tool [1 Update] http://groups.google.com/group/android-developers/t/6f680da1a746745 - R17 does not add dependent jars unless exported [1 Update] http://groups.google.com/group/android-developers/t/3eee4e908e8d6949 - Modify a textview value in a custom listview after clicking [1 Update] http://groups.google.com/group/android-developers/t/b7a069e9ba495cb9 - Launching default messaging app for mms [9 Updates] http://groups.google.com/group/android-developers/t/e50a57e07cee177 - How to set the background image in ListView [1 Update] http://groups.google.com/group/android-developers/t/8bbf740d7460da8d - httpclient post - debug the request? [1 Update] http://groups.google.com/group/android-developers/t/c92274088e291ed7 - Notifications when App in background! [1 Update] http://groups.google.com/group/android-developers/t/1a551dd8f5f641d2 - How to get string text from AutoCompleteTextView in android? [1 Update] http://groups.google.com/group/android-developers/t/4aca4d8486b8002a = Topic: How to place controls properly inside of a custom list view. Url: http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:52PM -0700 Url: http://groups.google.com/group/android-developers/msg/23ae77047e87b3b7 It kind of worked when I switched to a framelayout. Otherwise it was turning out to be a pain trying to position the controls. I didn't try the layout_weight, it looks like that might have worked. But anyway On Sunday, March 25, 2012 7:21:15 AM UTC+5:30, MagouyaWare wrote: = Topic: Broadcast receiver execution. Url: http://groups.google.com/group/android-developers/t/a520636e18952db = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:49PM -0700 Url: http://groups.google.com/group/android-developers/msg/c8aa5d5f5963aa0b I have a class which is derived from 'BroadcastReceiver'. Here I've signed up for screen-off, screen-on, battery-changed and user-present intents. I want to know how my class receives messages. Are they received in the order they were raised? Or is there a chance that messages could arrive out of order. Ex. assume the screen was on. Now I switch it off, and immediately switch it back on. Then I switch it off immediately. Then I switch it on immediately. I'm talking about this whole sequence of events happening in less than a second. In this case will I be receiving the messages in this order: 1. Off 2. On 3. Off 4. On Is there any chance they can be out of order? Thanks = Topic: R17: a library project cannot depend on another library project? Url: http://groups.google.com/group/android-developers/t/1e179daaa985853c = -- 1 of 2 -- From: James Su james...@gmail.com Date: Mar 26 11:08AM +0800 Url: http://groups.google.com/group/android-developers/msg/e95099539e56afce Hi all, Yesterday I updated my development environment to Android SDK R17, and then it failed to build one of my library project (say A) which depends on another library project (say B), because B's R class cannot be found in A. I checked the code in A's gen/ and found that B's R class was no longer there, but it was there when using R16. Does anybody know how to fix this issue? Thanks a lot James Su -- 2 of 2 -- From: Nikolay Elenkov
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 14 Topics
android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - How to place controls properly inside of a custom list view. [1 Update] http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 - Broadcast receiver execution. [1 Update] http://groups.google.com/group/android-developers/t/a520636e18952db - R17: a library project cannot depend on another library project? [2 Updates] http://groups.google.com/group/android-developers/t/1e179daaa985853c - Remove text edit border [1 Update] http://groups.google.com/group/android-developers/t/22952346c99cd4ce - onActivityResult not being called [1 Update] http://groups.google.com/group/android-developers/t/ae2be5c27d2ecbe5 - ALOGV not found [3 Updates] http://groups.google.com/group/android-developers/t/6ffa09773e5ff363 - Android keystore password recovery tool [1 Update] http://groups.google.com/group/android-developers/t/6f680da1a746745 - R17 does not add dependent jars unless exported [1 Update] http://groups.google.com/group/android-developers/t/3eee4e908e8d6949 - Modify a textview value in a custom listview after clicking [1 Update] http://groups.google.com/group/android-developers/t/b7a069e9ba495cb9 - Launching default messaging app for mms [9 Updates] http://groups.google.com/group/android-developers/t/e50a57e07cee177 - How to set the background image in ListView [1 Update] http://groups.google.com/group/android-developers/t/8bbf740d7460da8d - httpclient post - debug the request? [1 Update] http://groups.google.com/group/android-developers/t/c92274088e291ed7 - Notifications when App in background! [1 Update] http://groups.google.com/group/android-developers/t/1a551dd8f5f641d2 - How to get string text from AutoCompleteTextView in android? [1 Update] http://groups.google.com/group/android-developers/t/4aca4d8486b8002a = Topic: How to place controls properly inside of a custom list view. Url: http://groups.google.com/group/android-developers/t/7b54e021e20a6a12 = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:52PM -0700 Url: http://groups.google.com/group/android-developers/msg/23ae77047e87b3b7 It kind of worked when I switched to a framelayout. Otherwise it was turning out to be a pain trying to position the controls. I didn't try the layout_weight, it looks like that might have worked. But anyway On Sunday, March 25, 2012 7:21:15 AM UTC+5:30, MagouyaWare wrote: = Topic: Broadcast receiver execution. Url: http://groups.google.com/group/android-developers/t/a520636e18952db = -- 1 of 1 -- From: Put_tiMe putt...@gmail.com Date: Mar 25 08:49PM -0700 Url: http://groups.google.com/group/android-developers/msg/c8aa5d5f5963aa0b I have a class which is derived from 'BroadcastReceiver'. Here I've signed up for screen-off, screen-on, battery-changed and user-present intents. I want to know how my class receives messages. Are they received in the order they were raised? Or is there a chance that messages could arrive out of order. Ex. assume the screen was on. Now I switch it off, and immediately switch it back on. Then I switch it off immediately. Then I switch it on immediately. I'm talking about this whole sequence of events happening in less than a second. In this case will I be receiving the messages in this order: 1. Off 2. On 3. Off 4. On Is there any chance they can be out of order? Thanks = Topic: R17: a library project cannot depend on another library project? Url: http://groups.google.com/group/android-developers/t/1e179daaa985853c = -- 1 of 2 -- From: James Su james...@gmail.com Date: Mar 26 11:08AM +0800 Url: http://groups.google.com/group/android-developers/msg/e95099539e56afce Hi all, Yesterday I updated my development environment to Android SDK R17, and then it failed to build one of my library project (say A) which depends on another library project (say B), because B's R class cannot be found in A. I checked the code in A's gen/ and found that B's R class was no longer there, but it was there when using R16. Does anybody know how to fix this issue? Thanks a lot James Su -- 2 of 2 -- From: Nikolay Elenkov
[android-developers] Re: Listening to a video stream and rendering it on the screen
i have also same question can anyone let us know the idea.? On Thursday, 31 December 2009 11:49:17 UTC+5, indodroid wrote: Hello, *My Cases:* 1. I have a RTP stack, using which i am receiving raw audio and video streams from the network. 2. Similarly, I will be sending audio and video streams towards the network using the same RTP stack. *Following are my questions/doubts:* For working with audio formats to realize cases-1 and 2, I can use the AudioTrack and AudioRecord APIs to play/record audio streams. However, for working with video formats to realize cases-1 and 2, are there any alternatives available similar to the Audio APIs ? If I receive a raw video stream from the network through my stack, and i wish to play it in real-time, how do I go about it ? Can i use the MediaController and MediaPlayer to render the video on a custom VideoRenderer activity (GUI) ? For video transmission, I am thinking of capturing the preview stream from the camera and transmitting it as Live video through my stack. *Problem Summary:* In short, I can find ways to encode and decode audio streams in android as well as encode video from the camera source. However, I dont know how to decode incoming video streams on android using its APIs. Inputs and suggestions appreciated and will be very helpful. If there is anything above that is conceptually incorrect, please let me know. Best Regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Highlight Text in Webview
Guys please respond need help... Thanx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Transparent Text Overlay on Video play
Hi Mark, Thanks for your prompt response. Let me play around.. Thanks again for your time.. -DK On Mar 26, 10:33 am, Mark Murphy mmur...@commonsware.com wrote: Step #1: Put the VideoView/SurfaceView/TextureView inside a RelativeLayout Step #2: Put your transparenttext (whatever you think that is) inside the same RelativeLayout, as a later child (e.g., later in the XML) Step #3: Conditionally hide and show the transparenttext as you see fit On Mon, Mar 26, 2012 at 10:30 AM, dillipk codersnet2...@gmail.com wrote: Hi, I have a requirement where aTransparentTextwould display on a Videowhile playing for sometime and/or have the option to close the overlaytextwhenever user wants. I have seen this on youtube videos where some of the videos havetransparenttextoverlayand get closed after certain period of time or user have some option to close that overlaytextwhenever he/she wants.. How can I accomplish this using android apis? Thanks in Advance.. DK -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] i am looking job on android in banglore
sir i have 6month exp on android.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Launching default messaging app for mms
I tried the smsto:uri method. It works fine, but does not allow me to attach the picture that I am passing with the intent. it.setType(image/jpeg); causes my application to crash, and without this line of code, it would not attach an image file with the intent. My client has now agreed to let a chooser be there. But I now want the chooser to show choices that can send mms only, and omit other applications. I think, correct me if wrong, getting list of all packages for the intent, and making a custom dialog box to pick one of the package would get me through right? I was wondering if there was a shorter way :( On Mon, Mar 26, 2012 at 6:02 AM, Justin Anderson magouyaw...@gmail.comwrote: How to go about these? http://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities%28android.content.Intent,%20int%29 But seriously... you need to tell your client that they shouldn't lock the user into trying to use one app. I don't use the default mms app, and if an app EVER forced me to use the default one it would get uninstalled in half a second. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 6:50 PM, Farhan Tariq farhan@gmail.comwrote: you can always check if the intent will succeed by checking to see if there's anyone registered to receive it. How to go about these? On Mon, Mar 26, 2012 at 5:32 AM, Kristopher Micinski krismicin...@gmail.com wrote: If that's the case, then you've written the intent wrong. However. If you want to artificially impose the constraint of using a specific messenger, you can always check if the intent will succeed and fall back to a more generic intent otherwise, by checking to see if there's anyone registered to receive it. kris On Sun, Mar 25, 2012 at 8:10 PM, Farhan Tariq farhan@gmail.com wrote: The reasoning to use 'one' app would simply be that my client wants it to be like that. Plus, other applications in chooser do not work properly too. Like, the addresses do not get populated in the chosen application. It does not give a choice for the SMS applications, but from a HUGE list if different applications, like facebook, gmail that do not seem to work fine with the data being passed with the intent. On Mon, Mar 26, 2012 at 4:57 AM, A. Elk lancaster.dambust...@gmail.com wrote: There is no default messaging app. Any messaging application that chooses to handle MMS can respond to this intent. If the user chooses to make one of the applications a default, then it becomes one until the user unsets it as the default. You seem to have a reason for wanting one application to handle MMS. I would like to know why. Perhaps I can provide further wisdom in this regard. In general, Android promotes the idea of letting the user decide which application to use. On Sunday, March 25, 2012 4:21:57 PM UTC-7, Farhan wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.com wrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use to send the sms/mms message then the next time you run your app you will not get a chooser. This is how standard Android works. Please don't force people out of the standard. Intent it = new Intent(Intent.ACTION_VIEW); it.setType(vnd.android-dir/mms-sms); I have never created an app dealing with sms/mms messages before, but I don't think this is
Re: [android-developers] android.permission.ACCESS_WIFI_STATE or android.permission.WAKE_LOCK for wifi lock
What else are you doing ACCESS_WIFI_STATE is needed for most of the Wi-Fi API On Mon, Mar 26, 2012 at 4:28 AM, DraganA dand...@gmail.com wrote: Hi there, the documentation (http://developer.android.com/reference/android/net/ wifi/WifiManager.WifiLock.html) clearly says that in order to acquire and lock Wifi state android.permission.WAKE_LOCK is needed in the manifest. Now, in Dev. console I'm getting errors from some users that goes like: java.lang.SecurityException: WifiService: Neither user 10078 nor current process has android.permission.ACCESS_WIFI_STATE. So, I'm not sure which one is it. I'm not very keen just to ask for a new permission if I don't really need to. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Wifi manager woes
if reconnect is failing - the device is likely hitting failures in driver/supplicant On Sun, Mar 25, 2012 at 10:54 PM, Put_tiMe putt...@gmail.com wrote: Based on some events, I'm trying to switch on or off wifi. Switching wifi off works well. But while switching on wifi, 95% of the time, it can't reconnect to my previous wifi network. If I goto the settings - wifi, then I see that it's trying to connect, and after a while it'll disconnect. But wifi service is on. Sometimes 'reconnect' call returns false. I went to the extent of waiting until the wifi service is switched on, before reconnecting. Any idea as to how I can reconnect to my previous (or any) wifi network. onEvent_SwitchOn() { WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE); android.text.format.Time cTime = new android.text.format.Time(); android.text.format.Time nTime = new android.text.format.Time(); if(!wifiManager.setWifiEnabled(true)) { Log.e(Err, setWifiEnabled - true, failed); } // wait for about 5 seconds until wifi service is actually switched on cTime.setToNow(); nTime.setToNow(); while(true) { long diff = nTime.toMillis(true) - cTime.toMillis(true); if(diff 5000) { break; } int state = wifiManager.getWifiState(); if(wifiManager.WIFI_STATE_ENABLED == state) { break; } try { Thread.currentThread().sleep(100); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } nTime.setToNow(); // update to the latest time } if(!wifiManager.reconnect()) { Log.e(Err, Wifi manager (reconnect) failed); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] one time Registration after installation of an application??
Hi TreKing, I m using this in onCreate method, but it show me error Force to close every time when the activity start, but if i use it at the end of onCreate it executed but also show force to close. what's the resone, here the code i m using. settings = getSharedPreferences(shared_pr, 0); if (preferenceIsSet()) { Intent intent = new Intent(RegistrationActivity.this, VideoComponent.class); startActivity(intent); finish(); } Thanks and regards, umer From: treking...@gmail.com Date: Thu, 22 Mar 2012 15:31:17 -0500 Subject: Re: [android-developers] one time Registration after installation of an application?? To: android-developers@googlegroups.com On Thu, Mar 22, 2012 at 3:07 PM, Muhammad UMER muhammad.ume...@hotmail.com wrote: My registration activity show only one time, how can i hide this activity after when the user registered to the application mean this activity will not show to user. Save a preference to indicate whether to show it or not. Then, if (preferenceIsSet()){ startNewActivity(); finish();} - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Highlight Text in Webview
Seriously, you already got a response... Also, those of us on this group answer questions in our spare time... Be respectful of that time. You may have to wait more than a couple hours to get a response. On Mar 26, 2012 12:16 PM, Satya satya...@gmail.com wrote: Guys please respond need help... Thanx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DEAD ISSUE (WAS: XML Layout.....)
Well, it's a dead issue now I've decided I don't like that layout anyways, and am scrapping it for a newer, better idea. :-) Now I'm off to make a drawing for my revised layout so I can build it. :-) Thanks anyways, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W 'Wrong' is one of those concepts that depends on witnesses. --Catbert: Evil Director of Human Resources (Dilbert, 05Nov09) Android Apps Listing at http://www.jstrack.org/barcodes.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] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.
Any app that did that to me would get installed in about half a second and get a 1 star rating... On Mar 26, 2012 11:19 AM, Chris Stratton cs07...@gmail.com wrote: On Saturday, March 24, 2012 8:27:15 PM UTC-4, MagouyaWare wrote: AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with choices to make between the browser YouTube App installed in the device. Instead of this how to force this behavior to have the URL to open in DEFAULT Android phone's browser. There are probably ways you can figure out what the default browser (for generic URLs) is. Wouldn't it then be possible to launch an explicit intent with that as the target? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] one time Registration after installation of an application??
On Mon, Mar 26, 2012 at 2:11 PM, Muhammad UMER muhammad.ume...@hotmail.comwrote: I m using this in onCreate method, but it show me error Force to close every time when the activity start, but if i use it at the end of onCreate it executed but also show force to close. what's the resone, You need to debug your application. At the very least, post a stack trace of the error you get when it force closes on you. - 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] Broadcast receiver execution.
A particular receiver can only process one broadcast at a time. As each broadcast happens, it is processed to determine the targets it should go to, and dispatched into the message queue for each target. When a later broadcast is sent, it will generally not be moved ahead of the queue. For the screen on/off broadcasts, you can rely on the most recent broadcast you get being the current state of the screen. once everything has settled down. You can't rely on ordering with any other broadcasts, or other broadcast receivers that may also be receiving the broadcasts. On Mon, Mar 26, 2012 at 3:49 AM, Put_tiMe putt...@gmail.com wrote: I have a class which is derived from 'BroadcastReceiver'. Here I've signed up for screen-off, screen-on, battery-changed and user-present intents. I want to know how my class receives messages. Are they received in the order they were raised? Or is there a chance that messages could arrive out of order. Ex. assume the screen was on. Now I switch it off, and immediately switch it back on. Then I switch it off immediately. Then I switch it on immediately. I'm talking about this whole sequence of events happening in less than a second. In this case will I be receiving the messages in this order: 1. Off 2. On 3. Off 4. On Is there any chance they can be out of order? 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Use marquee on notification bar
On Sat, Mar 24, 2012 at 2:51 PM, Max918 max...@gmail.com wrote: i am trying to add a very long message to the notification bar. but it only show little word on the screen. Text scrolls automatically in notifications when it's too long, if you focus on the message. Unfortunately, this is not always possible on all devices. - 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] one time Registration after installation of an application??
Hi Treking, I resolved the problem of sharedPrefrences, it work's perfect on amulator but when i install it to my device mobile, then i enter the name and phone no. and close the app and then re open it, it show me The linked program is no longer installed on your phone. what's the problem with this. Thanks and Regards, umer From: treking...@gmail.com Date: Mon, 26 Mar 2012 14:44:17 -0500 Subject: Re: [android-developers] one time Registration after installation of an application To: android-developers@googlegroups.com On Mon, Mar 26, 2012 at 2:11 PM, Muhammad UMER muhammad.ume...@hotmail.com wrote: I m using this in onCreate method, but it show me error Force to close every time when the activity start, but if i use it at the end of onCreate it executed but also show force to close. what's the resone, You need to debug your application. At the very least, post a stack trace of the error you get when it force closes on you. - 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] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.
I meant to say it would get uninstalled in about half a second... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 1:39 PM, Justin Anderson magouyaw...@gmail.comwrote: Any app that did that to me would get installed in about half a second and get a 1 star rating... On Mar 26, 2012 11:19 AM, Chris Stratton cs07...@gmail.com wrote: On Saturday, March 24, 2012 8:27:15 PM UTC-4, MagouyaWare wrote: AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with choices to make between the browser YouTube App installed in the device. Instead of this how to force this behavior to have the URL to open in DEFAULT Android phone's browser. There are probably ways you can figure out what the default browser (for generic URLs) is. Wouldn't it then be possible to launch an explicit intent with that as the target? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How Many Android App Stores to Submit …?
You have to submit to each store individually. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Mar 26, 2012 at 9:54 AM, RR raymn...@gmail.com wrote: Except Google's app store, there are Samsung app store, Amazon app store, etc... As a developer, do I have to submit my app to all of the stores one by one?? Or once I submitted my app to Google, all of the other stores would find my app and publish it on their store automatically?? If I have to submit it one by one, anybody could give me the list of major stores? As a Galaxy customer, is it better to download an app from Samsung's store instead of Google's store?? I am using iPhone for long time, I just feel a little bit confused... Thanks. Raymond -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] one time Registration after installation of an application??
On Mon, Mar 26, 2012 at 3:12 PM, Muhammad UMER muhammad.ume...@hotmail.comwrote: I resolved the problem of sharedPrefrences, it work's perfect on amulator but when i install it to my device mobile, then i enter the name and phone no. and close the app and then re open it, it show me The linked program is no longer installed on your phone. what's the problem with this. Why would I know? It's your app. Again, you have to debug it. This is part of the development process. See the section on debugging in the documentation. - 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] Update per SD-Card
2012/3/24 Jürgen Kemmer jue...@googlemail.com If I install a newer Version of the App (signed and installed in the same way) I have after the Installation all 2 Versions installed. That should not happen unless they have different package names. I want a Update because in the App-Folder are already Data and I wan't loose it. Is it possible to update per SD-Card or is the Market needed for this? Yes, that's possible. You don't need the Market to update an app. - 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] Launching default messaging app for mms
Unfortunately there doesn't seem to be a way to do what you want to do. The messaging app is looking for an intent with the SENDTO action and a phone number, or the SEND action and some data (such as an image), but not both a phone number and some data. -Erik On Monday, March 26, 2012 11:59:39 AM UTC-7, Farhan wrote: I tried the smsto:uri method. It works fine, but does not allow me to attach the picture that I am passing with the intent. it.setType(image/jpeg); causes my application to crash, and without this line of code, it would not attach an image file with the intent. My client has now agreed to let a chooser be there. But I now want the chooser to show choices that can send mms only, and omit other applications. I think, correct me if wrong, getting list of all packages for the intent, and making a custom dialog box to pick one of the package would get me through right? I was wondering if there was a shorter way :( On Mon, Mar 26, 2012 at 6:02 AM, Justin Anderson magouyaw...@gmail.comwrote: How to go about these? http://developer.android.com/reference/android/content/pm/PackageManager.html#queryIntentActivities%28android.content.Intent,%20int%29 But seriously... you need to tell your client that they shouldn't lock the user into trying to use one app. I don't use the default mms app, and if an app EVER forced me to use the default one it would get uninstalled in half a second. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Mar 25, 2012 at 6:50 PM, Farhan Tariq farhan@gmail.comwrote: you can always check if the intent will succeed by checking to see if there's anyone registered to receive it. How to go about these? On Mon, Mar 26, 2012 at 5:32 AM, Kristopher Micinski krismicin...@gmail.com wrote: If that's the case, then you've written the intent wrong. However. If you want to artificially impose the constraint of using a specific messenger, you can always check if the intent will succeed and fall back to a more generic intent otherwise, by checking to see if there's anyone registered to receive it. kris On Sun, Mar 25, 2012 at 8:10 PM, Farhan Tariq farhan@gmail.com wrote: The reasoning to use 'one' app would simply be that my client wants it to be like that. Plus, other applications in chooser do not work properly too. Like, the addresses do not get populated in the chosen application. It does not give a choice for the SMS applications, but from a HUGE list if different applications, like facebook, gmail that do not seem to work fine with the data being passed with the intent. On Mon, Mar 26, 2012 at 4:57 AM, A. Elk lancaster.dambust...@gmail.com wrote: There is no default messaging app. Any messaging application that chooses to handle MMS can respond to this intent. If the user chooses to make one of the applications a default, then it becomes one until the user unsets it as the default. You seem to have a reason for wanting one application to handle MMS. I would like to know why. Perhaps I can provide further wisdom in this regard. In general, Android promotes the idea of letting the user decide which application to use. On Sunday, March 25, 2012 4:21:57 PM UTC-7, Farhan wrote: Intent picMessageIntent = new Intent(android.content.Intent.ACTION_SEND); picMessageIntent.putExtra(address, Some Numbers); picMessageIntent.setType(image/jpeg); picMessageIntent.putExtra(sms_body, Some Text); picMessageIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file)); picMessageIntent.setPackage(com.android.mms); Yes, I understand now that the package may not be there in a device, so it is giving a chooser. Is there a way to find the default messaging application or the built-in messaging, and set its package in the intent above? On Sun, Mar 25, 2012 at 5:29 PM, Justin Anderson magouyaw...@gmail.com wrote: I tried to set package of the intent as com.android.mms and it seems to work fine on my phone, as well as emulator You don't want to do this... Not all phones will have the stock android app with that package name. Many manufacturers replace stock android apps with their own for things like the camera, sms, etc... Also, there are a lot of 3rd party apps out there that handle sms/mms... If a user has installed a 3rd party app then they probably don't want to be tied down to the one that came on the device. but it is showing a chooser for the mms intent to my friend. I am not creating a chooser anywhere If that is the case then what is most likely happening is that your friend has more than one sms/mms app on the device. You probably also will notice that the chooser has a checkbox that, if checked, will make their selection the default from then on. If they check that box and choose which app they want to use
[android-developers] Strange behaviour with view pager fragments
I have a view pager with 4 different fragments, each loads a separate feed and displays the results in a list. They are all an instance of the same Fragment. This works fine while my phone has internet connection but when I've been trying to test retry mechanisms I'm getting very strange results. The retry button is correctly displayed in the first fragment, but when I hit retry it's restarting the wrong loader. All loaders have unique ids so it seams like the retry button from the wrong view is becoming visible in the currently visible fragment. Anyone have any idea what is going on here? Thanks, Phil. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Multi-pane Layout
Hi, I want to know: how to design a multi pane layout with more than 2 panes? I found examples with 2 panes. But how to design the layout when I wont more panes (with different widths)? Example: Main pane a and pane b are visible. The user clicks on an entry on pane b. Pane a goes off to the left and from right comes pane c in. Just as in the email app. Ralph -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AsyncTask vs Thread?
I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void playDeviceTile() { if (mDbHelper.isPlayingDevice(game_id)) { // make sure I'm seeing all played tiles refreshPlayedTiles(); final Boolean found; final ProgressDialog dialog = new ProgressDialog(mcontext); dialog.setMessage(Android is thinking...); dialog.show(); new AsyncTaskVoid,Void, Boolean(){ @Override protected void onPostExecute(Boolean isFound) { if (!isFound) { passPlay(1); // never found a tile to play. We have to pass } else { playTile(currentTile,1); } dialog.dismiss(); postInvalidate(); invalidate(); } @Override protected Boolean doInBackground(Void... params) { try { return doSearchforSpot(); } catch (Exception e) { Log.e(DRAW, Exception find spot for device tile, e); } return null; } }.execute(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AsyncTask vs Thread?
If your thread is stopping, it is an issue in your implementation of doInBackground(), which you haven't shown. And whatever your problem is, you will have it with a Thread as well. AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void playDeviceTile() { if (mDbHelper.isPlayingDevice(game_id)) { // make sure I'm seeing all played tiles refreshPlayedTiles(); final Boolean found; final ProgressDialog dialog = new ProgressDialog(mcontext); dialog.setMessage(Android is thinking...); dialog.show(); new AsyncTaskVoid,Void, Boolean(){ @Override protected void onPostExecute(Boolean isFound) { if (!isFound) { passPlay(1); // never found a tile to play. We have to pass } else { playTile(currentTile,1); } dialog.dismiss(); postInvalidate(); invalidate(); } @Override protected Boolean doInBackground(Void... params) { try { return doSearchforSpot(); } catch (Exception e) { Log.e(DRAW, Exception find spot for device tile, e); } return null; } }.execute(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: putInt force closes
JP, You must use the permission request WRITE_SETTINGS, not WRITE_SETTING. uses-permission android:name=android.permission.WRITE_SETTINGS/ - David On Sunday, July 25, 2010 11:11:14 PM UTC-7, scadaguru wrote: I am trying to write the system setting using: Settings.System.putInt(getApplicationContext().getContentResolver(), Settings.System.WIFI_SLEEP_POLICY, Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED); But it force closes my application. Any Idea? My has user following permissions: uses-permission android:name=android.permission.WRITE_SETTING/ uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED/ uses-permission android:name=android.permission.ACCESS_WIFI_STATE/ uses-permission android:name=android.permission.UPDATE_DEVICE_STATS/ uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission android:name=android.permission.WAKE_LOCK/ Thanks, JP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: putInt force closes
And if you were to look at the log, you would see an error message explicitly saying the problem is that you don't have that permission. On Tue, Mar 27, 2012 at 1:44 AM, dmanpearl dmanpe...@gmail.com wrote: JP, You must use the permission request WRITE_SETTINGS, not WRITE_SETTING. uses-permission android:name=android.**permission.WRITE_SETTINGS/ - David On Sunday, July 25, 2010 11:11:14 PM UTC-7, scadaguru wrote: I am trying to write the system setting using: Settings.System.putInt(**getApplicationContext().**getContentResolver(), Settings.System.WIFI_SLEEP_**POLICY, Settings.System.WIFI_SLEEP_**POLICY_NEVER_WHILE_PLUGGED); But it force closes my application. Any Idea? My has user following permissions: uses-permission android:name=android.**permission.WRITE_SETTING/ uses-permission android:name=android.**permission.RECEIVE_BOOT_**COMPLETED/ uses-permission android:name=android.**permission.ACCESS_WIFI_STATE/ uses-permission android:name=android.**permission.UPDATE_DEVICE_**STATS/ uses-permission android:name=android.**permission.CHANGE_WIFI_STATE/ uses-permission android:name=android.**permission.WAKE_LOCK/ Thanks, JP -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AsyncTask vs Thread?
I would have thought the same, too - AsyncTask or Thread - there's something else going. Here's what is called by doInBackground() - it's a loop through possible moves until the first fit is found. My Log.d(WTF...) in the middle simply stops after a couple of columns. private Boolean doSearchforSpot(){ Boolean found = false; tileClass tile; int tileNum; BoardClass spot; int rot; int maxrot; int score = -1; int i = 0; // totally brain-less, brute-force, 1st fit. Loop through // all open spots on the board, and check each tile in each rotation // and return the first time a valid placement and score occurs. while ((i deviceHandNumber) (!found)) { tileNum = deviceHand[i]; tile = tiles.get(tileNum); int row = TileExtents[TOP]; int col = TileExtents[LEFT]; while ((row = TileExtents[BOTTOM]) (!found)) { while ((col = TileExtents[RIGHT]) (!found)) { spot = board.get(ColRowGrid[col][row]); if (!spot.occupied) { if (spot.facedown) { rot = 3; maxrot = 6; } else { rot = 0; maxrot = 3; } while ((rot maxrot) (!found)) { // set the rotation and check for a score tile.setRotate(rot); Log.d(WTF,CRT +col+ +row+ +rot+ +tile.getScore(0)+ +tile.getScore(1)+ +tile.getScore(2)); score = placeTileOnBoard(spot.index, tileNum); if (score = 0) { // hey! we found a spot. Play it. turnScore = score; currentTile = tileNum; found = true; } rot++; } } col++; } row++; col=TileExtents[LEFT]; } i++; } return found; } On Mar 27, 10:37 am, Dianne Hackborn hack...@android.com wrote: If your thread is stopping, it is an issue in your implementation of doInBackground(), which you haven't shown. And whatever your problem is, you will have it with a Thread as well. AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void playDeviceTile() { if (mDbHelper.isPlayingDevice(game_id)) { // make sure I'm seeing all played tiles refreshPlayedTiles(); final Boolean found; final ProgressDialog dialog = new ProgressDialog(mcontext); dialog.setMessage(Android is thinking...); dialog.show(); new AsyncTaskVoid,Void, Boolean(){ @Override protected void onPostExecute(Boolean isFound) { if (!isFound) { passPlay(1); // never found a tile to play. We have to pass } else { playTile(currentTile,1); } dialog.dismiss();
[android-developers] Re: what would be the base optimal throttle and seed for an application using monkey test?
Please give me some feedback to following question. On Thursday, March 22, 2012 1:32:17 AM UTC-7, droigons wrote: Dear Experts: I am running monkey test on my application using following command adb shell monkey -p com.droigons.mygps --throttle 1000 --monitor- native-crashes --kill-process-after-error -s 1000 -v 50 test.txt what would be the base optimal throttle and seed for an application? Thanks you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: AsyncTask vs Thread?
Try catching a Throwable to see if an error is happening that you are missing. On Tue, Mar 27, 2012 at 1:54 AM, martypantsROK martyg...@gmail.com wrote: I would have thought the same, too - AsyncTask or Thread - there's something else going. Here's what is called by doInBackground() - it's a loop through possible moves until the first fit is found. My Log.d(WTF...) in the middle simply stops after a couple of columns. private Boolean doSearchforSpot(){ Boolean found = false; tileClass tile; int tileNum; BoardClass spot; int rot; int maxrot; int score = -1; int i = 0; // totally brain-less, brute-force, 1st fit. Loop through // all open spots on the board, and check each tile in each rotation // and return the first time a valid placement and score occurs. while ((i deviceHandNumber) (!found)) { tileNum = deviceHand[i]; tile = tiles.get(tileNum); int row = TileExtents[TOP]; int col = TileExtents[LEFT]; while ((row = TileExtents[BOTTOM]) (!found)) { while ((col = TileExtents[RIGHT]) (!found)) { spot = board.get(ColRowGrid[col][row]); if (!spot.occupied) { if (spot.facedown) { rot = 3; maxrot = 6; } else { rot = 0; maxrot = 3; } while ((rot maxrot) (!found)) { // set the rotation and check for a score tile.setRotate(rot); Log.d(WTF,CRT +col+ +row+ +rot+ +tile.getScore(0)+ +tile.getScore(1)+ +tile.getScore(2)); score = placeTileOnBoard(spot.index, tileNum); if (score = 0) { // hey! we found a spot. Play it. turnScore = score; currentTile = tileNum; found = true; } rot++; } } col++; } row++; col=TileExtents[LEFT]; } i++; } return found; } On Mar 27, 10:37 am, Dianne Hackborn hack...@android.com wrote: If your thread is stopping, it is an issue in your implementation of doInBackground(), which you haven't shown. And whatever your problem is, you will have it with a Thread as well. AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void playDeviceTile() { if (mDbHelper.isPlayingDevice(game_id)) { // make sure I'm seeing all played tiles refreshPlayedTiles(); final Boolean found; final ProgressDialog dialog = new ProgressDialog(mcontext); dialog.setMessage(Android is thinking...); dialog.show(); new AsyncTaskVoid,Void, Boolean(){ @Override protected void onPostExecute(Boolean isFound) { if (!isFound) { passPlay(1); // never found
[android-developers] layout height relative to screen height
I would like to set the height of my layout items based on the height of the screen to allow it to scale to screens of different resolution and in landscape. my current layout structure uses a relativelayout with linearlayout childeren. one of the linear layouts consists of a table layout which I would like to always take approx 50% of the screen. Is there a simple way to do this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AsyncTask vs Thread?
No dice. Tried catching a Throwable both when I start the thread and on the inner loop of the work. Nothing. No Errors. What kinds of operations might make a thread stop? The only thing that prevents it from iterating all the loops is whether the local Boolean 'found' is set and it comes back false when it hasn't finished. I think I must be stepping on some memory somewhere so I'll go down that path. Thanks for the tips, Dianne. On Mar 27, 11:15 am, Dianne Hackborn hack...@android.com wrote: Try catching a Throwable to see if an error is happening that you are missing. On Tue, Mar 27, 2012 at 1:54 AM, martypantsROK martyg...@gmail.com wrote: I would have thought the same, too - AsyncTask or Thread - there's something else going. Here's what is called by doInBackground() - it's a loop through possible moves until the first fit is found. My Log.d(WTF...) in the middle simply stops after a couple of columns. private Boolean doSearchforSpot(){ Boolean found = false; tileClass tile; int tileNum; BoardClass spot; int rot; int maxrot; int score = -1; int i = 0; // totally brain-less, brute-force, 1st fit. Loop through // all open spots on the board, and check each tile in each rotation // and return the first time a valid placement and score occurs. while ((i deviceHandNumber) (!found)) { tileNum = deviceHand[i]; tile = tiles.get(tileNum); int row = TileExtents[TOP]; int col = TileExtents[LEFT]; while ((row = TileExtents[BOTTOM]) (!found)) { while ((col = TileExtents[RIGHT]) (!found)) { spot = board.get(ColRowGrid[col][row]); if (!spot.occupied) { if (spot.facedown) { rot = 3; maxrot = 6; } else { rot = 0; maxrot = 3; } while ((rot maxrot) (!found)) { // set the rotation and check for a score tile.setRotate(rot); Log.d(WTF,CRT +col+ +row+ +rot+ +tile.getScore(0)+ +tile.getScore(1)+ +tile.getScore(2)); score = placeTileOnBoard(spot.index, tileNum); if (score = 0) { // hey! we found a spot. Play it. turnScore = score; currentTile = tileNum; found = true; } rot++; } } col++; } row++; col=TileExtents[LEFT]; } i++; } return found; } On Mar 27, 10:37 am, Dianne Hackborn hack...@android.com wrote: If your thread is stopping, it is an issue in your implementation of doInBackground(), which you haven't shown. And whatever your problem is, you will have it with a Thread as well. AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void
[android-developers] Re: AsyncTask vs Thread?
That was itmy UI thread was updating the TileExtents from another play and caused the loop to exit. Done in again by my own doing :) Problem solved On Mar 27, 11:37 am, martypantsROK martyg...@gmail.com wrote: No dice. Tried catching a Throwable both when I start the thread and on the inner loop of the work. Nothing. No Errors. What kinds of operations might make a thread stop? The only thing that prevents it from iterating all the loops is whether the local Boolean 'found' is set and it comes back false when it hasn't finished. I think I must be stepping on some memory somewhere so I'll go down that path. Thanks for the tips, Dianne. On Mar 27, 11:15 am, Dianne Hackborn hack...@android.com wrote: Try catching a Throwable to see if an error is happening that you are missing. On Tue, Mar 27, 2012 at 1:54 AM, martypantsROK martyg...@gmail.com wrote: I would have thought the same, too - AsyncTask or Thread - there's something else going. Here's what is called by doInBackground() - it's a loop through possible moves until the first fit is found. My Log.d(WTF...) in the middle simply stops after a couple of columns. private Boolean doSearchforSpot(){ Boolean found = false; tileClass tile; int tileNum; BoardClass spot; int rot; int maxrot; int score = -1; int i = 0; // totally brain-less, brute-force, 1st fit. Loop through // all open spots on the board, and check each tile in each rotation // and return the first time a valid placement and score occurs. while ((i deviceHandNumber) (!found)) { tileNum = deviceHand[i]; tile = tiles.get(tileNum); int row = TileExtents[TOP]; int col = TileExtents[LEFT]; while ((row = TileExtents[BOTTOM]) (!found)) { while ((col = TileExtents[RIGHT]) (!found)) { spot = board.get(ColRowGrid[col][row]); if (!spot.occupied) { if (spot.facedown) { rot = 3; maxrot = 6; } else { rot = 0; maxrot = 3; } while ((rot maxrot) (!found)) { // set the rotation and check for a score tile.setRotate(rot); Log.d(WTF,CRT +col+ +row+ +rot+ +tile.getScore(0)+ +tile.getScore(1)+ +tile.getScore(2)); score = placeTileOnBoard(spot.index, tileNum); if (score = 0) { // hey! we found a spot. Play it. turnScore = score; currentTile = tileNum; found = true; } rot++; } } col++; } row++; col=TileExtents[LEFT]; } i++; } return found; } On Mar 27, 10:37 am, Dianne Hackborn hack...@android.com wrote: If your thread is stopping, it is an issue in your implementation of doInBackground(), which you haven't shown. And whatever your problem is, you will have it with a Thread as well. AsyncTask is just doing work from threads, after all. On Tue, Mar 27, 2012 at 1:18 AM, martypantsROK martyg...@gmail.com wrote: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details
[android-developers] How to load php scripts
Hi all, I am working on opening web page in web view using web client i need to read the source code of the page i am using web crome client in my web page first page is redirecting the to second page the java script in the first page are loading and redirecting to second page but the java scripts in the second page are not loading. Please help me in solving this.Thanks in advance. Thanks Naveen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AsyncTask vs Thread?
I had a same bug in the AsyncTask. So i prefer a Thread. вторник, 27 марта 2012 г. 5:18:01 UTC+4 пользователь martypantsROK написал: I have an operation that consumes too much time for the UI thread and need to do it in another thread. I created a thread using AsyncTask and the thread loops until it finds and answer. When its done, I use postExecute to deal with the data and update views. The problem is that the thread intermittently stops in the middle of a long loop with no errors. Sometimes it goes through all data looking, sometimes, the thread returns having only looped through a portion. I posted a question on Stackoverflow, but the only answer I got was not to use AsyncTask but just use threads without providing any reasoning or details why one is better than another. What do folks here think? Is there something wrong with the way I've implemented my AsyncTask? Or is the stackoverflow poster correct in that I should just blindly use Thread without understanding why this is incorrect, good, bad, ugly or whatever. private void playDeviceTile() { if (mDbHelper.isPlayingDevice(game_id)) { // make sure I'm seeing all played tiles refreshPlayedTiles(); final Boolean found; final ProgressDialog dialog = new ProgressDialog(mcontext); dialog.setMessage(Android is thinking...); dialog.show(); new AsyncTaskVoid,Void, Boolean(){ @Override protected void onPostExecute(Boolean isFound) { if (!isFound) { passPlay(1); // never found a tile to play. We have to pass } else { playTile(currentTile,1); } dialog.dismiss(); postInvalidate(); invalidate(); } @Override protected Boolean doInBackground(Void... params) { try { return doSearchforSpot(); } catch (Exception e) { Log.e(DRAW, Exception find spot for device tile, e); } return null; } }.execute(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sizing a custom 'GridView'.
I have a situation where I need to have a GridView on the top part and buttons below it. If it was the other way around, then, it would have been easy. i.e. buttons on top and gridview below it. For the gridview, I could have mentioned: android:layout_width=wrap_content android:layout_height=wrap_content and it would have worked just fine. But I got to have the buttons below the grid view. So now, how do I size the grid view? Can I mention it in screen height percentage? Cause if I use wrap_content, then the gridview takes up the entire screen and the buttons are not visible. And I want it to look even on all screen sizes. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Referring other library projects from within a library project.
Hi, I want to refer to a library project from within another library project. Is there some way to accomplish this? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en