[android-developers] How to use a custom keyboard for the application

2012-08-03 Thread Reddy
Hi All,

I have created a custom keyboard for my application by taking the 
SoftKeyBoard sample example as the reference.
How can i use that custom keyboard in my application.

Requirement is like, when the application launches, i have use only my 
custom keyboard.
Please suggest me if anyone is having idea on this. Thanks in advance.

Regards,
Murali

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

2012-08-03 Thread hdxpete
the documentation states

Even if you only need to make changes to the patch expansion file, you 
must still update the APK in order for Google Play to perform an update. If 
you don't require code changes in the application, you should simply update 
the versionCode in the manifest.

but in our case a network error occured and we need to put the correct 
version into our console. any documentation on how to remove or reupload a 
obb file?

On Friday, August 3, 2012 9:44:46 AM UTC+9, hdxpete wrote:

 Am i in the correct group to be asking this question? If not would someone 
 be able to tell me which group to post to, to get an answer to this 
 question?

 Thank you

 On Thursday, August 2, 2012 4:51:24 PM UTC+9, hdxpete wrote:

 Ok. according to the documentation an expansion file can be upto 2 gigs 
 in size.

 well.. we are creating a game for android that will have a 1.5gig file. 
 when the person in charge of our google account uploaded the file to the 
 main an upload/network error occurred. the person then uploaded again to 
 what they thought was the main and apparently it went into the patch. 
 we did a quick review of the panel and there was no option to re-upload 
 into the main

 so a couple questions.
 1) Where can i tell this person to re-upload to main? 
 2) if i can't what happens if i an upload fails for the main and for 
 that patch?
 3) if 2 occurs do i have to make a new APK?

 any help is greatly appreciated.



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

[android-developers] How to compile Android APP for ARM v6?

2012-08-03 Thread arun kumar
How to compile Android APP for ARM v6?

We are developing an android application which has to be targeted only to
ARM v6 devices.

We use android SDK for Eclipse as our development environment.

When we explore the possibilities, we see, there are options to be set
during compilation when NDK is used.
 But we need to compile our Android App with SDK only.

-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

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

[android-developers] Re: How to compile Android APP for ARM v6?

2012-08-03 Thread RichardC
What in your application, compiled with only the SDK, makes you dependent 
on ARM v6?

On Friday, August 3, 2012 8:24:16 AM UTC+1, arunkumar wrote:

 How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only to 
 ARM v6 devices.

 We use android SDK for Eclipse as our development environment. 

 When we explore the possibilities, we see, there are options to be set 
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759



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

2012-08-03 Thread jtoms
I have phonegap+android application. I found one issue in Google nexus. 
When I click on input field (any input field) page fadein/ fadeout happens 
and splash screen is visible for a second.  I tested the application in 
samsung, htc devices. This issue is not reproducible in those devices. Only 
in Android Google Nexus 4.0 this issue is there. Is it because of phonegap 
or jquery mobile issue? Any has faced this kind of issue?

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

Re: [android-developers] want a app

2012-08-03 Thread fahad mullaji
*Prince*,

This group is for discussing issues faced while writing android programs.
If you want such apps you can always check in github,googlecode,codeproject
kind of websites.
Hope you find your app

*Thanks*
Fahad Mullaji

On Wed, Aug 1, 2012 at 12:18 PM, Prince Mehta mehta.prince...@gmail.comwrote:

 i just want a app which allow user to loack a file(like
 pictures,mp3,video,etc) in such a way that no one, except user, can delete
 it or share it from bluetooth or from other way.

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




-- 
Regards
Fahad Mullaji

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

2012-08-03 Thread galapogos


Hi,

I would like to be able to detect the launch of another app/activity from 
my service.

I was previously able to do this on gingerbread/froyo devices via 
inspection of logcat messages, specifically something like:

I/ActivityManager: Starting: Intent ... cmp=packagename} from pid 

Once I detect this, I would check the packagename for a match.

ICS has a slightly different log output for the launching of apps, but it 
still displayed something that can be detected and captured.

However, some phones such as the Samsung Galaxy S2 with ICS doesn't display 
this when apps are launched.

Yet, there are apps out there that are able to detect app/activity launches 
on the Galaxy S2, for example, Smart App Protector. I've looked at the apps 
permissions and it does request for access to logcat. However, what use is 
that if the phone doesn't print anything to logcat upon app/activity 
launches?

Additionally, APP Lock another similar app that is also able to detect app 
launches, but does not even request for logcat access permissions.

What are some possible ways that these apps are able to detect app launches?

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] want a app

2012-08-03 Thread Asheesh Arya
10x 4 d precious information

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

2012-08-03 Thread fahad mullaji
*Sebastian*,

I guess you don't want receiver to know that who has the SMS correct?
It will be bit difficult to do.As we use SmsManager class to send message
from android code.
You can download android package source code and get SmsManager.java file
that is source code for it.
See if you could make changes in it and achieve this.

Source code looks like this
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.6_r2/android/telephony/SmsManager.java

*Thanks*
Fahad Mullaji

On Thu, Aug 2, 2012 at 5:56 AM, Basti189 wolfsl...@googlemail.com wrote:

 Hello,

 I want to program an App which can send SMS with the special function. I
 want to modify the header that the receiver of the sms don't see my phone
 number but a number that you define in the App.
 My english is very bad, but I hope you can understand this.

 Yours

 Sebastian

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




-- 
Regards
Fahad Mullaji

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

[android-developers] Re: How to detect the launch of another application?

2012-08-03 Thread Pent
There are at least three recent threads on this, try a search.

Pent

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


Re: [android-developers] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-03 Thread TreKing
On Thu, Aug 2, 2012 at 11:14 PM, thejaswi s thejasw...@gmail.com wrote:

 In my application I want to calculate data when application is in
 foreground.


What data? What application?

-
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: photot compression format supported by ANdroid

2012-08-03 Thread Steve K.
Hello,
You should take a look at 
Bitmap.CompressFormathttp://developer.android.com/reference/android/graphics/Bitmap.CompressFormat.html
.
Regards


On Wednesday, August 1, 2012 11:40:17 AM UTC+2, nicodroid wrote:

 Hello,
 do you know what photo format are supported by Android 2.3 and 4.0? 
 jpeg, jpeg2000, tiff?
 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] Open Groupon app from a caller app.

2012-08-03 Thread TreKing
On Tue, Jul 31, 2012 at 11:39 AM, Vincent Senese vsenesen...@gmail.comwrote:

 I have written an app that opens up a Groupon URL via the web-browser.  is
 there anyway I could OPEN a groupon App if it is installed on the andoid
 os, and lanch the app to show the deal page.


Create a generic url for that deal page and launch it with a VIEW action
intent. If the Groupon app is coded correctly, it should have a filter for
that URL scheme and be presented as an option to the user. If not, contact
the Groupon people and tell them their app sucks.

-
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] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-03 Thread thejaswi s
Data usage per application. Based on uid I can take third party application
data usage from my app using 'TrafficStats' API. But this will get reset in
sertain condition. So is there any other way to take data usage per
application.

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

[android-developers] camera and image intents problems

2012-08-03 Thread Live Happy
My question consists of three parts:

