Re: [android-developers] Share data between an activity and an event listener (separate class file)

2012-06-30 Thread StSch
I maybe should have said:
Can I access attributes/member variables of my activity in my event 
listener? That is: Manipulate the date in my listener and have the updated 
data in my activity?

Am Freitag, 29. Juni 2012 21:27:38 UTC+2 schrieb MagouyaWare:

 This is a basic java question, not related to Android in any way...

 To do that you can create a constructor that takes as parameters the data 
 you want you're listener to have access to.  Alternatively you can add 
 getters/setters to add that data you want separately. ..
 On Jun 29, 2012 1:21 PM, StSch steffen.schliwin...@gmail.com wrote:

 I have an Activity with a button and register an OnClickListener on this 
 button that is defined in a separate class file. Can I share data between 
 these 2 resources? That is: Can I access attributes/member variables from 
 my activity in my event listener?

 Regards,
 -Steffen-

 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Hi,

I have a Ads supported app and I am planning to release a paid version 
without Ads and extra features.

My questions are how do I release the app so my user can purchase and use 
with losing the preferences and db?
Can I package it with the same name and upload into Google Play as new app 
or how is it been normally done?

Cheers.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
as long as the .apk has the same name, i.e. com.my.app, then you wont lose
the preferences and database.

If the.apk is different then you will need to consider how to export the
sharedprefs/db from the current version (an update), to the sdcard, and
have an import function in the newer version.

Hope this helps,
Fred

On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and use
 with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new app
 or how is it been normally done?

 Cheers.

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Hi Fred,

That is good to know.
So Google play don't care if 2 Apps has the same apk/com.my.app is that 
right?

Thanks.

On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont lose 
 the preferences and database.

 If the.apk is different then you will need to consider how to export the 
 sharedprefs/db from the current version (an update), to the sdcard, and 
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version 
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and use 
 with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new 
 app or how is it been normally done?

 Cheers.

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




 -- 
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play
  

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

[android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
Hi all,

some of my users have already updated their Galaxy Nexus to Jelly Bean and 
these users are no longer able to use my app (GoodNews news reader and podcast 
player), as it uses the WebView.setEmbeddedTitleBar() method to inject the 
article title into the article view, so that it scrolls in a senseful manner. 
On Jelly Bean this beahviour produces the following exception:

java.lang.NoSuchMethodException: setEmbeddedTitleBar [class android.view.View]

I know that this method hasn't been a public API call (except for a short time 
in android 3.0), but it worked well since android 2. Unfortunately the Jelly 
Bean source code isn't available now, so that I can only guess.

Can someone cofirm that this method is gone? Any ideas for alternatives?

Thanks a lot 

  Sven

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

2012-06-30 Thread Raghav Sood
Yes. And to tell you that, we need the LogCat from the crash and the
appropriate code to go along with it.

Thanks

On Sat, Jun 30, 2012 at 11:25 AM, vaibs malviya
vaibs.malviy...@gmail.comwrote:

 my question is not that i just want to know why tabhost not work in 4.0.


 On Fri, Jun 29, 2012 at 8:07 PM, Justin Anderson magouyaw...@gmail.comwrote:

 To find the cause of your force close look at the logcat output...

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



 On Fri, Jun 29, 2012 at 7:40 AM, vaibs malviya vaibs.malviy...@gmail.com
  wrote:

 *it is possible to design a tabhost and it work for android 2.2 and
 also working for 4.0.*
 plz tell me if any one know
 because i develop tabhost in 2.2 and it run successfully on android 2.2
 but when my apps lunch on android 4.0 so tabhost not display and my apps
 force to close.

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




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

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

2012-06-30 Thread sri kanth
Hi,
It may be helpful to you
https://github.com/facebook/facebook-android-sdk/

On Thu, Jun 28, 2012 at 2:07 PM, SIDHU sri.nice...@gmail.com wrote:

 I dont know the source code of reallly fb app i think its hard to get
 rather than that i can help u with the following links


 http://blog.doityourselfandroid.com/2011/02/28/30-minute-guide-integrating-facebook-android-application/

 http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/

 On Thursday, 28 June 2012 11:05:58 UTC+5:30, imran ali wrote:

 Hi All,
 I have to develop FB application for my custom device.
 I got some guide line and skd of FB to build an application.
 My problem is that , most of thing like login is coming in Dialog with
 web-view.
 that i don't want, i want look and feel as original FB app.
 I am unable to give that look and feel in application (basically due to
 dialog).
 Can i get source code of original FB App? if yes How?
 or any other help or guide line to improve  look and feel as original
 Facebook application?

 Regrads
 Imran Ali

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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,
Srikanth T,
Android Developer,
Cell :- (+91) 96400 31533.*

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

2012-06-30 Thread Mark Murphy
On Sat, Jun 30, 2012 at 1:29 AM, Kumar Rangarajan
kumar.rangara...@gmail.com wrote:
 That is true. Its still the same. But then as a developer (assuming u have
 the N1), would'nt getting power consumption details on one model still give
 u a fair and reasonably consistent view of how it would perform on most
 models ? If the intent is to understand the consumption pattern of ones
 application, this is reasonably good enough right ?

I certainly would not make that assumption. This gets to the heart of
Ms. Hackborn's comment: per-component power measurement is tricky
business without low-level hardware data collection (e.g., Qualcomm
MDP). It's all just guesswork. Chipsets vary in power consumption,
sometimes fairly widely, let alone differences in CPU and GPU.

 Looks like the Trepn profiler is currently being redesigned and is not
 available
 (https://developer.qualcomm.com/mobile-development/development-devices/trepn-profiler),
 but then as u mentioned it needs to be used with their expensive MDP
 devices.

That's odd. Trepn Profiler is built into the MDP firmware -- it isn't
something you run on the development desktop or something. But, yes,
the MDP is crazy expensive.

-- 
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 3.7 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]

2012-06-30 Thread vaibs malviya
how can i check this cress in my PC on amulater.because i don't have 4.0
and my client have 4.0.
And when i search on net there is lot's of post on tabhost according to
these problem.but there is no information about why is this happening.
u got my point.

On Sat, Jun 30, 2012 at 4:26 PM, Raghav Sood raghavs...@gmail.com wrote:

 Yes. And to tell you that, we need the LogCat from the crash and the
 appropriate code to go along with it.

 Thanks


 On Sat, Jun 30, 2012 at 11:25 AM, vaibs malviya vaibs.malviy...@gmail.com
  wrote:

 my question is not that i just want to know why tabhost not work in 4.0.


 On Fri, Jun 29, 2012 at 8:07 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 To find the cause of your force close look at the logcat output...

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



 On Fri, Jun 29, 2012 at 7:40 AM, vaibs malviya 
 vaibs.malviy...@gmail.com wrote:

 *it is possible to design a tabhost and it work for android 2.2 and
 also working for 4.0.*
 plz tell me if any one know
 because i develop tabhost in 2.2 and it run successfully on android 2.2
 but when my apps lunch on android 4.0 so tabhost not display and my
 apps force to close.

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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

2012-06-30 Thread Narendra Singh Rathore
rideDate never gets assigned and the other values seem to not be assigned
 in order ie; distance may end up being the second element, when I would
 have expected rideDate to be the first and distance to be the fourth.
 This is how I use the newRideValues collection.
 new BikingLogsContentProvider().insert(CONTENT_URI, newRideValues);
 Any ideas and suggestions would be very welcome.



Sequence of contentValues doesn't matter. The thing which matters here is
the pair of key and value.
The value will always be inserted in the same column, with which you have
associated 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

Re: [android-developers] how to add image buttons in gridview in android

2012-06-30 Thread Narendra Singh Rathore
On Tue, Jun 26, 2012 at 11:23 AM, nanda tgraghunandangu...@gmail.comwrote:

 hi

 I am new to this android and i need to add image buttons in grid view by
 parsing an xml.how to do this??


Do the same as you have done in case of imageview, just replace it with
imagebutton
You don't have to put any more effort.

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

[android-developers] Re: WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread RichardC
Source for Android-16 is available via SDK Manager.

