[android-developers] Using AOA 2.0 HID support, can accessory device send the multi touch events and gestures to android device?

2012-08-22 Thread Prabudas
Hi, Using AOA 2.0 HID support, can accessory device send the multi touch events and gestures to android device? Thanks. Regards, Prabudas S. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Advertisement in Android application

2012-08-22 Thread Rocky
Budget is not required, if you wanted to put some ads in your apps, go with Admob On Wed, Aug 22, 2012 at 10:04 AM, Krishna Mahadik krishna.maha...@gmail.com wrote: Hi Guys, I want to put advertisement space in an Android application. I don't budget for buying any licencing. Any leads for

[android-developers] Dynamically displaying images

2012-08-22 Thread Ambika Kulkarni
Dear Android Folks, I want to display an imnage dynamically. The problem statement is as below. I am displaying the order details. With this i am displaying the order status. So the order status will be (New, Pending, Completed). Right now i am displaying the status with text, such as

[android-developers] error in new activity

2012-08-22 Thread Ehsan Sadeghi
I create an activity Hoghoughi but when i try to start it an error raise : 08-22 05:50:08.890: E/AndroidRuntime(608): FATAL EXCEPTION: main 08-22 05:50:08.890: E/AndroidRuntime(608): java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.smspeik.sms/ir.smspeik.sms.Hoghoughi}:

[android-developers] background intent

2012-08-22 Thread Ehsan Sadeghi
How can I run an activity in background and minimized it until invoke that? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] background intent

2012-08-22 Thread Dianne Hackborn
Activities don't run in the background. That is what services (and/or broadcast receivers) are for. On Tue, Aug 21, 2012 at 11:19 PM, Ehsan Sadeghi esade...@gmail.com wrote: How can I run an activity in background and minimized it until invoke that? -- You received this message because you

Re: [android-developers] background intent

2012-08-22 Thread Asheesh Arya
use service instead of activity!! and invoke your service using broad cast receiver like using phone state(offhook) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: Dynamic Array

2012-08-22 Thread Rahul Kaushik
Detail I am able to insert an item in android calendar, to avoid the duplicate entries am saving the event id of item in shared prefrences as an array(A). Problem when i insert, new item in Android calendar, saved array(A) should also add the new item event id of a new item.How to do the same?

Re: [android-developers] Getting started with Android. Love the overall system architecture and SDK except for one thing...

2012-08-22 Thread Dianne Hackborn
I'm curious about this: On Sun, Aug 19, 2012 at 9:17 AM, rmz76 jeremy.de...@gmail.com wrote: I'll give an example of such a feature: Horizontal view swiping. From the official Android Play store to the CNN App, this is probably the most common navigation we're seeing for dealing with menus on

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-22 Thread Dianne Hackborn
There isn't an API to retrieve this. The computation done for the battery stats UI is a complicated approximation (taking into account CPU stepping etc to some degree) that is very much an approximation. It is not accurate enough that I would want it available through an API. On Tue, Aug 21,

Re: [android-developers] Re: openRawResource: does compressed files in APK get uncompressed completely?

2012-08-22 Thread Dianne Hackborn
The 1MB limit was for reading any compressed file. There is really no distinction between assets and resources in this regard. That said, you can pre-compress your data and store it with say a .zip extension (so there is no attempt to try to compress it again), and then de-compress the data

Re: [android-developers] Syncing Database

2012-08-22 Thread gjs
Hi, Simply create a hash of each table row then compare the hash values between the two phones, if the hash is different or missing one or both of the two rows needs updating. Insert or delete missing rows is easy - maybe, but trouble is which row(s) / column(s) to update (?) maybe you can

[android-developers] related to Socket Connection (Bluetooth)

2012-08-22 Thread surabhi jain
hi all I want to learn socket connection(Bluetooth) in android. so if you have any document or link please send me. Thanks Surabhi Jain -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: background intent