1. how can i show the default gallery application when using
android.content.Intent.ACTION_GET_CONTENT, what i'm using now is to show a
custom intent chooser with static package names
(packageName.equals(com.google.android.gallery3d) ||
packageName.equals(com.cooliris.media)
  || packageName.equals(com.htc.album) ||
packageName.equals(com.sonyericsson.gallery), surely there must be
another way because i cannot possibly test on all phones

 2.i use this code :  Intent intent = new Intent();
  intent.setAction(android.content.Intent.ACTION_VIEW);
  intent.addCategory(android.content.Intent.CATEGORY_DEFAULT);
  intent.setDataAndType(imageUri, image/*); to show a photo, but when i
press back to return to my application it crashes, what is the problem?\

 3. to capture a photo using the camera, i use the following code :
 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
but in onActivityResult in my activity when i click save, the data
parameter is null, there is no uri of the image file, what am i doing wrong

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

Re: [android-developers] New Google Play Developer Program Policy Update

2012-08-03 Thread TreKing
On Wed, Aug 1, 2012 at 7:21 AM, Piotr Klimko piotr.b.kli...@gmail.comwrote:

 But I am afraid whether this violates the do not send repetitive content
 rule? Can somebody confirm please?


Please use the Google Play support channels for questions related to Google
Play.
http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601

-
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: provider, thread and async

2012-08-03 Thread sudam

 Hi friend,

You can take a static boolean variable globaly (boolean_var = false). and 
when ur database work finish you do it true.
In a different thread check continouslly by 
while(boolean_var){
dilog.dismiss();
}


On Friday, 3 August 2012 08:52:21 UTC+5:30, Petit wrote:

 Hello All, 

 I am new to android. I have been learning it few months till now. I am 
 trying with Content Provider and thread with sample code of searchable 
 dictionary few weeks ago. While loading the database I want to show 
 the progress bar instead of main layout. The main layout will display 
 only when dictionary finished its loading. 

 Thanks in advance for your  response. 

 Regards, 


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

Re: [android-developers] how to achieve the accuracy of google navigation

2012-08-03 Thread TreKing
On Wed, Aug 1, 2012 at 9:18 AM, bushido jdebus...@googlemail.com wrote:

 My question is: how do they do it?


You're probably not going to get an answer about what algorithms are used
by the Google Navigation application.

-
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] Supported locations for Android app merchants.

2012-08-03 Thread Andrei Bogdan
I was looking at this page:  
http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324topic=15867ctx=topic
and Hungary does not appear in the list as a valid country for creating a 
developer account

BUT, when I try and create an actual account, on the second page of this 
link https://play.google.com/apps/publish/signup , where the terms and 
conditions are, Hungary appears in the list !!

Can anyone clarify which list is the correct one? I've already started the 
necessary steps for creating a bank account in Hungary (i am from Romania). 
Have i wasted my time and money or not?

I'm really frustrated now :( If someone is 100% sure, please give me a 
response.

Very much appreciate it.

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

[android-developers] Re: Debugging

2012-08-03 Thread srikanth
thanks for this answer can you explain piratically...
thank you.  

On Wednesday, August 1, 2012 7:14:43 PM UTC+5:30, RichardC wrote:

 Read:
 http://developer.android.com/tools/debugging/debugging-projects.html 

 If you need more start somewhere else.

 On Wednesday, August 1, 2012 2:31:41 PM UTC+1, srikanth wrote:

 Dear all,
 can you explain how to debug my android application



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

[android-developers] Re: How to use a custom keyboard for the application

2012-08-03 Thread sudam
Hi friend,
SetOnclick llistener on ur All EditText  and and over ride 
onclick listener. 
 for your custom key board show your keyboard in dialogbox like this

 new Dialogcustomkeyboard(RtowRoutineActivity.this){
String str =;
  @Override
 public void onClick(View v) {  
  if(v == a){
str  +=a;
}

..
   edit.setText(str);
  
}
}.show;
 



On Friday, 3 August 2012 11:29:54 UTC+5:30, Reddy wrote:

 Hi All,

 I have created a custom keyboard for my application by taking the 
 SoftKeyBoard sample example as the reference.
 How can i use that custom keyboard in my application.

 Requirement is like, when the application launches, i have use only my 
 custom keyboard.
 Please suggest me if anyone is having idea on this. Thanks in advance.

 Regards,
 Murali


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

2012-08-03 Thread Tamás Kovács
Anyone?

It happens on ICS, Samsung Galaxy S3. The ScaleAnimation stutters when I 
get it.

On Thursday, July 26, 2012 2:09:51 AM UTC+2, Tamás Kovács wrote:

 My app keeps gets this error message often in logcat under the SKIA 
 tag: 

 FimgApiStretch:stretch failed 

 On some screens, it is contionously being logged, all the time. 


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

Re: [android-developers] Re: How to compile Android APP for ARM v6?

2012-08-03 Thread arun kumar
for to achieve scan functionality purpose.

On Fri, Aug 3, 2012 at 1:13 PM, RichardC richard.crit...@googlemail.comwrote:

 What in your application, compiled with only the SDK, makes you dependent
 on ARM v6?


 On Friday, August 3, 2012 8:24:16 AM UTC+1, arunkumar wrote:

 How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only to
 ARM v6 devices.

 We use android SDK for Eclipse as our development environment.

 When we explore the possibilities, we see, there are options to be set
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 --
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

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




-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

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

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 5:09 AM, Live Happy livehap...@gmail.com wrote:
 1. how can i show the default gallery application when using
 android.content.Intent.ACTION_GET_CONTENT, what i'm using now is to show a
 custom intent chooser with static package names
 (packageName.equals(com.google.android.gallery3d) ||
 packageName.equals(com.cooliris.media)
   || packageName.equals(com.htc.album) ||
 packageName.equals(com.sonyericsson.gallery), surely there must be another
 way because i cannot possibly test on all phones

Please allow the *user* to choose where the *user* wants to get the
image from on the *user's* device with the *user's* installed apps.

  2.i use this code :  Intent intent = new Intent();
   intent.setAction(android.content.Intent.ACTION_VIEW);
   intent.addCategory(android.content.Intent.CATEGORY_DEFAULT);
   intent.setDataAndType(imageUri, image/*); to show a photo, but when i
 press back to return to my application it crashes, what is the problem?\

Use adb logcat, DDMS, or the LogCat view in Eclipse to examine LogCat
and look at the stack trace associated with your crash.

  3. to capture a photo using the camera, i use the following code :
  Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
 but in onActivityResult in my activity when i click save, the data parameter
 is null, there is no uri of the image file, what am i doing wrong

You may not be doing anything wrong. The image should be at the
location you specified in file Uri.

-- 
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.0 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] How to use a custom keyboard for the application

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 1:59 AM, Reddy devireddy@gmail.com wrote:
 I have created a custom keyboard for my application by taking the
 SoftKeyBoard sample example as the reference.
 How can i use that custom keyboard in my application.

 Requirement is like, when the application launches, i have use only my
 custom keyboard.

That is not possible. The *user* gets to choose what the *user* wants
to use for entering information into your app. The *user* can, if the
*user* wants, elect to use your soft keyboard, but the *user* can
elect to use their default keyboard instead.

-- 
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.0 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] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 5:08 AM, thejaswi s thejasw...@gmail.com wrote:
 Data usage per application. Based on uid I can take third party application
 data usage from my app using 'TrafficStats' API. But this will get reset in
 sertain condition. So is there any other way to take data usage per
 application.

No.

-- 
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.0 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] save and pass date from ane activity to another activity

2012-08-03 Thread Sadhna Upadhyay
Hi everibidy,


 i am making an app in which i need to save date,and pass from one activity
to another


pls help me,



thanks
sadhana

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

2012-08-03 Thread Asheesh Arya
JUST GO THROUGH THIS LINK MIGHT BE IT HELPFUL FOR YOU!!
http://blog.dontneedcoffee.com/2010/03/android-passing-data-from-one-intent-to.html
http://sogacity.com/using-shared-preferences-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

[android-developers] Re: save and pass date from ane activity to another activity

2012-08-03 Thread imran ali
Hi
Convert Date to String and pass though in intent using putExtra(key,value).
and on other Activity in onCreate() , use getIntent().getExtra(Key).

Regards
Imran Ali

On Friday, August 3, 2012 4:04:20 PM UTC+5:30, Sadhna Upadhyay wrote:

 Hi everibidy,

 
  i am making an app in which i need to save date,and pass from one 
 activity to another


 pls help me,



 thanks
 sadhana


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

2012-08-03 Thread india123
Hi All,

I have two apk on android market, now i just want to open or install these 
apk's using one url, can anyone help me?

reply me as soon as 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] Re: How to compile Android APP for ARM v6?

2012-08-03 Thread RichardC


On Friday, August 3, 2012 11:15:16 AM UTC+1, arunkumar wrote:

 for to achieve scan functionality purpose.

This makes no sense. 

  


 On Fri, Aug 3, 2012 at 1:13 PM, RichardC 
 richard.crit...@googlemail.comwrote:

 What in your application, compiled with only the SDK, makes you dependent 
 on ARM v6?


 On Friday, August 3, 2012 8:24:16 AM UTC+1, arunkumar wrote:

 How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only 
 to ARM v6 devices.

 We use android SDK for Eclipse as our development environment. 

 When we explore the possibilities, we see, there are options to be set 
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

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




 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759



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

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 6:57 AM, india123 techvalens.test...@gmail.com wrote:
 I have two apk on android market, now i just want to open or install these
 apk's using one url, can anyone help me?

That is not directly possible.

If these apps depend on one another, and are useless without the
other, please combine them into a single app.

Otherwise, the best you can do is have one app open up the Play Store
page for the other app, based on user input or something.

-- 
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.0 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] how to install multiple apk using one url or link

2012-08-03 Thread india123
Hi,

Thanks for quick reply

i know the following ways to combine android applications:
1) using library project.
2) using intent call.

Is there any other way for combine application?

What happen if i have only apk of other application?
 



On Friday, August 3, 2012 4:49:11 PM UTC+5:30, Mark Murphy (a Commons Guy) 
wrote:

 On Fri, Aug 3, 2012 at 6:57 AM, india123 techvalens.test...@gmail.com 
 wrote: 
  I have two apk on android market, now i just want to open or install 
 these 
  apk's using one url, can anyone help me? 

 That is not directly possible. 

 If these apps depend on one another, and are useless without the 
 other, please combine them into a single app. 

 Otherwise, the best you can do is have one app open up the Play Store 
 page for the other app, based on user input or something. 

 -- 
 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.0 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] Opengl on Toshiba Qosmio X775?

2012-08-03 Thread Dancing Fingers
Hi guys,
I've played around with OpenGL on Android and I plan to pursue it further.  
I need a new laptop so I'm considering the 3D Toshiba Qosmio X775.  Does 
anyone know if OpenGL will work on the new 3D laptops?
Thanks.
Chris

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

Re: [android-developers] how to install multiple apk using one url or link

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 7:36 AM, india123 techvalens.test...@gmail.com wrote:
 i know the following ways to combine android applications:
 1) using library project.
 2) using intent call.

 Is there any other way for combine application?

Put the source code of one into the source code of the other, and
adjust accordingly.

 What happen if i have only apk of other application?

Then you make sure that you do not have a hard dependency upon that
other application, because the user is welcome to either not install
it, or uninstall it, at any point.

-- 
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.0 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] AlertDialog in Fragment

2012-08-03 Thread Sohan badaya
Hi I have a issue with AlertDialog in Fragment. 
I click on a button in fragment that will launch AlertDialog. Button will 
do some background work and after 2 second it will start AlertDialog. If in 
between before launching AlertDialog if I press back button my previous 
acticity is being displayed and then that Alertdialog launching. I want 
AlertDialog should not display if i press back button. If anyone has any 
idea please let me know.
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: How to compile Android APP for ARM v6?

2012-08-03 Thread goodG
open the file *CPU-ARCH-ABIS.html* in the folder *NDK_root_folder/docs*and 
read about the target 
*armeabi*

Il giorno venerdì 3 agosto 2012 09:24:16 UTC+2, arunkumar ha scritto:

 How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only to 
 ARM v6 devices.

 We use android SDK for Eclipse as our development environment. 

 When we explore the possibilities, we see, there are options to be set 
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759



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

2012-08-03 Thread agarg007
Hello friends;
I implement an ex of fragments in Android fm Vogella.com.
 
i want to do that my activity do not restart when our Orientation changes..
i use android:configChanges=keyboardHidden|orientation
 
in my manifest file and implement a onConfigChange method in our activity.
 
but it do not work.
 

hlep to sort out 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] Re: How to compile Android APP for ARM v6?

2012-08-03 Thread arun kumar
yeah already find out NDK possibilities. i need in android sdk provision

On Fri, Aug 3, 2012 at 5:49 PM, goodG arji...@gmail.com wrote:

 open the file *CPU-ARCH-ABIS.html* in the folder *NDK_root_folder/docs*and 
 read about the target
 *armeabi*

 Il giorno venerdì 3 agosto 2012 09:24:16 UTC+2, arunkumar ha scritto:

 How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only to
 ARM v6 devices.

 We use android SDK for Eclipse as our development environment.

 When we explore the possibilities, we see, there are options to be set
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 --
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

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




-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

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

2012-08-03 Thread Mark Murphy
You are much better served by handling configuration changes via
retained fragments, or onSaveInstanceState(), or
onRetainNonConfigurationInstance(). After all, there are many more
configuration changes than just those two.

On Fri, Aug 3, 2012 at 8:29 AM, agarg007 hctm.an...@gmail.com wrote:
 Hello friends;
 I implement an ex of fragments in Android fm Vogella.com.

 i want to do that my activity do not restart when our Orientation changes..
 i use android:configChanges=keyboardHidden|orientation

 in my manifest file and implement a onConfigChange method in our activity.

 but it do not work.


 hlep to sort out 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



-- 
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.0 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] Re: How to compile Android APP for ARM v6?

2012-08-03 Thread goodG
The SDK is platform agnostic, the code generated by the SDK is bytecode for 
the Dalvik, it relies on the Dalvik installed on the target system to be 
executed, you do not have to do nothing in particular when targeting 
different architecture.

It's the same concept with the Java applications and JVM.

Il giorno venerdì 3 agosto 2012 14:37:22 UTC+2, arunkumar ha scritto:

 yeah already find out NDK possibilities. i need in android sdk provision

 On Fri, Aug 3, 2012 at 5:49 PM, goodG arji...@gmail.com wrote:

 open the file *CPU-ARCH-ABIS.html* in the folder *NDK_root_folder/docs*and 
 read about the target 
 *armeabi*

 Il giorno venerdì 3 agosto 2012 09:24:16 UTC+2, arunkumar ha scritto:

  How to compile Android APP for ARM v6?

 We are developing an android application which has to be targeted only 
 to ARM v6 devices.

 We use android SDK for Eclipse as our development environment. 

 When we explore the possibilities, we see, there are options to be set 
 during compilation when NDK is used.
  But we need to compile our Android App with SDK only.

 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

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




 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759



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

2012-08-03 Thread Latimerius
On Fri, Aug 3, 2012 at 12:38 AM, Romain Guy romain...@android.com wrote:
 Well, keep in mind that you can't issue GL calls from a thread
 different than the rendering thread (well unless you play games with
 multiple EGL contexts sharing resources which doesn't even seem to
 work on the incomplete/buggy EGL implementation on Android).

 It works, WebView is (or used to) rely on this feature. You might be
 running into a driver specific bug though.

That's definitely good to hear, although very few people seem to know
how to achieve it.  I asked about it a few weeks ago, with no reply:

https://groups.google.com/forum/?fromgroups#!searchin/android-developers/egl/android-developers/BHH08ak8MRA/mXaHFPNKMl8J

It came up again a couple of days ago on android-ndk in this thread:

https://groups.google.com/forum/?fromgroups#!searchin/android-ndk/egl/android-ndk/V3VpH65tpqA/blOrbldg7j0J

The consensus seems to be it doesn't work.  Note also a link there to
a Mozilla dev blog post, he also comes to the conclusion context
sharing doesn't work on Android.

As far as a buggy driver goes - could be.  One thing I know is that
the failing behaviour was consistent across a bunch of Adreno
200/SGX540 devices with Android 2.1 or 2.2.  I'm not sure anymore if I
specifically tested it on Xoom/Honeycomb but if I did, it did not work
there either.

Is there a specific incantation to make it work?  From my reading of
the EGL spec, it should be as simple as passing the existing context
to eglMakeContext() as the shared context argument...

Thanks!

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


Re: [android-developers] Re: provider, thread and async

2012-08-03 Thread KHEM Sochenda
Hi,

Thank you. Do you mean a variable globally in the program? maybe in
the String? :)

I will try tonight.



On Fri, Aug 3, 2012 at 4:12 PM, sudam sudam.swa...@gmail.com wrote:

  Hi friend,

 You can take a static boolean variable globaly (boolean_var = false). and
 when ur database work finish you do it true.
 In a different thread check continouslly by
 while(boolean_var){
 dilog.dismiss();
 }


 On Friday, 3 August 2012 08:52:21 UTC+5:30, Petit wrote:

 Hello All,

 I am new to android. I have been learning it few months till now. I am
 trying with Content Provider and thread with sample code of searchable
 dictionary few weeks ago. While loading the database I want to show
 the progress bar instead of main layout. The main layout will display
 only when dictionary finished its loading.

 Thanks in advance for your  response.

 Regards,

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

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

2012-08-03 Thread ala hammad
i use  *CHOICE_MODE_MULTIPLE* and i think it is the same ViewHolder or not ؟
please help with this problem ..

On Friday, 3 August 2012 08:32:40 UTC+3, MagouyaWare wrote:

 ok how to handle recycling ??


 Use the ViewHolder pattern... And, if you don't know what that is I 
 strongly recommend Google.  I hear they have a pretty cool search page.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Thu, Aug 2, 2012 at 6:25 PM, ala hammad i...@live.de wrote:

 ok how to handle recycling ??


 On 1 August 2012 17:17, Justin Anderson magouyaw...@gmail.com wrote:

 Sounds like view recycling...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Wed, Aug 1, 2012 at 3:23 AM, ala hammad 3la2.7am...@gmail.comwrote:

 thanks for your answer but i am new in android and i don't understand 
 any thing and i don't know what design pattern to use ,,,


 On Wednesday, 1 August 2012 11:50:15 UTC+3, ala hammad wrote:

 hello all,
 i want to ask about check box list view ..
 i already make one but problem when do search operation for an element 
 in that list
 checked element rearrange ,example if i checked element 4 and after 
 search element 6 will checked .
  any idea to fix that ..

 best regard ..

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


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


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




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

2012-08-03 Thread Justin Anderson
You are going to have to post some code...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 7:11 AM, ala hammad 3la2.7am...@gmail.com wrote:

 i use  *CHOICE_MODE_MULTIPLE* and i think it is the same ViewHolder or
 not ؟
 please help with this problem ..


 On Friday, 3 August 2012 08:32:40 UTC+3, MagouyaWare wrote:

 ok how to handle recycling ??


 Use the ViewHolder pattern... And, if you don't know what that is I
 strongly recommend Google.  I hear they have a pretty cool search page.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Thu, Aug 2, 2012 at 6:25 PM, ala hammad i...@live.de wrote:

 ok how to handle recycling ??


 On 1 August 2012 17:17, Justin Anderson magouyaw...@gmail.com wrote:

 Sounds like view recycling...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware



 On Wed, Aug 1, 2012 at 3:23 AM, ala hammad 3la2.7am...@gmail.comwrote:

 thanks for your answer but i am new in android and i don't understand
 any thing and i don't know what design pattern to use ,,,


 On Wednesday, 1 August 2012 11:50:15 UTC+3, ala hammad wrote:

 hello all,
 i want to ask about check box list view ..
 i already make one but problem when do search operation for an
 element in that list
 checked element rearrange ,example if i checked element 4 and after
 search element 6 will checked .
  any idea to fix that ..

 best regard ..

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


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


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


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


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

2012-08-03 Thread RichardC
Just a comment on buggy drivers.  The EGL spec does not REQUIRE a driver 
to support any form of context sharing. It does ALLOW a driver to support 
context sharing if it has the resources (both hardware and software) to do 
so.  The driver is REQUIRED to return specific error codes if fails to do 
what was requested.

The implications of this are:

   - that a driver may choose not to allow context sharing at all.  If the 
   correct errors are returned, the driver is a conforming implementation.
   - on a particular device, calls to share contexts may succeed or fail 
   depending on the resources that have already been consumed by other 
   programs.
   


On Friday, August 3, 2012 1:49:52 PM UTC+1, Latimerius wrote:

 On Fri, Aug 3, 2012 at 12:38 AM, Romain Guy romain...@android.com 
 wrote: 
  Well, keep in mind that you can't issue GL calls from a thread 
  different than the rendering thread (well unless you play games with 
  multiple EGL contexts sharing resources which doesn't even seem to 
  work on the incomplete/buggy EGL implementation on Android). 
  
  It works, WebView is (or used to) rely on this feature. You might be 
  running into a driver specific bug though. 

 That's definitely good to hear, although very few people seem to know 
 how to achieve it.  I asked about it a few weeks ago, with no reply: 


 https://groups.google.com/forum/?fromgroups#!searchin/android-developers/egl/android-developers/BHH08ak8MRA/mXaHFPNKMl8J
  

 It came up again a couple of days ago on android-ndk in this thread: 


 https://groups.google.com/forum/?fromgroups#!searchin/android-ndk/egl/android-ndk/V3VpH65tpqA/blOrbldg7j0J
  

 The consensus seems to be it doesn't work.  Note also a link there to 
 a Mozilla dev blog post, he also comes to the conclusion context 
 sharing doesn't work on Android. 

 As far as a buggy driver goes - could be.  One thing I know is that 
 the failing behaviour was consistent across a bunch of Adreno 
 200/SGX540 devices with Android 2.1 or 2.2.  I'm not sure anymore if I 
 specifically tested it on Xoom/Honeycomb but if I did, it did not work 
 there either. 

 Is there a specific incantation to make it work?  From my reading of 
 the EGL spec, it should be as simple as passing the existing context 
 to eglMakeContext() as the shared context argument... 

 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: Debugging

2012-08-03 Thread bob
Aye. Click this icon in Eclipse: http://postimage.org/image/r1v4xift3/
It be a bug icon.
On Friday, August 3, 2012 4:51:00 AM UTC-5, srikanth wrote:

 thanks for this answer can you explain piratically...
 thank you.  

 On Wednesday, August 1, 2012 7:14:43 PM UTC+5:30, RichardC wrote:

 Read:
 http://developer.android.com/tools/debugging/debugging-projects.html 

 If you need more start somewhere else.

 On Wednesday, August 1, 2012 2:31:41 PM UTC+1, srikanth wrote:

 Dear all,
 can you explain how to debug my android application



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

2012-08-03 Thread Justin Anderson

 You can take a static boolean variable globaly (boolean_var = false). and
 when ur database work finish you do it true.

Global variables are generally a bad idea.

How are you initializing your database?  One thing that I've done before
for loading data is use an AsyncTask... Initialize your activity in the
loading state.  Use AsyncTask to initialize your database.  In the
onPostExecute() method of AsyncTask you can tell your activity to hide the
progressbar and show the normal view.


Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 6:55 AM, KHEM Sochenda khemsoche...@gmail.comwrote:

 Hi,

 Thank you. Do you mean a variable globally in the program? maybe in
 the String? :)

 I will try tonight.



 On Fri, Aug 3, 2012 at 4:12 PM, sudam sudam.swa...@gmail.com wrote:
 
   Hi friend,
 
  You can take a static boolean variable globaly (boolean_var = false). and
  when ur database work finish you do it true.
  In a different thread check continouslly by
  while(boolean_var){
  dilog.dismiss();
  }
 
 
  On Friday, 3 August 2012 08:52:21 UTC+5:30, Petit wrote:
 
  Hello All,
 
  I am new to android. I have been learning it few months till now. I am
  trying with Content Provider and thread with sample code of searchable
  dictionary few weeks ago. While loading the database I want to show
  the progress bar instead of main layout. The main layout will display
  only when dictionary finished its loading.
 
  Thanks in advance for your  response.
 
  Regards,
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

2012-08-03 Thread Justin Anderson
Code?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 6:08 AM, Sohan badaya sohan.bad...@gmail.com wrote:

 Hi I have a issue with AlertDialog in Fragment.
 I click on a button in fragment that will launch AlertDialog. Button will
 do some background work and after 2 second it will start AlertDialog. If in
 between before launching AlertDialog if I press back button my previous
 acticity is being displayed and then that Alertdialog launching. I want
 AlertDialog should not display if i press back button. If anyone has any
 idea please let me know.
 Thanks.

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

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

Re: [android-developers] checked listview

2012-08-03 Thread Vinothkumar Apparao
Old any one send me crab user manual for H
Kb

On Wednesday, August 1, 2012, ala hammad 3la2.7am...@gmail.com wrote:
 hello all,
 i want to ask about check box list view ..
 i already make one but problem when do search operation for an element in
that list
 checked element rearrange ,example if i checked element 4 and after
search element 6 will checked .
  any idea to fix that ..
 best regard ..

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

-- 


Thanks  Regards

Vinoth Kumar A



- - - - - - - - - -
Confidentiality Warning: This message and any attachments are intended
only for the use of the intended recipient(s), are confidential and may be
privileged. If you are not the intended recipient. you are hereby notified
that any review, re-transmission, conversion to hard copy, copying,
circulation or other use of this message and any attachments is strictly
prohibited. If you are not the intended recipient. please notify the sender
immediately by return email, and delete this message and any attachments
from your system.

Virus Warning: Although the company has taken reasonable precautions to
ensure no viruses are present in this email, the company cannot accept
responsibility for any loss or damage arising from the use of this email or
attachment.

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

2012-08-03 Thread bob
 

I doubt your phone service provider will allow you to spoof SMS messages.

On Wednesday, August 1, 2012 7:26:17 PM UTC-5, Basti189 wrote:

 Hello,

 I want to program an App which can send SMS with the special function. I 
 want to modify the header that the receiver of the sms don't see my phone 
 number but a number that you define in the App.
 My english is very bad, but I hope you can understand this.

 Yours

 Sebastian


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

2012-08-03 Thread AnDev Quer
Hi all,
 
I had heard something in the Google I/O sessions about being able to now 
use hardware devices to control emulators (touching and possible picture 
taking, etc). Is this true? If so, has anyone found how to do it?
 
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] Controlling Emulator with Hardware device?

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 10:11 AM, AnDev Quer bankp...@gmail.com wrote:
 I had heard something in the Google I/O sessions about being able to now use
 hardware devices to control emulators (touching and possible picture taking,
 etc). Is this true? If so, has anyone found how to do it?

http://tools.android.com/tips/hardware-emulation

I haven't tried it yet, and it is listed as experimental.

-- 
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.0 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] Overlay item in ImageView

2012-08-03 Thread Luiz Fernando Rodrigues
Thanks for your answer.
That's actually what I'm doing.

The problem with this approach is that once I render the component as a
popover it becomes part of the bitmap. It becomes painful to handle events
since I have to recognize the area in the image where the component was
rendered. Also I have to deal with pan and zoom, what changes the component
coordinates. I could handle all that using matrix transformations but the
code is becoming messy,

I was looking for another approach, similar  to the MapsAPI, (where I can
include ItemizedOverlay items), but now using to the maps API. Something
that allows work with my popover as a component.


2012/7/31 ashok chakravarthy ashoki...@gmail.com

 subclass the ImageView and draw overlay on onDraw and handle the touch
 events on onTouch

 On Wed, Jul 25, 2012 at 12:30 AM, Luiz Fernando Rodrigues 
 emaild...@gmail.com wrote:

 Hi,

 In my application I need to show a custom popover over an ImageView.
 This tutorial (
 http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/)
 teaches how to do it over an MapView.
 I made an adaptation drawing the popover component in the ImageView since
 the ItemizedOverlay belongs to the maps API.

 So far so good, but now I need to capture events in the popover and I'm
 questioning myself if thats the right way implement an popover over an
 ImageView.
 Could anyone point me to a right API to build this feature?

 Thanks a lot,
 Luiz


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


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

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

Re: [android-developers] LocationManager requestLocationUpdates minTime parameter not working

2012-08-03 Thread Sean Barbeau
Just wanted to close the loop on this thread:
This issue is being resolved in Android version 4.1 Jelly Bean and above 
with a new CtsVerifier CTS test that will cause a device to fail the test 
if it exhibits the behavior discussed above.  So, for Android devices Jelly 
Bean and above, this issue should be resolved.

Full discussion of this issue for anyone interested is at the original 
patch submission link:
https://android-review.googlesource.com/#/c/34230/ 

On Friday, April 6, 2012 1:11:34 PM UTC-4, Sean Barbeau wrote:

 StarTrax,
 Interesting, you're right, looks like something funky happened with the 
 embedded URLs for the links in my first post.  There also seemed to be an 
 issue with my first post getting stuck in the moderator queue (so sorry for 
 the double post), not sure if this is related.  If you use the links in the 
 second post the embedded URLs seem to work fine, or just copy and paste the 
 text of the link into your browser.

 For the GPS provider and platform, I'm referring to the Java-based 
 portion of Android.  For the GPS provider, here's the code:

 https://github.com/android/platform_frameworks_base/blob/master/services/java/com/android/server/location/GpsLocationProvider.java
  

 There's a method in the GpsLocationProvider that is called from native 
 code to tell the provider what the underlying capabilities of native code 
 are:

 https://github.com/android/platform_frameworks_base/blob/master/services/java/com/android/server/location/GpsLocationProvider.java#L1344
  

 Native code seems to be telling the Java portion of framework that the 
 native code will handle refreshing GPS at the minTime interval, so the Java 
 portion of Android is then hands-off on GPS scheduling.  But, native code 
 doesn't actually seem to be doing the job, and the 1Hz rate is the result 
 (I should note that I’ve also seen some device do other strange things, 
 like a 1Hz update for 13 seconds, then rest for minTime, then repeat).

 I believe the only native code related to GPS for AOSP is included in this 
 header file:

 https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/gps.h
  

 which means the implementation of this interface would be OEM-specific, 
 and not included in the Android project itself.  This link seems to confirm 
 that:
 http://www.kandroid.org/online-pdk/guide/gps.html

 From talking with others, I believe that the native code controlling the 
 GPS scheduling is provided by the GPS hardware manufacturer, such as 
 Broadcom for the Nexus S 4G:
 http://code.google.com/android/nexus/drivers.html

 If this is the code that has the problem, it would explain why it appears 
 in devices from multiple OEMs.

 I haven't done much with the NMEA listening capabilities of Android, but 
 would be interested in hearing more about differences between NMEA messages 
 and LocationListener output.

 Sean


 On Thursday, April 5, 2012 6:47:03 PM UTC-4, StarTraX wrote:

 Hey Sean,
 Thanks for your post. Seems like there is some intelligence out there 
 after all! 
 I tried to follow your links but hit an Office Outlook web access login 
 page, so couldn't progress. Is that me or is there a way through?

 When you refer to the GPS provider, I wonder what component you are 
 actually referring to? Could you direct me to some more reading on ...GPS 
 provider has two built-in scheduling modes...
 At the hardware layer, on my SGS11, the PVT data is provided by the CSR 
 SiRF chip, whose data page talks about the host SDK providing most of the 
 interface stuff. I have written to CSR to get some user specs on this 
 software, but have not made much progress to date. My guess is that the 
 implementation of the response to the requestLocationUpdates minTime 
 call is implemented by Samsung using that SDK.

 In an earlier versions of my code, I have seen my NMEA location listener 
 event being raised far less frequently than 1 Hz, in a pattern that 
 indicated some interaction with my speed and route - at highway speeds, in 
 a straight(ish) direction, it was firing at around 10 - 15 seconds. 
 Unfortunately I can't reproduce that behaviour (at that time I was wanting 
 exactly 1Hz response, so binned the code and started again!).
 Now I desperately want to return to that behaviour, but can't reproduce 
 it!

  

 On Thursday, March 29, 2012 2:22:02 AM UTC+11, Sean Barbeau wrote:

 Hi all,
 I've been working with the Android platform code lately, and had a 
 chance to look at this issue of the GPS provider ignoring the minTime 
 parameter on a number of devices more in depth.  The GPS provider has two 
 built-in scheduling modes, native and platform, that are designed to follow 
 the minTime parameter, so the problem isn't lack of capability in Android.
  
 After some research, I believe the issue stems from native code 
 reporting that it can handle GPS refresh scheduling, but then the native 
 code doesn't actually do the scheduling, effectively preventing the 

Re: [android-developers] Overlay item in ImageView

2012-08-03 Thread Nadeem Hasan
Use a FrameLayout with an ImageView and a TextView as children. Use a 
9-patch as the background of the TextView.

On Friday, August 3, 2012 10:26:36 AM UTC-4, Luiz Fernando Rodrigues wrote:

 Thanks for your answer. 
 That's actually what I'm doing.

 The problem with this approach is that once I render the component as a 
 popover it becomes part of the bitmap. It becomes painful to handle events 
 since I have to recognize the area in the image where the component was 
 rendered. Also I have to deal with pan and zoom, what changes the component 
 coordinates. I could handle all that using matrix transformations but the 
 code is becoming messy,

 I was looking for another approach, similar  to the MapsAPI, (where I can 
 include ItemizedOverlay items), but now using to the maps API. Something 
 that allows work with my popover as a component.


 2012/7/31 ashok chakravarthy ashoki...@gmail.com

 subclass the ImageView and draw overlay on onDraw and handle the touch 
 events on onTouch

  On Wed, Jul 25, 2012 at 12:30 AM, Luiz Fernando Rodrigues 
 emaild...@gmail.com wrote:

  Hi, 

 In my application I need to show a custom popover over an ImageView. 
 This tutorial (
 http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/)
  
 teaches how to do it over an MapView. 
 I made an adaptation drawing the popover component in the ImageView 
 since the ItemizedOverlay belongs to the maps API.

 So far so good, but now I need to capture events in the popover and I'm 
 questioning myself if thats the right way implement an popover over an 
 ImageView.
 Could anyone point me to a right API to build this feature?

 Thanks a lot,
 Luiz


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


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




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

[android-developers] Re: Overlay item in ImageView

2012-08-03 Thread bob
Sounds like maybe you want a toast.  However, it's hard to tell since you 
are probably using incorrect terminology.  

A popover is a light muffin made from a thin batter, which rises to form a 
hollow shell when baked.

If that's really what you want, I'd just place the muffin on the phone.



On Tuesday, July 24, 2012 2:00:48 PM UTC-5, Luiz Fernando Rodrigues wrote:

 Hi,

 In my application I need to show a custom popover over an ImageView. 
 This tutorial (
 http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/)
  
 teaches how to do it over an MapView. 
 I made an adaptation drawing the popover component in the ImageView since 
 the ItemizedOverlay belongs to the maps API.

 So far so good, but now I need to capture events in the popover and I'm 
 questioning myself if thats the right way implement an popover over an 
 ImageView.
 Could anyone point me to a right API to build this feature?

 Thanks a lot,
 Luiz




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

2012-08-03 Thread Kostya Vasilyev
A PopupWindow would be a good option too:

1 - it would use its own hardware surface, even on 2.*, so it's show / hide
animations, if any, won't disturb the other view

2 - it could be larger than the view it's attached to, if necessary...
 03.08.2012 18:37 пользователь Nadeem Hasan nha...@nadmm.com написал:

 Use a FrameLayout with an ImageView and a TextView as children. Use a
 9-patch as the background of the TextView.

 On Friday, August 3, 2012 10:26:36 AM UTC-4, Luiz Fernando Rodrigues wrote:

 Thanks for your answer.
 That's actually what I'm doing.

 The problem with this approach is that once I render the component as a
 popover it becomes part of the bitmap. It becomes painful to handle events
 since I have to recognize the area in the image where the component was
 rendered. Also I have to deal with pan and zoom, what changes the component
 coordinates. I could handle all that using matrix transformations but the
 code is becoming messy,

 I was looking for another approach, similar  to the MapsAPI, (where I can
 include ItemizedOverlay items), but now using to the maps API. Something
 that allows work with my popover as a component.


 2012/7/31 ashok chakravarthy ashoki...@gmail.com

 subclass the ImageView and draw overlay on onDraw and handle the touch
 events on onTouch

  On Wed, Jul 25, 2012 at 12:30 AM, Luiz Fernando Rodrigues 
 emaild...@gmail.com wrote:

  Hi,

 In my application I need to show a custom popover over an ImageView.
 This tutorial (http://www.techjini.com/blog/**2010/11/23/creating-a-**
 customized-popover-for-**mapview/http://www.techjini.com/blog/2010/11/23/creating-a-customized-popover-for-mapview/)
 teaches how to do it over an MapView.
 I made an adaptation drawing the popover component in the ImageView
 since the ItemizedOverlay belongs to the maps API.

 So far so good, but now I need to capture events in the popover and I'm
 questioning myself if thats the right way implement an popover over an
 ImageView.
 Could anyone point me to a right API to build this feature?

 Thanks a lot,
 Luiz


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


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


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

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

2012-08-03 Thread bob
 

Samsung Galaxy Tab 10.1 is 1280 x 800.

On Thursday, August 2, 2012 10:13:33 PM UTC-5, Sadhna Upadhyay wrote:

 Hi everybody,
  
 please tell me what is tablet size 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

[android-developers] Can't Get My First Hello World App To Work?

2012-08-03 Thread Daz
I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3).  I have 
setup a Gingerbread AVD (because the tuts I am following do so) and created 
an Android App within Eclipse (a simple preset hello world test app) and 
the AVD is completely breaks when I try and compile as an Android app.  The 
AVD either pops up in the dock then instantly disappears(crashes) or it 
loads up and does not boot my app and its nowhere to be seen in the virtual 
app list?  I have setup the same scenario on my Windows 7 based computer 
and that seems to work okay, but I am confused why its not working properly 
on the Mac (10.6.9  10.7.4)?

P.s. Either nothing shows in the console or I get too many errors all in 
red.

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

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-03 Thread Nobu Games
I'd go for interpolation and take the current average speed and the 
structure of the streets into account. That of course only works when you 
have something like a graph / vector representation of the streets and know 
how they are connected and what orientation they have.

It is also pretty common that even Google Navigation is off, especially on 
highways with exits. Sometimes the navigation draws the car following the 
highway even though you are already leaving on an exit.


On Wednesday, August 1, 2012 9:18:33 AM UTC-5, bushido wrote:

 Hi all, 

 I'm writing an application for android for which I need good position 
 accuracy, I use a Galaxy Nexus as test device. 

 My test application subscribes to location updates and draws a car 
 symbol in a map, the map is centered to the location of the car  
 rotates according to the bearing of the location (exactly like google 
 maps on android does). I noticed that when up to speed, the positions 
 don't match with reality, they lag behind considerably. 
 When I cross a street at 90km/h for example, it will take a few 
 seconds before the car on the map is also crossing that street. It 
 isn't an error in the map data, because when I'm standing still, the 
 car gets drawn on the correct location. Google maps for android shows 
 exactly the same behavior. 

 The position of the car in Google Navigate on the other hand matches 
 reality rather closely. I've noticed that the position updates are a 
 lot smoother as well. (10Hz rather than the 1Hz updates which you get 
 from GPS) 

 My question is: how do they do it? What I can think of is: 
 - using the phone's sensors (gyro  accelero) together with a kalman 
 filter or similar. But I can't see how you could make that work for 
 every phone, since not all phones have these sensors. 
 - interpolating, but in that case I would expect overshooting when 
 there is a sudden stop or a sharp corner 

 Thanks in advance. 
 Bushido 


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

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-03 Thread Nobu Games
In addition to what I said:

Google Navigation of course knows beforehand where to go so it can happily 
make strong assumptions about the car's position on the map. My observation 
of Google Navigation being off only holds true when you are leaving the 
planned route. Breaking the app's expectations gives some insight into the 
underlying algorithms.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Is there any other way to find traffic stats in android other than using trafficstats API?

2012-08-03 Thread Dan


On Friday, August 3, 2012 3:27:12 AM UTC-7, Mark Murphy (a Commons Guy) 
wrote:

 On Fri, Aug 3, 2012 at 5:08 AM, thejaswi s ... wrote: 
  Data usage per application. Based on uid I can take third party 
 application 
  data usage from my app using 'TrafficStats' API. But this will get reset 
 in 
  sertain condition. So is there any other way to take data usage per 
  application. 

 No. 


You could read from:

case TX:
sprintf(tcp_filename, /proc/uid_stat/%d/tcp_snd_pkt, uid);
sprintf(udp_filename, /proc/uid_stat/%d/udp_snd_pkt, uid);
break;
case RX:
sprintf(tcp_filename, /proc/uid_stat/%d/tcp_rcv_pkt, uid);
sprintf(udp_filename, /proc/uid_stat/%d/udp_rcv_pkt, uid);


in the same way that 
http://source-android.frandroid.com/frameworks/base/core/jni/android_net_TrafficStats.cpp
but odds are you don't want to, as it only works as a snapshot of live PIDs 
(which you have to match to UIDs to
packages) and you don't have a good trigger about when the pids will start 
or stop (unlike the public API which
the ActivityManager can tell to update before it shuts down a process) 
which will be probably more difficult to
solve than looking for the cases where the public API resets, and given 
that the issue you are probably dealing
with is related to this bug:

http://code.google.com/p/android/issues/detail?id=19938

the root cause of which isn't happening  in the .cpp - .java framework 
stuff but the data that fills the /proc filesystem
values (so even this alternate method will have the same issue) all that 
extra work will be without value.

Once that bug is fixed, the only reset should be on reboot, so make a 
broadcast receiver and give it a filter like:

IntentFilter intentf = new IntentFilter();
intentf.addAction(Intent.ACTION_REBOOT);
intentf.addAction(Intent.ACTION_SHUTDOWN);
intentf.addAction(android.intent.action.QUICKBOOT_POWEROFF);

so you can grab the TrafficStats with it's last values before it gets reset 
on the next boot.
 

  Dan S.

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

Re: [android-developers] Can't Get My First Hello World App To Work?

2012-08-03 Thread Justin Anderson
Will the AVD run if you start it manually without launching your app?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 9:35 AM, Daz daz1...@gmail.com wrote:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3).  I have
 setup a Gingerbread AVD (because the tuts I am following do so) and created
 an Android App within Eclipse (a simple preset hello world test app) and
 the AVD is completely breaks when I try and compile as an Android app.  The
 AVD either pops up in the dock then instantly disappears(crashes) or it
 loads up and does not boot my app and its nowhere to be seen in the virtual
 app list?  I have setup the same scenario on my Windows 7 based computer
 and that seems to work okay, but I am confused why its not working properly
 on the Mac (10.6.9  10.7.4)?

 P.s. Either nothing shows in the console or I get too many errors all in
 red.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Can't Get My First Hello World App To Work?

2012-08-03 Thread Justin Anderson
I'm running on OS X 10.7.4 and haven't had any issues...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 9:55 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Will the AVD run if you start it manually without launching your app?

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware



 On Fri, Aug 3, 2012 at 9:35 AM, Daz daz1...@gmail.com wrote:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3).  I have
 setup a Gingerbread AVD (because the tuts I am following do so) and created
 an Android App within Eclipse (a simple preset hello world test app) and
 the AVD is completely breaks when I try and compile as an Android app.  The
 AVD either pops up in the dock then instantly disappears(crashes) or it
 loads up and does not boot my app and its nowhere to be seen in the virtual
 app list?  I have setup the same scenario on my Windows 7 based computer
 and that seems to work okay, but I am confused why its not working properly
 on the Mac (10.6.9  10.7.4)?

 P.s. Either nothing shows in the console or I get too many errors all in
 red.

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

2012-08-03 Thread Daz


I am very new to Android Development and I cannot pursue a proper 
communication between Eclipse and the Android AVD, here is the info below:

I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have setup 
a Gingerbread AVD (because the tuts I am following do so) and created an 
Android App within Eclipse (a simple preset hello world test app). As 
soon as I compile, the AVD is completely breaks or fails to load. The AVD 
either pops up in the dock then instantly disappears(crashes) or it loads 
up and does not boot my app and its nowhere to be seen in the virtual app 
list? I have setup the same scenario on my Windows 7 based computer and 
that seems to work okay, but I am confused why its not working properly on 
the Mac (10.6.9  10.7.4)?

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

2012-08-03 Thread Justin Anderson
Ok, you just recently asked this exact same question...  I asked a
clarification question on the first thread that you started.  Please don't
post your question multiple times...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 9:57 AM, Daz daz1...@gmail.com wrote:

 I am very new to Android Development and I cannot pursue a proper
 communication between Eclipse and the Android AVD, here is the info below:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have
 setup a Gingerbread AVD (because the tuts I am following do so) and created
 an Android App within Eclipse (a simple preset hello world test app). As
 soon as I compile, the AVD is completely breaks or fails to load. The AVD
 either pops up in the dock then instantly disappears(crashes) or it loads
 up and does not boot my app and its nowhere to be seen in the virtual app
 list? I have setup the same scenario on my Windows 7 based computer and
 that seems to work okay, but I am confused why its not working properly on
 the Mac (10.6.9  10.7.4)?

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

2012-08-03 Thread Nicholas Campion
We use 'sp' density  preference scaled fonts throughout our app. We've 
noticed that this mechanism just doesn't seem to cut it on larger screen 
devices.  The issue is the distance someone uses a phone app from their 
eyeballs vs. the distance used for a tablet. In our admittedly unscientific 
research, the distance is about doubled. This coupled with the fact that, 
based on our support requests, not very many people know about the system 
font scaling properties leads us to think we need to find a better way to 
solve the problem.

Since this isn't really a 'density' issue and is more tied to the physical 
size of the device and, thus, the distance the device is held at, I'm 
wonder what the best systematic approach is to handling font sizes on 
physically larger screens? I'm willing to investigate some different 
mechanisms just looking for suggestions on what other people have found 
successful.

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

2012-08-03 Thread Justin Anderson
I noticed this myself...  What I do is specify my font sizes in a
res/values/dimens.xml file.  Then I also create a version of that file in
res/values-large.  Then I reference my font sizes as
@dimen/my_dimen_resource rather than using the sp value directly.

That way I can use larger font sizes on large screens and I only have to
set up the values once.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 10:15 AM, Nicholas Campion camp...@gmail.com wrote:

 We use 'sp' density  preference scaled fonts throughout our app. We've
 noticed that this mechanism just doesn't seem to cut it on larger screen
 devices.  The issue is the distance someone uses a phone app from their
 eyeballs vs. the distance used for a tablet. In our admittedly unscientific
 research, the distance is about doubled. This coupled with the fact that,
 based on our support requests, not very many people know about the system
 font scaling properties leads us to think we need to find a better way to
 solve the problem.

 Since this isn't really a 'density' issue and is more tied to the physical
 size of the device and, thus, the distance the device is held at, I'm
 wonder what the best systematic approach is to handling font sizes on
 physically larger screens? I'm willing to investigate some different
 mechanisms just looking for suggestions on what other people have found
 successful.

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

2012-08-03 Thread Mark Murphy
On Fri, Aug 3, 2012 at 12:24 PM, Justin Anderson magouyaw...@gmail.com wrote:
 I noticed this myself...  What I do is specify my font sizes in a
 res/values/dimens.xml file.  Then I also create a version of that file in
 res/values-large.  Then I reference my font sizes as
 @dimen/my_dimen_resource rather than using the sp value directly.

 That way I can use larger font sizes on large screens and I only have to set
 up the values once.

That seems like a good plan. You still should use sp units, though,
for both dimension resource values, for those handful of users who do
stumble upon the font scaling feature...

-- 
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.0 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] Samsung Galaxy S3 I2C Drivers Android

2012-08-03 Thread marcpolo
 

I'd like to access I2C drivers on my Samsung S3 GT19300 from an Android 
application.

Do I need to root the device to do this?

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] Tablet vs. Phone Font Size

2012-08-03 Thread Justin Anderson

 That seems like a good plan. You still should use sp units, though,
 for both dimension resource values, for those handful of users who do
 stumble upon the font scaling feature...


Yea, I probably wasn't too clear on that... All my font dimension resources
are defined in sp units.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 10:28 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Fri, Aug 3, 2012 at 12:24 PM, Justin Anderson magouyaw...@gmail.com
 wrote:
  I noticed this myself...  What I do is specify my font sizes in a
  res/values/dimens.xml file.  Then I also create a version of that file in
  res/values-large.  Then I reference my font sizes as
  @dimen/my_dimen_resource rather than using the sp value directly.
 
  That way I can use larger font sizes on large screens and I only have to
 set
  up the values once.

 That seems like a good plan. You still should use sp units, though,
 for both dimension resource values, for those handful of users who do
 stumble upon the font scaling feature...

 --
 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.0 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


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

[android-developers] how to get reference to GLSurfaceView's rendering thread?

2012-08-03 Thread Latimerius
Hm, where did you get that from?  I don't see anything optional about
the share_context param of the eglCreateContext() call in EGL spec.

Certainly I don't see anything in the spec that allowed for
eglCreateContext() with share_context!=EGL_NO_CONTEXT to return a new
context with no error, but subsequent eglMakeCurrent() on that context
to fail with BAD_MATCH.

The resources argument does not make much sense either - at least not
in my case if you take into account that a procedure that is identical
except that it does *NOT* attempt to share resources runs just fine,
with no errors (but is slow obviously as it has to re-upload all the
resources that should have been shared).

On Fri, Aug 3, 2012 at 3:41 PM, RichardC richard.crit...@googlemail.com wrote:
 Just a comment on buggy drivers.  The EGL spec does not REQUIRE a driver
 to support any form of context sharing. It does ALLOW a driver to support
 context sharing if it has the resources (both hardware and software) to do
 so.  The driver is REQUIRED to return specific error codes if fails to do
 what was requested.

 The implications of this are:

 that a driver may choose not to allow context sharing at all.  If the
 correct errors are returned, the driver is a conforming implementation.
 on a particular device, calls to share contexts may succeed or fail
 depending on the resources that have already been consumed by other
 programs.



 On Friday, August 3, 2012 1:49:52 PM UTC+1, Latimerius wrote:

 On Fri, Aug 3, 2012 at 12:38 AM, Romain Guy romain...@android.com wrote:
  Well, keep in mind that you can't issue GL calls from a thread
  different than the rendering thread (well unless you play games with
  multiple EGL contexts sharing resources which doesn't even seem to
  work on the incomplete/buggy EGL implementation on Android).
 
  It works, WebView is (or used to) rely on this feature. You might be
  running into a driver specific bug though.

 That's definitely good to hear, although very few people seem to know
 how to achieve it.  I asked about it a few weeks ago, with no reply:


 https://groups.google.com/forum/?fromgroups#!searchin/android-developers/egl/android-developers/BHH08ak8MRA/mXaHFPNKMl8J

 It came up again a couple of days ago on android-ndk in this thread:


 https://groups.google.com/forum/?fromgroups#!searchin/android-ndk/egl/android-ndk/V3VpH65tpqA/blOrbldg7j0J

 The consensus seems to be it doesn't work.  Note also a link there to
 a Mozilla dev blog post, he also comes to the conclusion context
 sharing doesn't work on Android.

 As far as a buggy driver goes - could be.  One thing I know is that
 the failing behaviour was consistent across a bunch of Adreno
 200/SGX540 devices with Android 2.1 or 2.2.  I'm not sure anymore if I
 specifically tested it on Xoom/Honeycomb but if I did, it did not work
 there either.

 Is there a specific incantation to make it work?  From my reading of
 the EGL spec, it should be as simple as passing the existing context
 to eglMakeContext() as the shared context argument...

 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] Problems with AVD loading my app

2012-08-03 Thread Darryl Griffiths
Im sorry for that its just i made some grammatical errors plus my first
initial question didn't show up until today. Sorry what was your
clarification question?
On Aug 3, 2012 5:03 PM, Justin Anderson magouyaw...@gmail.com wrote:

 Ok, you just recently asked this exact same question...  I asked a
 clarification question on the first thread that you started.  Please don't
 post your question multiple times...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 9:57 AM, Daz daz1...@gmail.com wrote:

 I am very new to Android Development and I cannot pursue a proper
 communication between Eclipse and the Android AVD, here is the info below:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have
 setup a Gingerbread AVD (because the tuts I am following do so) and created
 an Android App within Eclipse (a simple preset hello world test app). As
 soon as I compile, the AVD is completely breaks or fails to load. The AVD
 either pops up in the dock then instantly disappears(crashes) or it loads
 up and does not boot my app and its nowhere to be seen in the virtual app
 list? I have setup the same scenario on my Windows 7 based computer and
 that seems to work okay, but I am confused why its not working properly on
 the Mac (10.6.9  10.7.4)?

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


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

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

Re: [android-developers] Problems with AVD loading my app

2012-08-03 Thread Justin Anderson
Are you able to launch the AVD manually without trying to send your app to
it?  I'm trying to isolate whether it is a problem with the AVD or
something else...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 11:00 AM, Darryl Griffiths daz1...@gmail.com wrote:

 Im sorry for that its just i made some grammatical errors plus my first
 initial question didn't show up until today. Sorry what was your
 clarification question?
 On Aug 3, 2012 5:03 PM, Justin Anderson magouyaw...@gmail.com wrote:

 Ok, you just recently asked this exact same question...  I asked a
 clarification question on the first thread that you started.  Please don't
 post your question multiple times...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 9:57 AM, Daz daz1...@gmail.com wrote:

 I am very new to Android Development and I cannot pursue a proper
 communication between Eclipse and the Android AVD, here is the info below:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have
 setup a Gingerbread AVD (because the tuts I am following do so) and created
 an Android App within Eclipse (a simple preset hello world test app). As
 soon as I compile, the AVD is completely breaks or fails to load. The AVD
 either pops up in the dock then instantly disappears(crashes) or it loads
 up and does not boot my app and its nowhere to be seen in the virtual app
 list? I have setup the same scenario on my Windows 7 based computer and
 that seems to work okay, but I am confused why its not working properly on
 the Mac (10.6.9  10.7.4)?

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


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

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


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

[android-developers] Re: how to get reference to GLSurfaceView's rendering thread?

2012-08-03 Thread RichardC
P44
If the OpenGL or OpenGL ES server context state for share context exists in
an address space that cannot be shared with the newly created context, if 
share -
context was created on a different display than the one referenced by 
config, or if
the contexts are otherwise incompatible (for example, one context being 
associated
with a hardware device driver and the other with a software renderer), then 
an
EGL_BAD_MATCH error is generated. If the server does not have enough 
resources
to allocate the new context, then an EGL_BAD_ALLOC error is generated.

On Friday, August 3, 2012 5:52:56 PM UTC+1, Latimerius wrote:

 Hm, where did you get that from?  I don't see anything optional about 
 the share_context param of the eglCreateContext() call in EGL spec. 

 Certainly I don't see anything in the spec that allowed for 
 eglCreateContext() with share_context!=EGL_NO_CONTEXT to return a new 
 context with no error, but subsequent eglMakeCurrent() on that context 
 to fail with BAD_MATCH. 

 The resources argument does not make much sense either - at least not 
 in my case if you take into account that a procedure that is identical 
 except that it does *NOT* attempt to share resources runs just fine, 
 with no errors (but is slow obviously as it has to re-upload all the 
 resources that should have been shared). 

 On Fri, Aug 3, 2012 at 3:41 PM, RichardC richard.crit...@googlemail.com 
 wrote: 
  Just a comment on buggy drivers.  The EGL spec does not REQUIRE a 
 driver 
  to support any form of context sharing. It does ALLOW a driver to 
 support 
  context sharing if it has the resources (both hardware and software) to 
 do 
  so.  The driver is REQUIRED to return specific error codes if fails to 
 do 
  what was requested. 
  
  The implications of this are: 
  
  that a driver may choose not to allow context sharing at all.  If the 
  correct errors are returned, the driver is a conforming implementation. 
  on a particular device, calls to share contexts may succeed or fail 
  depending on the resources that have already been consumed by other 
  programs. 
  
  
  
  On Friday, August 3, 2012 1:49:52 PM UTC+1, Latimerius wrote: 
  
  On Fri, Aug 3, 2012 at 12:38 AM, Romain Guy romain...@android.com 
 wrote: 
   Well, keep in mind that you can't issue GL calls from a thread 
   different than the rendering thread (well unless you play games with 
   multiple EGL contexts sharing resources which doesn't even seem to 
   work on the incomplete/buggy EGL implementation on Android). 
   
   It works, WebView is (or used to) rely on this feature. You might be 
   running into a driver specific bug though. 
  
  That's definitely good to hear, although very few people seem to know 
  how to achieve it.  I asked about it a few weeks ago, with no reply: 
  
  
  
 https://groups.google.com/forum/?fromgroups#!searchin/android-developers/egl/android-developers/BHH08ak8MRA/mXaHFPNKMl8J
  
  
  It came up again a couple of days ago on android-ndk in this thread: 
  
  
  
 https://groups.google.com/forum/?fromgroups#!searchin/android-ndk/egl/android-ndk/V3VpH65tpqA/blOrbldg7j0J
  
  
  The consensus seems to be it doesn't work.  Note also a link there to 
  a Mozilla dev blog post, he also comes to the conclusion context 
  sharing doesn't work on Android. 
  
  As far as a buggy driver goes - could be.  One thing I know is that 
  the failing behaviour was consistent across a bunch of Adreno 
  200/SGX540 devices with Android 2.1 or 2.2.  I'm not sure anymore if I 
  specifically tested it on Xoom/Honeycomb but if I did, it did not work 
  there either. 
  
  Is there a specific incantation to make it work?  From my reading of 
  the EGL spec, it should be as simple as passing the existing context 
  to eglMakeContext() as the shared context argument... 
  
  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] How to READ the option menu text color

2012-08-03 Thread Spiral123
OK...my second attempt to find the device value of 
textColorPrimaryDisableOnly:

TypedArray a = getTheme().obtainStyledAttributes(android.R.style.Theme, new 
 int[] {android.R.attr.textColorPrimaryInverse}); 

 int attributeResourceId = a.getResourceId(0, 0);


 int menuTextColor = getResources().getColor(attributeResourceId);

 String  strMenuTextColor  = Integer.toHexString(menuTextColor);


This unfortunately returns the same value on all devices.

My attempt at reflection didn't seem to work either:

Class myClass = Class.forName(android.R$styleable);

 int mTextColor = 
 myClass.getField(Theme_textColorPrimaryInverse).getInt(myClass);



Looking for the background 9-patch was no more successful - I couldn't find 
where menu_background_fill_parent_width.9.png is stored.

I did find android.R.drawable.ic_menu_more (the 'more' button that shows up 
if you have  6 menu items).  I can sample the pixels on this and - hooray! 
- the color range is different.  Unfortunately not different enough to be 
unambiguous in all situations and the approach is too wacky for comfort 
anyway.

Anyone have any other ideas for reading the value of 
textColorPrimaryDisableOnly? 


On Thursday, August 2, 2012 7:29:59 PM UTC-4, Kostya Vasilyev wrote:


 03.08.2012 3:00 пользователь Spiral123 написал:
 
  Thanks Kostya,
 
  it looks like Widget.TextView.PopupMenu leads to 
 textColorPrimaryDisableOnly. 

 It does in the stock platform, but not necessarily on other devices. It 
 could be @color/your_eyes_will_bleed_from_this_magenta on some especially 
 colorful one :) 

  If I try to read the value of this using the code:
 
  TypedValue value = new TypedValue();
 
  
 getTheme().resolveAttribute(android.R.attr.textColorPrimaryDisableOnly, 
 value, true);
 
 
  int menuTextColor = getResources().getColor(value.resourceId);
 
 
  I get the same value if I try a Samsung phone or an HTC phone (which 
 have white and black option menu backgrounds).

 Of course you do - you're reading the value of textColorPrimaryDisableOnly 
 attribute from the activity's theme. 

 Try getting the textAppeareance attribute from the style (name spelled out 
 below), not from the theme. 

 
  I think the menu_background_fill_parent_width leads to a 9-patch png and 
 I'm not sure which pixel to pull out of it and how to do that in order to 
 read its color.

 That would be my plan B. 

 Isn't there some sort of getPixelColor on a nine patch drawable? If not, 
 try rendering it to a canvas and reading a pixel value from there.

 Again, you will want to get this drawable from the style - a manufacturer 
 could keep the original drawable in place, add a new one, and change the 
 reference (style attribute). 

 
 
  On Thursday, August 2, 2012 4:35:16 PM UTC-4, Kostya Vasilyev wrote:
 
  Take look in the platform's styles.xml and themes.xml.
 
  These sound somewhat promising:
 
  style name=Widget.TextView.PopupMenu
  item name=android:clickabletrue/item
  item 
 name=android:textAppearance@style/TextAppearance.Widget.TextView.PopupMenu/item
  /style
 
  style name=Widget.PopupMenu parent=Widget.ListPopupWindow
  /style
 
  Looking in PhoneWindow.java (in the framework, under 
 base/policy/src/...) should be useful too - the legacy (pre-action bar) 
 menu implementation is here.
 
  And I just looked there myself, and it looks like the code uses 
 this attribute from the current theme:
 
  item 
 name=panelFullBackground@android:drawable/menu_background_fill_parent_width/item
 
  ... and so it makes sense that this attribute has the same value (as 
 above) in the legacy and both Holo themes (I've got 4.1.1 sources open 
 right now).
 
  -- K
 
  2012/8/3 Spiral123
 
  Hi all...
 
  Scratching my head here, need some help.
 
  I'm trying to read the option menu text color for the running device. 
  I'm not interested in trying to override the system menu behavior or 
 anything funky, my theory is that if I know what color the text is (or the 
 menu item background) then I will be able to display a custom dark or light 
 menu icon set for my options depending on how the manufacturer has themed 
 the option menu on their particular device.
 
  I don't mind if I need to look internally to source variables as I'm 
 only interested in getting this for the 2.2 and 2.3 platforms: 2.1 and 
 below is not targeted and I'm not interested in displaying icons in the 3.0 
 overflow menu.  If I know how to get the value I can make sure that my code 
 won't break regardless of platform.
 
  Anyone been down this road before?
 
  Nick
 
  -- 
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 
  -- 
 

[android-developers] how to get reference to GLSurfaceView's rendering thread?

2012-08-03 Thread Latimerius
Okay, once more: eglCreateContext() returns WITH NO ERRORS and returns
a value != EGL_NO_CONTEXT.

On Fri, Aug 3, 2012 at 7:06 PM, RichardC richard.crit...@googlemail.com wrote:
 P44
 If the OpenGL or OpenGL ES server context state for share context exists in
 an address space that cannot be shared with the newly created context, if
 share -
 context was created on a different display than the one referenced by
 config, or if
 the contexts are otherwise incompatible (for example, one context being
 associated
 with a hardware device driver and the other with a software renderer), then
 an
 EGL_BAD_MATCH error is generated. If the server does not have enough
 resources
 to allocate the new context, then an EGL_BAD_ALLOC error is generated.

 On Friday, August 3, 2012 5:52:56 PM UTC+1, Latimerius wrote:

 Hm, where did you get that from?  I don't see anything optional about
 the share_context param of the eglCreateContext() call in EGL spec.

 Certainly I don't see anything in the spec that allowed for
 eglCreateContext() with share_context!=EGL_NO_CONTEXT to return a new
 context with no error, but subsequent eglMakeCurrent() on that context
 to fail with BAD_MATCH.

 The resources argument does not make much sense either - at least not
 in my case if you take into account that a procedure that is identical
 except that it does *NOT* attempt to share resources runs just fine,
 with no errors (but is slow obviously as it has to re-upload all the
 resources that should have been shared).

 On Fri, Aug 3, 2012 at 3:41 PM, RichardC richard.crit...@googlemail.com
 wrote:
  Just a comment on buggy drivers.  The EGL spec does not REQUIRE a
  driver
  to support any form of context sharing. It does ALLOW a driver to
  support
  context sharing if it has the resources (both hardware and software) to
  do
  so.  The driver is REQUIRED to return specific error codes if fails to
  do
  what was requested.
 
  The implications of this are:
 
  that a driver may choose not to allow context sharing at all.  If the
  correct errors are returned, the driver is a conforming implementation.
  on a particular device, calls to share contexts may succeed or fail
  depending on the resources that have already been consumed by other
  programs.
 
 
 
  On Friday, August 3, 2012 1:49:52 PM UTC+1, Latimerius wrote:
 
  On Fri, Aug 3, 2012 at 12:38 AM, Romain Guy romain...@android.com
  wrote:
   Well, keep in mind that you can't issue GL calls from a thread
   different than the rendering thread (well unless you play games with
   multiple EGL contexts sharing resources which doesn't even seem to
   work on the incomplete/buggy EGL implementation on Android).
  
   It works, WebView is (or used to) rely on this feature. You might be
   running into a driver specific bug though.
 
  That's definitely good to hear, although very few people seem to know
  how to achieve it.  I asked about it a few weeks ago, with no reply:
 
 
 
  https://groups.google.com/forum/?fromgroups#!searchin/android-developers/egl/android-developers/BHH08ak8MRA/mXaHFPNKMl8J
 
  It came up again a couple of days ago on android-ndk in this thread:
 
 
 
  https://groups.google.com/forum/?fromgroups#!searchin/android-ndk/egl/android-ndk/V3VpH65tpqA/blOrbldg7j0J
 
  The consensus seems to be it doesn't work.  Note also a link there to
  a Mozilla dev blog post, he also comes to the conclusion context
  sharing doesn't work on Android.
 
  As far as a buggy driver goes - could be.  One thing I know is that
  the failing behaviour was consistent across a bunch of Adreno
  200/SGX540 devices with Android 2.1 or 2.2.  I'm not sure anymore if I
  specifically tested it on Xoom/Honeycomb but if I did, it did not work
  there either.
 
  Is there a specific incantation to make it work?  From my reading of
  the EGL spec, it should be as simple as passing the existing context
  to eglMakeContext() as the shared context argument...
 
  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: how to achieve the accuracy of google navigation

2012-08-03 Thread Nadeem Hasan
That would be extrapolation. And that is actually the exact reason why the 
GPS lags on exits if they are off-route because it has extrapolated your 
position based on your route till the next actual GPS location update 
arrives. I have seen this behaviour with my Garmin device too when I decide 
not to follow the route.

On Friday, August 3, 2012 11:46:45 AM UTC-4, Nobu Games wrote:

 I'd go for interpolation and take the current average speed and the 
 structure of the streets into account. That of course only works when you 
 have something like a graph / vector representation of the streets and know 
 how they are connected and what orientation they have.

 It is also pretty common that even Google Navigation is off, especially on 
 highways with exits. Sometimes the navigation draws the car following the 
 highway even though you are already leaving on an exit.


 On Wednesday, August 1, 2012 9:18:33 AM UTC-5, bushido wrote: 

 Hi all, 

 I'm writing an application for android for which I need good position 
 accuracy, I use a Galaxy Nexus as test device. 

 My test application subscribes to location updates and draws a car 
 symbol in a map, the map is centered to the location of the car  
 rotates according to the bearing of the location (exactly like google 
 maps on android does). I noticed that when up to speed, the positions 
 don't match with reality, they lag behind considerably. 
 When I cross a street at 90km/h for example, it will take a few 
 seconds before the car on the map is also crossing that street. It 
 isn't an error in the map data, because when I'm standing still, the 
 car gets drawn on the correct location. Google maps for android shows 
 exactly the same behavior. 

 The position of the car in Google Navigate on the other hand matches 
 reality rather closely. I've noticed that the position updates are a 
 lot smoother as well. (10Hz rather than the 1Hz updates which you get 
 from GPS) 

 My question is: how do they do it? What I can think of is: 
 - using the phone's sensors (gyro  accelero) together with a kalman 
 filter or similar. But I can't see how you could make that work for 
 every phone, since not all phones have these sensors. 
 - interpolating, but in that case I would expect overshooting when 
 there is a sudden stop or a sharp corner 

 Thanks in advance. 
 Bushido 



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

2012-08-03 Thread bob
 

Where is this font scaling feature?  I looked all throughout settings on my 
Galaxy Tab, and I don't see one.


Thanks.




On Friday, August 3, 2012 11:28:15 AM UTC-5, Mark Murphy (a Commons Guy) 
wrote:

 On Fri, Aug 3, 2012 at 12:24 PM, Justin Anderson magouyaw...@gmail.com 
 wrote: 
  I noticed this myself...  What I do is specify my font sizes in a 
  res/values/dimens.xml file.  Then I also create a version of that file 
 in 
  res/values-large.  Then I reference my font sizes as 
  @dimen/my_dimen_resource rather than using the sp value directly. 
  
  That way I can use larger font sizes on large screens and I only have to 
 set 
  up the values once. 

 That seems like a good plan. You still should use sp units, though, 
 for both dimension resource values, for those handful of users who do 
 stumble upon the font scaling feature... 

 -- 
 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.0 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] Tablet vs. Phone Font Size

2012-08-03 Thread Nicholas Campion
On the nexus 7 its under settings-display.

On Friday, August 3, 2012 1:50:54 PM UTC-5, bob wrote:

 Where is this font scaling feature?  I looked all throughout settings on 
 my Galaxy Tab, and I don't see one.


 Thanks.


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

Re: [android-developers] Android instant messaging.

2012-08-03 Thread Kristopher Micinski
.., I second that.

kris

On Thu, Aug 2, 2012 at 3:25 PM, TreKing treking...@gmail.com wrote:
 On Tue, Jul 31, 2012 at 12:15 PM, Ian Buchanan ianx1...@gmail.com wrote:

 Android does not have an equivalent of BBM.


 It's called Google Talk

 -
 TreKing - Chicago transit tracking app for Android-powered devices


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

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


Re: [android-developers] Problems with AVD loading my app

2012-08-03 Thread Daz
Yes, I can create and launch my AVD 2.3.3 perfectly from opening the 
Android app within the tools folder from Mac Osx TerminaI.  I selected 
enable Snapshot when creating the virtual phone and then launched it to 
test.  Then I opened Eclipse, and basically used the android wizard to name 
everything appropriately, and save out to my regular JAVA folder, with just 
one BlankActivity.  I then located the MainActivity.java file within the 
src folder and opened it so its tab is open along side the 
activity_main.xml window.  Finally I select the MainActivity.java tab 
and ran as an Android App.  After that exact process, the emulator tries to 
open then just fails and nothing happens.  Eventually after repeating the 
latter I had a message in the output console stating: I could not start 
from Snapshot and the emulator was not set up for the correct API. 
 Subsequently, I tried accessing and launching the AVD through the Eclipse 
tool bar which again worked fine, and then deleted the 2.3.3 Gingerbread 
device in order to create a new 2.3.3 virtual device. Then I ran as an 
Android app and voila, the AVD launched.  Of course I had to wait for the 
virtual device to load from scratch, but then presto it fully loads but 
with no Hello World app, and no sign of this app within the virtual phones 
app list.  Finally I also received an error in the output console:

[2012-08-03 20:02:39 - Emulator] 2012-08-03 20:02:39.132 
emulator-arm[1052:80b] Warning once: This application, or a library it 
uses, is using NSQuickDrawView, which has been deprecated. Apps should 
cease use of QuickDraw and move to Quartz.

Something is seriously wrong as this was the same case when using the 
Indigo version 3.7, and I followed then same early processes from my 
tutorials on my PC and the emulator worked fine.

Thanks for getting back to me and I will be here to re explain anything 
that didn't make sense.

On Friday, August 3, 2012 6:04:02 PM UTC+1, MagouyaWare wrote:

 Are you able to launch the AVD manually without trying to send your app to 
 it?  I'm trying to isolate whether it is a problem with the AVD or 
 something else...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 11:00 AM, Darryl Griffiths daz1...@gmail.comwrote:

 Im sorry for that its just i made some grammatical errors plus my first 
 initial question didn't show up until today. Sorry what was your 
 clarification question?
 On Aug 3, 2012 5:03 PM, Justin Anderson magouyaw...@gmail.com wrote:

 Ok, you just recently asked this exact same question...  I asked a 
 clarification question on the first thread that you started.  Please don't 
 post your question multiple times...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 9:57 AM, Daz daz1...@gmail.com wrote:

 I am very new to Android Development and I cannot pursue a proper 
 communication between Eclipse and the Android AVD, here is the info below:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have 
 setup a Gingerbread AVD (because the tuts I am following do so) and 
 created 
 an Android App within Eclipse (a simple preset hello world test app). As 
 soon as I compile, the AVD is completely breaks or fails to load. The AVD 
 either pops up in the dock then instantly disappears(crashes) or it loads 
 up and does not boot my app and its nowhere to be seen in the virtual app 
 list? I have setup the same scenario on my Windows 7 based computer and 
 that seems to work okay, but I am confused why its not working properly on 
 the Mac (10.6.9  10.7.4)?
  
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

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




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe 

Re: [android-developers] Tablet vs. Phone Font Size

2012-08-03 Thread String
I believe that it was only exposed to the user in ICS. The sp unit existed 
before then, but there wasn't a UI to affect it. 

String 

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

2012-08-03 Thread bob
What is the best way to create an animated button on Android?

Basically, I want it to glow with an intensity that undulates over time.

Of course, I could stick invalidate(); in onDraw, but that would be bad 
probably.



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

2012-08-03 Thread Justin Anderson
Interesting... I've never enabled snapshots before.  Have you tried with an
AVD that doesn't have that enabled?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, Aug 3, 2012 at 1:27 PM, Daz daz1...@gmail.com wrote:

 Yes, I can create and launch my AVD 2.3.3 perfectly from opening the
 Android app within the tools folder from Mac Osx TerminaI.  I selected
 enable Snapshot when creating the virtual phone and then launched it to
 test.  Then I opened Eclipse, and basically used the android wizard to name
 everything appropriately, and save out to my regular JAVA folder, with just
 one BlankActivity.  I then located the MainActivity.java file within the
 src folder and opened it so its tab is open along side the
 activity_main.xml window.  Finally I select the MainActivity.java tab
 and ran as an Android App.  After that exact process, the emulator tries to
 open then just fails and nothing happens.  Eventually after repeating the
 latter I had a message in the output console stating: I could not start
 from Snapshot and the emulator was not set up for the correct API.
  Subsequently, I tried accessing and launching the AVD through the Eclipse
 tool bar which again worked fine, and then deleted the 2.3.3 Gingerbread
 device in order to create a new 2.3.3 virtual device. Then I ran as an
 Android app and voila, the AVD launched.  Of course I had to wait for the
 virtual device to load from scratch, but then presto it fully loads but
 with no Hello World app, and no sign of this app within the virtual phones
 app list.  Finally I also received an error in the output console:

 [2012-08-03 20:02:39 - Emulator] 2012-08-03 20:02:39.132
 emulator-arm[1052:80b] Warning once: This application, or a library it
 uses, is using NSQuickDrawView, which has been deprecated. Apps should
 cease use of QuickDraw and move to Quartz.

 Something is seriously wrong as this was the same case when using the
 Indigo version 3.7, and I followed then same early processes from my
 tutorials on my PC and the emulator worked fine.

 Thanks for getting back to me and I will be here to re explain anything
 that didn't make sense.

 On Friday, August 3, 2012 6:04:02 PM UTC+1, MagouyaWare wrote:

 Are you able to launch the AVD manually without trying to send your app
 to it?  I'm trying to isolate whether it is a problem with the AVD or
 something else...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 11:00 AM, Darryl Griffiths daz1...@gmail.comwrote:

 Im sorry for that its just i made some grammatical errors plus my first
 initial question didn't show up until today. Sorry what was your
 clarification question?
 On Aug 3, 2012 5:03 PM, Justin Anderson magouyaw...@gmail.com wrote:

 Ok, you just recently asked this exact same question...  I asked a
 clarification question on the first thread that you started.  Please don't
 post your question multiple times...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Fri, Aug 3, 2012 at 9:57 AM, Daz daz1...@gmail.com wrote:

 I am very new to Android Development and I cannot pursue a proper
 communication between Eclipse and the Android AVD, here is the info below:

 I am using Eclipse 4.2 for the mac with the API10 SDK (2.3.3). I have
 setup a Gingerbread AVD (because the tuts I am following do so) and 
 created
 an Android App within Eclipse (a simple preset hello world test app). As
 soon as I compile, the AVD is completely breaks or fails to load. The AVD
 either pops up in the dock then instantly disappears(crashes) or it loads
 up and does not boot my app and its nowhere to be seen in the virtual app
 list? I have setup the same scenario on my Windows 7 based computer and
 that seems to work okay, but I am confused why its not working properly on
 the Mac (10.6.9  10.7.4)?

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


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-03 Thread Nobu Games
On Friday, August 3, 2012 1:47:15 PM UTC-5, Nadeem Hasan wrote:

 That would be extrapolation.


Oopsie :-D 

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

Re: [android-developers] Problems with AVD loading my app

2012-08-03 Thread Daz
Yes, I can create and launch my AVD 2.3.3 perfectly from opening the 
Android app within the tools folder from Mac Osx TerminaI.  I selected 
enable Snapshot when creating the virtual phone and then launched it to 
test.  Then I opened Eclipse, and basically used the android wizard to name 
everything appropriately, and save out to my regular JAVA folder, with just 
one BlankActivity.  I then located the MainActivity.java file within the 
src folder and opened it so its tab is open along side the 
activity_main.xml window.  Finally I select the MainActivity.java tab 
and ran as an Android App.  After that exact process, the emulator tries to 
open then just fails and nothing happens.  Eventually after repeating the 
latter I had a message in the output console stating: I could not start 
from Snapshot and the emulator was not set up for the correct API. 
 Subsequently, I tried accessing and launching the AVD through the Eclipse 
tool bar which again worked fine, and then deleted the 2.3.3 Gingerbread 
device in order to create a new 2.3.3 virtual device. Then I ran as an 
Android app and voila, the AVD launched.  Of course I had to wait for the 
virtual device to load from scratch, but then presto it fully loads but 
with no Hello World app, and no sign of this app within the virtual phones 
app list.  Finally I also received an error in the output console:

[2012-08-03 20:02:39 - Emulator] 2012-08-03 20:02:39.132 
emulator-arm[1052:80b] Warning once: This application, or a library it 
uses, is using NSQuickDrawView, which has been deprecated. Apps should 
cease use of QuickDraw and move to Quartz.

Something is seriously wrong as this was the same case when using the 
Indigo version 3.7, and I followed then same early processes from my 
tutorials on my PC and the emulator worked fine.

Thanks for getting back to me and I will be here to re explain anything 
that didn't make sense.

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

2012-08-03 Thread Daz
Original message:

Yes, I can create and launch my AVD 2.3.3 perfectly from opening the 
Android app within the tools folder from Mac Osx TerminaI.  I selected 
enable Snapshot when creating the virtual phone and then launched it to 
test.  Then I opened Eclipse, and basically used the android wizard to name 
everything appropriately, and save out to my regular JAVA folder, with just 
one BlankActivity.  I then located the MainActivity.java file within the 
src folder and opened it so its tab is open along side the 
activity_main.xml window.  Finally I select the MainActivity.java tab 
and ran as an Android App.  After that exact process, the emulator tries to 
open then just fails and nothing happens.  Eventually after repeating the 
latter I had a message in the output console stating: I could not start 
from Snapshot and the emulator was not set up for the correct API. 
 Subsequently, I tried accessing and launching the AVD through the Eclipse 
tool bar which again worked fine, and then deleted the 2.3.3 Gingerbread 
device in order to create a new 2.3.3 virtual device. Then I ran as an 
Android app and voila, the AVD launched.  Of course I had to wait for the 
virtual device to load from scratch, but then presto it fully loads but 
with no Hello World app, and no sign of this app within the virtual phones 
app list.  Finally I also received an error in the output console:



[2012-08-03 20:02:35 - 001Piss] Android Launch!

[2012-08-03 20:02:35 - 001Piss] adb is running normally.

[2012-08-03 20:02:35 - 001Piss] Performing com.daz.MainActivity activity 
launch

[2012-08-03 20:02:35 - 001Piss] Automatic Target Mode: launching new 
emulator with compatible AVD 'Ginger'

[2012-08-03 20:02:35 - 001Piss] Launching a new emulator with Virtual 
Device 'Ginger'

[2012-08-03 20:02:39 - Emulator] 2012-08-03 20:02:39.132 
emulator-arm[1052:80b] Warning once: This application, or a library it 
uses, is using NSQuickDrawView, which has been deprecated. Apps should 
cease use of QuickDraw and move to Quartz.

Something is seriously wrong as this was the same case when using the 
Indigo version 3.7, and I followed then same early processes from my 
tutorials on my PC and the emulator worked fine.

Thanks for getting back to me and I will be here to re explain anything 
that didn't make sense.

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

2012-08-03 Thread bob
Is this what you're talking about?

http://postimage.org/image/8y0sxvyej/

On Friday, August 3, 2012 1:54:29 PM UTC-5, Nicholas Campion wrote:

 On the nexus 7 its under settings-display.

 On Friday, August 3, 2012 1:50:54 PM UTC-5, bob wrote:

 Where is this font scaling feature?  I looked all throughout settings on 
 my Galaxy Tab, and I don't see one.


 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: android nfc tech API help

2012-08-03 Thread nunojpg
When using the NfcB transceive I get an exception:

Connecting to this technology is not supported by the NFC adapter.

Does this means that my Nexus S (4.1.1) can't talk with NfcB tags beyond 
the ATQB?

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

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-03 Thread bob
 

It may use extrapolation but not necessarily based on the route.

I would think it could easily be based on the estimated velocity of the 
vehicle, the last known position and the time since the last known position.



On Friday, August 3, 2012 1:47:15 PM UTC-5, Nadeem Hasan wrote:

 That would be extrapolation. And that is actually the exact reason why the 
 GPS lags on exits if they are off-route because it has extrapolated your 
 position based on your route till the next actual GPS location update 
 arrives. I have seen this behaviour with my Garmin device too when I decide 
 not to follow the route.

 On Friday, August 3, 2012 11:46:45 AM UTC-4, Nobu Games wrote:

 I'd go for interpolation and take the current average speed and the 
 structure of the streets into account. That of course only works when you 
 have something like a graph / vector representation of the streets and know 
 how they are connected and what orientation they have.

 It is also pretty common that even Google Navigation is off, especially 
 on highways with exits. Sometimes the navigation draws the car following 
 the highway even though you are already leaving on an exit.


 On Wednesday, August 1, 2012 9:18:33 AM UTC-5, bushido wrote: 

 Hi all, 

 I'm writing an application for android for which I need good position 
 accuracy, I use a Galaxy Nexus as test device. 

 My test application subscribes to location updates and draws a car 
 symbol in a map, the map is centered to the location of the car  
 rotates according to the bearing of the location (exactly like google 
 maps on android does). I noticed that when up to speed, the positions 
 don't match with reality, they lag behind considerably. 
 When I cross a street at 90km/h for example, it will take a few 
 seconds before the car on the map is also crossing that street. It 
 isn't an error in the map data, because when I'm standing still, the 
 car gets drawn on the correct location. Google maps for android shows 
 exactly the same behavior. 

 The position of the car in Google Navigate on the other hand matches 
 reality rather closely. I've noticed that the position updates are a 
 lot smoother as well. (10Hz rather than the 1Hz updates which you get 
 from GPS) 

 My question is: how do they do it? What I can think of is: 
 - using the phone's sensors (gyro  accelero) together with a kalman 
 filter or similar. But I can't see how you could make that work for 
 every phone, since not all phones have these sensors. 
 - interpolating, but in that case I would expect overshooting when 
 there is a sudden stop or a sharp corner 

 Thanks in advance. 
 Bushido 



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

2012-08-03 Thread Tolriq
Hello,

I have an app that works ok from 2.2 to 4.0 since 4.1 I started to have 
java.lang.IllegalArgumentException: 
Cannot draw recycled bitmaps.
After some optimizations and tests, i finally find that for an unknown 
reason android wants to refresh my listview after the onstop during screen 
off event on some devices.

The activity is a not so complex listview with lazy loading of images.

To optimize memory in the onstop of my listview activity i recycle bitmaps 
with a simple : (needed since there lot's of activity like this one and on 
some devices bitmaps are not garbaged quickly enough).

 final AbsListView listView = (AbsListView) 
 findViewById(R.id.mediaslist_list);
 int c = listView.getChildCount();
 for (int i = 0; i  c; i++) {
 adapter.recycleView(listView.getChildAt(i));
 }


in the OnStop(); where the recycleView just recycle the bitmap.

In Nexus 7 or emulator in landscape, when i shutdown screen the onstop is 
called but since it wants to go to portrait for lock-screen it does 
something with the listview and try to redraw it.
Leading to the error : 

java.lang.IllegalArgumentException: Cannot draw recycled bitmaps
 at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778)
 at 
 android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117)
 at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393)
 at android.widget.ImageView.onDraw(ImageView.java:979)
 at android.view.View.draw(View.java:13458)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.draw(View.java:13461)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.widget.AbsListView.dispatchDraw(AbsListView.java:2433)
 at android.view.View.draw(View.java:13461)
 at android.widget.AbsListView.draw(AbsListView.java:3759)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.draw(View.java:13461)
 at android.widget.FrameLayout.draw(FrameLayout.java:467)
 at 
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at 
 android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144)
 at android.view.ViewRootImpl.draw(ViewRootImpl.java:2147)
 at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019)
 at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830)
 at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
 at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
 at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
 at android.view.Choreographer.doCallbacks(Choreographer.java:555)
 at android.view.Choreographer.doFrame(Choreographer.java:525)
 at 
 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
 at android.os.Handler.handleCallback(Handler.java:615)
 at android.os.Handler.dispatchMessage(Handler.java:92)
 at android.os.Looper.loop(Looper.java:137)
 at android.app.ActivityThread.main(ActivityThread.java:4745)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:511)
 at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
 at dalvik.system.NativeStart.main(Native Method)


Is there something I missed in activity lifecycle or listview one ? (like 
bitmap references 

Re: [android-developers] Jelly Bean strange behaviour.

2012-08-03 Thread Romain Guy
You cannot recycle bitmaps of Views that are still attached to the window.

On Fri, Aug 3, 2012 at 2:40 PM, Tolriq tol...@gmail.com wrote:
 Hello,

 I have an app that works ok from 2.2 to 4.0 since 4.1 I started to have
 java.lang.IllegalArgumentException: Cannot draw recycled bitmaps.
 After some optimizations and tests, i finally find that for an unknown
 reason android wants to refresh my listview after the onstop during screen
 off event on some devices.

 The activity is a not so complex listview with lazy loading of images.

 To optimize memory in the onstop of my listview activity i recycle bitmaps
 with a simple : (needed since there lot's of activity like this one and on
 some devices bitmaps are not garbaged quickly enough).

 final AbsListView listView = (AbsListView)
 findViewById(R.id.mediaslist_list);
 int c = listView.getChildCount();
 for (int i = 0; i  c; i++) {
 adapter.recycleView(listView.getChildAt(i));
 }


 in the OnStop(); where the recycleView just recycle the bitmap.

 In Nexus 7 or emulator in landscape, when i shutdown screen the onstop is
 called but since it wants to go to portrait for lock-screen it does
 something with the listview and try to redraw it.
 Leading to the error :

 java.lang.IllegalArgumentException: Cannot draw recycled bitmaps
 at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778)
 at
 android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117)
 at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393)
 at android.widget.ImageView.onDraw(ImageView.java:979)
 at android.view.View.draw(View.java:13458)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.draw(View.java:13461)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.widget.AbsListView.dispatchDraw(AbsListView.java:2433)
 at android.view.View.draw(View.java:13461)
 at android.widget.AbsListView.draw(AbsListView.java:3759)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.getDisplayList(View.java:12407)
 at android.view.View.getDisplayList(View.java:12453)
 at android.view.View.draw(View.java:13182)
 at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 at android.view.View.draw(View.java:13461)
 at android.widget.FrameLayout.draw(FrameLayout.java:467)
 at
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
 at android.view.View.getDisplayList(View.java:12409)
 at android.view.View.getDisplayList(View.java:12453)
 at
 android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144)
 at android.view.ViewRootImpl.draw(ViewRootImpl.java:2147)
 at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019)
 at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830)
 at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
 at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
 at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
 at android.view.Choreographer.doCallbacks(Choreographer.java:555)
 at android.view.Choreographer.doFrame(Choreographer.java:525)
 at
 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
 at android.os.Handler.handleCallback(Handler.java:615)
 at android.os.Handler.dispatchMessage(Handler.java:92)
 at android.os.Looper.loop(Looper.java:137)
 at android.app.ActivityThread.main(ActivityThread.java:4745)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:511)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
 at 

Re: [android-developers] Jelly Bean strange behaviour.

2012-08-03 Thread Tolriq
This sounds logical but since it worked on all release before JB I was 
supposing that doing this in OnStop() would be done after view unload.

What is the correct way to recycle bitmaps loaded in AbsListView ? 

Le vendredi 3 août 2012 23:45:35 UTC+2, Romain Guy (Google) a écrit :

 You cannot recycle bitmaps of Views that are still attached to the window. 

 On Fri, Aug 3, 2012 at 2:40 PM, Tolriq  wrote: 
  Hello, 
  
  I have an app that works ok from 2.2 to 4.0 since 4.1 I started to have 
  java.lang.IllegalArgumentException: Cannot draw recycled bitmaps. 
  After some optimizations and tests, i finally find that for an unknown 
  reason android wants to refresh my listview after the onstop during 
 screen 
  off event on some devices. 
  
  The activity is a not so complex listview with lazy loading of images. 
  
  To optimize memory in the onstop of my listview activity i recycle 
 bitmaps 
  with a simple : (needed since there lot's of activity like this one and 
 on 
  some devices bitmaps are not garbaged quickly enough). 
  
  final AbsListView listView = (AbsListView) 
  findViewById(R.id.mediaslist_list); 
  int c = listView.getChildCount(); 
  for (int i = 0; i  c; i++) { 
  adapter.recycleView(listView.getChildAt(i)); 
  } 
  
  
  in the OnStop(); where the recycleView just recycle the bitmap. 
  
  In Nexus 7 or emulator in landscape, when i shutdown screen the onstop 
 is 
  called but since it wants to go to portrait for lock-screen it does 
  something with the listview and try to redraw it. 
  Leading to the error : 
  
  java.lang.IllegalArgumentException: Cannot draw recycled bitmaps 
  at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778) 
  at 
  
 android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117) 

  at 
 android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393) 
  at android.widget.ImageView.onDraw(ImageView.java:979) 
  at android.view.View.draw(View.java:13458) 
  at android.view.View.getDisplayList(View.java:12409) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.view.View.draw(View.java:13461) 
  at android.view.View.getDisplayList(View.java:12409) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.widget.AbsListView.dispatchDraw(AbsListView.java:2433) 
  at android.view.View.draw(View.java:13461) 
  at android.widget.AbsListView.draw(AbsListView.java:3759) 
  at android.view.View.getDisplayList(View.java:12409) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.view.View.getDisplayList(View.java:12407) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.view.View.getDisplayList(View.java:12407) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.view.View.getDisplayList(View.java:12407) 
  at android.view.View.getDisplayList(View.java:12453) 
  at android.view.View.draw(View.java:13182) 
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
  at android.view.View.draw(View.java:13461) 
  at android.widget.FrameLayout.draw(FrameLayout.java:467) 
  at 
  
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
  

  at android.view.View.getDisplayList(View.java:12409) 
  at android.view.View.getDisplayList(View.java:12453) 
  at 
  
 android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144) 
  at android.view.ViewRootImpl.draw(ViewRootImpl.java:2147) 
  at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019) 
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830) 
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998) 
  at 
 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212) 
  at 
 android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) 
  at android.view.Choreographer.doCallbacks(Choreographer.java:555) 
  at android.view.Choreographer.doFrame(Choreographer.java:525) 
  at 
  
 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
  

  at 

Re: [android-developers] Jelly Bean strange behaviour.

2012-08-03 Thread Romain Guy
You first need to detach those bitmaps from their views (calling
setImageDrawable(null) on ImageView for instance.)

On Fri, Aug 3, 2012 at 2:54 PM, Tolriq tol...@gmail.com wrote:
 This sounds logical but since it worked on all release before JB I was
 supposing that doing this in OnStop() would be done after view unload.

 What is the correct way to recycle bitmaps loaded in AbsListView ?

 Le vendredi 3 août 2012 23:45:35 UTC+2, Romain Guy (Google) a écrit :

 You cannot recycle bitmaps of Views that are still attached to the window.

 On Fri, Aug 3, 2012 at 2:40 PM, Tolriq  wrote:
  Hello,
 
  I have an app that works ok from 2.2 to 4.0 since 4.1 I started to have
  java.lang.IllegalArgumentException: Cannot draw recycled bitmaps.
  After some optimizations and tests, i finally find that for an unknown
  reason android wants to refresh my listview after the onstop during
  screen
  off event on some devices.
 
  The activity is a not so complex listview with lazy loading of images.
 
  To optimize memory in the onstop of my listview activity i recycle
  bitmaps
  with a simple : (needed since there lot's of activity like this one and
  on
  some devices bitmaps are not garbaged quickly enough).
 
  final AbsListView listView = (AbsListView)
  findViewById(R.id.mediaslist_list);
  int c = listView.getChildCount();
  for (int i = 0; i  c; i++) {
  adapter.recycleView(listView.getChildAt(i));
  }
 
 
  in the OnStop(); where the recycleView just recycle the bitmap.
 
  In Nexus 7 or emulator in landscape, when i shutdown screen the onstop
  is
  called but since it wants to go to portrait for lock-screen it does
  something with the listview and try to redraw it.
  Leading to the error :
 
  java.lang.IllegalArgumentException: Cannot draw recycled bitmaps
  at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778)
  at
 
  android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117)
  at
  android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393)
  at android.widget.ImageView.onDraw(ImageView.java:979)
  at android.view.View.draw(View.java:13458)
  at android.view.View.getDisplayList(View.java:12409)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.view.View.draw(View.java:13461)
  at android.view.View.getDisplayList(View.java:12409)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.widget.AbsListView.dispatchDraw(AbsListView.java:2433)
  at android.view.View.draw(View.java:13461)
  at android.widget.AbsListView.draw(AbsListView.java:3759)
  at android.view.View.getDisplayList(View.java:12409)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.view.View.getDisplayList(View.java:12407)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.view.View.getDisplayList(View.java:12407)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.view.View.getDisplayList(View.java:12407)
  at android.view.View.getDisplayList(View.java:12453)
  at android.view.View.draw(View.java:13182)
  at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
  at android.view.View.draw(View.java:13461)
  at android.widget.FrameLayout.draw(FrameLayout.java:467)
  at
 
  com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
  at android.view.View.getDisplayList(View.java:12409)
  at android.view.View.getDisplayList(View.java:12453)
  at
 
  android.view.HardwareRenderer$GlRenderer.draw(HardwareRenderer.java:1144)
  at android.view.ViewRootImpl.draw(ViewRootImpl.java:2147)
  at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2019)
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1830)
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
  at
  android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
  at
  android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
  at android.view.Choreographer.doCallbacks(Choreographer.java:555)
  at android.view.Choreographer.doFrame(Choreographer.java:525)
  at
 
  

Re: [android-developers] Jelly Bean strange behaviour.

2012-08-03 Thread Tolriq
Hum I feel quite stupid now that the solution is so simple and did not find 
out a so logical one. (And it does of course works)

I suppose that this error would happens before JB but that JB is just more 
strict and now generate crashes.

Thanks a lot for your quick help.

Regards,
Tolriq.


Le vendredi 3 août 2012 23:59:03 UTC+2, Romain Guy (Google) a écrit :

 You first need to detach those bitmaps from their views (calling 
 setImageDrawable(null) on ImageView for instance.) 

 On Fri, Aug 3, 2012 at 2:54 PM, Tolriq  wrote: 
  This sounds logical but since it worked on all release before JB I was 
  supposing that doing this in OnStop() would be done after view unload. 
  
  What is the correct way to recycle bitmaps loaded in AbsListView ? 
  
  Le vendredi 3 août 2012 23:45:35 UTC+2, Romain Guy (Google) a écrit : 
  
  You cannot recycle bitmaps of Views that are still attached to the 
 window. 
  
  On Fri, Aug 3, 2012 at 2:40 PM, Tolriq  wrote: 
   Hello, 
   
   I have an app that works ok from 2.2 to 4.0 since 4.1 I started to 
 have 
   java.lang.IllegalArgumentException: Cannot draw recycled bitmaps. 
   After some optimizations and tests, i finally find that for an 
 unknown 
   reason android wants to refresh my listview after the onstop during 
   screen 
   off event on some devices. 
   
   The activity is a not so complex listview with lazy loading of 
 images. 
   
   To optimize memory in the onstop of my listview activity i recycle 
   bitmaps 
   with a simple : (needed since there lot's of activity like this one 
 and 
   on 
   some devices bitmaps are not garbaged quickly enough). 
   
   final AbsListView listView = (AbsListView) 
   findViewById(R.id.mediaslist_list); 
   int c = listView.getChildCount(); 
   for (int i = 0; i  c; i++) { 
   adapter.recycleView(listView.getChildAt(i)); 
   } 
   
   
   in the OnStop(); where the recycleView just recycle the bitmap. 
   
   In Nexus 7 or emulator in landscape, when i shutdown screen the 
 onstop 
   is 
   called but since it wants to go to portrait for lock-screen it does 
   something with the listview and try to redraw it. 
   Leading to the error : 
   
   java.lang.IllegalArgumentException: Cannot draw recycled bitmaps 
   at android.view.GLES20Canvas.drawBitmap(GLES20Canvas.java:778) 
   at 
   
   
 android.view.GLES20RecordingCanvas.drawBitmap(GLES20RecordingCanvas.java:117) 

   at 
   
 android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:393) 
   at android.widget.ImageView.onDraw(ImageView.java:979) 
   at android.view.View.draw(View.java:13458) 
   at android.view.View.getDisplayList(View.java:12409) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.view.View.draw(View.java:13461) 
   at android.view.View.getDisplayList(View.java:12409) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.widget.AbsListView.dispatchDraw(AbsListView.java:2433) 
   at android.view.View.draw(View.java:13461) 
   at android.widget.AbsListView.draw(AbsListView.java:3759) 
   at android.view.View.getDisplayList(View.java:12409) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.view.View.getDisplayList(View.java:12407) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.view.View.getDisplayList(View.java:12407) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.view.View.getDisplayList(View.java:12407) 
   at android.view.View.getDisplayList(View.java:12453) 
   at android.view.View.draw(View.java:13182) 
   at android.view.ViewGroup.drawChild(ViewGroup.java:2929) 
   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799) 
   at android.view.View.draw(View.java:13461) 
   at android.widget.FrameLayout.draw(FrameLayout.java:467) 
   at 
   
   
 com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2183)
  

   at android.view.View.getDisplayList(View.java:12409) 
   at android.view.View.getDisplayList(View.java:12453) 
   at 
   
   
 

Re: [android-developers] How to READ the option menu text color

2012-08-03 Thread Kostya Vasilyev
2012/8/3 Spiral123 cumis...@gmail.com

 OK...my second attempt to find the device value of
 textColorPrimaryDisableOnly:

 [snip]


 My attempt at reflection didn't seem to work either:


 Class myClass = Class.forName(android.R$styleable);

 int mTextColor =
 myClass.getField(Theme_textColorPrimaryInverse).getInt(myClass);



You keep trying to get the value of textColorPrimaryDisableOnly from the
current theme... which mixes up cause and effect (source and target in a
reference).

But that's irrelevant, because:

I did a bit of checking and found that style
name=Widget.TextView.PopupMenu is really just for popup menus, which use
a white background even on 2.3 (where the option menu uses a black
background... in the stock platform).

The option menu gets its values from a style that's not exposed in the SDK,
and whose resource Id is thus not guaranteed to be the same, even if you
used it directly.



 Looking for the background 9-patch was no more successful - I couldn't
 find where menu_background_fill_parent_width.9.png is stored.


It's referenced from the theme as an attribute, called
panelFullBackground, and publicly available since API 1.

In XML, you'd write something like:

ImageView ... android:src=?android:attr/panelFullBackground ... /

In code, use something like this:

TypedArray a = obtainStyledAttributes(new int[] {
android.R.attr.panelFullBackground });
Drawable d = a.getDrawable(0);
a.recycle();

And to verify, use something like this:


  ImageView iv = (ImageView) findViewById(R.id.test_menu_background);
iv.setImageDrawable(d);

The images I'm getting (2.2 and 2.3 emulators) are pure white / pure black
with slim borders, so it should be really easy to tell them apart.

-- K

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

2012-08-03 Thread billb
I have a project that finally reached a steady-state that was functional 
when I had computer issues.
 
I saved my entire project (I'm using Eclipse v4.2.0) and then fixed my 
hardware issues.
 
After re-installing Eclipse and then importing my project followed by 
importing both AndEngine and AndEngineTexturePackerExtension (newly 
downloaded from Git).
 I now only have one error and it is with the method call to load my 
texture file.
 
The error I'm getting is: The constructor TexturePackLoader(TextureManager, 
String) is undefined
The constructor in AndEngineTexturePackExtension does have the above 
definition, however, the TexturePackLoader in AndEngine does not.
 
I've tried re-arranging the libraries and the import statements, all to no 
avail.
 
Does anyone have insight into what would cause this previously working code 
to later not parse properly?
 
Here is the code:

try 
{ 
   BitmapTextureAtlasTextureRegionFactory.setAssetBasePath(gfx/); 
   Log.i(SPLAT FILE, settings.getSplatFile()); 
   //
   //--- The below line is where the error occurs!
   //
   final TexturePack spritesheetTexturePack =  new 
TexturePackLoader(this.getTextureManager(), 
gfx/splats/).loadFromAsset(this.getAssets(), settings.getSplatFile()); 
   spritesheetTexturePack.loadTexture(); 
   this.mSpritesheetTexture = spritesheetTexturePack.getTexture(); 
   // The texture region library has all the individual sprites from the 
spritesheet. 
   this.mSpritesheetTexturePackTextureRegionLibrary = 
spritesheetTexturePack.getTexturePackTextureRegionLibrary(); 
}
catch (final TexturePackParseException e) 
{ 
   Log.e(Error, String.valueOf(e)); 
}

 
 

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

2012-08-03 Thread TreKing
On Fri, Aug 3, 2012 at 2:39 PM, bob b...@coolfone.comze.com wrote:

 What is the best way to create an animated button on Android?


Assign an animation drawable as the background?

-
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

  1   2   >