All I can tell you is:
  Android-15 WebView.java 388K
  Android-16 WebView.java  75K

So more then a few changes.

On Saturday, June 30, 2012 11:22:02 AM UTC+1, sven wrote:

 Hi all,

 some of my users have already updated their Galaxy Nexus to Jelly Bean and 
 these users are no longer able to use my app (GoodNews news reader and 
 podcast player), as it uses the WebView.setEmbeddedTitleBar() method to 
 inject the article title into the article view, so that it scrolls in a 
 senseful manner. On Jelly Bean this beahviour produces the following 
 exception:

 java.lang.NoSuchMethodException: setEmbeddedTitleBar [class 
 android.view.View]

 I know that this method hasn't been a public API call (except for a short 
 time in android 3.0), but it worked well since android 2. Unfortunately the 
 Jelly Bean source code isn't available now, so that I can only guess.

 Can someone cofirm that this method is gone? Any ideas for alternatives?

 Thanks a lot 

   Sven



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

2012-06-30 Thread Chris Stratton
On Jun 29, 8:35 am, Siva kumar sivakumar...@gmail.com wrote:

 I got s3c6410 Arm development Board. It has been ported with Android 2.3.
 This board has SIM300 GSM modem.When i tried to connect to internet through
 GPRS i found APN was missing.

This sounds more appropriate for android-porting, as its an issue with
the platform on non-standard hardware.

It does not directly concern SDK application development, which is the
topic of this group.

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

2012-06-30 Thread Harri Smått
On Jun 30, 2012, at 3:02 PM, vaibs malviya wrote:
 how can i check this cress in my PC on amulater.because i don't have 4.0 and 
 my client have 4.0.

What prevents you from installing ICS emulator and checking if the same 
problems occurs on it too?

--
H

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello,
I have never tried to publish to identical .apk's, but I do not think
google play will not allow 2 identical app names.

If I am wrong then I hope someone else will step in and correct me.

On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote:

 Hi Fred,

 That is good to know.
 So Google play don't care if 2 Apps has the same apk/com.my.app is that
 right?

 Thanks.

 On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont
 lose the preferences and database.

 If the.apk is different then you will need to consider how to export the
 sharedprefs/db from the current version (an update), to the sdcard, and
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

 --
 You received this 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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Magnetic Door Alarm
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
now available in Google Play

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Raghav Sood
Google Play will not allow you do upload two apps with the same package
name. Due to this, there are only a few ways you can share the content.

You can use Content Providers to serve it from the free app to the paid one.

You can save it on the SD Card and allow everyone to read it.

I *think* you can also do something with a shared user id, but I'm not sure
on this one.

Thanks

On Sat, Jun 30, 2012 at 8:33 PM, Fred Niggle fred.nig...@googlemail.comwrote:

 Hello,
 I have never tried to publish to identical .apk's, but I do not think
 google play will not allow 2 identical app names.

 If I am wrong then I hope someone else will step in and correct me.


 On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote:

 Hi Fred,

 That is good to know.
 So Google play don't care if 2 Apps has the same apk/com.my.app is that
 right?

 Thanks.

 On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont
 lose the preferences and database.

 If the.apk is different then you will need to consider how to export the
 sharedprefs/db from the current version (an update), to the sdcard, and
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

 --
 You received this 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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Fred Niggle
Hello Raghav,

Thats a great tip about Content Providers!

Regards,
Fred

On 30 June 2012 16:15, Raghav Sood raghavs...@gmail.com wrote:

 Google Play will not allow you do upload two apps with the same package
 name. Due to this, there are only a few ways you can share the content.

 You can use Content Providers to serve it from the free app to the paid
 one.

 You can save it on the SD Card and allow everyone to read it.

 I *think* you can also do something with a shared user id, but I'm not
 sure on this one.

 Thanks


 On Sat, Jun 30, 2012 at 8:33 PM, Fred Niggle 
 fred.nig...@googlemail.comwrote:

 Hello,
 I have never tried to publish to identical .apk's, but I do not think
 google play will not allow 2 identical app names.

 If I am wrong then I hope someone else will step in and correct me.


 On 30 June 2012 11:08, Mystique joven.ch...@gmail.com wrote:

 Hi Fred,

 That is good to know.
 So Google play don't care if 2 Apps has the same apk/com.my.app is that
 right?

 Thanks.

 On Saturday, 30 June 2012 17:22:37 UTC+8, Fred Niggle wrote:

 as long as the .apk has the same name, i.e. com.my.app, then you wont
 lose the preferences and database.

 If the.apk is different then you will need to consider how to export
 the sharedprefs/db from the current version (an update), to the sdcard, and
 have an import function in the newer version.

 Hope this helps,
 Fred

 On 30 June 2012 10:01, Mystique joven.ch...@gmail.com wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

 --
 You received this 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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Magnetic Door Alarm 
 apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarmis
  now available in Google Play

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




 --
 Raghav Sood
 Please do not email private questions to me as I do not have time to
 answer them. Instead, post them to public forums where others and I can
 answer and benefit from them.
 http://www.appaholics.in/ - Founder
 http://www.apress.com/9781430239451 - Author
 +91 81 303 77248

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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread RichardC
Have you considered using in-app-purchasing to turn off the ads and unlock 
the extra features?



On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version 
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and use 
 with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new app 
 or how is it been normally done?

 Cheers.


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

2012-06-30 Thread Elad Nava
This code will send a GCM message to multiple registration IDs via CURL. 

If you receive an *Unavailable* error code when you try to send a GCM:

*Generate a Browser API Key from the Google APIs Console*, and use it *instead 
of the server key* in the Authorization header. Once you do that, this 
error will go away.

This is caused by a serious mistake in the GCM Documentation that states 
you should use a Server Key in the Authorization header (as written 
herehttp://developer.android.com/guide/google/gcm/gs.html
)

// Replace with real server API key from Google APIs
$apiKey = 123456;

// Replace with real client registration IDs 
$registrationIDs = array( 123, 456 );

// Message to be sent
$message = x;

// Set POST variables
$url = 'https://android.googleapis.com/gcm/send';

$fields = array(
'registration_ids' = $registrationIDs,
'data' = array( message = $message ),
);
 $headers = array( 
'Authorization: key=' . $apiKey,
'Content-Type: application/json'
);

// Open connection
$ch = curl_init();

// Set the url, number of POST vars, POST data
curl_setopt( $ch, CURLOPT_URL, $url );
 curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
 curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields ) );

// Execute post
$result = curl_exec($ch);

// Close connection
curl_close($ch);
 echo $result;

On Friday, June 29, 2012 5:22:02 AM UTC+3, RyanMC wrote:

 We are in the final stages of developing an app that had utilized C2DM for 
 push notification, and decided to swap over to the new GCM since we hadn't 
 released yet and it seemed like a good idea. 

 However, this is proving to be a giant headache. We have the JSON and 
 headers formatting correctly and we get back a valid response, but the 
 failed count is always 1 and the error message is UNAVAILABLE. The 
 documentation says to just try again, but this has proved pointless as it 
 always returns the same result. I have seen several posts on stackoverflow 
 and other sites that list a similar problem. Has anyone been able to get 
 the new GCM stuff working? We are using a php backend to handle the push 
 notifications. We are using the standard CURL library, and as far as I can 
 tell the JSON is valid, and works as we do get a result. Prior to swapping 
 out the old message attribute with the new data attribute it would fail to 
 return any result, so I am pretty confident we have it right. 

 Any thoughts would be 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] Re: How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Hi, yes I will consider in app purchase if that is the only option.

So am I right to say some free and paid app actually release 2 versions 
which Google play see it as separate app and each app have their own data 
directory?

On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and unlock 
 the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version 
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and use 
 with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new 
 app or how is it been normally done?

 Cheers.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread James Black
You can also allow them to export and import the data, to move from the
free to paid version.
On Jun 30, 2012 12:03 PM, Mystique joven.ch...@gmail.com wrote:

 Hi, yes I will consider in app purchase if that is the only option.

 So am I right to say some free and paid app actually release 2 versions
 which Google play see it as separate app and each app have their own data
 directory?

 On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and
 unlock the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
