Re: [android-developers] Admob issue

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 12:36 AM, Vivek Malavade vivek.malav...@gmail.comwrote:

 nothing else in Activity,


You said you have a ListView of Checkboxes, so clearly there is more to
your activity. Again, without more details, no one is going to be able to
help you.

What you have done to debug this? Can you show some bit of code of your
activity? Anything to help you get help?

-
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] How can i access Contacts?

2012-11-07 Thread TreKing
On Tue, Nov 6, 2012 at 4:58 AM, Prateek Sahu prateekiss...@gmail.comwrote:

 I am developing an application which requires accessing the chronology in
 which contacts are saved etc...
 can any1 help me in this regard please?


What have you done so far? Do you have a specific question besides help
me?

-
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] How to make new Project template on Eclipse..

2012-11-07 Thread TreKing
On Tue, Nov 6, 2012 at 6:40 AM, Pratama Wijaya set.mnemo...@gmail.comwrote:

 and the problem is.. how to add my new Templates on new project
 eclipse..??


This sounds like an Eclipse problem, in which case you should ask an
Eclipse-specific group or forum.

-
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] Geocoder causes IndexOutOfBoundsException

2012-11-07 Thread TreKing
On Sun, Nov 4, 2012 at 6:59 AM, Bevor riddick.richar...@gmail.com wrote:

 How does this error come then?


Use your debugger to step through the code and inspect all variables to
determine this.

-
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] R Can Not be Resolved

2012-11-07 Thread Piren
I'm a Windows based developer myself, but as far as i recall you should 
have a .bashrc file in your profile folder (/home/kevin)  that defines 
these variables.
you'll need one named ANDROID_SDK pointing to the sdk folder and you'll 
need the PATH variable concatenated with the tools and bin folders of the 
sdk.

SDK installation instructions should show up in the Android Developers 
page, you should re-do them to make sure everything is set up properly.


On Wednesday, November 7, 2012 4:15:55 AM UTC+2, Bear35805 wrote:

  Piren,

 It seems like you have hit on the problem.  Where do I find the 
 PATH/ANDROID_HOME variable?  Also is it possible there is a permission 
 problem?

 Kevin
 On 11/4/2012 2:28 AM, Piren wrote:
  
 Actually it sounds more as if the SDK installation folder was changed... 
 make sure that path ( 
 /home/kevin/Downloads/android-sdk-linux/platform-tools/adb) is still the 
 correct one and if not, update your PATH/ANDROID_HOME variables 
 appropriately. 

 On Sunday, November 4, 2012 4:48:39 AM UTC+2, Bear35805 wrote: 

 I did not see any errors in the console.  I did install more of the 
 support for older Android versions and I received this error. 

 Stopping ADB server failed (code -1). 
 Unable to run 'adb': Cannot run program 
 /home/kevin/Downloads/android-sdk-linux/platform-tools/adb: 
 java.io.IOException: error=2, No such file or directory. 
 Starting ADB server failed (code -1). 


 I know this problem can also be caused by a problem in the Manifest XML 
 so I am copying it here: 

 manifest xmlns:android=http://schemas.android.com/apk/res/android; 
  package=com.dbindustries.alcohol.tracker 
  android:versionCode=1 
  android:versionName=1.0  

  uses-sdk 
  android:minSdkVersion=8 
  android:targetSdkVersion=15 / 

  application 
  android:icon=@drawable/ic_launcher 
  android:label=@string/app_name 
  android:theme=@style/AppTheme  
  activity 
  android:name=.MainActivity 
  android:label=@string/title_activity_main  
  intent-filter 
  action android:name=android.intent.action.MAIN / 

  category 
 android:name=android.intent.category.LAUNCHER / 
  /intent-filter 
  /activity 
  /application 

 /manifest 


 On 11/3/2012 5:02 PM, Mark Murphy wrote: 
  This means that either one of your resources has a problem or your 
  AndroidManifest.xml file has a problem. Look for red X marks over such 
  files in the Package Explorer, or look in the Android portion of the 
  Eclipse Console for error messages. 
  
  On Sat, Nov 3, 2012 at 5:58 PM, Kevin Brooks bear...@gmail.com 
 wrote: 
  It has been a while since I have done any Android Development.  I 
 started a 
  new project today, and after creating the project I get an error R can 
 not 
  be resolved. 
  
  I am using Eclipse Indigo 3.7 with the Latest Android SDK. 
  
  I apologize if this has already been answered, I did a search through 
 the 
  messages and couldn't find it. 
  
  -- 
  You received this message because you are subscribed to the Google 
  Groups Android Developers group. 
  To post to this group, send email to android-d...@googlegroups.com 
  To unsubscribe from this group, 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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] How to upgrade system app

2012-11-07 Thread Dilip Kumar Chaudhary
I had developed an app and build in Device.Now i need to upgrade this,is
this possible that user will get update information from google play if yes
how? I'm confused about this..I have published update version of same app
but user not getting notification of update. I have to upgrade this any how
so please suggest me about this

-- 
*Thanks  Regards*
Dilip Kumar Chaudhary
My Linkedin Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b
My Development Blog http://dilipdevelopment.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] How to upgrade system app

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 3:08 AM, Dilip Kumar Chaudhary 
androiddili...@gmail.com wrote:

 I had developed an app and build in Device.Now i need to upgrade this,is
 this possible that user will get update information from google play if yes
 how?


If you publish an update to Google Play with the same key, it should just
work. Gmail, Maps, and many others work like this.

You've published an update that has a higher version code and has the same
signing key, yes?

-
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] Selling tangible/physical goods

2012-11-07 Thread TreKing
On Tue, Nov 6, 2012 at 8:19 AM, Tzahi Cohen tza...@gmail.com wrote:

 According to Google's policy:
 What alternatives are available for apps that sell physical goods and
 would like to be in Google play (market)?


You mention Google's policy, which, ironically, states quite explicitly the
case for physical goods. Read carefully.

-
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] My App Runs fine in the emulator and 2 devices but Hangs on the Galaxy S3 - Ice Cream Sandwich

2012-11-07 Thread TreKing
On Mon, Nov 5, 2012 at 1:01 AM, Rob Thompson
rob.thompson.vo...@gmail.comwrote:

 Am I supposed to purchase every Android phone to make sure my app works?


No.


  What am I supposed to do?


Borrow your friends phone?

-
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] HTC Desire HD - Software Update

2012-11-07 Thread TreKing
On Sun, Nov 4, 2012 at 4:46 PM, Erphan Qadiri erphanqad...@gmail.comwrote:

 I have HTC Desire HD and I heard that there wouldnt be any software
 updates like Ice Cream Sandwich or Jelly Bean due to some software
 issues with HTC desire HD. Kindly confirm  or get back with the
 correct information.


This device-specific information has nothing to do with this list. Ask your
carrier or manufacturer.

-
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] Help! How to listen the enalbe state change of android button without rewriting the source code

2012-11-07 Thread TreKing
On Mon, Nov 5, 2012 at 12:01 AM, Jason zhao jasonzhao0...@gmail.com wrote:

 Help! How to listen the enalbe state change of android button without
 rewriting the source code.
 One more important thing, I have implemeted the enable state change
 listener of my custom button.But the above question means I call
 android button of app widget  not mine in the code or xml file.


Your question is not very clear. You should clarify.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: AndroidHttpClient and SocketTimeoutException on some configuration

2012-11-07 Thread Nikolay Elenkov
On Wed, Nov 7, 2012 at 5:39 PM, Thomas Bouron tbou...@gmail.com wrote:
 Hi.

 Thank you very much for giving me your code! Unfortunately, I got the same
 behavior which is:

 For JSON reponse  8KB: It works
 For JSON reponse  8KB: It doesn't work. To be more accurate, it returns me
 a response with a statusCode = 200 but the entity.gertContentLenght() = -1
 and when i try to read the InputStream, it throws me an
 SocketTimeoutException after a while (well, the defined timeout)

 I seriously don't understand what is going on...


Chunked encoding? How do captured responses look in the two cases?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Directed Graph

2012-11-07 Thread TreKing
On Mon, Nov 5, 2012 at 12:37 PM, Ehsan Ghasisin ehsan@gmail.com wrote:

 How can I draw directed graph in android .


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] Webapp with in-app Billing

2012-11-07 Thread TreKing
On Mon, Nov 5, 2012 at 3:54 PM, Juan Manuel Rodriguez Castro 
lostuse...@gmail.com wrote:

 I'm trying to make an HTML5 application with in-app billing, but i cant
 find any information about this, how can i reach this?.
 Any example, walktrough, tutorial, etc will be appreciated.


http://developer.android.com/guide/webapps/index.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] Need help to read .ASPX webpage in app

2012-11-07 Thread TreKing
On Tue, Nov 6, 2012 at 2:48 AM, Ashish Banerjee bashish1...@gmail.comwrote:

 I need to display the content of an ASPX webpage in a apps gui in a
 modified form i.e. with my own font style and other stuffs. please help on
 how to achieve this.
 P.S. i am new to android programming.


1. http://developer.android.com/guide/index.html
2. Try something.
3. Ask a more detailed 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] Re: application not found on google play

2012-11-07 Thread ravi .
it depends on the permissions you have mentioned in manifest.xml file.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: application not found on google play

2012-11-07 Thread Salih Gündüz
which permision should I add to my manifest?thanks.
On Wed, Nov 7, 2012 at 11:31 AM, ravi . ravikanth...@gmail.com wrote:

 it depends on the permissions you have mentioned in manifest.xml file.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Chat Server

2012-11-07 Thread Rahul Kaushik
Hi,

I am developing chat application on android,i used Open fire i got
connected and was able to do the chatting but when i googled and dig it
more i came across several links which tells  open fire has limit ion i.e

I have seen reports of limitations of 500 and 1500 connections via bosh and
also reports of connection drops and memory issues. I am not sure how many
of these are situational or tied to an older version of Open fire.


please suggest any better Chat server which have a available api.

Thanks
RK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: application not found on google play

2012-11-07 Thread Salih Gündüz
which permision should I use in my mnaifest file ? thank you
7 Kasım 2012 Çarşamba 11:31:30 UTC+2 tarihinde ravi . yazdı: 

 it depends on the permissions you have mentioned in manifest.xml file.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: AndroidHttpClient and SocketTimeoutException on some configuration

2012-11-07 Thread Thomas Bouron
Well, I capture them in a same way, cf my code posted above