2012-08-22 Thread Ehsan Sadeghi
I have this public class ReceiveSms extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { //---get the SMS message passed in--- //---get the SMS message passed in--- Bundle bundle = intent.getExtras(); SmsMessage[]

[android-developers] How to get every time new/refreshed Current Location

2012-08-22 Thread Rajan
Hi, i want to find the user's current location through GPS only. but, my problem is : i don't want to use getLastKnownLocation() method. b'cos some times when i am not able to get the current location at that time it will gives me a previous location detail, that is not acceptable for my app.

Re: [android-developers] related to Socket Connection (Bluetooth)

2012-08-22 Thread Asheesh Arya
just go through these link http://www.instructables.com/id/Android-talks-to-Arduino/step4/Change-Android-Bluetooth-Chat-sample-App/ http://jayxie.com/mirrors/android-sdk/resources/samples/BluetoothChat/index.html -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: related to Socket Connection (Bluetooth)

2012-08-22 Thread Rajan
hope this will help you... http://manojprasaddevelopers.blogspot.in/2012/02/bluetooth-data-transfer-example.html www.cs.umd.edu/class/fall2010/CMSC498G/.../*Bluetooth*.pptx (For Concepts) On Wednesday, 22 August 2012 12:38:16 UTC+5:30, surabhi jain wrote: hi all I want to learn socket

Re: [android-developers] Abnormal tip sorry,process com.google.process.gapps has stopped popup very often.

2012-08-22 Thread Maheswar Martha
Hi Robert, Thanks for the reply. No, we have not flashed a different version or replaced with older version of GAPPS. To confirm this we erased all the data by factory reset and then loaded the fresh software(APPS and MODEM builds). But, still the problem is reproducible. The bug report is

[android-developers] Wrong fragment onContextItemSelected

2012-08-22 Thread Michael Leung
Hi all, I got the problem for onContextItemSelected. I had 3 ListFragments. I used Context Menu in the second Fragment. But onContextItemSelected in first fragment is called. Anyone has solution? -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My

[android-developers] Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-22 Thread B.Arunkumar
Hi, We have an app which is compiled for arm-v7 neon with appropriate definitions in Application.mk and Android.mk. Is there any way to prevent installation on Non Neon devices with an appropriate message Cannot install. Currently when I install the application by either debug or run mode,

[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices

2012-08-22 Thread B.Arunkumar
Hi, What about upload to the Google PlayStore? If we compile the app for armv7 neon support, is it that Google PlayStore will automatically restrict the app from being seen on non-neon devices? Thank you, B.Arunkumar On Aug 22, 1:54 pm, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi,  

[android-developers] Inflate DialogFragment in layout xml

2012-08-22 Thread naixx
I'm trying to inflate DialogFragment through xml like this. fragment android:id=@+id/my_id android:layout_width=fill_parent android:layout_height=fill_parent class=com.example.MyDialogFragment /fragment But when activity starts, an empty dialog frame is shown. When embedding

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-22 Thread thejaswi s
Even I am looking for an approximate value of battery usage. is there any method to do that. On Wed, Aug 22, 2012 at 12:11 PM, Dianne Hackborn hack...@android.comwrote: There isn't an API to retrieve this. The computation done for the battery stats UI is a complicated approximation (taking

Re: [android-developers] How to get battery usage from cpu usage in android

2012-08-22 Thread Kristopher Micinski
That's a: no. kris On Wed, Aug 22, 2012 at 5:13 AM, thejaswi s thejasw...@gmail.com wrote: Even I am looking for an approximate value of battery usage. is there any method to do that. On Wed, Aug 22, 2012 at 12:11 PM, Dianne Hackborn hack...@android.com wrote: There isn't an API to

[android-developers] Re: Android HTTP Server problem HEAD method

2012-08-22 Thread Jose Luis Larraz
I find one solution, implement my own ResponseContent with support for Users Content-Length thats the code public class MyCustomResponseContent implements HttpResponseInterceptor { private final boolean overwrite; /** * Default constructor. The codeContent-Length/code or

Re: [android-developers] how to make updates to my app at store and alert users about new updates?

2012-08-22 Thread Hady Abd alkhalik
بتاريخ الجمعة، 17 أغسطس، 2012 UTC+2 10:14:15 ص، كتب TreKing: On Thu, Aug 16, 2012 at 2:18 AM, Hady Abd alkhalik ibnser...@gmail.comjavascript: wrote: how can i add any updates to my published application at google play and inform mobiles which installed before my app about new

[android-developers] Rubberband vs. Gloweffect with ListView (and thus AlertDialog.Builder for Spinners)

2012-08-22 Thread FBondarenko
Hi, as we know, there are different mechanisms to show feedback when overscrolling a list. Samsung had the rubberband effect on Galaxy S2, but on S3 they switched back to a glow effect. HTC Sensation does not show any feedback when at the end of a list. This leads us to the point where many

Re: [android-developers] How to draw line between 2 touch points on image view in android.

2012-08-22 Thread Tilottama Gulame
Thanks for reply. I have seen http://www.krvarma.com/2010/10/gesture-detection-in-android-part-1-of-2/ this link, it's not useful for my application. On Tue, Aug 21, 2012 at 2:20 PM, Asheesh Arya asheesharya...@gmail.comwrote: just go through this link

[android-developers] Re: Dynamically displaying images

2012-08-22 Thread Juned Khan
checkout this links http://iamvijayakumar.blogspot.in/2011/06/android-lazy-image-loader-example.html http://stackoverflow.com/questions/4885469/dynamically-show-images-from-resource-drawable http://stackoverflow.com/questions/8133055/android-displaying-image-and-text-dynamically-in-listview

[android-developers] Re: VideoView seetTo() takes longer time to start video after pause

2012-08-22 Thread Ashutosh
did you get any solution for this issue, I am also facing it. thanks for help -ashutosh On Thursday, February 3, 2011 11:59:54 AM UTC+5:30, kavitha wrote: Hi All, In my project I am playing video with VideoView and when incoming call is there,I pause the video. But later it takes long

[android-developers] Re: Custom Input Devices

2012-08-22 Thread Prabudas
I am also trying to do this using AOA 2.0. Do you have any idea about how to send multi ouch event from external touch screen to android device using AOA 2.0? Thanks. Prabudas S -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
I want to detect each time the user opens the app, by tap on home / desktop icon. There seem not to be a straight forward way to do it. Found a few workarounds but nothing seems to be really reliable. Things like, extend application object and use method onCreate(), but this is not what I

Re: [android-developers] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 8:33 AM, user123 ivanschu...@gmail.com wrote: I want to detect each time the user opens the app, by tap on home / desktop icon. There seem not to be a straight forward way to do it. Found a few workarounds but nothing seems to be really reliable. The invoking intent

[android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread RichardC
I think you need to re-consider your definition of open. I use long-press-home 90% of the time to launch applications I use on a regular basis. On Wednesday, August 22, 2012 12:33:29 PM UTC+1, user123 wrote: I want to detect each time the user opens the app, by tap on home / desktop icon.

[android-developers] How to get IP addresses of other Wifi enabled devices by using other hardware /Mac address?

2012-08-22 Thread Meena Rengarajan
This is my code. I used it in Android 2.3. From my code, i got Hardware/Mac address of other wifi enabled devices. Now what i have to do is , i have to find an Ip addresses of other Wifi enabled devices programmically by using this Mac address. How should i get an Ip address from these Mac

[android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
Open: launch clicking on icon, either in applications or on home. Doesn't this cover your case? On Wednesday, August 22, 2012 2:04:59 PM UTC+2, RichardC wrote: I think you need to re-consider your definition of open. I use long-press-home 90% of the time to launch applications I use on a

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 9:04 AM, RichardC richard.crit...@googlemail.com wrote: I think you need to re-consider your definition of open. I use long-press-home 90% of the time to launch applications I use on a regular basis. This shortcut does not change the way the activity is invoked, either

Re: [android-developers] Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
But there doesn't seem to be a solution valid for all cases, then. onResume() will also be called each time I launch the activity. Or it's shown at the foreground, because something which was in front of it was closed. This is not what I want. onCreate() with LAUNCHER category will be called

[android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
I want to detect exactly when the user says, hey, let's open the app, and taps on the app's icon, not anything else. Is this hard to understand? On Wednesday, August 22, 2012 1:33:29 PM UTC+2, user123 wrote: I want to detect each time the user opens the app, by tap on home / desktop icon.

Re: [android-developers] Re: Can't display GoogleMaps in application

2012-08-22 Thread Lloyd Carroll
It generated the same key I had and still doesn't show the maps. It shows the control with the compass and my location, just isn't getting map data. On Tuesday, August 21, 2012 11:25:21 PM UTC-5, asheesh arya wrote: just try to regenerate google api key -- You received this message

[android-developers] Re: Android Software Licensing

2012-08-22 Thread kj
The Android framework source code is Apache 2.0http://www.apache.org/licenses/LICENSE-2.0.htmllicensed. Your code is whatever license you want to give it. You do not have to release any source code of your own. Any source code you used from other people should obey the licensing of that code,

Re: [android-developers] How to get IP addresses of other Wifi enabled devices by using other hardware /Mac address?

2012-08-22 Thread Parthi K
call Inetaddress method InetAddress Address = InetAddress.getLocalHost(); System.out.println(Address); On Wed, Aug 22, 2012 at 5:42 PM, Meena Rengarajan meenasoft...@gmail.comwrote: This is my code. I used it in Android 2.3. From my code, i got Hardware/Mac address of other wifi enabled

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
None of them are database as a service. They are Web app platforms or frameworks. I'll look elsewhere for advice. Thanks anyway. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 9:23 AM, user123 ivanschu...@gmail.com wrote: I want to detect exactly when the user says, hey, let's open the app, and taps on the app's icon, not anything else. Is this hard to understand? @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Vitamio plugin into project directory

2012-08-22 Thread Swap
hello I am vitamio for Ogg streaming but it needs to install plugin first so Is there any way to include vitamio plugin into your Project folder If not than how can i indicate to user that you need to install particular this plugin (ARM - 6 or ARM -7 with neo or without neo ).. IS there any way

Re: [android-developers] how to make updates to my app at store and alert users about new updates?

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 4:43 AM, Hady Abd alkhalik ibnserin2...@gmail.comwrote: could you provide me the documentation link? http://developer.android.com/distribute/index.html - TreKing

Re: [android-developers] Re: Dynamic Array

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 1:29 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote: Problem when i insert, new item in Android calendar, saved array(A) should also add the new item event id of a new item.How to do the same? Get the array, update it, put it back. 1.is there any limit in shared

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread user123
This will not be executed always. Android lets apps running in the background, although user closed it. When you launch the app it will not necessarily be created. On Wednesday, August 22, 2012 3:00:40 PM UTC+2, casantos wrote: On Wed, Aug 22, 2012 at 9:23 AM, user123 ivans...@gmail.com

[android-developers] I had android doubt.Please go to the link and give ur ideas.

2012-08-22 Thread Siva Kumar
Dear All, I had *android* doubt.Please go to the link and give ur ideas. http://android.stackexchange.com/q/28096/12015 -- *Thanks Regards, Sivakumar.J* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] How to get every time new/refreshed Current Location

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 2:17 AM, Rajan r.d.thak...@gmail.com wrote: i want accurate refreshed location detail every time (means, @ App start time, @ App resume time, @ restart time etc.) how it is possible? Use the GPS provider and wait patiently for it to find the user's location,

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 12:04 AM, Ubuntu guy sam_...@yahoo.co.in wrote: Is there any easy way to simulate this scenario? Show a dialog yourself. - TreKing

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Mark Murphy
On Wed, Aug 22, 2012 at 10:24 AM, TreKing treking...@gmail.com wrote: On Wed, Aug 22, 2012 at 12:04 AM, Ubuntu guy sam_...@yahoo.co.in wrote: Is there any easy way to simulate this scenario? Show a dialog yourself. Last time I checked, a Dialog does not have any impact on an activity

[android-developers] Wifi sample

2012-08-22 Thread bob
Is there a built-in Wifi sample that does a scan and displays the Wifi devices as they are detected? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Vivek Bhusal
Some body please help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
I honestly don't see how this is not making sense to you. All of those services provide web backends that hook into a database that let you query, insert, etc... through an (typically REST based) API. How is that not a database as a service. I don't think I've understood your question at all,

[android-developers] Re: background intent

2012-08-22 Thread lbendlin
Check your manifest file and debug why your broadcast receiver isn't called when the app is closed. On Wednesday, August 22, 2012 3:08:17 AM UTC-4, Ehsan Sadeghi wrote: I have this public class ReceiveSms extends BroadcastReceiver{ @Override public void onReceive(Context context,

Re: [android-developers] Re: Dynamically changing the language at runtime

2012-08-22 Thread authorwjf
Related to this same question, if it is not supported to change the locale outside of the built-in OS configurations, how can I request a language specific soft keyboard on-the-fly? I don't necessarily need code, just a push in the right direction. -- You received this message because you

Re: [android-developers] First android app

2012-08-22 Thread cham herbias
Thank you for the help nirav. i appreciate it. On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.com wrote: Hello Cham, In my opinion Developer site is best..it has good examples..Also you can download API demos for each platform.You can learn lot from that demos.. Best of

Re: [android-developers] First android app

2012-08-22 Thread Michael Leung
Start with Notepad Example, that is good On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote: Thank you for the help nirav. i appreciate it. On Tue, Aug 21, 2012 at 6:44 AM, Nirav Parmar n.parma...@gmail.comwrote: Hello Cham, In my opinion Developer site is best..it

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
I have no problems. Database as a service is a relatively new concept. This article was useful http://www.readwriteweb.com/cloud/2011/01/7-cloud-based-database-service.php I was hoping some of the devs here could share experiences of them, but I guess this is more of a coding forum. Not that

Re: [android-developers] First android app

2012-08-22 Thread cham herbias
im sorry. what do you mean notepad example? On Wed, Aug 22, 2012 at 8:07 AM, Michael Leung michaelchi...@gmail.comwrote: Start with Notepad Example, that is good On Thu, Aug 23, 2012 at 1:01 AM, cham herbias cham.herb...@gmail.comwrote: Thank you for the help nirav. i appreciate it. On

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 10:58 AM, user123 ivanschu...@gmail.com wrote: This will not be executed always. Android lets apps running in the background, although user closed it. When you launch the app it will not necessarily be created. I suggest you to get satisfied with what you have. The

Re: [android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread Harri Smått
Study AsyncTask or spawn a regular Java Thread where you do XML fetch and parsing. Now it's all written within onCreate method. It shouldn't be a problem to find better examples on how to use them than I can give. -- H On Aug 22, 2012 5:38 PM, Vivek Bhusal vivekbhu...@gmail.com wrote: Some body

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
Well, in general I think people dislike buzzwords more than anything. X as a service, can literally mean anything to any set of developers that are willing to push the concept to back their company's newest concept, shelling out a few grand to promote their piece of redundant crap with a

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
By the way, if hope to get additional help anywhere, you should give a concise set of reasoning as to why Parse and Google App Engine don't fit the use case you're looking for, as all of the articles you seem to consider as proving this service do so in a nosql based way based on a mostly REST

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
You seem to be very aggressive and you know nothing of me. If you are skeptical of db as a service and have no experience of it then don't respond to a thread entitled 'recommended database as a service providers'. Fwiw Google's dbaas is still experimental. -- You received this message

Re: [android-developers] First android app

2012-08-22 Thread Satya Komatineni
If you are still looking for advice I have created a note a while ago called How I have learned Android SDK: An authors note http://www.satyakomatineni.com/item/3784 See if this is of some help (Disclosure: Yes I do have a book on the subject) http://satyakomatineni.com/android/training

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread TreKing
On Wed, Aug 22, 2012 at 9:27 AM, Mark Murphy mmur...@commonsware.comwrote: Last time I checked, a Dialog does not have any impact on an activity lifecycle. Wow, I could have sworn a dialog caused a pause, but just confirmed it indeed does not. Thanks for the clarification!

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Justin Anderson
Why are you wanting to detect this? Perhaps there is a better way to accomplish what you are trying to do Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Aug 22, 2012 at 9:14 AM, Carlos A. M. dos Santos unixma...@gmail.com wrote: On Wed,

Re: [android-developers] First android app

2012-08-22 Thread Michael Leung
the notepad example in android developer website Regards, Michael Leung http://www.itblogs.info On Aug 22, 2012 11:16 PM, cham herbias cham.herb...@gmail.com wrote: im sorry. what do you mean notepad example? On Wed, Aug 22, 2012 at 8:07 AM, Michael Leung michaelchi...@gmail.comwrote: Start

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread lbendlin
On top of all that has been said before, the error message is actually correct. the IF statement needs an equality operator ( == ) , not an assignment operator ( = ) . On Tuesday, August 21, 2012 5:34:38 PM UTC-4, Waheed Rafiq wrote: thank you both for guiding me in a straight path with

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Mark Murphy
On Wed, Aug 22, 2012 at 12:02 PM, TreKing treking...@gmail.com wrote: On Wed, Aug 22, 2012 at 9:27 AM, Mark Murphy mmur...@commonsware.com wrote: Last time I checked, a Dialog does not have any impact on an activity lifecycle. Wow, I could have sworn a dialog caused a pause, but just

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Justin Anderson
On top of all that has been said before, the error message is actually correct. the IF statement needs an equality operator ( == ) , not an assignment operator ( = ) . But in Java you aren't going to get the expected results using == on a String object... you need to use the equals()

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Lloyd Carroll
Use == for starters in your conditional statement. On Aug 21, 2012 3:42 PM, Waheed Rafiq wra...@gmail.com wrote: Hi guys , I am new to android development for sometime I have try to resolve the if statement issue within my code but can't seem to understand why it does not work here is my

Re: [android-developers] Re: Dynamically displaying images

2012-08-22 Thread Justin Anderson
Well, for one, the images should not be in a layouts/drawable folder... They should be in res/drawable How are you displaying your orders? Are they in a listview? Are you using an adapter? What have you tried so far? It shouldn't be that hard to query the status of your order and then display

Re: [android-developers] Issue with the basic if statement

2012-08-22 Thread Kumar Bibek
You are trying to write code in the layout xmls? *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Wed, Aug 22, 2012 at 10:35 PM, Lloyd Carroll lloyd.carr...@gmail.comwrote: Use == for starters in your conditional statement. On Aug 21, 2012 3:42 PM,

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Nadeem Hasan
onPause() is called whenever there is a change in current foreground Context. The outgoing Context gets onPause() and incoming context gets onResume(). Showing a dialog does not change the Context. Starting a new activity does. Starting a service is different since its always in the

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 11:40 AM, Mark Liversedge liverse...@gmail.com wrote: You seem to be very aggressive and you know nothing of me. If you are skeptical of db as a service and have no experience of it then don't respond to a thread entitled 'recommended database as a service

Re: [android-developers] Need to register a broadcastReceiver for available WiFi networks as they become available

2012-08-22 Thread dica
Thanks asheesh, but that's not exactly what I'm after. The user should have to actually join the network, I just want to know when new SSIDs become available so my app can respond accordingly. On Wednesday, August 22, 2012 12:33:48 AM UTC-4, asheesh arya wrote: just go through this

Re: [android-developers] simulate just onPause() without onStop()

2012-08-22 Thread Kristopher Micinski
For use cases more like these, although the Dialog example clearly seems more appropriate (/ realistic), would just using instrumentation be an option for you? (As long as you are just talking about test code, of course,...) kris On Wed, Aug 22, 2012 at 1:04 AM, Ubuntu guy sam_...@yahoo.co.in

Re: [android-developers] error in new activity

2012-08-22 Thread Justin Anderson
08-22 05:50:08.890: E/AndroidRuntime(608): Caused by: java.lang.NullPointerException 08-22 05:50:08.890: E/AndroidRuntime(608): at ir.smspeik.sms.Hoghoughi.onCreate(Hoghoughi.java:23) You are trying to use something that is null in Hoghoughi.java on line 23... Start there. And then

Re: [android-developers] Re: Reliable way to detect application launch from home / desktop?

2012-08-22 Thread Carlos A. M. dos Santos
On Wed, Aug 22, 2012 at 10:00 AM, Carlos A. M. dos Santos unixma...@gmail.com wrote: On Wed, Aug 22, 2012 at 9:23 AM, user123 ivanschu...@gmail.com wrote: I want to detect exactly when the user says, hey, let's open the app, and taps on the app's icon, not anything else. Is this hard to

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 6:11:26 PM UTC+1, Kristopher Micinski wrote: condescending diatribe Do you know anything about DB as a service or have any experience of it? Otherwise, please find another thread. please. -- You received this message because you are subscribed to the Google

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 1:45 PM, Mark Liversedge liverse...@gmail.com wrote: On Wednesday, August 22, 2012 6:11:26 PM UTC+1, Kristopher Micinski wrote: condescending diatribe Do you know anything about DB as a service or have any experience of it? Otherwise, please find another thread.

[android-developers] connect to a certain Wifi network?

2012-08-22 Thread bob
Is there a function to connect to a certain Wifi network? I'm looking for something like WifiManager.connect(String SSID); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
So no then. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
Really? Apparently not, we implemented filesystems over services using Parse and Xeround for distributed cooperative caching in Android apps at an API level, I guess those services don't meet your standards, though. On Wed, Aug 22, 2012 at 1:52 PM, Mark Liversedge liverse...@gmail.com wrote: So

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
fwiw to do it over again I'd also have considered Heroku to do it over again, and you might look into that... kris On Wed, Aug 22, 2012 at 1:56 PM, Kristopher Micinski krismicin...@gmail.com wrote: Really? Apparently not, we implemented filesystems over services using Parse and Xeround for

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 6:56:21 PM UTC+1, Kristopher Micinski wrote: Really? Apparently not, we implemented filesystems over services using Parse and Xeround for distributed cooperative caching in Android apps at an API level, I guess those services don't meet your standards,

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
I wouldn't hesitate to recommend them, it sort of depends on what the type of API you're looking for is. Parse seems to have a little easier (lightweight) JSON API that you can use really easy with Android standard library stuff (think HttpClient, etc..). It's also a bit more nosql-y if you're

[android-developers] how to view the most remote item of gridview

2012-08-22 Thread Narendra Singh Rathore
Hi all, Please let me know how to view / focus the last item of the gridview on some event, in case there are a lot of items in the gridview For example, I have 100 items in my gridview, and currently 1st item is having focus. I want to view the last (100th) item, on some event (*without

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Mark Liversedge
On Wednesday, August 22, 2012 7:10:52 PM UTC+1, Kristopher Micinski wrote: I wouldn't hesitate to recommend them, it sort of depends on what the type of API you're looking for is. Parse seems to have a little easier (lightweight) JSON API that you can use really easy with Android standard

Re: [android-developers] Recommended Database as a Service providers?

2012-08-22 Thread Kristopher Micinski
On Wed, Aug 22, 2012 at 2:23 PM, Mark Liversedge liverse...@gmail.com wrote: On Wednesday, August 22, 2012 7:10:52 PM UTC+1, Kristopher Micinski wrote: I wouldn't hesitate to recommend them, it sort of depends on what the type of API you're looking for is. Parse seems to have a little easier

[android-developers] Re: Wifi sample

2012-08-22 Thread Jegadeesan M
Check this link http://grepsrc.com/search?q=Wifidefs=refs=path=hist=project=ics-mr1 On Wednesday, 22 August 2012 07:34:39 UTC-7, bob wrote: Is there a built-in Wifi sample that does a scan and displays the Wifi devices as they are detected? -- You received this message because you are

[android-developers] Re: error in new activity

2012-08-22 Thread bob
Sounds like you have a widget member variable and forgot to call findViewById before using it. On Wednesday, August 22, 2012 1:14:24 AM UTC-5, Ehsan Sadeghi wrote: I create an activity Hoghoughi but when i try to start it an error raise : 08-22 05:50:08.890: E/AndroidRuntime(608): FATAL

[android-developers] Re: how to view the most remote item of gridview

2012-08-22 Thread bob
android.widget.GridView public void setSelection (int position) Since: API Level 1 Sets the currently selected item Parameters position Index (starting at 0) of the data item to be selected. If in touch mode, the item will not be selected but it will still be positioned appropriately. On

[android-developers] How should I optimise this AIDL code avoid race condition

2012-08-22 Thread rahul
I'm creating a media player app. When I starts or resumes the application I want to check if the media player was already playing a song. So that if it was I will set my Pause/Play ToggleButton to *Pause*, else it was not playing earlier then button will set to *Play*. (i.e. for e.g. if the

[android-developers] Re: android.os.NetworkOnMainThreadException error

2012-08-22 Thread bob
*This is only thrown for applications targeting the Honeycomb SDK or higher. Applications targeting earlier SDK versions are allowed to do networking on their main event loop threads, but it's heavily discouraged. * On Tuesday, August 21, 2012 5:47:45 AM UTC-5, Vivek Bhusal wrote: I am

[android-developers] Re: background intent

2012-08-22 Thread bob
Maybe try logging something? I'm not sure you can do a Toast there. On Wednesday, August 22, 2012 2:08:17 AM UTC-5, Ehsan Sadeghi wrote: I have this public class ReceiveSms extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) {

[android-developers] NDK in MacOS

2012-08-22 Thread Ricardo Santos
Hello Everyone! I am trying to compile a code using the ndk on MacOS and I am having a problem with the path, I think. When I call ndk-build on the project directory, I get the message that it can`t find the build-local.mk on my user directory, but it should be looking on its own directory.

  1   2   >