I was also thinking to write a simple app that generate hash value and 
write it in a file, user will purchase this app and my main app will look 
for this file and compare the hash value. Will this work? Does Google allow 
this?

On Sunday, 1 July 2012 00:02:54 UTC+8, Mystique wrote:

 Hi, yes I will consider in app purchase if that is the only option.

 So am I right to say some free and paid app actually release 2 versions 
 which Google play see it as separate app and each app have their own data 
 directory?

 On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and 
 unlock the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version 
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and 
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new 
 app or how is it been normally done?

 Cheers.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread Mystique
Right, I have import/export features but only available in the plan paid 
version :) that's why.

On Sunday, 1 July 2012 00:11:04 UTC+8, James Black wrote:

 You can also allow them to export and import the data, to move from the 
 free to paid version.
 On Jun 30, 2012 12:03 PM, Mystique joven.ch...@gmail.com wrote:

 Hi, yes I will consider in app purchase if that is the only option.

 So am I right to say some free and paid app actually release 2 versions 
 which Google play see it as separate app and each app have their own data 
 directory?

 On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and 
 unlock the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version 
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and 
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new 
 app or how is it been normally done?

 Cheers.

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

2012-06-30 Thread Rutton
In the overview for the API Changes of Jelly Bean, it is mentioned:

*Note:* The experimental Renderscript graphics engine is now deprecated.

See
https://developer.android.com/about/versions/android-4.1.html#Renderscript

No one ever mentioned before, that it was experimental.

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

2012-06-30 Thread Jagadeesh
HI
i Resolved this issue



On Fri, Jun 22, 2012 at 1:13 AM, Nobu Games dev.nobu.ga...@gmail.comwrote:

 So you are actually having a problem with both activities abbottasia and
 abbottusa, because they are using the same layout even though you created
 two separate ones? Why are you posting the code for this ListView activity
 then? This is completely unrelated to your problem.

 Look into both activities abbottasia and abbottusa, check whether you
 set the correct layout resource ids with setContentView in these
 activities' onCreate methods.

 If the correct layouts are in fact assigned then you need to clean and
 rebuild your project because sometimes the generated R class files get
 messed up a bit.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread Raghav Sood
Why don't you just use in app purchases then?

On Sat, Jun 30, 2012 at 9:47 PM, Mystique joven.ch...@gmail.com wrote:

 I was also thinking to write a simple app that generate hash value and
 write it in a file, user will purchase this app and my main app will look
 for this file and compare the hash value. Will this work? Does Google allow
 this?


 On Sunday, 1 July 2012 00:02:54 UTC+8, Mystique wrote:

 Hi, yes I will consider in app purchase if that is the only option.

 So am I right to say some free and paid app actually release 2 versions
 which Google play see it as separate app and each app have their own data
 directory?

 On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and
 unlock the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

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




-- 
Raghav Sood
Please do not email private questions to me as I do not have time to answer
them. Instead, post them to public forums where others and I can answer and
benefit from them.
http://www.appaholics.in/ - Founder
http://www.apress.com/9781430239451 - Author
+91 81 303 77248

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread TreKing
On Sat, Jun 30, 2012 at 11:19 AM, Mystique joven.ch...@gmail.com wrote:

 Right, I have import/export features but only available in the plan paid
 version :) that's why.


So add the export part to the free version as well ...

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

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

Re: [android-developers] Help me!

2012-06-30 Thread TreKing
A: Help me! is a terrible title for a post. Please use a title that give
even a slight indication what your post is about. This will help you get
help and will help others find the topic in the future if they search for
it.

B: Your question makes no sense.
http://www.catb.org/~esr/faqs/smart-questions.html

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

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

[android-developers] Re: How do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-06-30 Thread Jason Hsu
I just need the step-by-step procedure for getting from the *.zip file to a 
proper implementation in Eclipse.

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

Re: [android-developers] Help me!

2012-06-30 Thread Jim Graham
On Sat, Jun 30, 2012 at 11:44:32AM -0500, TreKing wrote:
 A: Help me! is a terrible title for a post. Please use a title that give
 even a slight indication what your post is about. This will help you get
 help and will help others find the topic in the future if they search for
 it.

I'll second that.  Posts with useless (or worse, empty) subject lines are
clearly intended by the poster to be ignored ... and I'm happy to do
exactly that (and I'm fairly certain I'm not alone in that).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running Mac OS X Lion 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye.

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Re: Renderscript Deprecated

2012-06-30 Thread JP


On Jun 30, 9:26 am, Rutton rut...@web.de wrote:

 No one ever mentioned before, that it was experimental.

Huh, correct in my book. Although it was always supposed to be
understood that the underlying graphics engine today is running CPU
bound only, which makes it somewhat pointless in its actual
implementation. In the documentation, this goes easily overlooked.

---

Just a few short months ago I've attended a presentation by Romain Guy
and one of his colleagues that praised Renderscript as *the* way
forward, in my impression anyways. It would probably be a good idea
for Google to clarify what deprecation of the graphics engine means
going forward. Perhaps a new graphics engine is in the works, that
actually utilizes the GPU. Perhaps using deprecation was just a poor
choice of word?

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

2012-06-30 Thread Giuseppe
I am using it from first IO day, so it work well.

Il giorno venerdì 29 giugno 2012 11:54:51 UTC+2, Elad Nava ha scritto:

 No go for me or others either. It seems like the service is not available 
 yet. It's only 2 days old. Let's give them some time to get it up and 
 running.


 http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging/11254071#11254071
  

 On Friday, June 29, 2012 5:22:02 AM UTC+3, RyanMC wrote:

 We are in the final stages of developing an app that had utilized C2DM 
 for push notification, and decided to swap over to the new GCM since we 
 hadn't released yet and it seemed like a good idea. 

 However, this is proving to be a giant headache. We have the JSON and 
 headers formatting correctly and we get back a valid response, but the 
 failed count is always 1 and the error message is UNAVAILABLE. The 
 documentation says to just try again, but this has proved pointless as it 
 always returns the same result. I have seen several posts on stackoverflow 
 and other sites that list a similar problem. Has anyone been able to get 
 the new GCM stuff working? We are using a php backend to handle the push 
 notifications. We are using the standard CURL library, and as far as I can 
 tell the JSON is valid, and works as we do get a result. Prior to swapping 
 out the old message attribute with the new data attribute it would fail to 
 return any result, so I am pretty confident we have it right. 

 Any thoughts would be 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

Re: [android-developers] Re: How do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-06-30 Thread TreKing
On Sat, Jun 30, 2012 at 11:48 AM, Jason Hsu jhsu802...@gmail.com wrote:

 I just need the step-by-step procedure for getting from the *.zip file to
 a proper implementation in Eclipse.


All that zip file contains is an Android project. If you don't know how to
run that, you need to back to the getting started or whatever section of
the docs.

Again, if you explain the actual errors you are getting, you'll likely get
more help. Asking for step-by-step anything usually falls on deaf ears.

-
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] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread Romain Guy
You should never rely on private APIs. When they are removed like in this
case there is no guarantee you will be offered an alternative
On Jun 30, 2012 3:23 AM, sven sven.span...@googlemail.com wrote:

 Hi all,

 some of my users have already updated their Galaxy Nexus to Jelly Bean and
 these users are no longer able to use my app (GoodNews news reader and
 podcast player), as it uses the WebView.setEmbeddedTitleBar() method to
 inject the article title into the article view, so that it scrolls in a
 senseful manner. On Jelly Bean this beahviour produces the following
 exception:

 java.lang.NoSuchMethodException: setEmbeddedTitleBar [class
 android.view.View]

 I know that this method hasn't been a public API call (except for a short
 time in android 3.0), but it worked well since android 2. Unfortunately the
 Jelly Bean source code isn't available now, so that I can only guess.

 Can someone cofirm that this method is gone? Any ideas for alternatives?

 Thanks a lot

   Sven

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: How do I set up the project in the Android site's “Managing the Activity Lifecycle” training exercise?