On Wednesday, November 7, 2012 10:26:57 AM UTC+1, Nikolay Elenkov wrote:

 On Wed, Nov 7, 2012 at 5:39 PM, Thomas Bouron tbo...@gmail.comjavascript: 
 wrote: 
  Hi. 
  
  Thank you very much for giving me your code! Unfortunately, I got the 
 same 
  behavior which is: 
  
  For JSON reponse  8KB: It works 
  For JSON reponse  8KB: It doesn't work. To be more accurate, it returns 
 me 
  a response with a statusCode = 200 but the entity.gertContentLenght() = 
 -1 
  and when i try to read the InputStream, it throws me an 
  SocketTimeoutException after a while (well, the defined timeout) 
  
  I seriously don't understand what is going on... 
  

 Chunked encoding? How do captured responses look in the two cases? 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: application not found on google play

2012-11-07 Thread ravi .
check this once
http://developer.android.com/guide/google/play/filters.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] Re: AndroidHttpClient and SocketTimeoutException on some configuration

2012-11-07 Thread Thomas Bouron
Oh wait! You're right, the JSON reponses  8KB are chuncked encoding!
I didn't notice that before!

So how to handle that properly?

On Wednesday, November 7, 2012 10:26:57 AM UTC+1, Nikolay Elenkov wrote:

 On Wed, Nov 7, 2012 at 5:39 PM, Thomas Bouron tbo...@gmail.comjavascript: 
 wrote: 
  Hi. 
  
  Thank you very much for giving me your code! Unfortunately, I got the 
 same 
  behavior which is: 
  
  For JSON reponse  8KB: It works 
  For JSON reponse  8KB: It doesn't work. To be more accurate, it returns 
 me 
  a response with a statusCode = 200 but the entity.gertContentLenght() = 
 -1 
  and when i try to read the InputStream, it throws me an 
  SocketTimeoutException after a while (well, the defined timeout) 
  
  I seriously don't understand what is going on... 
  

 Chunked encoding? How do captured responses look in the two cases? 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Creating Horizontal sliding effect between various activities in android

2012-11-07 Thread Bajrang Asthana
Thanks Piren :)
*
*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] bundle passed via intent coming null

2012-11-07 Thread Bunty syed
If somebody knows this solution for the problem,please reply

On 6 November 2012 20:00, Bunty syed itsmeatfo...@gmail.com wrote:

 Hi All,

 Hope doing well.

 I have one app with one button.

 On click of button, I am trying to launch second app by passing
 some bundle.

 My second app is having two activities. I launched the second app
 from phone  then navigated to second activity.

 Then I went to first app  cliked the button to launch the second
 app by passing some bundle as below .

 //my code

 Intent intent = new Intent(android.intent.action.MAIN);

 intent.addCategory(android.intent.category.LAUNCHER);

 intent.setComponent(new ComponentName(com.secondapp,
 secondapplauncheractivity));

 intent.putExtra(bundlekey, bundlevalue);

  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);


 Above code resumed the second app but I am not getting any bundle
 in the intent of the second app.

 I overidden lifecycle methods in the second app to check for this
 bundle by calling below code --

 //my code

 Intent i =  this.getIntent();

  if(i != null ){

 Bundle b = i.getExtras();

 if(b!= null  b.containsKey(bundlekey)){

 Log.i(TAG, found bundle===);

  }

   }

 I tested the above scenario in google nexus 4.1.2 android version




 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: application not found on google play

2012-11-07 Thread Salih Gündüz
ok thanks

On Wed, Nov 7, 2012 at 12:20 PM, ravi . ravikanth...@gmail.com wrote:

 check this once
 http://developer.android.com/guide/google/play/filters.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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How can i access Contacts?

2012-11-07 Thread Diogo Henrique
Prateek Sahu, here this answer to your question.

http://stackoverflow.com/questions/7330165/how-to-access-contacts-in-my-android-program


Em terça-feira, 6 de novembro de 2012 08h58min39s UTC-2, Prateek Sahu 
escreveu:

 I am developing an application which requires accessing the chronology in 
 which contacts are saved etc...
 can any1 help me in this regard please?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WifiP2pManager.BUSY State

2012-11-07 Thread Zach


sometime when I try to create a group in WifiDirect it returns back

WifiP2pManager.BUSY

message as reason for failure. I am not sure why this happens.

But if I restart the WIFI interface it will again work. What could be the 
possible reason for this? How this can be avoided? is there any way to 
overcome this if it ever happens?

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] bundle passed via intent coming null

2012-11-07 Thread b0b


On Wednesday, 7 November 2012 12:03:40 UTC+1, Bunty syed wrote:

 If somebody knows this solution for the problem,please reply


Try calling setDataAndType even with dummy parameters 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 avoid resource overriding in Android ?

2012-11-07 Thread Makrand


I am working on Android Project, to avoid duplication of files I am using 
library project, but I have observed that library project is following 
overriding concept, First it will check resources files in Main Project if 
its not there then it will look in to library project.

for eg. My show splash screen code is in Library project so I have to 
incude splash screen image into Library project as well as in Main Project. 
I need to add resources for two time. because when I run that project I 
want splash screen icons of my new project not of library project. 

anyhow I can't publish library project but still I need to add resources 
such as slash screens, icon, etc in library project otherwise it will give 
an compile time error.

My all code is in Library project, so I need to provide all huge resources 
to it and new Main project also contains such different huge resources 
files. Its increasing my application size unnecessary.

Is there any way to avoid overriding resources files?

Can I share only common resources between projects? instead of all resource 
files.

How I can share only resources across the projects ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Forum very slow

2012-11-07 Thread Carlos A. M. dos Santos
On Mon, Nov 5, 2012 at 5:49 PM, Mark Murphy mmur...@commonsware.com wrote:

 On Mon, Nov 5, 2012 at 2:11 PM, lbendlin l...@bendlin.us wrote:
  Love the russian text.  You may not want to rely on Google Translate that
  much, unless you were aiming for chuckles.

 Well, the announcement tomorrow is calling for better translations of
 that text. Alas, I do not speak Russian.


The English word site is widely accepted in Brasil, but in Potugal they
prefer the Portuguese word sítio. I suggest you to use a more neutral
translation therefore:

Estes são alguns fórums onde você pode perguntar ou responder dúvidas sobre
desenvolvimento de aplicações para Android.

-- 
The flames are all long gone, but the pain lingers on

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Forum very slow

2012-11-07 Thread Mark Murphy
On Wed, Nov 7, 2012 at 7:27 AM, Carlos A. M. dos Santos
unixma...@gmail.com wrote:
 The English word site is widely accepted in Brasil, but in Potugal they
 prefer the Portuguese word sítio. I suggest you to use a more neutral
 translation therefore:

 Estes são alguns fórums onde você pode perguntar ou responder dúvidas sobre
 desenvolvimento de aplicações para Android.

Makes sense. I have updated the roster and site. Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Converting existing activities into fragments

2012-11-07 Thread Bajrang Asthana
Hi ,

Actually I want to add sliding functionality among existing activities. I 
did some RD and found that we can do it using ViewPager. But to use 
ViewPager I have to create my all activities into corresponding fragments. 
 Initially it looks that we can convert activity into fragment.

Is there any guide how should we proceed?
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Converting existing activities into fragments

2012-11-07 Thread Piren
hehe... i did some RD ..i assume (R)esearch equals: i asked this forum :)

There's a plethora of tutorials on how to create fragments on Android 
Developers. its pretty easy infer from those on how to accomplish what you 
want.



On Wednesday, November 7, 2012 2:40:59 PM UTC+2, Bajrang Asthana wrote:

 Hi ,

 Actually I want to add sliding functionality among existing activities. I 
 did some RD and found that we can do it using ViewPager. But to use 
 ViewPager I have to create my all activities into corresponding fragments. 
  Initially it looks that we can convert activity into fragment.

 Is there any guide how should we proceed?
  


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 should setSystemUiVisibility and android:fitsSystemWindows be used?

2012-11-07 Thread Zoran Smilevski
Hello,

I have a problem with creating video player.
I want that only VideoView will be resized behind navigation bar (soft 
navigation keys) and all overlay elements (timeline, ...) are sized 
normaly (not behind navigation bar).

So I call *setSystemUiVisibility* method on layout root element 
(playerLayout) and on all other elements I have *android:fitsSystemWindows 
*(besides 
VideoView of course). Resizing behind navigation bar works, but for all 
elements, even if they have *fitsSystemWindows.* Can someone please explain 
me why and how to fix this?

Thanks!

Layout file:

FrameLayout 
xmlns:android=http://schemas.android.com/apk/res/androidandroid:id=@+id/playerLayoutandroid:layout_width=fill_parentandroid:layout_height=fill_parentandroid:animateLayoutChanges=trueandroid:background=@color/black;
 mynamespace.VideoView
android:id=@+id/videoview
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center/mynamespace.SubtitleTextView
android:id=@+id/subtitleText
style=@style/SubtitleOverlayText
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=bottom|center_horizontal
android:layout_marginBottom=30dp
android:gravity=center
android:visibility=gone
android:fitsSystemWindows=true
android:animateLayoutChanges=true/FrameLayout
android:id=@+id/adLayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=top|right
android:fitsSystemWindows=true
android:animateLayoutChanges=true/FrameLayout
android:id=@+id/videoMediaControllerHolder
android:layout_width=match_parent
android:layout_height=match_parent
android:fitsSystemWindows=true
android:animateLayoutChanges=true/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How should setSystemUiVisibility and android:fitsSystemWindows be used?