2012-06-30 Thread Nobu Games
On Saturday, June 30, 2012 12:46:23 PM UTC-5, TreKing wrote:


 Again, if you explain the actual errors you are getting, you'll likely get 
 more help. Asking for step-by-step anything usually falls on deaf ears.


Unless I am stupid enough to respond :-D

   1. Unzip that file into your eclipse workspace folder or somewhere else
   2. Open Eclipse
   3. Click File - Import - General - Import existing Projects into 
   workspace
   4. Select root directory - Browse - Find the directory where you 
   unzipped the project
   5. The Projects view should update and show that unzipped project. 
   Click the check box left to its name
   6. Click Finish


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

2012-06-30 Thread sven
Hi Romain,

yes, I know that I should never rely on this. On the other hand there isn't 
really an alternative to the mentioned method and implementing the same 
behavior on top of the existing WebView would be a night mare -- if not 
impossible. Further on it was also used by some of the standard apps like 
the web browser. 

If there is no other way I will need to put the WebView inside a 
ScrollView, but -- at least in the past -- this brought a bad user 
experience as it wasn't possible to scroll diagonal as the ScrollView 
captured the vertical scroll events and the WebView the horizontal ones. 
Really bad :-(

Best regards

  Sven

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

2012-06-30 Thread Nobu Games
Can't you just create a layout with your title bar view first and the 
webview below? Or just let your title bar view hover on top of the webview 
and add a padding to the rendered HTML via JavaScript injection. Or you 
could inject a HTML-based titlebar with fixed positioning into the webview.

I haven't seen that title bar in action, so I don't know whether I am 
missing something obvious here, but just by reading the API documentation 
for that method it sounds like you can get a simple workaround working for 
that.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Free to Paid App and retain preference and db files?

2012-06-30 Thread James Black
I went with import/export in both versions, but the paid version allows you
to email the export file also, for example.

On Sat, Jun 30, 2012 at 12:41 PM, TreKing treking...@gmail.com wrote:

 On Sat, Jun 30, 2012 at 11:19 AM, Mystique joven.ch...@gmail.com wrote:

 Right, I have import/export features but only available in the plan paid
 version :) that's why.


 So add the export part to the free version as well ...


 -
 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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

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

2012-06-30 Thread sven
 Can't you just create a layout with your title bar view first and the webview 
 below?

This is exactly what I wanted to do in the past when I've started to create 
GoodNews: Intuitively I've created a ScrollView, added my title view and the 
WebView below. The problem with this is that the ScrollView and the WebView do 
not work together well. The user can either scroll vertically *or* horizontally 
but not both directions at once (diagonal). So if you as a user want to scroll  
to the bottom right corner of the view, then you need to scroll down at first, 
lift the finger for a moment and then scroll to the right -- not really what I  
as a user would expect. 

Just search at stackoverflow for [android] +webview +scrollview and you will 
find quite a few of questions related to this topic...

 Or just let your title bar view hover on top of the webview and add a padding 
 to the rendered HTML via JavaScript injection. Or you could inject a 
 HTML-based titlebar with fixed positioning into the webview.

Tried this in the past and it worked fine for HTML which I've provided on my 
own, but not if I load external WebSites (I am a Google Reader client, so I 
*need* to load external web pages.

 I haven't seen that title bar in action, so I don't know whether I am missing 
 something obvious here, but just by reading the API documentation for that 
 method it sounds like you can get a simple workaround working for that.

It should behave similar to the address bar of the standard browser: If you 
scroll down the website, the title bar should disappear and if you scroll back 
to the top it should reapear. Scrolling horizonally shouldn't affect the title 
bar at all -- to the user it should look as if it was fixed.

This was exactly the behavior provided by the embedded title bar and if you 
look at the implementation then you will see that there is no possibility to 
implement the same just by deriving from WebView as it depends on a few private 
methods -- especially not in the Jelly Bean version of the WebView as it 
delegates all it's calls to the new ClassicWebView...

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

2012-06-30 Thread Nobu Games
Okay, if the new WebView is still some Layout / ViewGroup you could hack 
the same functionality into it again by peeking at the WebView.java 
sourcehttps://github.com/android/platform_frameworks_base/blob/master/core/java/android/webkit/WebView.java
:

public void setEmbeddedTitleBar(View v) {
if (mTitleBar == v) return;
if (mTitleBar != null) {
removeView(mTitleBar);
}
if (null != v) {
addView(v, new AbsoluteLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT, 0, 0));
}
mTitleBar = v;
}


You could derive your own CompatWebView that overrides this method and 
checks the API level via 
Build.VERSION.SDK_INThttp://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INTand
 branch accordingly to your workaround.

If that is neither wanted nor recommended by Google or just too shaky for 
your taste, another workaround comes to my mind that might not work as 
smoothly, but it's better than nothing:

You could create an HTML page (as a string for example) with your header 
title on top and an iframe below which loads the actual URL. Only problem 
with that iframe is that you need to resize it according to the loaded 
content. I don't know how this interacts with the way WebView tries to fit 
in content or how pinch-to-zoom works with that. Another problem is that 
the title bar would also change its size when the user zooms in or out.


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

Re: [android-developers] WebView.setEmbeddedTitleBar gone in Jelly Bean? Which alternatives?

2012-06-30 Thread sven
I've already gave the iframe stuff a try in the past, but unfortunately 
exactly the calculation of the natural width of the iframe-content was the 
problem.

I would definitely prefer the first option (extending WebView). But just 
take a look into the old (API Level 14) solution and search for mTitleBar 
or getTitleHeight and you will quickly recognized, that this is used in 
many places which are not reachable from within a derived class.

At the moment it looks to me as if I need to create a fallback solution for 
API level 16 and above which will put the title and the WebView into a 
ScrollView. This will be the first time, that a newer android version will 
bring a worse user experience to my users :-(

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

2012-06-30 Thread Morrison Chang
*I also didn't realize that the Renderscript Graphics API was 
'experimental'.*
*
*
*Let me preface this that right before Google IO 2012, I started 
researching Renderscript to see what could be done with it (in the 
expectation of compute on GPU in Jelly Bean - sadly nothing announced that 
I’m aware of).

I find it interesting (and humorous) that the Renderscript Graphics which 
was only introduced in Honeycomb and more fleshed out in Ice Cream Sandwich 
is already depreciated BUT is included in the ICS Compatibility Definition 
Document (CDD) in section 7.1.4. Given that Renderscript Graphics was 
created back in the 2.1 (Eclair) timeframe as an internal API for 
implementing multi-platform live wallpapers and throughout the 2.x series 
OpenGL 1.0 hardware acceleration was optional so perhaps CPU bound was 
okay(?). When ICS (and by extension HC) came out, the CDD pretty much 
requires hardware acceleration. And now that JB has deeper integration of 
hardware acceleration with the UI system (Project Butter/Jank Busting) I 
think Renderscript Graphics became the odd man out as it is one more path 
for Google/ODMs to regress beyond the standard Java and NDK APIs.

So now we are back to Java if we want to write multi-platform code for 
graphics (as intended) but would need to write with NDK and compile 
multiple binaries if we want to squeeze out performance. Of course now that 
we have faster CPUs, bigger apk sizes, and multiple apk support so it may 
not be an issue anymore.

If anything at least the compute part of Renderscript survives.

I look forward to when the JB CDD is released as Google/ODMs will have to 
support to older HC/ICS path, but perhaps there may be more detailed 
specification for the compute part if not in JB then in K.

Still it would be nice to get a blog post from Chet and/or Romain on the 
rational behind releasing Renderscript graphics API for about a year and 
half before dropping it (and with only a 10% device base). Frankly I liked 
the idea of being able to not deal with JNI if I wanted performant graphics.

Hmm this is getting long and I apologize if you've gotten this far.*
*
tl;dr - Renderscript for compute will eventually get to the GPU, 
Renderscript graphics API has been sacrificed on the altar of support.*

Morrison

On Saturday, June 30, 2012 12:54:25 PM UTC-4, JP wrote:



 On Jun 30, 9:26 am, Rutton rut...@web.de wrote: 

  No one ever mentioned before, that it was experimental. 

 Huh, correct in my book. Although it was always supposed to be 
 understood that the underlying graphics engine today is running CPU 
 bound only, which makes it somewhat pointless in its actual 
 implementation. In the documentation, this goes easily overlooked. 

 --- 

 Just a few short months ago I've attended a presentation by Romain Guy 
 and one of his colleagues that praised Renderscript as *the* way 
 forward, in my impression anyways. It would probably be a good idea 
 for Google to clarify what deprecation of the graphics engine means 
 going forward. Perhaps a new graphics engine is in the works, that 
 actually utilizes the GPU. Perhaps using deprecation was just a poor 
 choice of word? 


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

2012-06-30 Thread Nobu Games


On Saturday, June 30, 2012 3:39:12 PM UTC-5, sven wrote:

 I've already gave the iframe stuff a try in the past, but unfortunately 
 exactly the calculation of the natural width of the iframe-content was the 
 problem.

 I would definitely prefer the first option (extending WebView). But just 
 take a look into the old (API Level 14) solution and search for mTitleBar 
 or getTitleHeight and you will quickly recognized, that this is used in 
 many places which are not reachable from within a derived class.


You would need to re-implement all of this in your own derivative. I'm not 
sure how far you can go with that, though. Maybe you just need to add your 
own custom view to the WebView and listen to touch events on the WebView to 
make it appear.

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

2012-06-30 Thread phoku
When I add a link to a disclaimer in the developer console, will it be 
mandatory to read/agree for _all_ users, or is this feature only available 
in the latest version of the Play Market app and on latest Android 
versions? 

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

2012-06-30 Thread Romain Guy
Let's recap:
- Renderscript Graphics has always been hardware accelerated
- Renderscript Compute is currently CPU bound but with the for_each
construct it will take advantage of multiple cores immediately
- Renderscript Compute was designed to run on the GPU and/or the CPU
- Renderscript Compute avoids having to write JNI code and gives you
architecture independent, high performance results
- Renderscript Compute can, as of Android 4.1, benefit from SIMD
optimizations (NEON on ARM)

If you want to write apps that benefit from hardware acceleration you can
either:
- Use the Java OpenGL ES 1.x/2.x bindings
- Use OpenGL ES 1.x/2.x from native code with the NDK (at the cost of
having to target specific CPU architectures)

For data processing you can:
- Write normal Java code
- Use the NDK/JNI
- Use Renderscript Compute

Renderscript Compute is likely to give you the best performance as well as
portability.

I recommend you watch Jeff Sharkey's Doing More With Less talk that he
gave this year at Google I/O. He shows an example of Renderscript Compute
for data processing.


On Sat, Jun 30, 2012 at 1:39 PM, Morrison Chang morrison.ch...@gmail.comwrote:

 *I also didn't realize that the Renderscript Graphics API was
 'experimental'.*
 *
 *
 *Let me preface this that right before Google IO 2012, I started
 researching Renderscript to see what could be done with it (in the
 expectation of compute on GPU in Jelly Bean - sadly nothing announced that
 I’m aware of).

 I find it interesting (and humorous) that the Renderscript Graphics which
 was only introduced in Honeycomb and more fleshed out in Ice Cream Sandwich
 is already depreciated BUT is included in the ICS Compatibility Definition
 Document (CDD) in section 7.1.4. Given that Renderscript Graphics was
 created back in the 2.1 (Eclair) timeframe as an internal API for
 implementing multi-platform live wallpapers and throughout the 2.x series
 OpenGL 1.0 hardware acceleration was optional so perhaps CPU bound was
 okay(?). When ICS (and by extension HC) came out, the CDD pretty much
 requires hardware acceleration. And now that JB has deeper integration of
 hardware acceleration with the UI system (Project Butter/Jank Busting) I
 think Renderscript Graphics became the odd man out as it is one more path
 for Google/ODMs to regress beyond the standard Java and NDK APIs.

 So now we are back to Java if we want to write multi-platform code for
 graphics (as intended) but would need to write with NDK and compile
 multiple binaries if we want to squeeze out performance. Of course now that
 we have faster CPUs, bigger apk sizes, and multiple apk support so it may
 not be an issue anymore.

 If anything at least the compute part of Renderscript survives.

 I look forward to when the JB CDD is released as Google/ODMs will have to
 support to older HC/ICS path, but perhaps there may be more detailed
 specification for the compute part if not in JB then in K.

 Still it would be nice to get a blog post from Chet and/or Romain on the
 rational behind releasing Renderscript graphics API for about a year and
 half before dropping it (and with only a 10% device base). Frankly I liked
 the idea of being able to not deal with JNI if I wanted performant graphics.

 Hmm this is getting long and I apologize if you've gotten this far.*
 *
 tl;dr - Renderscript for compute will eventually get to the GPU,
 Renderscript graphics API has been sacrificed on the altar of support.*

 Morrison

 On Saturday, June 30, 2012 12:54:25 PM UTC-4, JP wrote:



 On Jun 30, 9:26 am, Rutton rut...@web.de wrote:

  No one ever mentioned before, that it was experimental.

 Huh, correct in my book. Although it was always supposed to be
 understood that the underlying graphics engine today is running CPU
 bound only, which makes it somewhat pointless in its actual
 implementation. In the documentation, this goes easily overlooked.

 ---

 Just a few short months ago I've attended a presentation by Romain Guy
 and one of his colleagues that praised Renderscript as *the* way
 forward, in my impression anyways. It would probably be a good idea
 for Google to clarify what deprecation of the graphics engine means
 going forward. Perhaps a new graphics engine is in the works, that
 actually utilizes the GPU. Perhaps using deprecation was just a poor
 choice of word?

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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

Re: [android-developers] Re: Renderscript Deprecated

2012-06-30 Thread Mark Murphy
On Sat, Jun 30, 2012 at 5:18 PM, Romain Guy romain...@android.com wrote:
 - Renderscript Graphics has always been hardware accelerated

The point is that, according to the 4.1 release notes, we should no
longer use Renderscript Graphics:

https://developer.android.com/about/versions/android-4.1.html#Renderscript

Note: The experimental Renderscript graphics engine is now deprecated.

The concerns are:

1. Why were we not told that this was experimental at the time
Renderscript Graphics was announced? I see no evidence on the Web that
Renderscript Graphics was described as experimental.

2. If half a subsystem is now deprecated, why is that announcement
buried in release notes, rather than being called out a bit more
visibly?

At the end of the day, Google can do whatever it wants to. Personally,
I am just trying to figure out where the communications breakdowns
occurred.

Thanks!

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

_The Busy Coder's Guide to Android Development_ Version 3.7 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] Battery usage per app

2012-06-30 Thread Dianne Hackborn
On Sat, Jun 30, 2012 at 4:36 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Jun 30, 2012 at 1:29 AM, Kumar Rangarajan
 kumar.rangara...@gmail.com wrote:
  That is true. Its still the same. But then as a developer (assuming u
 have
  the N1), would'nt getting power consumption details on one model still
 give
  u a fair and reasonably consistent view of how it would perform on most
  models ? If the intent is to understand the consumption pattern of ones
  application, this is reasonably good enough right ?
 I certainly would not make that assumption. This gets to the heart of
 Ms. Hackborn's comment: per-component power measurement is tricky
 business without low-level hardware data collection (e.g., Qualcomm
 MDP). It's all just guesswork. Chipsets vary in power consumption,
 sometimes fairly widely, let alone differences in CPU and GPU.


Yeah, it's not true at all.  For example we added tracking and measurement
of wake locks in 2.3, because we were working with a chipset we hadn't
before where just holding a wakelock caused power use; on previous chipsets
the CPU could still go into full power collapse while a wakelock is held.

I still consider the battery stats to be extremely experimental, and in
need of a lot of improvement.  What we have now is enough to provide a UI
to users that will in some cases help them determine when apps are
impacting their battery life.  There are still a number of things it
misses, and many approximations it does that means certain patterns of
behavior can't be measured correctly.  It is definitely not robust enough
to present as a public API with guarantees we feel we can make about it.

Honestly, it just sounds like people have bigger expectations for what is
there than what it actually is.  I definitely don't want people writing
apps with the data and presenting it as some kind of strong information
that has good guarantees about accuracy.  It doesn't.  And we have been
very careful in the UI that presents the information to try to be
conservative about what we show to the user, because of this.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Re: [android-developers] Re: Renderscript Deprecated

2012-06-30 Thread b0b
The cool APIs of today are the deprecated APIs of tomorrow !

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

2012-06-30 Thread snow69it
Yes, I want play video as a music.
Youtube has many music videos.

On 6月19日, 午前3:03, Justin Anderson magouyaw...@gmail.com wrote:
 Maybe it's just me, but why in the world would you want to play a video in
 the background?  Playing music in the background makes sense, but a video?

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







 On Fri, Jun 15, 2012 at 1:59 AM, snow69it raix5...@gmail.com wrote:
  Hi, All:

  I am developing youtube player which can play in background as
  service.
  Because MediaPlayer class can play only 3gp, so I use webview and
  youtube api chromeless player.

  It works well in Activity, but not work in Service, because the player
  can't initialized in background.
  (When Chromeless player is initialized, Chromeless player call
  onYouTubePlayerReady(playerId) callback function. But it never called
  in background.)

  I found that player can't initialize in Activity if webview is hidden
  in any other views.

  How to initialize the player in background?
  Or are there any other way to play youtube video in background
  service?

  Hope your help.
  Thanks and 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


[android-developers] Re: How to play youtube videos in background

2012-06-30 Thread snow69it
I don't like to save video to SD card, because SD card has limit for
size.

On 6月19日, 午前11:51, lbendlin l...@bendlin.us wrote:
 sounds like a Youtube downloader to me.







 On Monday, June 18, 2012 2:03:38 PM UTC-4, MagouyaWare wrote:

  Maybe it's just me, but why in the world would you want to play a video in
  the background?  Playing music in the background makes sense, but a video?

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

  On Fri, Jun 15, 2012 at 1:59 AM, snow69it raix5...@gmail.com wrote:

  Hi, All:

  I am developing youtube player which can play in background as
  service.
  Because MediaPlayer class can play only 3gp, so I use webview and
  youtube api chromeless player.

  It works well in Activity, but not work in Service, because the player
  can't initialized in background.
  (When Chromeless player is initialized, Chromeless player call
  onYouTubePlayerReady(playerId) callback function. But it never called
  in background.)

  I found that player can't initialize in Activity if webview is hidden
  in any other views.

  How to initialize the player in background?
  Or are there any other way to play youtube video in background
  service?

  Hope your help.
  Thanks and 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


[android-developers] Re: Android Spinner not working

2012-06-30 Thread Nevin Johnson
I haven't done any java on it as yet because the xml spinner not working 
so didn't make sense do the java until i got that down

On Thursday, June 28, 2012 9:10:25 PM UTC-7, Nevin Johnson wrote:

 *Hey guys can anyone tell me why my spinner is not showing working(not 
 display properly) check the attached image*

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

[android-developers] image show with zoom/pan

2012-06-30 Thread guich
Hi,

Is there a ready component to show an image and zoom/pan it, like the one 
in album/gallery? I just want to show a big image and zoom in/out and pan, 
full screen, then if back is clicked, it goes back to my app.

tia

guich

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

2012-06-30 Thread Yamanoor Sai Ram
I would like to create an animation over a camera preview. * *My camera
preview is a derivative of the following
examplehttps://github.com/commonsguy/cw-advandroid/blob/master/Camera/Preview/src/com/commonsware/android/camera/PreviewDemo.java
.

I have attached an example of the layout of my app. There are 9 rectangular
bars on the left hand side. I would like to display one rectangle after the
other to animate a status bar. I created a relative layout for the camera
preview overlay. I am not sure how should I go about doing it. Any
suggestions would be appreciated.

Thanks,
Sai

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

[android-developers] How to get checked values from list view with checkbox

2012-06-30 Thread Dinesh kumar
   Hi..I am having a listview with checkbox in that I want only checked
items..can anyone help me..

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

[android-developers] Re: How to get checked values from list view with checkbox

2012-06-30 Thread ala hammad
hi i think this link can help you ..

http://windrealm.org/tutorials/android/listview-with-checkboxes-without-listactivity.php
 

On Sunday, 1 July 2012 07:29:24 UTC+3, dragon fire wrote:

Hi..I am having a listview with checkbox in that I want only checked 
 items..can anyone help me.. 

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

Re: [android-developers] Re: Version code already exists?

2012-06-30 Thread TreKing
On Thu, Jun 28, 2012 at 12:40 PM, sach sns.s...@gmail.com wrote:

 if u change android:versionCode=2 need to change
 android:versionName=1.1


That is incorrect. There is no correlation between those two values and
Google Play only cares about the code.

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

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

Re: [android-developers] Re: Renderscript Deprecated

2012-06-30 Thread Dave Burke
To add a little more context to the deprecation notice (I think the choice 
of the word experimental is a little misleading, sorry for the confusion):

The feedback we got from internal and external app developers was that 
they preferred to use OpenGL directly because of familiarity  portability 
either through our Java bindings or NDK. In contrast, we do see interest in 
the compute API of Renderscript. Hence we've decided to no longer evolve 
the RS graphics APIs (hence deprecation notice) and instead focus on 
building out Renderscript's GPU-compute support and developing Renderscript 
further especially for applications such as image processing. 

Dave

On Saturday, June 30, 2012 2:45:17 PM UTC-7, Mark Murphy (a Commons Guy) 
wrote:

 On Sat, Jun 30, 2012 at 5:18 PM, Romain Guy romain...@android.com 
 wrote: 
  - Renderscript Graphics has always been hardware accelerated 

 The point is that, according to the 4.1 release notes, we should no 
 longer use Renderscript Graphics: 

 https://developer.android.com/about/versions/android-4.1.html#Renderscript 

 Note: The experimental Renderscript graphics engine is now deprecated. 

 The concerns are: 

 1. Why were we not told that this was experimental at the time 
 Renderscript Graphics was announced? I see no evidence on the Web that 
 Renderscript Graphics was described as experimental. 

 2. If half a subsystem is now deprecated, why is that announcement 
 buried in release notes, rather than being called out a bit more 
 visibly? 

 At the end of the day, Google can do whatever it wants to. Personally, 
 I am just trying to figure out where the communications breakdowns 
 occurred. 

 Thanks! 

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

 _The Busy Coder's Guide to Android Development_ Version 3.7 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] [ask] android phonegap + jquerymobile performance

2012-06-30 Thread Benedict
Hi all,

I have developed an application for android 2.2 and higher.
the application is using phonegap, jquery mobile, and jsonp to get data 
over internet.
when i tested the application, it was so slow.
memory consumption and cpu usage was very high.

is phonegap performance was so slow? why? how to solve it?
do you think the performance could be better if i use webview and 
javascript interface?

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] Generic USB Audio DAC Support in 4.1