2012-11-07 Thread Zoran Smilevski
Oh, I forgot something. This question is also on StackOverflow with 
screenshots 
(http://stackoverflow.com/questions/13237554/fullscreen-video-player-mediacontroller-behind-navigation-bar/13237778).

Thanks again for any help!

On Wednesday, November 7, 2012 3:02:21 PM UTC+1, Zoran Smilevski wrote:

 Hello,

 I have a problem with creating video player.
 I want that only VideoView will be resized behind navigation bar (soft 
 navigation keys) and all overlay elements (timeline, ...) are sized 
 normaly (not behind navigation bar).

 So I call *setSystemUiVisibility* method on layout root element 
 (playerLayout) and on all other elements I have *
 android:fitsSystemWindows *(besides VideoView of course). Resizing behind 
 navigation bar works, but for all elements, even if they have *
 fitsSystemWindows.* Can someone please explain me why and how to fix this?

 Thanks!

 Layout file:

 FrameLayout 
 xmlns:android=http://schemas.android.com/apk/res/androidandroid:id=@+id/playerLayoutandroid:layout_width=fill_parentandroid:layout_height=fill_parentandroid:animateLayoutChanges=trueandroid:background=@color/black;
  mynamespace.VideoView
 android:id=@+id/videoview
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center/mynamespace.SubtitleTextView
 android:id=@+id/subtitleText
 style=@style/SubtitleOverlayText
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=bottom|center_horizontal
 android:layout_marginBottom=30dp
 android:gravity=center
 android:visibility=gone
 android:fitsSystemWindows=true
 android:animateLayoutChanges=true/FrameLayout
 android:id=@+id/adLayout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=top|right
 android:fitsSystemWindows=true
 android:animateLayoutChanges=true/FrameLayout
 android:id=@+id/videoMediaControllerHolder
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:fitsSystemWindows=true
 android:animateLayoutChanges=true/



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Webapp with in-app Billing

2012-11-07 Thread Juan Manuel Rodriguez Castro
Thanks TreKing, i found the same information, but nothing about in-app 
billing at webapps. The Android API has no further information regarding 
this.

On Wednesday, November 7, 2012 2:31:06 AM UTC-7, TreKing wrote:

 On Mon, Nov 5, 2012 at 3:54 PM, Juan Manuel Rodriguez Castro 
 lostu...@gmail.com javascript: wrote:

 I'm trying to make an HTML5 application with in-app billing, but i cant 
 find any information about this, how can i reach this?.
 Any example, walktrough, tutorial, etc will be appreciated.


 http://developer.android.com/guide/webapps/index.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] bundle passed via intent coming null

2012-11-07 Thread Bunty syed
Thanks Bob.
But I setsetDataAndType  to intent with some dummy data, it doesnt not
invoke second app

On 7 November 2012 17:43, b0b pujos.mich...@gmail.com wrote:



 On Wednesday, 7 November 2012 12:03:40 UTC+1, Bunty syed wrote:

 If somebody knows this solution for the problem,please reply


 Try calling setDataAndType even with dummy parameters

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Selling tangible/physical goods

2012-11-07 Thread Tzahi Cohen
 

Thanks I just wanted to triple check before investing in an integration 
to a payment service.

From what I understand, if you are dealing with digital goods you are 
free what ever payment service you choose.


App purchases: Developers charging for applications and downloads 
from Google Play must do so by using Google Play's payment system.

**In-app purchases**: Developers offering additional content, services 
or functionality within an application downloaded from Google Play must 
use Google Play's payment system as the method of payment, **except*: *where 
payment is primarily for physical goods or services (e.g. buying movie 
tickets; e.g. buying a publication where the price also includes a hard 
copy subscription);** or where payment is for digital content or goods that 
may be consumed outside of the application itself (e.g. buying songs that 
can be played on other music players)

Did I miss-read it?

Thanks!

On Wednesday, November 7, 2012 11:23:58 AM UTC+2, TreKing wrote:

 On Tue, Nov 6, 2012 at 8:19 AM, Tzahi Cohen tza...@gmail.comjavascript:
  wrote:

 According to Google's policy:
 What alternatives are available for apps that sell physical goods and 
 would like to be in Google play (market)?


 You mention Google's policy, which, ironically, states quite explicitly 
 the case for physical goods. Read carefully.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: BluetoothChat Example Stops

2012-11-07 Thread bob
 

Glad it works.


You can report the issue at b.android.com.  I'm guessing the b stands for 
bugs.



On Tuesday, November 6, 2012 8:30:22 PM UTC-6, tma wrote:

 Hi Bob,

 Many thanks!  I changed the min API to version 11 in the manifest and the 
 problem went away. The example code specifies minimum API of 6 (uses-sdk 
 minSdkVersion=6 /), thus I guess the issue must have crept in with later 
 Android releases. 

 If I knew how I would report this to the powers-that-be to ensure they are 
 aware of it. I imagine it is important to them that their example reference 
 code runs OK. 

 tma


 On Tuesday, November 6, 2012 10:46:45 AM UTC-8, bob wrote:

 Maybe increase the minimum SDK version to at least 11?  I think there's 
 some issue with getActionBar or something, so it needs to be above 8.



 On Tuesday, November 6, 2012 12:07:39 PM UTC-6, tma wrote:

 Greetings,

  I am having difficulty getting the BluetoothChat example given 
 in the SDK to run on my Asus Transformer tablet. I get the message: 
 Unfortunately, Bluetooth Chat has stopped.. I can run other bluetooth 
 apps on my tablet with successful connection to devices.

  I am running api 4.1.1 on my tablet and have the minimum api 
 level statement in the manifest set to 8. The example compiles successfully 
 and I can export and install the apk without any errors reported. However 
 the app stops during initialization. I cannot debug in the AVM as it does 
 not support bluetooth. Although I have a USB interface cable for my 
 Transformer on order it hasn't arrived thus I cannot yet debug via my 
 tablet.

  I wonder if anyone in this group has been down the same path? 
 Any suggestions?

 Best Regards,
 tma




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Chat Server

2012-11-07 Thread bob
 

I seriously doubt you will ever even come close to those limits.  I would 
just use what you have.

You could always just set up a second or third server if you need to.  I 
doubt you would ever want 500 people in a single conversation.


On Wednesday, November 7, 2012 3:49:26 AM UTC-6, rahul kaushik wrote:

 Hi,

 I am developing chat application on android,i used Open fire i got 
 connected and was able to do the chatting but when i googled and dig it 
 more i came across several links which tells  open fire has limit ion i.e

 I have seen reports of limitations of 500 and 1500 connections via bosh 
 and also reports of connection drops and memory issues. I am not sure how 
 many of these are situational or tied to an older version of Open fire.


 please suggest any better Chat server which have a available api.

 Thanks
 RK


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Sureshot Closure :: SQL Server Oracle DBA || 12 months || NH

2012-11-07 Thread Lee Nanda
*Hello Partners,*

*Need Urgently….*

*Reply to l...@sourceinfotech.com only*

* *

*Position:-SQL Server  Oracle DBA*

*Duration:-1 Year*

*Location:-New Hampshire*



*Skills Need: ·*

·  *Must have min 10 + years of experience with SQL Server, min 5
years experience with Oracle. *

·  *· Must have extensive experience with designing, creating and
tuning physical database objects (tables, views, indexes) to support
normalized and dimensional models.*

·  *Maintaining the referential integrity of the database · Must
have extensive experience with performance and design issues.*

·  *Must Have extensive experience with adherence to architectural
standards and practices. *

·  *· Experience developing best practices, standards of
excellence, and guidelines to enforce and guide behavior. Experience
defining and validate technical and business requirements. *

·  *· Extensive experience with schema enhancements. *

·  *· Extensive experience with monitors and tuning databases for
optimal performance. *

·  *· Experience working with developers in tuning MS SQL and
PL/SQL to optimize and ensure efficiency. *

·  *· Experience defining database management productivity tools *

·  *· Experience providing ongoing support of the environment by
developing processes, documentation, security and access privileges and
performance monitoring. *

·  *· Experience providing 24x7 support to ensure that all database
problems are resolved in a timely manner *

·  *· Meets regularly with peers and management to assess ongoing
projects, system maintenance and development projects *

·  *· Mentors and develops skills of Database Administrators *

·  *· Experience reviewing schema design plans and changes Develops
and tests disaster recovery procedures*

* *

* Scope of Work:*

·  *The Data Architect (MS SQL database) will ensure that all
databases are secure, reliable and efficient.*

·  *The CS Open System Database Team supports 'BOTH' Microsoft SQL
Server and Oracle Databases.*

   - *The consultant's primary focus will be MS SQL DBA work and secondary
   is the Oracle DBA projects.*



*Warm Regards,*

*Lee Nanda*

*Sr. IT Recruiter**
**Source Infotech Inc.**
*40 Brunswick Avenue, Suite # 200, Edison, NJ, 08817

Email: Lee 
l...@sourceinfotech.com|Phone@sourceinfotech.coml...@sourceinfotech.com||
*Phone: 609-249-1630** || *Fax: 732-909-2282 blocked::tel:732-909-2282||Gtalk:
recruiter@gmail.com ||Yahoo:- recruiter.lee2...@yahoo.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: Directed Graph

2012-11-07 Thread bob
Sounds like you want to use the android.graphics.Canvas class.

This function will be useful:

drawLine(float startX, float startY, float stopX, float stopY, Paint paint)

as will this one for drawing the arrows:

drawVertices(Canvas.VertexMode mode, int vertexCount, float[] verts, int 
vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, 
short[] indices, int indexOffset, int indexCount, Paint paint)




On Monday, November 5, 2012 12:37:01 PM UTC-6, Ehsan Ghasisin wrote:

 Hi every one.

 I'm beginner in android programming. I want to implement Dijkstra 
 algorithm in android  . How can I draw directed graph in android . 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to avoid resource overriding in Android ?

2012-11-07 Thread Marina Cuello
You could include just 1px x 1px resources with the correct names on the
library.

Marina
El 07/11/2012 09:20, Makrand makrandm...@gmail.com escribió:

 I am working on Android Project, to avoid duplication of files I am using
 library project, but I have observed that library project is following
 overriding concept, First it will check resources files in Main Project if
 its not there then it will look in to library project.

 for eg. My show splash screen code is in Library project so I have to
 incude splash screen image into Library project as well as in Main Project.
 I need to add resources for two time. because when I run that project I
 want splash screen icons of my new project not of library project.

 anyhow I can't publish library project but still I need to add resources
 such as slash screens, icon, etc in library project otherwise it will give
 an compile time error.

 My all code is in Library project, so I need to provide all huge resources
 to it and new Main project also contains such different huge resources
 files. Its increasing my application size unnecessary.

 Is there any way to avoid overriding resources files?

 Can I share only common resources between projects? instead of all
 resource files.

 How I can share only resources across the projects ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Efficient Tablet Resource Selection

2012-11-07 Thread Dave Smith
I am trying to develop an efficient method of including resource qualifiers 
to appropriately select the layouts (and other resources really) for 
handsets, small tablets, and large tablets.  To properly support devices on 
both sides of Android 3.2, when smallest width was introduced, I had hoped 
to be able to create a hierarchy like so:

res/layout/
 + Default and handset-specific layouts
res/layout-sw600dp-large/
 + Small Tablet assets, where necessary
res/layout-sw720dp-xlarge/
 + Large Tablet assets, where necessary

However, constructing a simple test application in this manner reveals that 
the concept won't work.  All devices load the default resources, regardless 
of their OS version and display configuration.  The primary point of this 
method is to eliminate the duplication that would otherwise be required to 
place the sw600dp asset and large asset (which are the same) into 
separate directories.  Even aliasing a single layout into the two 
directories represents a duplication of code.  To support older devices, it 
would be nice to continue to use just the old qualifiers, but newer handset 
devices with larger screens are starting to creep into the large 
category, forcing the use of smallest width where available.

So my first question here is: I know my original idea does not work, but I 
want to know WHY it doesn't work??

In my mind, the old devices that don't understand the sw qualifier should 
just ignore its existence and the two directories should just look like 
large and xlarge.  On the other side, with new devices, the sw 
qualifier should take precedence so the large and xlarge should become 
irrelevant.
As a result, the method with the least code duplication that I can come up 
with is as follows:

res/layout/
 + All layout assets, with tablet specific names in cases where necessary
res/values-sw600dp/
 + Aliases to apply small tablet layouts with the default name
res/values-large/
 + Same aliases to apply small tablet layouts with the default name
res/values-sw720dp/
 + Aliases to apply large tablet layouts with the default name
res/values-xlarge/
 + Same aliases to apply large tablet layouts with the default name

This reduces the duplication to at least one line in two places rather than 
copying an entire file.  Does anyone know of a method that works that would 
clean this up even further?

Thanks,

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] DatePicker update via EditText rather than Spinner