2012-06-30 Thread Benjamin Oien
Hi,

I'm interested in the new USB audio peripheral support in 4.1.

I would like to utilize this with an existing a USB DAQ which functions 
with generic linux drivers.

My understanding is that the device must ID itself as 0x2D02. Is it 
possible to implement an app or driver to circumvent this? Would an 
Arduino middle-ware be necessary for adapting the communication protocol 
anyway? 

I know this feature has been added by Samsung in the Galaxy S3. Is it 
possible to port that to CDMA gNex?

Thank you,
Benjamin Oien

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

2012-06-30 Thread Anand Gangadharan
*The setup*

I have at home a wifi router under which I have my devices(couple of 
laptops,TV, Android phone and tablet). The router is connected to a cable 
modem provided by my ISP and all the devices share this connection.

*Problem*
Recently my ISP came up with an additional security system.On first 
connect(could be from any device) I need to authenticate myself with a 
username/password to my ISP website. I checked the system and they were 
intercepting the first http connection from my side and redirecting my 
browser to their login page. Some how my android browsers are not able to 
show this login page. I need to connect using my laptop and only later 
android devices can connect to internet.

*My Solution*
I wrote a small java application to over come this problem. It tries to 
connect to google.com. Intercept the redirect request and finally post my 
username password. The application is working fine with my laptop and I 
hooked it with windows start up and everything is great. Android devices 
still are not very happy with this app. On debugging I find that my very 
first socket connections is getting timed out and my application fails.

*Technical Details*

*Device *- Motorola Defy Plus

*Android version* - 2.3.3

*Exception Socket* - Time out

*Code*
public class SocketHttp {

public static Socket connect(String ip) throws Exception {
Socket socket = new Socket(ip, 80);
return socket;
}
.
}

As I have not logged in to my ISP I am not depending on the DNS service and 
directly hardcoding a google.com IP.I have added 
uses-permission android:name=android.permission.INTERNET / in the 
Android Manifest. The code works correctly if the ISP login is completed 
using my lap top.

Any idea what is going wrong?

Regards
Anand G


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

[android-developers] Android Documentation

2012-06-30 Thread Byung-Hoon Cho
Hello
How do you download the newest version of the Documentation that is in the 
eclipse folder?

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

2012-06-30 Thread Alex Cunha
Hi all. I have the duty of making a code to read a path on the
external storage containing some taken pictures and create a time-
lapse video from them.

Since I must use Android SDK 2.1, I have no access to the system
codecs. Therefore, I cannot directly create the video from the
pictures.

One possible solution is to inherit from the Camera class, override
takePicture method to read sequentially the pictures from the External
Storage and use the class MediaRecorder to record the video file
(passing the inherited new Camera class). However, I don't really know
how to do this.

Other solution is to write my own video codec to convert a bunch of
pictures to HD H264 video. However, this is way too much code to do...

Any suggestions?

Thanks in advance.

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


[android-developers] Google Now - College Football info

2012-06-30 Thread Sean Rowe
I have noticed it doesn't show scores for past college football games. I 
understand the last game was in January so maybe it just has cards for 
current sporting events. However once college football comes around I would 
LOVE to be able to check scores with Google voice search.

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

2012-06-30 Thread Monnand
I noticed there are already someone got similar issue:

I have just switch to GCM from C2DM. However, every message I sent would 
got an unavailable error. According to the document, I should retry 
later. But no matter how many times I tried, it is still unavailable.

Is there anyone who has same issue as mine? I thought there is some error 
on my side. But if so, there should be some other error message instead of 
unavailable.

Regards,
-Monnand

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

2012-06-30 Thread michael
It was always a poorly thought out API (design was interesting, but 
strategically it made no sense), so not surprised it's being deprecated. 

On Thursday, June 28, 2012 8:20:41 AM UTC-7, Jason wrote:

 The latest reference documentation for Renderscript shows half of the API 
 now being deprecated. It appears to be directed toward the graphics 
 functionality. I just built an entire 3D rendering engine on this API and 
 am concerned that it is deprecated so soon after being released. What is it 
 being replaced with?! The developer guides and release notes don't say 
 anything about this change. The graphics section was removed from the 
 developer guide, which now only describes the compute functionality. I only 
 see it in the reference docs.


 http://developer.android.com/reference/android/renderscript/package-summary.html

 Thanks,
 Jason


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

2012-06-30 Thread Hardik Trivedi
Hello,

I have successfully implemented new GCM. I would like to know that 
how much device I can register using single product key and Server API key.

I have different different app having different package names. And I have 
only one server. So what I want to do is to use same product key in all 
apps and same server API key too.
Is it 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

[android-developers] Problem with activity termination in singleTask mode

2012-06-30 Thread dhl90
Hi,

Right now I'm starting an Activity (call this Activity A) from outside of 
an Activity context - therefore Activity A is hosted in its own task. 
Activity A in turn calls Activity B for result. Since I want only 1 
instance of Activity A running at any given time, I'm setting Activity A's 
launch mode to singleTask.

Here comes the problem: from Activity B, the user clicks Home. He then 
tries to start Activity A again. The existing task is brought to the front, 
but for some reason Activity B automatically finishes before Activity A's 
onNewIntent() is called. This in turn terminates Activity A altogether.

I'd really appreciate it if someone can tell me what's wrong.

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] Method for passing information between Fragments

2012-06-30 Thread EpsilonOrion
I currently have two fragments setup on the same landscape screen.  On the 
left is a Map Fragment, while on the right is a List Fragment.  There is a 
MainActivity that creates the Fragments.  Each Fragment has its own 
Fragment class and Activity Class.  I am looking at the best method to 
allow the ArrayList of GeoPoints created from my ItemizedOverlay to 
populate the ListFragment by passing the list to the ListFragment when 
points are created.  Then, when a person clicks one of the points in the 
ListFragment, it sends back a message to the MapFragment that pops up an 
information bubble for the waypoint in question.

Basically, I am looking for the best method to pass this waypoint list (and 
a return point chosen) message between MapFragment and ListFragment.  If it 
would be better to have a third fragment that sits in the background to 
hold this information, I would be fine with that since in the future these 
points will be sent off to another phone.

I am sorry if this question has already been asked, but I have not been 
able to find a simple answer.  If you have a reference, I would be happy to 
look at that.  Thanks for the help.

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

[android-developers] Fail to create Android Project after Eclipse update

2012-06-30 Thread John Langan
I upgraded Eclipse yesterday with the latest updates. I installed Android 
SDK Tools Rev 20,  Android SDK Platfom-Tools Rev 12 and Android 4.1 API 16.

Now when I try to create an Android Project I get as far as the Install 
Dependencies panel where it claims a template is needed but not 
installed:http://developer.android.com/sdk/compatibility-library.html, 
Required version: 8

If I click the Install/Upgrade button it installs SDK 2.2, API 8. This 
makes no difference as I still get the same message and can go no further 
in creating a project.
Any help on how to resolve this problem would be much appreciated.
 
John.

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

2012-06-30 Thread Ravi Sankar
Hello Team
 I am presently developing an android application, that should *start 
particular method in my application on boot*. Could you please share the 
code snippets.

 Thanks in advance. 

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

[android-developers] Cannot Find create new android project in ecllipse

2012-06-30 Thread naidu harish
Hi all,
   I am new in android development, I have Installed ADK20 in
ecllipse and SDK for android and set the Android in the preferences.
When i am trying to create a new project i cannot find Android project
when i go in File-new-project and in drop down i found android
applicatioo project.
How can i create new android project please  help me.
Thanks in advance.

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


[android-developers] Load Images from Internal/External Storage with AsyncTask in a Fragment?

2012-06-30 Thread Stefan Held
hi,

can anybody help me with this problem.
i don't get it done, tried it with a lot of tutorials.

thanks in advance

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

[android-developers] Getting spammed by android project

2012-06-30 Thread mats
Anyone know how to unsubscrive from a google code repository?

Right now it seems I'm getting an email for every ticket update in the
Android project. About 200 per day, sort of freaking me out. Any
ideas?

/Mats

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


[android-developers] Re: NFC Secure Element

2012-06-30 Thread Cristina Jerez
Hi! 

So is possible that the phone ( I have Galaxy S III) acts like a Mifare 
card and with him I can comunicat with the infraestructure of NFC of one 
office to use the phone to open dors ?

I'm trying to develop this applicacion for the University but I'm not sure 
that the comunicacion with this element could be correctly.

Can you help me?


El martes, 7 de diciembre de 2010 12:42:29 UTC+1, Dominik escribió:

 Hi everyone,

 Do I see it right, that the Android 2.3 NFC API does not provide 
 functionality to access a secure element? A secure element is a smartcard 
 connected to the NFC controller, i.e. a secure storage in the device, 
 either embedded in the mobile phone, on the SIM card or on a SD card.

 With JavaME access to the secure element was provided with JSR177 which 
 supported the communication with smart card applications usind APDU 
 commands. I have not seen comparable functionality in package android.nfc.

 Thanks for any hints
 Dominik



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