2012-11-07 Thread Matthew Fleming
Hi,

I'm returning to Android development after a fairly long hiatus, so please 
excuse the following question if the answer is obvious. I have a DatePicker 
in a fragment, which is being supported by the compatibility library (I'm 
trying to keep it compatible back to 2.1). The user can set the date, which 
is then read using DatePicker.getYear() etc. When the date is changed using 
the DatePicker's Spinner, the date is updated and can be read correctly. 
But when the date is changed by inputing text into the DatePicker EditText 
with the keyboard, the date is not updated, until one of the spinner's 
arrows is clicked. Is there any way around this? I suppose I could attach a 
listener to the EditText, but this would use DatePicker's undocumented 
internals, and might break down the road.

Thanks very much,

Matthew Fleming

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: My App Runs fine in the emulator and 2 devices but Hangs on the Galaxy S3 - Ice Cream Sandwich

2012-11-07 Thread bob
 

You will probably want to buy a Galaxy S3 from MetroPCS for 499.  

On Monday, November 5, 2012 1:01:50 AM UTC-6, Rob Thompson wrote:

 My friend installed my app on his phone, and it hangs.  It's just a black 
 screen with the app title in the Google bar.  However, in the emulator, it 
 works on 4.0.3, 4.1, 2.*, etc...It also works on a Huawei 2.2 device, and 
 the Toshiba Thrive 3.1.

 Am I supposed to purchase every Android phone to make sure my app works? 
  What am I supposed to do?

 Thanks.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Geocoder causes IndexOutOfBoundsException

2012-11-07 Thread bob
 

You say getFromLocationName should return by definition null or empty 
list.


The error comes about because it's returning the latter, *empty list*.




On Sunday, November 4, 2012 6:59:09 AM UTC-6, Bevor wrote:

 I have the following class which returns a coordinate depending on the 
 street name I enter.

 public class CoordinateViaStreetNameFinder {
 private Geocoder geocoder;

 public CoordinateViaStreetNameFinder() {
 geocoder = new Geocoder(ApplicationContext.getAppContext(), 
 Locale.GERMAN);
 }
 
 public Coordinate find(String streetName, String streetNr) throws 
 IOException  {
 String searchPattern = streetName + ,  + streetNr + , AT;
 
 ListAddress addresses = 
 geocoder.getFromLocationName(searchPattern, 1);
 
 if (addresses == null || addresses.size()  1)  {
 return null;
 }
 
 return new Coordinate(addresses.get(0).getLongitude(), 
 addresses.get(0).getLatitude());
 }
 }

 This works for valid street names. When I enter an invalid street name 
 like foobar street, I run into this exception, when the app tries to 
 execute the if statement:

 java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0
 at java.util.ArrayList.get(ArrayList.java:341)

 I'm a bit confused since getFromLocationName should return by definition 
 null or empty list. How does this error come then? I invoke this method in 
 a Android JUnit test:
 This test works:

 public void testValidResult() throws IOException {
 CoordinateViaStreetNameFinder coordinateViaStreetNameFinder = new 
 CoordinateViaStreetNameFinder();
 
 Coordinate coordinate = 
 coordinateViaStreetNameFinder.find(stephansplatz, 1);
 
 assertEquals(16, (int)(coordinate.getLongitude()));
 assertEquals(48, (int)(coordinate.getLatitude()));
 }

 This test produces the error.
 
 public void testInvalidResult() throws IOException {
 CoordinateViaStreetNameFinder coordinateViaStreetNameFinder = new 
 CoordinateViaStreetNameFinder();
 
 Coordinate coordinate = coordinateViaStreetNameFinder.find(foobar 
 street, 1);
 
 assertNull(coordinate);
 }

 What's wrong here?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Bitmap issue and Webview rendering issue in ICS

2012-11-07 Thread bob
Have you tried this:

android:largeHeap = “true”


On Monday, November 5, 2012 2:15:05 PM UTC-6, sourabh deshpande wrote:

 Hi,

 1) I am developing an application which has very high quality image 
 contents. To load these images asynchronously I am using 

 https://github.com/nostra13/Android-Universal-Image-Loader

 This library has many options of using memory cache and disc cache. I am 
 using memory cache in onCreateView() of fragment and clearing the memory 
 cache in destroyView() of fragments. But still I am facing the 
 OutOfMemoryException. I have even tried calling Bitmap.recycle() but no 
 luck.What is the best way to clear the bitmap memory?

 2) The application has one local html5 component which is hosed in 
 webview. The html component rendering is extremely slow in 4.0 and above. I 
 have tested it with Galaxy Nexus. Its extremely slow. We can see each frame 
 of animation. I have alredy tried enabling and disabling the hardware 
 acceleration. But both does not work.How can I handle this?

 Sourabh Deshpande.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 avoid resource overriding in Android ?

2012-11-07 Thread Carlos A. M. dos Santos
On Wed, Nov 7, 2012 at 10:20 AM, Makrand makrandm...@gmail.com wrote:

 I am working on Android Project, to avoid duplication of files I am using
 library project, but I have observed that library project is following
 overriding concept, First it will check resources files in Main Project if
 its not there then it will look in to library project.

 for eg. My show splash screen code is in Library project so I have to
 incude splash screen image into Library project as well as in Main Project.
 I need to add resources for two time. because when I run that project I want
 splash screen icons of my new project not of library project.

 anyhow I can't publish library project but still I need to add resources
 such as slash screens, icon, etc in library project otherwise it will give
 an compile time error.

 My all code is in Library project, so I need to provide all huge resources
 to it and new Main project also contains such different huge resources
 files. Its increasing my application size unnecessary.

 Is there any way to avoid overriding resources files?

 Can I share only common resources between projects? instead of all
 resource files.

 How I can share only resources across the projects ?

You should solve this by means of better design. Do not hard-code the
resource id in the library code. Let it be a parameter that you pass
at run-time from the code in you app project.

--
The flames are all long gone, but the pain lingers on

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] A quick note on the dispatchMethodX pattern in Android

2012-11-07 Thread Satya Komatineni
When I am researching the custom components I often ran into something
I call a dispatchMethodX pattern.

Example is how draw(), onDraw() and dispatchDraw() work hand in hand
for a composite pattern like views and view groups.

I put a quick note here with also references to the design patterns

http://satyakomatineni.com/item/4348

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] Efficient Tablet Resource Selection

2012-11-07 Thread Mark Murphy
On Wed, Nov 7, 2012 at 10:38 AM, Dave Smith dasmith1...@gmail.com wrote:
 In my mind, the old devices that don't understand the sw qualifier should
 just ignore its existence and the two directories should just look like
 large and xlarge.

If a directory has an unrecognized qualifier, the directory is
skipped; the qualifier is not simply ignored. Hence, older devices
will not see your -swNNNdp resources. You can demonstrate this by
taking a vanilla project, renaming res/layout/ to res/layout-swNNNdp/
(for some likely value of NNN), and running it on an old emulator.

 On the other side, with new devices, the sw
 qualifier should take precedence so the large and xlarge should become
 irrelevant.

Hmmm...

I just ran a test on a project, where I changed it to have just one
layout resource directory: res/values-sw100dp-normal/. That directory
was picked up by a 4.0.3 WVGA800 emulator. Given your description, I
would have expected it to fail here with a ResourceNotFoundException,
since there is no place to fail over to.

Do you happen to have a test project that demonstrates what you're seeing?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] WifiP2pManager.BUSY State

2012-11-07 Thread Irfan Sheriff
If its busy, it could be a previous connection or wifi still being enabled
or something that makes the operation infeasible at that time. Note that
p2p tear down can take up to 2 minutes when things fail.

You will have to just wait it out and retry if it happens. If you have
exact steps to repro this, I can take a look at the log.


On Wed, Nov 7, 2012 at 3:34 AM, Zach zachariah...@gmail.com wrote:

 sometime when I try to create a group in WifiDirect it returns back

 WifiP2pManager.BUSY

 message as reason for failure. I am not sure why this happens.

 But if I restart the WIFI interface it will again work. What could be the
 possible reason for this? How this can be avoided? is there any way to
 overcome this if it ever happens?

 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

[android-developers] breakpoints ignored

2012-11-07 Thread bob
Ok, I am having some more issues with breakpoints that the compiler is 
ignoring.

Here is the code in question:

static Handler handler = new Handler() {

@Override
public void handleMessage(Message msg) {
Log.d(hmmm,hmmmok); 
}
};

What I did was I put a method breakpoint on this line:

public void handleMessage(Message msg) {

It did not get triggered when that method was called.

However, when I put a breakpoint here:

Log.d(hmmm,hmmmok); 

It breaks as it should.

Can someone please help me understand 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: Sureshot Closure :: SQL Server Oracle DBA || 12 months || NH

2012-11-07 Thread Lew
This has nothing to do with Android app development. Please keep posts on 
topic.

On Wednesday, November 7, 2012 7:31:52 AM UTC-8, Lee Nanda wrote:

 *Hello Partners,*

 *Need Urgently….*

 *Reply to l...@sourceinfotech.com javascript: only*

 * *

 *Position:-SQL Server  Oracle DBA*

 *Duration:-1 Year*

 *Location:-New Hampshire*

  

 *Skills Need: ·*

 ·  *Must have min 10 + years of experience with SQL Server, min 5 
 years experience with Oracle. *

 ·  *· Must have extensive experience with designing, creating and 
 tuning physical database objects (tables, views, indexes) to support 
 normalized and dimensional models.*

 ·  *Maintaining the referential integrity of the database · Must 
 have extensive experience with performance and design issues.*

 ·  *Must Have extensive experience with adherence to 
 architectural standards and practices. *

 ·  *· Experience developing best practices, standards of 
 excellence, and guidelines to enforce and guide behavior. Experience 
 defining and validate technical and business requirements. *

 ·  *· Extensive experience with schema enhancements. *

 ·  *· Extensive experience with monitors and tuning databases for 
 optimal performance. *

 ·  *· Experience working with developers in tuning MS SQL and 
 PL/SQL to optimize and ensure efficiency. *

 ·  *· Experience defining database management productivity tools *

 ·  *· Experience providing ongoing support of the environment by 
 developing processes, documentation, security and access privileges and 
 performance monitoring. *

 ·  *· Experience providing 24x7 support to ensure that all 
 database problems are resolved in a timely manner *

 ·  *· Meets regularly with peers and management to assess ongoing 
 projects, system maintenance and development projects *

 ·  *· Mentors and develops skills of Database Administrators *

 ·  *· Experience reviewing schema design plans and changes 
 Develops and tests disaster recovery procedures*

 * *

 * Scope of Work:*

 ·  *The Data Architect (MS SQL database) will ensure that all 
 databases are secure, reliable and efficient.*

 ·  *The CS Open System Database Team supports 'BOTH' Microsoft 
 SQL Server and Oracle Databases.*

- *The consultant's primary focus will be MS SQL DBA work and 
secondary is the Oracle DBA projects.* 

  

 *Warm Regards,*

 *Lee Nanda*

 *Sr. IT Recruiter**
 **Source Infotech Inc.**
 *40 Brunswick Avenue, Suite # 200, Edison, NJ, 08817

 Email: Lee javascript:@sourceinfotech.com javascript: || *Phone: 
 609-249-1630** || *Fax: 732-909-2282 
 ||Gtalk:recruiter@gmail.comjavascript:||Yahoo:- 
 recruiter.lee2...@yahoo.com 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: What happens in android device.If gps is working for a long time continously (more than 5 hours)

2012-11-07 Thread Lew
Doubt means precisely question in some dialects of English. Widen your 
horizons.

On Monday, November 5, 2012 11:09:27 AM UTC-8, lbendlin wrote:

 In order to doubt something, someone else must have made a statement. I 
 don't see that being the case.  You have a thought, or maybe even a 
 question.

 On Monday, November 5, 2012 4:38:23 AM UTC-5, SIVAKUMAR.J wrote:

 Dear All,

Im having one doubt.
What happens in android device.If gps is working for a long time 
 continously (more than 5 hours)
If Gps receiver gets heated and not working ?,
Location are not captured correclty.
All are welcome to give your ideas

 -- 
 *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 email to android-developers@googlegroups.com
To unsubscribe from this group, 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] R Can Not be Resolved

2012-11-07 Thread Lew
Bear35805 wrote:

 It seems like you have hit on the problem.  Where do I find the 
 PATH/ANDROID_HOME variable?  Also is it possible there is a permission 
 problem?


In the operating system.

More precisely, in the shell.

And the word is variables in the plural, not variable in the singular. 
PATH and ANDROID_HOME are two different, relevant environment variables.

If you aren't familiar with environment variables, become so. You cannot 
get far in most 
OSes without at least knowing about the PATH variable, nor in programming 
without a
fundamental understanding of how to use the major OSes.

GIYF.

-- 
Lew


 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Extending AdapterView: RecycleBin and view recycling

2012-11-07 Thread Nicholas Campion
I have re-embarked on my much aligned quest to extend AdapterView to allow 
for a horizontal scroll implementation. I've gotten to the point of wanting 
to implement view recycling. The AbsListView.RecycleBin implementation 
makes use of the hidden method dispatchStartTemporaryDetach as well as 
other temporary detachment methods. This seems to provide a lot of benefit 
when the exact same view is reused (i.e. the detached view is still visible 
in the list). I was looking to see if anyone had guidance on implementing a 
RecycleBin without access to these methods? I've seen some rough concepts 
where a Queue backed by a LinkedList is used but it seems to be pretty 
cumbersome.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: getSherlockActivity throwing Nullpointer Exception

2012-11-07 Thread Παύλος-Πέτρος Τουρνάρης
Diogo i have already tried that with no success!



On Mon, Nov 5, 2012 at 3:11 PM, Diogo Henrique diogj...@gmail.com wrote:

 why you don't try...

 progressDisplay.show(getAplicationConext(),
 LoadingDialog);






 Em segunda-feira, 5 de novembro de 2012 10h28min12s UTC-2, vani escreveu:


 HI friends,
 I am using Sherlock library for android

 progressDisplay = new LoadingDialog();
 progressDisplay.setCancelable(**false);
  progressDisplay.show(**getSherlockActivity().**
 getSupportFragmentManager(),
  LoadingDialog);

 LoadingDialog is the class which extends  SherlockDialogFragment.
 When i click on home button and close it, and again relaunch it on long
 press of home press app is force closing in the below line:

 progressDisplay.show(**getSherlockActivity().**
 getSupportFragmentManager(),
 LoadingDialog);

 Any clues why it is happeneing??
 Please give me ideas how to solve it.


 --
 Regards,
 Vani Reddy

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: View Group onclick event not firing

2012-11-07 Thread Mobile Developer
Hi All,

Click event in vewgroup child not firing if i use 
dispatchTouchEvent(MotionEvent e) for touch. if i  use 
onInterceptTouchEvent(MotionEvent e) i can stop the touch event and click 
is working as we expect. but i need click for viewgroup child items also i 
need to touch to drag the viewgroup.


Thanks in advance


On Wednesday, November 7, 2012 1:25:01 PM UTC+5:30, Mobile Developer wrote:

 Hi Bob 

 Thanks for your reply. I need to use both touch and click events. if i 
 return false from dispatchTouchEvent then i cant able to use touch events.
 I dont know how to add click events for viewgroup childs.


 Thanks


 On Wed, Nov 7, 2012 at 1:03 AM, bob b...@coolfone.comze.com wrote:

 Why don't you return false in dispatchTouchEvent?


 On Tuesday, November 6, 2012 6:37:47 AM UTC-6, Mobile Developer wrote:

 Hi All,

 I have viewgroup that extends LinearLayout but i cant able to add 
 onclick events to the child elements. Its only accessing ontouch event.

 I used dispatchTouchEvent(MotionEvent e) to touch event and i returned 
 true.

 I tried onInterceptTouchEvent(**MotionEvent ev) to stop touch event. 
 eventhough i cant able to add onclick event.


 How to add click event on ViewGroup child elements. can we able add 
 onclick and ontouch event for viewgroup?


 Thanks in advance

 android-developers@googlegroups.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] Selling tangible/physical goods

2012-11-07 Thread Lew
Tzahi Cohen wrote:

 Thanks I just wanted to triple check before investing in an integration 
 to a payment service.

 From what I understand, if you are dealing with digital goods you are 
 free what ever payment service you choose.

 App purchases: Developers charging for applications and downloads 
 from Google Play must do so by using Google Play's payment system.

 **In-app purchases**: Developers offering additional content, services 
 or functionality within an application downloaded from Google Play must 
 use Google Play's payment system as the method of payment, **except*: *where 
 payment is primarily for physical goods or services (e.g. buying movie 
 tickets; e.g. buying a publication where the price also includes a hard 
 copy subscription);** or where payment is for digital content or goods 
 that may be consumed outside of the application itself (e.g. buying songs 
 that can be played on other music players)

Did I miss-read [sic] it?

 Don't know. Did you misquote it? That would be verifiable, but as to 
whether you've misread it, 
that's not for us to say.

You should point out the source of citations, and when you've added 
emphasis that was not in the original.

Are you quite sure that this forum is the appropriate source for 
authoritative information on Google 
policies? Why wouldn't you ask Google themselves?

If you are concerned about legal interpretation of the terms, you should 
ask an attorney.

-- 
Lew

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How can i access Contacts?

2012-11-07 Thread Joe Malin
I think what you mean is I want to access contacts in the order in which 
they were modified or inserted into the provider. 

Unfortunately, you can't do that. That data is not available.

If you provide more information about your application, perhaps someone can 
offer additional help.

On Tuesday, November 6, 2012 2:58:39 AM UTC-8, Prateek Sahu wrote:

 I am developing an application which requires accessing the chronology in 
 which contacts are saved etc...
 can any1 help me in this regard please?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] clone

2012-11-07 Thread bob
Let's say I want to create a clone of a BluetoothSocket object as a 
potential workaround for a bug.  Anyone know how 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

Re: [android-developers] DatePicker update via EditText rather than Spinner

2012-11-07 Thread Kostya Vasilyev
Yes, this seems like an Android bug (can't say which versions are affected).

I have the following in my DialogPreference subclass. Note the call to
clearFocus.

@Override
protected void onDialogClosed(boolean positiveResult) {
super.onDialogClosed(positiveResult);

if (positiveResult) {

mTimePickerView.clearFocus();

int hourOfDay = mTimePickerView.getCurrentHour();
int minute = mTimePickerView.getCurrentMinute();

onTimeChanged(mTimePickerView, hourOfDay, minute);

if (callChangeListener(mNewValue)) {
setValue(mNewValue);
}
}

mTimePickerView = null;
}

-- K

2012/11/7 Matthew Fleming mgf...@gmail.com

 Hi,

 I'm returning to Android development after a fairly long hiatus, so please
 excuse the following question if the answer is obvious. I have a DatePicker
 in a fragment, which is being supported by the compatibility library (I'm
 trying to keep it compatible back to 2.1). The user can set the date, which
 is then read using DatePicker.getYear() etc. When the date is changed using
 the DatePicker's Spinner, the date is updated and can be read correctly.
 But when the date is changed by inputing text into the DatePicker EditText
 with the keyboard, the date is not updated, until one of the spinner's
 arrows is clicked. Is there any way around this? I suppose I could attach a
 listener to the EditText, but this would use DatePicker's undocumented
 internals, and might break down the road.

 Thanks very much,

 Matthew Fleming

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: WebView in ListView

2012-11-07 Thread Vitaly Chernikov
I am use ListView and each cell is WebView. So, I see that I must place 
WebView.loadURL directly in GetView! And it is calling every time when I 
scrolling! So how can I cache WebView to call LoadURL only one time? Or may 
be I would be save Inflated view in array and return in GetView only view 
from array?

On Friday, July 23, 2010 9:36:06 AM UTC+4, Kumar Bibek wrote:

 WebViews are pretty heavy components. I don't see a situation where a 
 WebView cannot be replaced by a text view or a combination of other 
 compoenents. I still think this is a bad idea. I am sure, you wouldn't 
 be running scripts inside those web view items in your list, or do 
 you? 

 Thanks and Regards, 
 Kumar Bibek 
 http://tech-droid.blogspot.com 

 On Jul 23, 8:59 am, Ken ken0624...@gmail.com wrote: 
  I've implemented a list with each item as a WebView. The WebViews are 
  loaded in their own threads so the UI doesn't have to wait. 
  
  The problem I've ran into is after the list is loaded, some webview 
  items disappears or repeat after the list is scrolled. I've read posts 
  from Romain Guy and others about how this is a bad idea. Just 
  wondering if it's still a bad idea or a solution has been found since 
  Cupcake. 
  
  Thanks! 
  
  Ken

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Launch Behavior Issues, 2.3 vs. 4

2012-11-07 Thread Kostya Vasilyev
Evan,

Eclipse uses a slightly different intent when launching your app than the
Launcher does. The following are log lines from my current project.

Launcher:

11-07 22:39:50.309 I/AccountListActivity(25660): * onCreate: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x1020 cmp=org.kman.AquaMail/.ui.AccountListActivity
bnds=[520,585][680,785] }

Starting a debug session from Eclipse:

11-07 22:40:33.543 I/AccountListActivity(27935): * onCreate: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x1000 cmp=org.kman.AquaMail/.ui.AccountListActivity }

Note the difference in flags: 0x1020 vs 0x1000.

To work around, you could press back to finish your top activity
immediately after launching from Eclipse, then go back into the app from
Launcher. This will keep your debug session intact: the debugger will still
be attached, the breakpoints set.

-- K

2012/11/7 Evan Ruff evan.r...@gmail.com

 Hello all,

 I'm having some very frustrating and confusing issues getting my
 application to function as it has been. My application uses an Application
 object to hold a user object. This object is large and is loaded from the
 database and held in the Application singleton (MyApplication extends
 Application) by an async task in my .Splash activity. All activities
 subclass a BaseActivity that checks for the existence of this user. If the
 user is not present, it finish()es the activity and finishes all the way
 back to the Splash screen, where the user is loaded from the DB.

 The splash activity looks like this:
 activity
 android:name=.Splash
 android:label=@string/app_name
 android:screenOrientation=portrait 
 intent-filter
 action android:name=android.intent.action.MAIN /

 category android:name=android.intent.category.LAUNCHER
 /
 /intent-filter
 /activity

 This application has been deployed in various forms all the way since 1.5.
 In the past, let's say you were working in the application on an Activity
 four down the stack. You hit home/phone call/whatever and, when the
 application returns, the onResume activity picks up the user from the
 Application and everything works as normal. I am not getting this behavior
 anymore. On my MyTouch running 1.6, it works as expected. Whatever Activity
 was previously on top of the stack is loaded and onResume called.

 All of a sudden, I am not seeing that behavior.

 On my Galaxy Nexus, it does not work as expected. On the GNexus, if I hit
 HOME then hit the Launcher icon, sometimes, the Application is clobbered
 and the fall through happens. Other times, it goes right back to the
 launcher .Splash activity. If I hit HOME, then hit the recent apps, it
 works fine. Looking at LogCat output, it doesn't seem to try to resume at
 all if I hit the Launcher button.  I have tried launchMode=singleTop, but
 that doesn't seem to work.

 And here's even the crazier part... if I deploy the application from the
 debugger over ADB... WITHOUT ANY CODE CHANGES, I get the behavior I'm
 expecting and have gotten in the past. The last activity pops up as usual,
 onResume executed and the application can find the Application. This holds
 true even if I disconnect the debugger, restart the phone, and just use the
 application that way. The problem occurs when I compile, deploy and install
 the APK directly.

 I'm quite baffled by this behavior. Has anyone else had this sort of
 scenario?

 I'd appreciate any help anyone could provide.

 Thanks!

 Evan

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Launch Behavior Issues, 2.3 vs. 4

2012-11-07 Thread Evan Ruff
Hey Kostya,

Thanks for the reply. 

What are the differences in these flag?

Do you have any insight into how to make the production app perform the 
same Home  Launcher behvior as when it's production?

Thanks,

E

On Wednesday, November 7, 2012 1:47:09 PM UTC-5, Kostya Vasilyev wrote:

 Evan,

 Eclipse uses a slightly different intent when launching your app than the 
 Launcher does. The following are log lines from my current project.

 Launcher:

 11-07 22:39:50.309 I/AccountListActivity(25660): * onCreate: Intent { 
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1020 cmp=org.kman.AquaMail/.ui.AccountListActivity 
 bnds=[520,585][680,785] }

 Starting a debug session from Eclipse:

 11-07 22:40:33.543 I/AccountListActivity(27935): * onCreate: Intent { 
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1000 cmp=org.kman.AquaMail/.ui.AccountListActivity }

 Note the difference in flags: 0x1020 vs 0x1000.

 To work around, you could press back to finish your top activity 
 immediately after launching from Eclipse, then go back into the app from 
 Launcher. This will keep your debug session intact: the debugger will still 
 be attached, the breakpoints set.

 -- K

 2012/11/7 Evan Ruff evan...@gmail.com javascript:

 Hello all,

 I'm having some very frustrating and confusing issues getting my 
 application to function as it has been. My application uses an Application 
 object to hold a user object. This object is large and is loaded from the 
 database and held in the Application singleton (MyApplication extends 
 Application) by an async task in my .Splash activity. All activities 
 subclass a BaseActivity that checks for the existence of this user. If the 
 user is not present, it finish()es the activity and finishes all the way 
 back to the Splash screen, where the user is loaded from the DB.

 The splash activity looks like this:
 activity
 android:name=.Splash
 android:label=@string/app_name
 android:screenOrientation=portrait 
 intent-filter
 action android:name=android.intent.action.MAIN /

 category android:name=android.intent.category.LAUNCHER 
 /
 /intent-filter
 /activity

 This application has been deployed in various forms all the way since 
 1.5. In the past, let's say you were working in the application on an 
 Activity four down the stack. You hit home/phone call/whatever and, when 
 the application returns, the onResume activity picks up the user from the 
 Application and everything works as normal. I am not getting this behavior 
 anymore. On my MyTouch running 1.6, it works as expected. Whatever Activity 
 was previously on top of the stack is loaded and onResume called.

 All of a sudden, I am not seeing that behavior.

 On my Galaxy Nexus, it does not work as expected. On the GNexus, if I hit 
 HOME then hit the Launcher icon, sometimes, the Application is clobbered 
 and the fall through happens. Other times, it goes right back to the 
 launcher .Splash activity. If I hit HOME, then hit the recent apps, it 
 works fine. Looking at LogCat output, it doesn't seem to try to resume at 
 all if I hit the Launcher button.  I have tried launchMode=singleTop, but 
 that doesn't seem to work.

 And here's even the crazier part... if I deploy the application from the 
 debugger over ADB... WITHOUT ANY CODE CHANGES, I get the behavior I'm 
 expecting and have gotten in the past. The last activity pops up as usual, 
 onResume executed and the application can find the Application. This holds 
 true even if I disconnect the debugger, restart the phone, and just use the 
 application that way. The problem occurs when I compile, deploy and install 
 the APK directly.

 I'm quite baffled by this behavior. Has anyone else had this sort of 
 scenario?

 I'd appreciate any help anyone could provide.

 Thanks!

 Evan

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 group SMS android

2012-11-07 Thread Erik
You don't have to wait for each message to be sent before sending the next.

-Erik

On Saturday, November 3, 2012 12:20:01 AM UTC-7, Haris wrote:

 Hi

I need to crete an application like group messaging. For that I am 
 using SmsManager class. 

 MY code look like


 static ListString phone_num = new ArrayListString();static ListString 
 SMS = new ArrayListString();

@Overridepublic void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 readExcelFile(this, /sdcard/Excel.xls);
 View readExcelButton = findViewById(R.id.buttonSend);
 readExcelButton.setOnClickListener(this);
 }


   public void onClick(View v) {
 switch (v.getId()) {
 case R.id.buttonSend:
   for(int i=0;iphone_num.size();i++)
 {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phone_num.get(i),SMS.get(i), null, 
 null);
 }

   Toast.makeText(getBaseContext(), 
 Sendingfinished,Toast.LENGTH_SHORT).show();  


 break;
default: break;
 }
 }


 My question is, is it a right method for sending group sms. Or should I 
 create pendingIntent with broadcast receiver to monitor the sending process 
 and wait inside the for loop until each message send finished to send next. 

 Thanks in advance 




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] clone

2012-11-07 Thread Kristopher Micinski
I would say, rather fixing the bug.  Cloning a socket doesn't really
make as much sense as its also tied to an underlying file descriptor,
but why do you want to do this?  I'm not sure I see the use case.

kris

On Wed, Nov 7, 2012 at 1:33 PM, bob b...@coolfone.comze.com wrote:
 Let's say I want to create a clone of a BluetoothSocket object as a
 potential workaround for a bug.  Anyone know how 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Launch Behavior Issues, 2.3 vs. 4

2012-11-07 Thread Evan Ruff
So I found an edge case where I was calling finish() on my Launcher 
activity. This was causing the behavior I described above.

I'm still not sure why it's different for the emulator and for the actual 
running, but preliminary testing has indicated that it solves the issue... 
so far so good, will report back with findings if anything changes.

E