2012-06-30 Thread Daniel Struve
I would love to join in development for the google glasses.  Where to start?


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

2012-06-30 Thread gl...@wanderfulstorybooks.com
Hello,

I am optimizing an OpenGL-based application ported from that other
major mobile OS and find that I cannot successfully access the GL
context from anything other than the rendering thread of
GLSurfaceView.  What I CAN do on other platforms is upload my single
(and large) texture to GL prior to needing to render the texture
itself.  This is a 640x480 8-bit RGB texture that takes some time to
upload to the chip and needs to be done every time I realize a new
frame of animation from the background system memory buffer.  I'm sure
you can appreciate the savings in execution time if I can perform this
upload from another thread when I have nothing left to do but wait for
GLSurfaceView's rendering thread to call me.  All is synchronized
safely as evidenced by the successful release of this software using
this very same technique on that-other-platform-that-shall-not-be
named.  Things are very smooth and zippy on that platform, but Android
currently suffers by comparison.  Is there any way to do this?


Thanks

Glenn

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

2012-06-30 Thread Sam Joly
I don't understand why. The same way I don't understand why there is no ability 
to removed Uninstalled app from the developer console.
I feel that it's just messy.

On Thursday, December 24, 2009 8:42:18 AM UTC-8, John Coryat wrote:

 Anyone who downloaded your app can still give it ratings and comments,
 people who never downloaded it won't see it though.

 AFAIK, once published, an app has an indefinite life.

 -John Coryat

 Radar Now!

 What Zip Code?



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

2012-06-30 Thread michael
Testing the new adk2012 and having a few issues. I have  uploaded the 
usbaccessory sketch, and installed the adk2012 app to the nexus 7. Then I 
connect the adk  nexus with usb, expecting the adk2012 app to be 
recognized as an appropriate usbaccessory, but it doesn't and nexus reports 

Connected as a media device
USB debugging connected
Connected to a USB accessory

Another question, how can I run adb from my android device while it is 
simultaneously connected to my arduino kit? I was optimistic that it would 
channel through the arduino and proxy to my pc, but that clearly isn't 
happening :) ... ADB over bluetooth?

Thanks,
Michael


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Hi, i am having an error regarding connection between android phone and pc(bluetooth dongle)

2012-06-30 Thread ernesto9223
this is my server code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import javax.bluetooth.*;
import javax.microedition.io.*;

public class ServerSide {

//private static LocalDevice localDevice;
static LocalDevice localDevice;
DiscoveryAgent agent;

private void startServer() throws IOException{

   UUID uuid = new UUID(112f8dbf1e46442292b6796539467bc9, 
false);
   String connectionString = btspp://localhost: + uuid
+;name=SampleSPPServer;
 //open server url
 StreamConnectionNotifier streamConnNotifier =
(StreamConnectionNotifier)Connector.open( connectionString );
 System.out.println(\nServer Started. Waiting for clients to
connect...);
 StreamConnection connection=streamConnNotifier.acceptAndOpen();
 RemoteDevice dev = RemoteDevice.getRemoteDevice(connection);
 System.out.println(Remote device address:
+dev.getBluetoothAddress());
 System.out.println(Remote device name:
+dev.getFriendlyName(true));

}
public static void main(String[] args) {
//display local device address and name
try{
localDevice = LocalDevice.getLocalDevice();
System.out.println(Address: 
+localDevice.getBluetoothAddress());
System.out.println(Name: +localDevice.getFriendlyName());
}catch(Exception e){
System.err.println(e.toString());
System.err.println(e.getStackTrace());
e.printStackTrace();}
try{
ServerSide sampleSPPServer=new ServerSide();
sampleSPPServer.startServer();
}catch(Exception e){
System.err.println(e.toString());
System.err.println(e.getStackTrace());
e.printStackTrace();}

}
}


**

and this is my client(android) code
package client.side;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.UUID;

import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

public class ClientSideActivity extends Activity {
int REQUEST_ENABLE_BT = 0;
private BluetoothAdapter mBluetoothAdapter;
private ArrayAdapterString mArrayAdapter;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button btn1 = (Button)findViewById(R.id.button1);
Button btn2 = (Button)findViewById(R.id.button2);
final ListView lv1 = (ListView)findViewById(R.id.listView1);
final TextView out = (TextView)findViewById(R.id.textView1);
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
mArrayAdapter = new
ArrayAdapterString(this,android.R.layout.simple_list_item_1);



 if (!mBluetoothAdapter.isEnabled()) {
Intent enableBtIntent = new
Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBtIntent,
REQUEST_ENABLE_BT);
}
 out.setText(null);





 btn1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
out.setText(Paired Devices);
 SetBluetoothDevice pairedDevices =
mBluetoothAdapter.getBondedDevices();

 if (pairedDevices.size()  0){
for(BluetoothDevice device : 
pairedDevices){

mArrayAdapter.add(device.getName() + \n +
device.getAddress());
}
}
lv1.setAdapter(mArrayAdapter);

}
});



 btn2.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {
out.setText(Discovered Devices);
 mBluetoothAdapter.startDiscovery();
Toast msg = 

[android-developers] Re: ListPreference summary

2012-06-30 Thread antiplod
 Little bit of extra info: I've encountered this issue on ics emulator. Calling 
getValue immediately before call to setSummary  shows that correct value has 
been commited.

This bug is over 2 years old; surprised it's still around. It's issues like 
this that waste developer's time and subsequently hamper the uptake of 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] Need Android code for Automatically answering the phone call

2012-06-30 Thread Iniyan P
Hi,

I was browsing through Android site and stackoverflow for getting
automatically answering the phone call code.

I found the code and it is working in android 2.2.

It is not working in Android 2.3+.

From the stackoverflow   Any code you have that requires
MODIFY_PHONE_STATE will work all the way up to (and including) Android 2.2,
but will break for Android 2.3+.

So Is there anyother way I can find a code that will work on android 2.3+

Thanks,
Iniyan P

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Passing information between two Fragments (Map Fragment and List Fragment)

2012-06-30 Thread EpsilonOrion
I am looking for the best way to send information between a Map Fragment 
and a List Fragment.  Half the screen is dedicated to a Map Fragment using 
the TabHost method, while the other half is dedicated to a List Fragment.  
The main activity creates the separate fragments which each have their own 
Fragment and Activity classes.  My desire is to send an ArrayList of 
waypoints created in my ItemizedOverlay class that is within the Map 
Fragment to the List Fragment which will in turn display each waypoint.  
From the List Fragment side, I desire to send the selected List item 
(waypoint) back to the Map Fragment so I can then display a bubble giving 
information on that waypoint.  More will be done, but this is one part of 
my problem.

I am sorry if familiar questions to this have been asked, but I have not 
found one that details how to dig deep into a class such as ItemizedOverlay 
and pass the information back and forth.  Some methods I have seen are 
Intents and direct passing a pulling variables in each Fragment, but I am 
unsure of the best way to handle this information sharing.  I have even 
looked into the possibility of keeping a third fragment in the background 
as I will at one time be sending these waypoints outside of this app to 
another phone.

Any help would be appreciated and I would be happy to give more information 
if needed.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Custom Header of ListView like Instagram app in android not working for ListView(child) inside ListView(parent) .

2012-06-30 Thread Georgy Gobozov
Hi! Thanks for your exmaple, but it works not enough properly. When I am 
scrolling list down, all headres  after third started scroll down with 
whole list. Can you fix it?

https://lh4.googleusercontent.com/-lBKPUfvmzIA/T-7vU3NC37I/D8g/7uAuuZyx818/s1600/Untitled.png

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

[android-developers] Help Required

2012-06-30 Thread MMX
I don't even have an android phone.Currently,I use a Java Mobile.I don't 
have enough to buy a good android phone.Neither I have tested any android 
devices.I just have heard that android 4.0 has remarkable features.Can 
anyone help me in this regard??..I just want to have a taste of Android 4.0 
device!!

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