On Wednesday, November 7, 2012 2:12:08 PM UTC-5, Evan Ruff wrote:

 Hey Kostya,

 Thanks for the reply. 

 What are the differences in these flag?

 Do you have any insight into how to make the production app perform the 
 same Home  Launcher behvior as when it's production?

 Thanks,

 E

 On Wednesday, November 7, 2012 1:47:09 PM UTC-5, Kostya Vasilyev wrote:

 Evan,

 Eclipse uses a slightly different intent when launching your app than the 
 Launcher does. The following are log lines from my current project.

 Launcher:

 11-07 22:39:50.309 I/AccountListActivity(25660): * onCreate: Intent { 
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1020 cmp=org.kman.AquaMail/.ui.AccountListActivity 
 bnds=[520,585][680,785] }

 Starting a debug session from Eclipse:

 11-07 22:40:33.543 I/AccountListActivity(27935): * onCreate: Intent { 
 act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1000 cmp=org.kman.AquaMail/.ui.AccountListActivity }

 Note the difference in flags: 0x1020 vs 0x1000.

 To work around, you could press back to finish your top activity 
 immediately after launching from Eclipse, then go back into the app from 
 Launcher. This will keep your debug session intact: the debugger will still 
 be attached, the breakpoints set.

 -- K

 2012/11/7 Evan Ruff evan...@gmail.com

 Hello all,

 I'm having some very frustrating and confusing issues getting my 
 application to function as it has been. My application uses an Application 
 object to hold a user object. This object is large and is loaded from the 
 database and held in the Application singleton (MyApplication extends 
 Application) by an async task in my .Splash activity. All activities 
 subclass a BaseActivity that checks for the existence of this user. If the 
 user is not present, it finish()es the activity and finishes all the way 
 back to the Splash screen, where the user is loaded from the DB.

 The splash activity looks like this:
 activity
 android:name=.Splash
 android:label=@string/app_name
 android:screenOrientation=portrait 
 intent-filter
 action android:name=android.intent.action.MAIN /

 category 
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity

 This application has been deployed in various forms all the way since 
 1.5. In the past, let's say you were working in the application on an 
 Activity four down the stack. You hit home/phone call/whatever and, when 
 the application returns, the onResume activity picks up the user from the 
 Application and everything works as normal. I am not getting this behavior 
 anymore. On my MyTouch running 1.6, it works as expected. Whatever Activity 
 was previously on top of the stack is loaded and onResume called.

 All of a sudden, I am not seeing that behavior.

 On my Galaxy Nexus, it does not work as expected. On the GNexus, if I 
 hit HOME then hit the Launcher icon, sometimes, the Application is 
 clobbered and the fall through happens. Other times, it goes right back to 
 the launcher .Splash activity. If I hit HOME, then hit the recent apps, it 
 works fine. Looking at LogCat output, it doesn't seem to try to resume at 
 all if I hit the Launcher button.  I have tried launchMode=singleTop, but 
 that doesn't seem to work.

 And here's even the crazier part... if I deploy the application from the 
 debugger over ADB... WITHOUT ANY CODE CHANGES, I get the behavior I'm 
 expecting and have gotten in the past. The last activity pops up as usual, 
 onResume executed and the application can find the Application. This holds 
 true even if I disconnect the debugger, restart the phone, and just use the 
 application that way. The problem occurs when I compile, deploy and install 
 the APK directly.

 I'm quite baffled by this behavior. Has anyone else had this sort of 
 scenario?

 I'd appreciate any help anyone could provide.

 Thanks!

 Evan

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, 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] Camera Preview started in C++ but rendered to a Java surface

2012-11-07 Thread Bammer
Is the following possible (if so, how) :

I'd like to set up a layout in my java and add a view to it where the view 
contains a surfaceView for rendering the camera preview. But, I dont want 
to instantiate and start the camera in Java. I just want to set up the view 
so that I can keep the layout structure.

Then, I have a native C++ component accessed via JNI where I'd like to 
actually start the camera and have it's preview rendered in the SurfaceView 
mentioned above.

The reason for this setup is that I'd like to keep the layout that I 
defined in Java but access the camera and its preview frames in C++. I dont 
want to handle the preview frames in Java and then pass them to C++ as that 
is not efficient.

The other option would be to set up my java layout in C++, but not sure if 
that is even possible ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] breakpoints ignored

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 10:28 AM, bob b...@coolfone.comze.com wrote:

 Can someone please help me understand this?


This has nothing to do with Android development specifically. Try a Google
search or consult an Eclipse group or forum.

-
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] Launch Behavior Issues, 2.3 vs. 4

2012-11-07 Thread Evan Ruff
And... I spoke too soon.

When I exported the application and installed it on the device, it goes 
back to the wonky launch behavior...

E

On Wednesday, November 7, 2012 2:54:44 PM UTC-5, Evan Ruff wrote:

 So I found an edge case where I was calling finish() on my Launcher 
 activity. This was causing the behavior I described above.

 I'm still not sure why it's different for the emulator and for the actual 
 running, but preliminary testing has indicated that it solves the issue... 
 so far so good, will report back with findings if anything changes.

 E

 On Wednesday, November 7, 2012 2:12:08 PM UTC-5, Evan Ruff wrote:

 Hey Kostya,

 Thanks for the reply. 

 What are the differences in these flag?

 Do you have any insight into how to make the production app perform the 
 same Home  Launcher behvior as when it's production?

 Thanks,

 E

 On Wednesday, November 7, 2012 1:47:09 PM UTC-5, Kostya Vasilyev wrote:

 Evan,

 Eclipse uses a slightly different intent when launching your app than 
 the Launcher does. The following are log lines from my current project.

 Launcher:

 11-07 22:39:50.309 I/AccountListActivity(25660): * onCreate: Intent 
 { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1020 cmp=org.kman.AquaMail/.ui.AccountListActivity 
 bnds=[520,585][680,785] }

 Starting a debug session from Eclipse:

 11-07 22:40:33.543 I/AccountListActivity(27935): * onCreate: Intent 
 { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
 flg=0x1000 cmp=org.kman.AquaMail/.ui.AccountListActivity }

 Note the difference in flags: 0x1020 vs 0x1000.

 To work around, you could press back to finish your top activity 
 immediately after launching from Eclipse, then go back into the app from 
 Launcher. This will keep your debug session intact: the debugger will still 
 be attached, the breakpoints set.

 -- K

 2012/11/7 Evan Ruff evan...@gmail.com

 Hello all,

 I'm having some very frustrating and confusing issues getting my 
 application to function as it has been. My application uses an Application 
 object to hold a user object. This object is large and is loaded from the 
 database and held in the Application singleton (MyApplication extends 
 Application) by an async task in my .Splash activity. All activities 
 subclass a BaseActivity that checks for the existence of this user. If the 
 user is not present, it finish()es the activity and finishes all the way 
 back to the Splash screen, where the user is loaded from the DB.

 The splash activity looks like this:
 activity
 android:name=.Splash
 android:label=@string/app_name
 android:screenOrientation=portrait 
 intent-filter
 action android:name=android.intent.action.MAIN /

 category 
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity

 This application has been deployed in various forms all the way since 
 1.5. In the past, let's say you were working in the application on an 
 Activity four down the stack. You hit home/phone call/whatever and, when 
 the application returns, the onResume activity picks up the user from the 
 Application and everything works as normal. I am not getting this behavior 
 anymore. On my MyTouch running 1.6, it works as expected. Whatever 
 Activity 
 was previously on top of the stack is loaded and onResume called.

 All of a sudden, I am not seeing that behavior.

 On my Galaxy Nexus, it does not work as expected. On the GNexus, if I 
 hit HOME then hit the Launcher icon, sometimes, the Application is 
 clobbered and the fall through happens. Other times, it goes right back to 
 the launcher .Splash activity. If I hit HOME, then hit the recent apps, it 
 works fine. Looking at LogCat output, it doesn't seem to try to resume at 
 all if I hit the Launcher button.  I have tried launchMode=singleTop, but 
 that doesn't seem to work.

 And here's even the crazier part... if I deploy the application from 
 the debugger over ADB... WITHOUT ANY CODE CHANGES, I get the behavior I'm 
 expecting and have gotten in the past. The last activity pops up as usual, 
 onResume executed and the application can find the Application. This holds 
 true even if I disconnect the debugger, restart the phone, and just use 
 the 
 application that way. The problem occurs when I compile, deploy and 
 install 
 the APK directly.

 I'm quite baffled by this behavior. Has anyone else had this sort of 
 scenario?

 I'd appreciate any help anyone could provide.

 Thanks!

 Evan

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com
 To unsubscribe from this group, 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: Geocoder causes IndexOutOfBoundsException

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 9:51 AM, bob b...@coolfone.comze.com wrote:

 The error comes about because it's returning the latter, *empty list*.

If his list were empty, it would hit his  1 check and never reach the
point at which the exception is thrown.

-
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] Webapp with in-app Billing

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 8:25 AM, Juan Manuel Rodriguez Castro 
lostuse...@gmail.com wrote:

 Thanks TreKing, i found the same information, but nothing about in-app
 billing at webapps. The Android API has no further information regarding
 this.


Well, I haven't used either, so take this with a grain of salt until
someone with better knowledge comes around, but I expect that the two are
mutually exclusive. I would think you'd have an app that is a shell for
your web app, in which you could implement in-app billing. Then you'd have
your web app where a user would have an account and would sign in, perhaps
with their Google Account. Then the app passes the in-app billing
information to the web app ... somehow. Good luck with the somehow =)

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: use monkeyrunner in windows7,the exception,[com.android.chimpchat.adb.AdbChimpDevice]java.net. SocketException: Software caused connection abort: recv failed

2012-11-07 Thread Diego Torres Milano
It looks like a bug...

On Wednesday, 7 November 2012 02:29:42 UTC-5, lincoln wrote:

 Sorry! I'm not sure the problem is a bug,so i post it here.

 You mean i should to add a new bug?

 Thank you!

 On Wednesday, November 7, 2012 3:04:38 PM UTC+8, Diego Torres Milano wrote:

 See http://source.android.com/source/life-of-a-bug.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] Webapp with in-app Billing

2012-11-07 Thread Ian Ni-Lewis
I guess it depends on what you mean by Web App. If you are talking about 
a purely Web-driven application that the user gets to by browsing to your 
website in Chrome or another browser, then you don't need to do anything 
special for Android.

I suspect, however, that you are talking about an Android app where most of 
the logic is in Javascript running in a WebView. In this case, you must 
have an Activity that created the WebView. This Activity is the logical 
place to initiate in-app billing. You can't call the in-app billing API 
directly from Javascript, but you can write a Java method to do it and then 
inject that Java method into your Javascript using 
WebView.addJavascriptInterfacehttp://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,
 
java.lang.String). 
Ian


On Wednesday, November 7, 2012 12:42:32 PM UTC-8, TreKing wrote:

 On Wed, Nov 7, 2012 at 8:25 AM, Juan Manuel Rodriguez Castro 
 lostu...@gmail.com javascript: wrote:

 Thanks TreKing, i found the same information, but nothing about in-app 
 billing at webapps. The Android API has no further information regarding 
 this.


 Well, I haven't used either, so take this with a grain of salt until 
 someone with better knowledge comes around, but I expect that the two are 
 mutually exclusive. I would think you'd have an app that is a shell for 
 your web app, in which you could implement in-app billing. Then you'd have 
 your web app where a user would have an account and would sign in, perhaps 
 with their Google Account. Then the app passes the in-app billing 
 information to the web app ... somehow. Good luck with the somehow =)


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Converting existing activities into fragments

2012-11-07 Thread bob
Yes, the guide is right here:

*http://www.youtube.com/watch?v=TGXenxtDEGQ*


On Wednesday, November 7, 2012 6:40:59 AM UTC-6, Bajrang Asthana wrote:

 Hi ,

 Actually I want to add sliding functionality among existing activities. I 
 did some RD and found that we can do it using ViewPager. But to use 
 ViewPager I have to create my all activities into corresponding fragments. 
  Initially it looks that we can convert activity into fragment.

 Is there any guide how should we proceed?
  


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Geocoder causes IndexOutOfBoundsException

2012-11-07 Thread bob
I ran your code, and it works fine.

The only way it produces the error you described is by removing these lines:

if (addresses == null || addresses.size()  1)  {
return null;
}



On Sunday, November 4, 2012 6:59:09 AM UTC-6, Bevor wrote:

 I have the following class which returns a coordinate depending on the 
 street name I enter.

 public class CoordinateViaStreetNameFinder {
 private Geocoder geocoder;

 public CoordinateViaStreetNameFinder() {
 geocoder = new Geocoder(ApplicationContext.getAppContext(), 
 Locale.GERMAN);
 }
 
 public Coordinate find(String streetName, String streetNr) throws 
 IOException  {
 String searchPattern = streetName + ,  + streetNr + , AT;
 
 ListAddress addresses = 
 geocoder.getFromLocationName(searchPattern, 1);
 
 if (addresses == null || addresses.size()  1)  {
 return null;
 }
 
 return new Coordinate(addresses.get(0).getLongitude(), 
 addresses.get(0).getLatitude());
 }
 }

 This works for valid street names. When I enter an invalid street name 
 like foobar street, I run into this exception, when the app tries to 
 execute the if statement:

 java.lang.IndexOutOfBoundsException: Invalid location 0, size is 0
 at java.util.ArrayList.get(ArrayList.java:341)

 I'm a bit confused since getFromLocationName should return by definition 
 null or empty list. How does this error come then? I invoke this method in 
 a Android JUnit test:
 This test works:

 public void testValidResult() throws IOException {
 CoordinateViaStreetNameFinder coordinateViaStreetNameFinder = new 
 CoordinateViaStreetNameFinder();
 
 Coordinate coordinate = 
 coordinateViaStreetNameFinder.find(stephansplatz, 1);
 
 assertEquals(16, (int)(coordinate.getLongitude()));
 assertEquals(48, (int)(coordinate.getLatitude()));
 }

 This test produces the error.
 
 public void testInvalidResult() throws IOException {
 CoordinateViaStreetNameFinder coordinateViaStreetNameFinder = new 
 CoordinateViaStreetNameFinder();
 
 Coordinate coordinate = coordinateViaStreetNameFinder.find(foobar 
 street, 1);
 
 assertNull(coordinate);
 }

 What's wrong here?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Non-responsive Activity on Back

2012-11-07 Thread Dandre Allison
I have an account picker Activity modelled after the iosched 
AccountActivity, but for my app's custom accounts. When I press the add 
account action it launches a connect account Activity for that custom 
account. If I press back from here (trying on Nexus 7 Android 4.1) I come 
back to what looks like my AccountActivity screen, but with one important 
difference - it's just a still, non-responsive screen. I'm using ABS 4.2 if 
that could affect anything. Somehow if I just press back once more, nothing 
visually changes (no screen refresh of any sort), but the screen is 
responsive again. Any ideas what I could look for to resolve this? I added 
a test button to my layout to see if the whole screen was non-responsive, 
or if it was just the add account action.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What happens in android device.If gps is working for a long time continously (more than 5 hours)

2012-11-07 Thread lbendlin
Ah, but there is a difference between having a question and question 
someone's motives/statements

http://dictionary.reference.com/browse/doubt?s=t

On Wednesday, November 7, 2012 11:48:38 AM UTC-5, Lew wrote:

 Doubt means precisely question in some dialects of English. Widen your 
 horizons.

 On Monday, November 5, 2012 11:09:27 AM UTC-8, lbendlin wrote:

 In order to doubt something, someone else must have made a statement. I 
 don't see that being the case.  You have a thought, or maybe even a 
 question.

 On Monday, November 5, 2012 4:38:23 AM UTC-5, SIVAKUMAR.J wrote:

 Dear All,

Im having one doubt.
What happens in android device.If gps is working for a long time 
 continously (more than 5 hours)
If Gps receiver gets heated and not working ?,
Location are not captured correclty.
All are welcome to give your ideas

 -- 
 *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 email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Non-responsive Activity on Back

2012-11-07 Thread Mark Murphy
Sounds like there is a transparent activity at the top of the stack,
or something along those lines, that has the foreground and therefore
steals input.

See if this recurs on the emulator. If it does, get the app in the
state where it is not responding to input, then bring up Hierarchy
View and see what turns up.

On Wed, Nov 7, 2012 at 7:56 PM, Dandre Allison dandre.alli...@gmail.com wrote:
 I have an account picker Activity modelled after the iosched
 AccountActivity, but for my app's custom accounts. When I press the add
 account action it launches a connect account Activity for that custom
 account. If I press back from here (trying on Nexus 7 Android 4.1) I come
 back to what looks like my AccountActivity screen, but with one important
 difference - it's just a still, non-responsive screen. I'm using ABS 4.2 if
 that could affect anything. Somehow if I just press back once more, nothing
 visually changes (no screen refresh of any sort), but the screen is
 responsive again. Any ideas what I could look for to resolve this? I added a
 test button to my layout to see if the whole screen was non-responsive, or
 if it was just the add account action.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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

Localized Android Question-and-Answer Sites: http://www.andglobe.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] Are multiple publisher accounts legal for branding or testing purposes?

2012-11-07 Thread markusn82
Hi,

I was wondering if its legal for one company or person to create multiple 
Google Play publisher accounts for branding or testing purposes.

For example, lets say a company had a great reputation for making action 
titles and they wanted to create a new line of sports titles that are part 
of a separate brand within the same company. Would it be against the TOS 
for them to create a new publisher account for the sports titles so they 
can be distinguished from their action titles? 

Another example would be a company that wanted to launch a beta test for an 
experimental title without polluting their existing account. Would it be 
legal for them to open another account and upload it there?

I've read a couple of answers on Stack Overflow, but it would be nice to 
get an official answer.

Thanks,

Mark

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Best way to accomplish this

2012-11-07 Thread Kevin Brooks

Hi All,

Once before I designed a program that had a good sized text view. In the 
text view there was a variable value that changed periodically.  
Depending on the numerical value of this variable, I would change the 
background color attribute of the text view.


I am not sure this is the best way to accomplish the affect I want on 
the text view.  I did run into some issues where occasionally the system 
would display that a problem had occur and ask if the user wanted to 
Force Close the application.  This problem always seemed to occur when 
the background color was being changed.


Does anyone think they have a better way to accomplish this same affect?

Thanks in advance,
Kevin

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Are multiple publisher accounts legal for branding or testing purposes?

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 7:21 PM, markusn82 markus...@gmail.com wrote:

 I was wondering if its legal ...


Stop right there - this is a tech forum. You need a lawyer to answer this
question.


 Would it be against the TOS for them to create a new publisher account for
 the sports titles so they can be distinguished from their action titles?


Read the TOS, or get a lawyer to read it for you, and determine what you
will.


 Would it be legal for them to open another account and upload it there?


Again, questions of legality are for lawyers, not tech forums.


 I've read a couple of answers on Stack Overflow, but it would be nice to
 get an official answer.


The only thing that could be considered official would be a direct
statement from Google, and that's not going to happen. You need a lawyer or
your own interpretation of the TOS.

-
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] Best way to accomplish this

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 7:43 PM, Kevin Brooks bear35...@gmail.com wrote:

 I did run into some issues where occasionally the system would display
 that a problem had occur and ask if the user wanted to Force Close the
 application.  This problem always seemed to occur when the background color
 was being changed.


You had a bug. You could simply fix the bug rather than re-implement the
same solution.


  Does anyone think they have a better way to accomplish this same affect?


You described the effect in terms of how you solved the problem. So if you
wanted to change the background color of the text view when a variable
changed, then I, for one, don't know of a better way then to change the
background color when the variable changes.

Perhaps describe the effect you're going for in more functional and / or
visual terms?

-
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] Json Parsing

2012-11-07 Thread Sadhna Upadhyay
Hi everybody,
  Please tell me in detail about JSON parsing and why
it is used in 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] Json Parsing

2012-11-07 Thread TreKing
On Wed, Nov 7, 2012 at 9:32 PM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

 Please tell me in detail about JSON parsing and why it is used in Android.


You can get all this information and more on the inter-webbies.

-
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] Non-responsive Activity on Back

2012-11-07 Thread Dandre Allison
Hmm, thanks Mark, I'll test that. Don't know where the hidden Activity is
coming from.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Bitmap issue and Webview rendering issue in ICS

2012-11-07 Thread shiva pendem
Hi,

i have used this even but this doesnt make any difference on low end devices

we can see the difference on high end devices like S3 but we wont get the
issue of heap on those devices,  using this will make lots of drawbacks for
the device environment,

please refer to
http://stackoverflow.com/questions/7596950/android-heap-memory-increasewhich
has the same issue of larger heap

Thanks
Shiva

On Wed, Nov 7, 2012 at 9:24 PM, bob b...@coolfone.comze.com wrote:

 Have you tried this:

 android:largeHeap = “true”


 On Monday, November 5, 2012 2:15:05 PM UTC-6, sourabh deshpande wrote:

 Hi,

 1) I am developing an application which has very high quality image
 contents. To load these images asynchronously I am using

 https://github.com/nostra13/**Android-Universal-Image-Loaderhttps://github.com/nostra13/Android-Universal-Image-Loader

 This library has many options of using memory cache and disc cache. I am
 using memory cache in onCreateView() of fragment and clearing the memory
 cache in destroyView() of fragments. But still I am facing the
 OutOfMemoryException. I have even tried calling Bitmap.recycle() but no
 luck.What is the best way to clear the bitmap memory?

 2) The application has one local html5 component which is hosed in
 webview. The html component rendering is extremely slow in 4.0 and above. I
 have tested it with Galaxy Nexus. Its extremely slow. We can see each frame
 of animation. I have alredy tried enabling and disabling the hardware
 acceleration. But both does not work.How can I handle this?

 Sourabh Deshpande.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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