Re: [android-developers] Re: \n Does NOT work ?

2011-10-30 Thread adithya holla
try br

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

2011-10-30 Thread Anil Jagtap
Scala is another language some people use for android development.
I believe it is just a wrapper over Java, that wrapper compiler
converts 'Scala' code in Java code.
So, ultimately it is Java at the end. No other easy choice. NDK is bit
complicated for general applications.


On Oct 29, 5:57 am, raduq radu...@gmail.com wrote:
 What do you guys think about Android applications developed with
 Python? I'm going to start a mobiel applications training in a company
 and i have received a few hours ago an email that told me to read
 about Python before the first class.

 I am very surprised because I thought Android apps were made only by
 using Java and/or C#. Do any of you have developed Android apps with
 Python?

 If yes, please tell me how it is compared to Java, if you have any
 experience with Java.. Is it easier, are the Python apps faster than
 Java ones? I'm asking this because I would like to know the advantages
 and disadvantages of developing apps in Python before I begin the
 training.

 Thanks in advance for your answers!

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

2011-10-30 Thread TreKing
On Fri, Oct 28, 2011 at 12:47 AM, NAVI NEW navi44...@gmail.com wrote:

 When some one removing the apk then that moment i want to handle another
 Thread , when apk is removed   .


That's not possible.

-
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] Configure exchange email account via Android API

2011-10-30 Thread TreKing
On Thu, Oct 27, 2011 at 3:50 PM, Sean W whalens...@gmail.com wrote:

  Is it possible to do via the Android API? If so, via what class?


IDK, but check the source for the default Email client or look into the K-9
project.

-
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] Add a progressbar to notification without a layout file for RemoteViews ?

2011-10-30 Thread TreKing
On Thu, Oct 27, 2011 at 9:23 PM, eric eric eric.bugm...@gmail.com wrote:

 Hey all, I want to add a progressbar to status bar notification, but i
 don't want to use a layout file to difine the progressbar


How do you expect to show the progress view then?

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

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

Re: [android-developers] How to launch an instance of Android emulator with a specified URL?

2011-10-30 Thread TreKing
On Wed, Oct 26, 2011 at 8:03 PM, JustAnotherDev thaodoan00s...@gmail.comwrote:

 Do you know how I can start the Android emulator with a specified URL?


Create a simple app that listens to the Boot complete action and starts a
view intent on the URL.

-
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] HorizontalScrollView not show fading edge when drag

2011-10-30 Thread ron
Hi,

I have a HorizontalScrollView and when I drag the LinearLayout to the
left and right edge, a orange color gradient will gradually appear on
the edges. My quesiton is how to get rid of them? These gradient only
appears when I drag the view to the most left and right. I tried many
things (fading edge/foreground color/override getSolidColor.. etc) and
still couldn't get rid of it.

thanks.
Ronald

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

2011-10-30 Thread Stefan Alder
From what we've seen restore_transactions, restores all transactions.
Is it not possible to restore, or verify, a single transaction?

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

2011-10-30 Thread B.Arunkumar
Hi,

   I tried to run hello-neon app in 2.3.3 Emulator and I got the
following output

FIR Filter benchmark:
C version: 2104.32 ms
Neon Version : Not an ArmV7 CPU!

I saw this posting that the latest SDK emulator could have support for
Neon and I downloaded the SDK 4.0 (API 14). I ran the hello-neon app
on the 4.0 emulator and I get the following message:

FIR filter benchmark:
C version : 2102.33 ms
Neon Version : Program not compiled with Armv7 support

Does the 4.0 emulator have Neon support? If yes, why wasn't the app
compiled with Neon support? Could somebody let me know how to compile
the app with Neon support?

Thank you,
B.Arunkumar

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


[android-developers] Re: strange error

2011-10-30 Thread Yahel
 ProgressThread cannot be resolved to a type

You probably got your code from a sample or an existing project but
forgot to include a file or part of a file that defines the class
ProgressThread.

Take a look in the original folder for a file called :
ProgressThread.java and include it in your new project.

Yahel

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

2011-10-30 Thread ayanir
Hello,

I'm getting the following error:
Failed to rename directory D:\android-sdk-windows\tools to D:\android-
sdk-windows\temp\ToolPackage.old02.
when tring to update the Android SDK Tools, revision 15.

I'm using Windows 7 with Eclipse Indigo.
the Eclipse plug in update seems to be installed fine.
does anyone know how to solve this problem?


On Oct 28, 8:19 am, abangkis abang...@gmail.com wrote:
 I don't know if that confuses my eclipse installation or not, there's always
 a possibility, it just my wild guess :) Because i need the ADT environment
 badly. My work around is to extract a clean eclipse installation. Create new
 workspace. Download ADT r15. And point it to my previous SDKr15
 installation. So far it works. Now I'm running on r15.

 Cheers.









 On Fri, Oct 28, 2011 at 11:55 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
  There would be no android-15 folder.  The 14 there refers to the API
  level, while the 14 in the ADT is just a release count, in essence.
  They are not related and, I assume, it was a coincidence that they
  were both 14 for the ICS release.

  On Oct 28, 11:51 am, abangkis abang...@gmail.com wrote:
   I'm using Windows 7 Ultimate and Eclipse Indigo. I upgraded both SDK
   platform and ADT from r14. Restarted eclipse and now I can't open the
  Debug
   and DDMS perspective. The  SDK and AVD launcher is also missing from the
   toolbar. I check to the SDK installation folder/android-sdk/platform and
  I
   only see android-7, android-8, android-14. No android-15 folder.

   Does anyone else have the same problem as me ?

   On Fri, Oct 28, 2011 at 9:20 AM, Zsolt Vasvari zvasv...@gmail.com
  wrote:
Weird issue:

- Updated the Eclipse Plug-In (Windows Vista)
- Exited Eclipse as I like to do the SDK component updates while they
are not loaded
- Started the SDK Manager
- I see the Android SDK Tools item showing as Rev 14 and the for a
second it says Update available: Rev 15 then it goes back to Rev 14
Installed won't let me update

Now, if I go back to Eclipse and do the same thing, the Update
available sticks.

I still got some problems with the check boxes:

- If I have Updates/New and Installed checked
- I check Android SDK Tools to be installed
- Uncheck Installed (only have Updates/New checked), I would expect
the Android SDK Tools to be in the shorter list as it's an available
update.  But it's missing.

On Oct 28, 6:42 am, Xavier Ducrohet x...@android.com wrote:
 Hey all,

 we've just release SDK Tools r15 and a matching ADT 15.0

 This is a bug fix only release. See notes athttp://
developer.android.com/sdk/tools-notes.html
 andhttp://developer.android.com/sdk/eclipse-adt.html

 Make sure to get the new platform-tools as well.

 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. Thanks!

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

   --http://www.mreunionlabs.net/http://www.mreunion-labs.net/
   twitter : @mreunionlabs
   blog : mreunion.wordpress.com- Hide quoted text -

   - Show quoted text -

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

 --http://www.mreunionlabs.net/http://www.mreunion-labs.net/
 twitter : @mreunionlabs
 blog : mreunion.wordpress.com

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


[android-developers] Re: How to reactivate an older APK?

2011-10-30 Thread William Ferguson
Hmm, I make heavy use of the DB and this would not pose any kind of
problem for me. I can't imagine that it would pose a problem for you
either Zsolt. If it did it means that any of your users that chooses
not to upgrade, would break on upgrade + 1.

One of the things I really like about Android is the way that the
SQLiteOpenHelper has been structured to assume that DB changes are a
normal part of versioning. I find it very easy to handle micro
versioning of the DB using that facility. #onUpgrade gives you
oldVersion and newVersion and let's you choose what DDL gets applied.
By pulling an APK from the Market and at some subsequent point
publishing version X+1 just means that the code in SQLiteOpenHelper
just needs to handle DB upgrades from X-1 to X+1 as well as from X to X
+1. If your code can't handle that then IMHO its pretty fragile and
not well suited to the rolling upgrades common to the Android
platform.

But back to question at hand, if Reactivate was only for those APKs up
until you clicked on the publish or save button then why is it
available for older APKs. Ie ones that have been long since published
and deactivated?

William


On Oct 28, 3:55 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Maybe not in your app, but definetely in my app there would be issues.

 I use an SQLite database that I sometimes upgrade with new columns/
 tables as I add features to my app.

 Let's say I roll back an update,  but the user's database will not be
 rolled back.  Then I release a fixed version that will again try
 updating the user's database by adding those tables/columns.  A recipe
 for a maintenance nightmare.

 As I said, this may not be an issue for the flashlight apps out there,
 but for any serious app, this could be a very big problem.

 On Oct 28, 1:45 pm, William Ferguson william.ferguson...@gmail.com
 wrote:







  I would have expected that if I rolled back to version X-1 in the
  console that users that had already updated to version X would remain
  there and not be prompted to rollback (nor be given the option to
  update to the older version). All users now going to the console
  would see version X-1 as latest.

  No forward compatibility issues.
  Just a means of pulling a bad release from further distribution.

  William

  On Oct 28, 12:27 pm, Zsolt Vasvari zvasv...@gmail.com wrote:

   I bet if you never pushed the Publish or the Save button, you can
   reactivate an older APK.

   But once you publish, a user might have a newer version of the app on
   their phone than what's available on the Market.  Then you update your
   app again, essentially forkiing your app.  This can become a huge
   versioning nightmare, especially for more complex apps, and I am not
   surprised it's not supported.

   On Oct 28, 9:18 am, William Ferguson william.ferguson...@gmail.com
   wrote:

Not suggesting you could or should roll back what the user has
installed.
But would like to withdraw a bad APK so other users don't install it.

But as has been pointed out this is not possible without loading up
another APK with a higher version nr than any previous APKs.

On Oct 28, 1:13 am, Zsolt Vasvari zvasv...@gmail.com wrote:

 This has always been this way, and it makes sense as you cannot roll
 backwhat the user has installed.

 On Oct 27, 11:08 pm, William Ferguson william.ferguson...@gmail.com
 wrote:

  I had exactly the same situation tonight.
  It has to be a Market Console bug, otherwise what is the value of 
  the
  reactivate button.

  On Oct 27, 3:40 pm, Dusk Jockeys Android Apps 
  duskjock...@gmail.com
  wrote:

   Before I waste my time by asking Market Support, who as we all 
   know
   are about as useful as a chocolate teapot, has anyone managed to
   successfully re-activate a previous APK in the Developer Console?

   I had a situation where I made an update last night, quickly 
   realised
   there was a bug and wanted to rollback to the previous version. 
   But I
   was unable to. When I deactivated the new one and tried to 
   reactivate
   the older one it wouldn't let me, because the older one's Version
   Number was lower than the current one. Well, yes, obviously.

   In the end, I had to recompile my previous version with a newer
   version number, and release that as an update. Mental.

   What is the point of a re-activate button that doesnt let you re-
   activate? Or am I missing something?- Hide quoted text -

- Show quoted text -- Hide quoted text -

  - Show quoted text -

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

2011-10-30 Thread ayanir
I found a fix.
I I open the SDK from the Eclipse it works.

On Oct 30, 12:32 pm, ayanir ayanir...@gmail.com wrote:
 Hello,

 I'm getting the following error:
 Failed to rename directory D:\android-sdk-windows\toolsto 
 D:\android-sdk-windows\temp\ToolPackage.old02.
 when tring to update the AndroidSDKTools,revision15.

 I'm using Windows 7 with Eclipse Indigo.
 the Eclipse plug in update seems to be installed fine.
 does anyone know how to solve this problem?

 On Oct 28, 8:19 am, abangkis abang...@gmail.com wrote:







  I don't know if that confuses my eclipse installation or not, there's always
  a possibility, it just my wild guess :) Because i need the ADT environment
  badly. My work around is to extract a clean eclipse installation. Create new
  workspace. Download ADT r15. And point it to my previous SDKr15
  installation. So far it works. Now I'm running on r15.

  Cheers.

  On Fri, Oct 28, 2011 at 11:55 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
   There would be no android-15folder.  The 14 there refers to the API
   level, while the 14 in the ADT is just a release count, in essence.
   They are not related and, I assume, it was a coincidence that they
   were both 14 for the ICS release.

   On Oct 28, 11:51 am, abangkis abang...@gmail.com wrote:
I'm using Windows 7 Ultimate and Eclipse Indigo. I upgraded bothSDK
platform and ADT from r14. Restarted eclipse and now I can't open the
   Debug
and DDMS perspective. The  SDKand AVD launcher is also missing from the
toolbar. I check to theSDKinstallation folder/android-sdk/platform and
   I
only see android-7, android-8, android-14. No android-15folder.

Does anyone else have the same problem as me ?

On Fri, Oct 28, 2011 at 9:20 AM, Zsolt Vasvari zvasv...@gmail.com
   wrote:
 Weird issue:

 - Updated the Eclipse Plug-In (Windows Vista)
 - Exited Eclipse as I like to do theSDKcomponent updates while they
 are not loaded
 - Started theSDKManager
 - I see the AndroidSDKTools item showing as Rev 14 and the for a
 second it says Update available: Rev15 then it goes back to Rev 14
 Installed won't let me update

 Now, if I go back to Eclipse and do the same thing, the Update
 available sticks.

 I still got some problems with the check boxes:

 - If I have Updates/New and Installed checked
 - I check AndroidSDKTools to be installed
 - Uncheck Installed (only have Updates/New checked), I would expect
 the AndroidSDKToolsto be in the shorter list as it's an available
 update.  But it's missing.

 On Oct 28, 6:42 am, Xavier Ducrohet x...@android.com wrote:
  Hey all,

  we've just releaseSDKToolsr15 and a matching ADT 15.0

  This is a bug fix only release. See notes athttp://
 developer.android.com/sdk/tools-notes.html
  andhttp://developer.android.com/sdk/eclipse-adt.html

  Make sure to get the new platform-toolsas well.

  Xav
  --
  Xavier Ducrohet
  AndroidSDKTech Lead
  Google Inc.http://developer.android.com|http://tools.android.com

  Please do not send me questions directly. Thanks!

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

--http://www.mreunionlabs.net/http://www.mreunion-labs.net/
twitter : @mreunionlabs
blog : mreunion.wordpress.com- Hide quoted text -

- Show quoted text -

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

  --http://www.mreunionlabs.net/http://www.mreunion-labs.net/
  twitter : @mreunionlabs
  blog : mreunion.wordpress.com

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


Re: [android-developers] Re: Preview of ADT with library project fixes

2011-10-30 Thread Michael A.
Glad to hear that - the layout editor bug is all kinds of annoying. One 
doesn't realize just how much one depends on this for density-independence 
checking of layouts until one doesn't have it available.

I'm still occasionally seeing projects using libraries not compiling after 
a startup of Eclipse btw, even with this release. Usually with problems 
related to not being able to find the references/imports from the library 
projects. Cleaning the projects usually works to fix the issue.

Regards,

Michael A.

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

2011-10-30 Thread Michael A.
This is an ancient bug that has been in the SDK pretty much for ever 
(search Stackoverflow and you'll find several reports of the issue and 
workarounds). Another simple fix is to move the tools directory manually 
first, and then move it back. It's a Windows specific issue, which 
apparently means its not really a priority. :-(

Regards,

Michael A.

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

2011-10-30 Thread Pent
You tried setting the fading edge length to 0 ?

Pent

 I have a HorizontalScrollView and when I drag the LinearLayout to the
 left and right edge, a orange color gradient will gradually appear on
 the edges. My quesiton is how to get rid of them? These gradient only
 appears when I drag the view to the most left and right. I tried many
 things (fading edge/foreground color/override getSolidColor.. etc) and
 still couldn't get rid of it.

 thanks.
 Ronald

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

2011-10-30 Thread Ali Chousein
Try creating a new issue at the following location (and don't be
surprised if you never hear anything :-P )
http://code.google.com/p/android/issues/list

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

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


[android-developers] Re: What is the best way to display facebook profile in android app?

2011-10-30 Thread Ali Chousein
This is a design related question and it's mainly up to you to decide
which information is important to display and which is not that
important to ignore (or display after cliking a 'More' button).

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

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

2011-10-30 Thread satheesh thinagaran
hi,
how to assign a image resource to image control at runtime???
 plzzz 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: Where Does Android store the email

2011-10-30 Thread Ali Chousein
I hope this blog will be useful for you:
http://email-addresses-in-android-contacts.blogspot.com/

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com/ | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
https://marketplace.cisco.com/apphq/store/products/994

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

2011-10-30 Thread John Goche
Hello,

I was wondering whether there is a way to prevent an
application from redrawing itself when the user tilts the
phone's screen from portrait to landscape.

Thanks,

John Goche

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

2011-10-30 Thread lbendlin
first, tell the manifest that you want to handle rotation yourself

activity android:name=.MainScreen android:label=@string/app_name
android:configChanges=orientation 
android:launchMode=singleTask
android:alwaysRetainTaskState=true...

then handle the rotation yourself (or ignore it)

@Override
public void onConfigurationChanged(Configuration newConfig)
{...}


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

2011-10-30 Thread ron
I tried it and it doesn't work at all.

I remember in ListView I can use the android:cacheColorHint to
modify the color of the fading edge, but HorizontalScrollView doesn't
have that.

I even extend HorizontalScrollView and override certain functions but
still not working..

@Override
public int getHorizontalFadingEdgeLength() {
return 0;
}

@Override
public int getVerticalFadingEdgeLength() {
return 0;
}

@Override
protected float getLeftFadingEdgeStrength() {
return 0;
}

@Override
protected float getRightFadingEdgeStrength() {
return 0;
}

@Override
public int getSolidColor() {
return Color.argb(0x00, 0xaa, 0xaa, 0xaa);
}

On Oct 30, 4:53 am, Pent supp...@apps.dinglisch.net wrote:
 You tried setting the fading edge length to 0 ?

 Pent

  I have a HorizontalScrollView and when I drag the LinearLayout to the
  left and right edge, a orange color gradient will gradually appear on
  the edges. My quesiton is how to get rid of them? These gradient only
  appears when I drag the view to the most left and right. I tried many
  things (fading edge/foreground color/override getSolidColor.. etc) and
  still couldn't get rid of it.

  thanks.
  Ronald

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

2011-10-30 Thread livewire9174
Hi,
I want to get my camera to zoom in to get a picture. This code is not
zooming.

Here is my code

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.hardware.Camera;
import android.hardware.Camera.PreviewCallback;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;


class Preview extends SurfaceView implements SurfaceHolder.Callback {
private static final String TAG = Preview;

SurfaceHolder mHolder;
public Camera camera;

Preview(Context context) {
super(context);

// Install a SurfaceHolder.Callback so we get notified when
the
// underlying surface is created and destroyed.
mHolder = getHolder();
mHolder.addCallback(this);
mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
}

public void surfaceCreated(SurfaceHolder holder) {
// The Surface has been created, acquire the camera and tell
it where
// to draw.
camera = Camera.open();
Camera.Parameters parameters = camera.getParameters();
parameters.set(orientation, portrait);
 
parameters.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_TWILIGHT);
parameters.setZoom(100);


camera.setParameters(parameters);



try {
camera.setPreviewDisplay(holder);
//  camera.setDisplayOrientation(90);



camera.setPreviewCallback(new PreviewCallback() {

public void onPreviewFrame(byte[] data, Camera 
arg1) {
FileOutputStream outStream = null;
try {
outStream = new 
FileOutputStream(String.format(/sdcard/
test.jpg, System.currentTimeMillis()));
outStream.write(data);
outStream.close();
Log.d(TAG, onPreviewFrame - 
wrote bytes:  + data.length);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
Preview.this.invalidate();
}
});
} catch (IOException e) {
e.printStackTrace();
}
}

public void surfaceDestroyed(SurfaceHolder holder) {
// Surface will be destroyed when we return, so stop the
preview.
// Because the CameraDevice object is not a shared resource,
it's very
// important to release it when the activity is paused.
camera.stopPreview();
camera = null;
}

public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
// Now that the size is known, set up the camera parameters
and begin
// the preview.
Camera.Parameters parameters = camera.getParameters();
parameters.setPreviewSize(w, h);
camera.setParameters(parameters);
parameters.set(orientation, portrait);
 
parameters.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_SHADE);
parameters.setZoom(100);


camera.startPreview();
}

@Override
public void draw(Canvas canvas) {
super.draw(canvas);
Paint p= new Paint(Color.RED);
Log.d(TAG,draw);
canvas.drawText(PREVIEW, canvas.getWidth()/2,
canvas.getHeight()/2, 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


Re: [android-developers] Re: The current state of C2DM

2011-10-30 Thread Chris Stewart
Thanks for the feedback.  I spent some time this week getting it set up,
and it works quite well.  I've had some issues with multiple devices
(phones and tablets), unregistering, and re-registering, and all of that
synced up perfectly.  But it definitely looks promising.  I think once I
work through all of the specific scenarios, I'll be good to go.

--
Chris Stewart
http://chriswstewart.com



On Wed, Oct 26, 2011 at 11:49 AM, Studio LFP studio@gmail.com wrote:

 I don't have any battled tested apps using it at the moment, but I have
 been testing it on some internal applications for a company.

 The whole process was fairly simple and seems to be reliable so far.
 Again, I'm in the testing phase so I'm not sending a large amount of
 requests a day.  It took about 30-60 minutes from start to finish for both
 the Android and server side to get working with no previous knowledge of it.

 I'd recommend you test it out for yourself. Just remember that it requires
 the Android Market to function properly, so it will restrict you from some
 hardware.

 Steven
 Studio LFP
 http://www.studio-lfp.com



 On Monday, October 24, 2011 7:43:20 PM UTC-5, Chris Stewart wrote:

 It's been quite awhile since I last looked into C2DM and at that time I
 remember a lot of developers were not recommending it for various reasons,
 although I don't remember those reasons today.  I'm very much in need of
 push notification support for an app I'm building, so I've started looking
 into C2DM again.  I'm curious if the general attitude toward it has changed
 with the developers here and if anyone has trench-level battle stories
 they'd care to share.

 --
 Chris Stewart
 http://chriswstewart.com

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

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

[android-developers] Can GPS work without internet access in Android phone?

2011-10-30 Thread Kenneth WON
Hi all,

I am testing my app and I found that when there is no internet access,
the app cannot obtain GPS location (it is not displaying the GPS point
in Google map, just obtain the GPS location only).
And the GPS function under a place covered by internet access and it
worked.
So can GPS work without internet access in Android phone?


Thank you!
Best Regards,
Kenneth Won

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

2011-10-30 Thread Chris Stewart
I'm starting the design for an app that spans phones and tablets (2.1 -
4.0, custom action bar pre-3.0, native action bar 3.0+) and working with a
designer used to the iPhone.  Going from a world where he worried about
3.5 only, to a world where every size is potentially available, is a
concern of mine.

So I'm wondering, which screen size, resolution, density, do we aim for to
start with?  Certainly we'll need to work on each of the layout/resource
variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but
I'm looking for a reference point to get started.  Should we be focusing on
the largest for phones, and largest for tablets, with the expectation that
we can mostly scale down from each of those to the smaller phone and tablet
sizes/resolutions/densities?

Any thoughts on this topic are welcome.

--
Chris Stewart

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

2011-10-30 Thread Mark Murphy
On Sun, Oct 30, 2011 at 12:56 PM, Chris Stewart cstewart...@gmail.com wrote:
 Going from a world where he worried about 3.5
 only, to a world where every size is potentially available, is a concern of
 mine.

http://www.amazon.com/Red-Bull-Energy-Drink-8-4-Ounce/dp/B000MTST70/httpcommonsco-20

:-)

 So I'm wondering, which screen size, resolution, density, do we aim for to
 start with?

That's like saying do I focus on 800x600, 804x567, or 923x725
resolution browser windows first?. The answer is all of them,
because you focus on creating a design that incorporates rules for
handling resizeable browser windows.

 Certainly we'll need to work on each of the layout/resource
 variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but
 I'm looking for a reference point to get started.  Should we be focusing on
 the largest for phones, and largest for tablets, with the expectation that
 we can mostly scale down from each of those to the smaller phone and tablet
 sizes/resolutions/densities?

I wouldn't. On a tactical level, it's almost always easier to scale up
than down.

Strategically, your first job is to determine what you care about.
-small screens, for example, are not terribly popular, so you might
elect to skip those in the interests of reducing development effort.
See:

http://developer.android.com/resources/dashboard/screens.html

Your second job is to come up with the big-ticket designs for your UX
on the remaining screen sizes. For example, where will you use one
fragment per activity in -normal devices and use multiple fragments
per activity in -large and/or -xlarge? See:

http://developer.android.com/guide/practices/tablets-and-handsets.html

Your third job is, within a fragment, to design layouts that can
handle the variations in screen size the fragment will be expected to
cope with. For some fragments, they will have minor variations in size
(e.g., a phone-sized screen on a phone or a phone-sized portion of a
tablet screen). For some fragments, they will have much more dramatic
variations in size (e.g., a case where you will only ever have the
fragment by itself in an activity, or you have an activity sans
fragments). Here, your need to teach your GUI designer the basic rules
for The Big Three Android layouts:

-- use android:layout_weight with LinearLayout
-- use android:stretchColumns and android:shrinkColumns with TableLayout
-- use all the android:layout_* rules with RelativeLayout, to
stipulate what is attached to what (with whitespace therefore implied)

Your GUI designer should be able to give you GUI designs that depict
these rules.

Densities tend to fall out after the basic design is complete. Either
stick with a single density for each image (and let Android resample
it, with varying degrees of quality and performance) or package in one
copy of the image per density (at the cost of a somewhat larger APK).
If you have the same image that should appear in different sizes in
different screen sizes or layouts, again you will need to decide if
you want Android resizing the image (saves development effort at cost
of speed/quality) or if you want to package in multiple renditions of
the image at different sizes (e.g., icon-standard vs. icon-embiggened)
for each relevant density.

This would be an approach for a regular app. Games probably come at
this from a totally different approach vector, for example.

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

Android Training in NYC: http://marakana.com/training/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] Admob causes wrong text in textview

2011-10-30 Thread ndiiie 90
Hi guys,


i follow how to put admob tutorial from
http://code.google.com/mobile/ads/docs/android/fundamentals.html
and use
http://code.google.com/mobile/ads/docs/android/banner_xml.html

but when the ad is loaded, textviews under it become uncorrected display
the text (the layout is okay)


Anyone has experiences this kind of thing?


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] Forwarding Internet Traffic

2011-10-30 Thread Vikas Mahajan
Hi,

I know we can forward packets using iptables nat table. But as
iptables support is not available on all devices so is there any
another workaround?
Also, can we compile and load iptables module dynamically using insmod?


-- 
Regards

Vikas Mahajan
Website-: http://vikasmahajan.wordpress.com

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


Re: [android-developers] Forwarding Internet Traffic

2011-10-30 Thread Mark Murphy
On Sun, Oct 30, 2011 at 1:48 PM, Vikas Mahajan
vikas.mahaja...@gmail.com wrote:
 I know we can forward packets using iptables nat table. But as
 iptables support is not available on all devices so is there any
 another workaround?

Not from the Android SDK.

 Also, can we compile and load iptables module dynamically using insmod?

Please visit http://source.android.com, click on the Community tab,
find a list relevant for your question, and ask there. This list is
for developing with the Android SDK, not for firmware questions.

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

Android Training in NYC: http://marakana.com/training/android/

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


[android-developers] Re: Nexus NFC PN544 Stack/Hardware

2011-10-30 Thread Dean Brotzel
I have not heard anything.  I'm hoping these fixes are coming in 4.0.
For long commands I'm forced to use a large FWT which sucks as it
slows all interaction with the tag down.  I'm hoping the WTX gets
fixed so I can ask for a timeout extension on only the commands that
need it.

Dean

On Oct 28, 8:28 pm, bjthe4th kingp...@gmail.com wrote:
 I was wondering if these issues were ever figured out. I have a custom tag
 that also has some long processing times. I've noticed that the setting of
 the max FWT in the TB(1) byte of the ATS seems to have no effect. It times
 out on waiting for a response much quicker than the documentation would
 suggest. It timed out for me two seconds after I placed my Nexus S to the
 tag, when it was set for the max time of 4.95 seconds.

 Thanks,
 B.J.

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


Re: [android-developers] Where do you aim for design specs?

2011-10-30 Thread B Lyon
ugh.  Dealing with this exact same issue myself at the moment (iPhone --
android).  The screens link Mark pointed out is great to see what things
are out there as of Oct 3 - 90% are apparently Normal/hdpi or Normal/mdpi,
so you can set up the avd's to take a look at how things look (or buy all
the devices).Not depicted on the list, of course, is the potential
increase of Kindle Fires that are to be shipped Nov 15.  Amazon has some
info on how to configure the emulator for this (
https://developer.amazon.com/help/faq.html#KindleFire  which I found
via one of Mark's answers on stackoverflow).

On Sun, Oct 30, 2011 at 1:20 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Oct 30, 2011 at 12:56 PM, Chris Stewart cstewart...@gmail.com
 wrote:
  Going from a world where he worried about 3.5
  only, to a world where every size is potentially available, is a concern
 of
  mine.


 http://www.amazon.com/Red-Bull-Energy-Drink-8-4-Ounce/dp/B000MTST70/httpcommonsco-20

 :-)

  So I'm wondering, which screen size, resolution, density, do we aim for
 to
  start with?

 That's like saying do I focus on 800x600, 804x567, or 923x725
 resolution browser windows first?. The answer is all of them,
 because you focus on creating a design that incorporates rules for
 handling resizeable browser windows.

  Certainly we'll need to work on each of the layout/resource
  variations (small, medium, large, xlarge, ldpi, mdpi, hpdi, etc, etc) but
  I'm looking for a reference point to get started.  Should we be focusing
 on
  the largest for phones, and largest for tablets, with the expectation
 that
  we can mostly scale down from each of those to the smaller phone and
 tablet
  sizes/resolutions/densities?

 I wouldn't. On a tactical level, it's almost always easier to scale up
 than down.

 Strategically, your first job is to determine what you care about.
 -small screens, for example, are not terribly popular, so you might
 elect to skip those in the interests of reducing development effort.
 See:

 http://developer.android.com/resources/dashboard/screens.html

 Your second job is to come up with the big-ticket designs for your UX
 on the remaining screen sizes. For example, where will you use one
 fragment per activity in -normal devices and use multiple fragments
 per activity in -large and/or -xlarge? See:

 http://developer.android.com/guide/practices/tablets-and-handsets.html

 Your third job is, within a fragment, to design layouts that can
 handle the variations in screen size the fragment will be expected to
 cope with. For some fragments, they will have minor variations in size
 (e.g., a phone-sized screen on a phone or a phone-sized portion of a
 tablet screen). For some fragments, they will have much more dramatic
 variations in size (e.g., a case where you will only ever have the
 fragment by itself in an activity, or you have an activity sans
 fragments). Here, your need to teach your GUI designer the basic rules
 for The Big Three Android layouts:

 -- use android:layout_weight with LinearLayout
 -- use android:stretchColumns and android:shrinkColumns with TableLayout
 -- use all the android:layout_* rules with RelativeLayout, to
 stipulate what is attached to what (with whitespace therefore implied)

 Your GUI designer should be able to give you GUI designs that depict
 these rules.

 Densities tend to fall out after the basic design is complete. Either
 stick with a single density for each image (and let Android resample
 it, with varying degrees of quality and performance) or package in one
 copy of the image per density (at the cost of a somewhat larger APK).
 If you have the same image that should appear in different sizes in
 different screen sizes or layouts, again you will need to decide if
 you want Android resizing the image (saves development effort at cost
 of speed/quality) or if you want to package in multiple renditions of
 the image at different sizes (e.g., icon-standard vs. icon-embiggened)
 for each relevant density.

 This would be an approach for a regular app. Games probably come at
 this from a totally different approach vector, for example.

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

 Android Training in NYC: http://marakana.com/training/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


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

[android-developers] Re: Where Does Android store the email

2011-10-30 Thread luca aliberti
Sorry,
i would to know where the email that you send with your google
account, are stored in the phone.

Thanks a lot

On Oct 30, 1:50 pm, Ali Chousein ali.chous...@gmail.com wrote:
 I hope this blog will be useful for 
 you:http://email-addresses-in-android-contacts.blogspot.com/

 -
 Ali Chousein
 Weather-Buddyhttp://weatherbuddy.blogspot.com/|http://twitter.com/weather_buddy
 Geo-Filtered 
 Assistanthttp://geo-filtered-assistant.blogspot.com/https://marketplace.cisco.com/apphq/store/products/994

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

2011-10-30 Thread Kristopher Micinski
You can't figure this out reliably.

GMail won't let you look at the user's email, and what if the user
uses another email client.  There are two default email clients
installed on most phones, at least, and a hoard of other email clients
that the user could use.

So why do you need to access the user's email?

http://stackoverflow.com/questions/2992635/how-to-get-the-number-of-unread-gmail-mails-on-android/3037279#3037279

Get's you the gmail perm.

there should be other ones for more email applications.  I could see
an app you developed as a gmail add on, but you should realize this
won't work in general..

Kris

On Sun, Oct 30, 2011 at 4:32 PM, luca aliberti lucal...@gmail.com wrote:
 Sorry,
 i would to know where the email that you send with your google
 account, are stored in the phone.

 Thanks a lot

 On Oct 30, 1:50 pm, Ali Chousein ali.chous...@gmail.com wrote:
 I hope this blog will be useful for 
 you:http://email-addresses-in-android-contacts.blogspot.com/

 -
 Ali Chousein
 Weather-Buddyhttp://weatherbuddy.blogspot.com/|http://twitter.com/weather_buddy
 Geo-Filtered 
 Assistanthttp://geo-filtered-assistant.blogspot.com/https://marketplace.cisco.com/apphq/store/products/994

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

2011-10-30 Thread William Ferguson
You need to also be aware that it is only for devices running Android
2.2+

William


On Oct 31, 2:44 am, Chris Stewart cstewart...@gmail.com wrote:
 Thanks for the feedback.  I spent some time this week getting it set up,
 and it works quite well.  I've had some issues with multiple devices
 (phones and tablets), unregistering, and re-registering, and all of that
 synced up perfectly.  But it definitely looks promising.  I think once I
 work through all of the specific scenarios, I'll be good to go.

 --
 Chris Stewarthttp://chriswstewart.com







 On Wed, Oct 26, 2011 at 11:49 AM, Studio LFP studio@gmail.com wrote:
  I don't have any battled tested apps using it at the moment, but I have
  been testing it on some internal applications for a company.

  The whole process was fairly simple and seems to be reliable so far.
  Again, I'm in the testing phase so I'm not sending a large amount of
  requests a day.  It took about 30-60 minutes from start to finish for both
  the Android and server side to get working with no previous knowledge of it.

  I'd recommend you test it out for yourself. Just remember that it requires
  the Android Market to function properly, so it will restrict you from some
  hardware.

  Steven
  Studio LFP
 http://www.studio-lfp.com

  On Monday, October 24, 2011 7:43:20 PM UTC-5, Chris Stewart wrote:

  It's been quite awhile since I last looked into C2DM and at that time I
  remember a lot of developers were not recommending it for various reasons,
  although I don't remember those reasons today.  I'm very much in need of
  push notification support for an app I'm building, so I've started looking
  into C2DM again.  I'm curious if the general attitude toward it has changed
  with the developers here and if anyone has trench-level battle stories
  they'd care to share.

  --
  Chris Stewart
 http://chriswstewart.com

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

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

2011-10-30 Thread Kristopher Micinski
On Sun, Oct 30, 2011 at 4:37 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 You can't figure this out reliably.

 GMail won't let you look at the user's email, and what if the user
 uses another email client.  There are two default email clients
 installed on most phones, at least, and a hoard of other email clients
 that the user could use.


Haha, sorry, it appears that I contradicted myself on this first point
:-P, please forget that first sentence.


Kris

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

2011-10-30 Thread leigh8347
hello

can anyone help?

on my app im trying to do the following - Save 2 user inputs to a .txt
file and save it, then be able to enter 2 more inputs and save again
and repeat many times.

so far my code creates a file, writes the first 2 inputs and saves.
but when i try saving another 2 it just replaces the first. im quite
confused.

here is what i have

txtData = (EditText) findViewById(R.id.input1);
txtData2 = (EditText) findViewById(R.id.input2);

btnWriteSDFile = (Button) findViewById(R.id.save);
btnWriteSDFile.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
// write on SD card file data in the text box
try {
File myFile = new 
File(Environment.getExternalStorageDirectory(),
parkrun_barcode.txt);
myFile.createNewFile();
FileOutputStream fOut = new FileOutputStream(myFile);
OutputStreamWriter myOutWriter = new 
OutputStreamWriter(fOut);

myOutWriter.append(txtData.getText() + ,  + 
txtData2.getText());
myOutWriter.close();
fOut.close();
Toast.makeText(getBaseContext(),
Saved',
Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(),
Toast.LENGTH_SHORT).show();
}

txtData.setText();
txtData2.setText();


}
});

}

}

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

2011-10-30 Thread Mark Murphy
You need to append to the file. You are overwriting the file. This is
standard Java I/O and has nothing in particular to do with Android.

http://exampledepot.com/egs/java.io/AppendToFile.html

On Sun, Oct 30, 2011 at 4:54 PM, leigh8347 leigh8...@aol.com wrote:
 hello

 can anyone help?

 on my app im trying to do the following - Save 2 user inputs to a .txt
 file and save it, then be able to enter 2 more inputs and save again
 and repeat many times.

 so far my code creates a file, writes the first 2 inputs and saves.
 but when i try saving another 2 it just replaces the first. im quite
 confused.

 here is what i have

        txtData = (EditText) findViewById(R.id.input1);
        txtData2 = (EditText) findViewById(R.id.input2);

        btnWriteSDFile = (Button) findViewById(R.id.save);
        btnWriteSDFile.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
                // write on SD card file data in the text box
                try {
                        File myFile = new 
 File(Environment.getExternalStorageDirectory(),
 parkrun_barcode.txt);
                        myFile.createNewFile();
                        FileOutputStream fOut = new FileOutputStream(myFile);
                        OutputStreamWriter myOutWriter = new 
 OutputStreamWriter(fOut);

                        myOutWriter.append(txtData.getText() + ,  + 
 txtData2.getText());
                        myOutWriter.close();
                        fOut.close();
                        Toast.makeText(getBaseContext(),
                                        Saved',
                                        Toast.LENGTH_SHORT).show();
                } catch (Exception e) {
                        Toast.makeText(getBaseContext(), e.getMessage(),
                                        Toast.LENGTH_SHORT).show();
                }

                        txtData.setText();
                        txtData2.setText();


        }
        });

        }

 }

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




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

Android Training in NYC: http://marakana.com/training/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] hoe to consume html webservices + android

2011-10-30 Thread ANKUR GOEL


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

2011-10-30 Thread bob
Is there a way I can configure my Macbook USB port to charge my
Android phone more quickly?

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

2011-10-30 Thread John Coryat
Yes, disconnect it from your Mac and plug it into the wall.


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

2011-10-30 Thread John Goche
Hello,

Your suggestion did not work for me (especially since I did not know what
to do inside onConfigurationChanged, nor why I would also need
launchMode=singleTask
and android:alwaysRetainTaskState=true).

What did work for me was inside onCreate:

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

Further clarification welcome,

Regards,

John Goche

On Sun, Oct 30, 2011 at 4:02 PM, lbendlin l...@bendlin.us wrote:

 first, tell the manifest that you want to handle rotation yourself

 activity android:name=.MainScreen android:label=@string/app_name
 android:configChanges=orientation
 android:launchMode=singleTask
 android:alwaysRetainTaskState=true...

 then handle the rotation yourself (or ignore it)

 @Override
 public void onConfigurationChanged(Configuration newConfig)
 {...}


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

2011-10-30 Thread Kristopher Micinski
On Sun, Oct 30, 2011 at 6:47 PM, John Goche johngoch...@googlemail.com wrote:

 Hello,

 Your suggestion did not work for me (especially since I did not know what
 to do inside onConfigurationChanged, nor why I would also need
 launchMode=singleTask
 and android:alwaysRetainTaskState=true).


How about *nothing*?

Kris

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

2011-10-30 Thread Zsolt Vasvari
Is it only me, but the latest version of the ADT seems very unreliable
on Windows (Vista)?

I get frequent freezes and running out of Java heap space errors where
I need to kill Eclipse and the adb -- even only after just making
changes to the Java code.  The compilation itself seems even slower,
if that's even possible.  I certainly see no improvements to the
resource building times, if anything it's worse.

I know this is a rant, but every time I change a resource, I am
sitting and wait for it to compile for, no kidding, 3-5 minutes and
then hope that it hadn't crashed.

The only change I made to my system is the laest ADT and SDK -- I
didn't touch anything else in the tool chain, such as Eclipse, ANT or
the JDK.

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

2011-10-30 Thread lbendlin
what you do here has nothing to do with your original question. There you 
asked how to handle rotation yourself. here you are preventing rotation.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can GPS work without internet access in Android phone?

2011-10-30 Thread lbendlin
GPS can work very well without internet access - after it got the first 
fix.  The internet access is used to download satellite position data to 
the GPS receiver which speeds up the TTFF (time to first fix).  Without the 
extra help the first fix can take quite some time, especially when you are 
already moving.

Go to a location with unobstructed sky view and let the GPS receiver get a 
fix. Then check how it performs on subsequent fixes.

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

2011-10-30 Thread lbendlin
imageView.setImageResource(getContext().getResources().getIdentifier(filename, 
drawable, getContext().getPackageName()));

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

2011-10-30 Thread TreKing
On Wed, Oct 26, 2011 at 8:30 PM, Rob ra...@albion.edu wrote:

 Could there be a simple explanation for why that might happen?


Screenshot? Post your layout?

-
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] Listview - DialogBox issue

2011-10-30 Thread TreKing
On Thu, Oct 27, 2011 at 3:34 AM, Jovish P android.f...@gmail.com wrote:

 Whenever he clicks on the edit text box , the app getting crashed. It's
 throwing null pointer exception
 in the adapter class of list view.


Use the debugger and logcat to debug your app and at least post the
stacktrace of your crash.

-
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: 2.3.3 bugs on the Nexus One - When will Google fix this?

2011-10-30 Thread TreKing
On Thu, Oct 27, 2011 at 7:15 AM, JRock develo...@earthblood.com wrote:

 I have never rooted or flashed my phone so I am not up on that, is
 there a way to download Froyo and put that back on my phone?


If you factory reset, it should go back to the original version that it
came with.
Or root your phone and flash it to whatever you want.

-
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] Android - use multiple Activities within a TabActivity what's the solution?

2011-10-30 Thread TreKing
On Thu, Oct 27, 2011 at 9:27 AM, draf...@gmail.com draf...@gmail.comwrote:

 Can anyone point me in the right direction as to what I should be looking
 for as a solution to this?


Check out Fragments.

-
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] in Framelayout image drawn on and off

2011-10-30 Thread jaggu
Hi
please see that image like this in android is it possible ,
because of i tryiede in android i didnt get can any one guide me like that

in framelayout that i have to design becaue of i already applied for
other useing framelayouts i have draw around 4 images expcet this with
in one screen

please guide me in right direction


thanks
Jagadeesh

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

Re: [android-developers] integrate a third party application in my application

2011-10-30 Thread TreKing
On Sun, Oct 30, 2011 at 12:24 AM, sam jeck joinvir...@gmail.com wrote:

 can we integrate a third party application in our android application?


Applications, no, not really. You can use Java libraries though.

Or you can launch generic intents that are designed to accomplish some task
with an external application.

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

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

[android-developers] Re: Can GPS work without internet access in Android phone?

2011-10-30 Thread Kenneth WON
Hi, lbendlin,

Thank you for your reply.
I am really facing this issue.
When I turn off the Network (WiFi and/or cell network), the app cannot
obtain (GPS / A-GPS) position.
Then I turn the network on, it can get the (GPS / A-GPS) position
successfully.
What's wrong?

Thanks and Regards,
Kenneth Won



On 10月31日, 上午8時30分, lbendlin l...@bendlin.us wrote:
 GPS can work very well without internet access - after it got the first
 fix.  The internet access is used to download satellite position data to
 the GPS receiver which speeds up the TTFF (time to first fix).  Without the
 extra help the first fix can take quite some time, especially when you are
 already moving.

 Go to a location with unobstructed sky view and let the GPS receiver get a
 fix. Then check how it performs on subsequent fixes.

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

2011-10-30 Thread Studio LFP
I have noticed that I have to clean my projects a lot more to get them to 
function. This started more with 13 and has continued to where I have to 
clean almost any time I want to pick up resource changes regardless of what 
settings I have/have not checked. It seems to like to ignore my changes to 
layout files and I end up with invalid or wrong resource values.

The freezing and running out of heap seems like you might have an issue 
somewhere else. Have you tried cleaning out Eclipse/ADT/SDK and 
reinstalling fresh? I know it's not the optimal thing, but might be worth a 
try. I've done it a time or two on my main workstation and laptop and it 
seems to help keep things in order.

If you do refresh your tools, just remember to do the Android Tools  Fix 
Project Properties on any projects you import if you start with a clean 
workspace.

Note: I am on Windows 7 and not Vista, so it might be something Vista 
specific.

Steven
Studio LFP
http://www.studio-lfp.com


On Sunday, October 30, 2011 6:00:58 PM UTC-5, Zsolt Vasvari wrote:

 Is it only me, but the latest version of the ADT seems very unreliable 
 on Windows (Vista)? 

 I get frequent freezes and running out of Java heap space errors where 
 I need to kill Eclipse and the adb -- even only after just making 
 changes to the Java code.  The compilation itself seems even slower, 
 if that's even possible.  I certainly see no improvements to the 
 resource building times, if anything it's worse. 

 I know this is a rant, but every time I change a resource, I am 
 sitting and wait for it to compile for, no kidding, 3-5 minutes and 
 then hope that it hadn't crashed. 

 The only change I made to my system is the laest ADT and SDK -- I 
 didn't touch anything else in the tool chain, such as Eclipse, ANT or 
 the JDK.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can GPS work without internet access in Android phone?

2011-10-30 Thread Kristopher Micinski
Cold starts can take up to 15 minutes...

Did you wait 15 minutes...



On Sun, Oct 30, 2011 at 11:17 PM, Kenneth WON kenneth...@gmail.com wrote:
 Hi, lbendlin,

 Thank you for your reply.
 I am really facing this issue.
 When I turn off the Network (WiFi and/or cell network), the app cannot
 obtain (GPS / A-GPS) position.
 Then I turn the network on, it can get the (GPS / A-GPS) position
 successfully.
 What's wrong?

 Thanks and Regards,
 Kenneth Won



 On 10月31日, 上午8時30分, lbendlin l...@bendlin.us wrote:
 GPS can work very well without internet access - after it got the first
 fix.  The internet access is used to download satellite position data to
 the GPS receiver which speeds up the TTFF (time to first fix).  Without the
 extra help the first fix can take quite some time, especially when you are
 already moving.

 Go to a location with unobstructed sky view and let the GPS receiver get a
 fix. Then check how it performs on subsequent fixes.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Can GPS work without internet access in Android phone?

2011-10-30 Thread Kenneth WON
Hi, Kristopher,

Thank you for your reply.
Yes, I waited it more than 15 minutes.
And following is my code, I have no idea where's wrong,
please feel free to have a look, and
If you don't mind, please give me some hints
Thank you!


package com.lyodssoft.android.project.gps;

import android.app.Service;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Binder;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.util.Log;

public class GPSService extends Service implements LocationListener {

  private Handler requestLocUpdateHandler = new Handler();
  private LocationManager locationMgr;
  private static int locUpdateTime = 3;

  // Bind for Service Connection
  class GPSServiceBinder extends Binder {
GPSService getService() {
  return GPSService.this;
}
  }

  // define ACTION
  public static final String ACTION = GPS Service Broadcast;

  @Override
  public void onCreate() {
super.onCreate();

locationMgr = (LocationManager)
getSystemService(LOCATION_SERVICE);
requestLocUpdateHandler.postDelayed(requestLocUpdateTask, 1000);
  }

  private void updateLocStatus(Location loc) {
if (loc != null) {
  double latitude = loc.getLatitude();
  double longitude = loc.getLongitude();
  long locTime = loc.getTime();
  String dateTime = Utils.dateFormat.format(locTime);

  Log.w(Location Info, loc.getAccuracy() +  |  +
loc.getProvider());
  Log.w(GPS, Time:  + dateTime +  | Lat:  + latitude +  |
Long:  + longitude);
}
  }

  private Runnable requestLocUpdateTask = new Runnable() {
@Override
public void run() {
  requestLocUpdate();
  requestLocUpdateHandler.postDelayed(requestLocUpdateTask,
locUpdateTime);
}
  };

  private void requestLocUpdate() {
locationMgr.removeUpdates(this);
locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER,
3000, 0, this);
  }

  @Override
  public IBinder onBind(Intent arg0) {
return new GPSServiceBinder();
  }

  @Override
  public void onRebind(Intent intent) {
  }

  @Override
  public boolean onUnbind(Intent intent) {
return true;
  }

  @Override
  public void onLocationChanged(Location location) {
updateLocStatus(location);
  }

  @Override
  public void onProviderDisabled(String provider) {
  }

  @Override
  public void onProviderEnabled(String provider) {
  }

  @Override
  public void onStatusChanged(String provider, int status, Bundle
extras) {
  }

  @Override
  public void onDestroy() {
super.onDestroy();
locationMgr.removeUpdates(this);
  }

  @Override
  public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
  }
}


Thanks and Regards,
Kenneth Won



On 10月31日, 上午11時22分, Kristopher Micinski krismicin...@gmail.com
wrote:
 Cold starts can take up to 15 minutes...

 Did you wait 15 minutes...







 On Sun, Oct 30, 2011 at 11:17 PM, Kenneth WON kenneth...@gmail.com wrote:
  Hi, lbendlin,

  Thank you for your reply.
  I am really facing this issue.
  When I turn off the Network (WiFi and/or cell network), the app cannot
  obtain (GPS / A-GPS) position.
  Then I turn the network on, it can get the (GPS / A-GPS) position
  successfully.
  What's wrong?

  Thanks and Regards,
  Kenneth Won

  On 10月31日, 上午8時30分, lbendlin l...@bendlin.us wrote:
  GPS can work very well without internet access - after it got the first
  fix.  The internet access is used to download satellite position data to
  the GPS receiver which speeds up the TTFF (time to first fix).  Without the
  extra help the first fix can take quite some time, especially when you are
  already moving.

  Go to a location with unobstructed sky view and let the GPS receiver get a
  fix. Then check how it performs on subsequent fixes.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, 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: Can GPS work without internet access in Android phone?

2011-10-30 Thread John Coryat
This should help you understand what's going on when the GPS is downloading 
the almanac.

http://en.wikipedia.org/wiki/GPS_signals#Almanac

-John Coryat

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

2011-10-30 Thread gjs
Hi,

http://www.appinventorbeta.com/about/

There is probably a bunch of other third party cross platform dev
tools as well, try searching with Google.

Regards

On Oct 30, 7:22 am, Manikandan M c2dmdevelo...@gmail.com wrote:
 Hi,

 Please help me. i am curios about this.

 Thanks
 Manikandan

 On Sat, Oct 29, 2011 at 10:29 PM, Manikandan M c2dmdevelo...@gmail.comwrote:







  Hi All,

  It seems to me only native and webview  are the two types of mobile
  application we can create. using mobile jquery we can create web
  application that make effective UI in mobile devices.

  Correct me if i am wrong, and another type of mobile app we can create in
  android?

  Thanks
  Manikandan

  On Sat, Oct 29, 2011 at 4:20 PM, Manikandan M 
  c2dmdevelo...@gmail.comwrote:

  Hi

  Any Ideas.

  Thanks
  Manikandan

  On Tue, Oct 25, 2011 at 9:52 AM, Manikandan M 
  c2dmdevelo...@gmail.comwrote:

  Hi All,

  I am new android development i want to know what are the different
  ways to create mobile applications.

  1. Native App
  2. Using jquery mobile to create web app
  3. Using webview

  is webview and jquery mobile are same and any other types we can
  create mobile app.

  Thanks
  Manikandan

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

2011-10-30 Thread kypriakos

I am wondering if I upgrading to 2.3 may help the cause but it makes
no sense
for a method out of a standard package to be missing. The permission
for the
camera hardware is set in the manifest. Any ideas will be greatly
appreciated.

Thanks

On Oct 29, 9:52 pm, kypriakos demet...@ece.neu.edu wrote:
 And I do think Froyo still has the autofocus avaliable in its API ...
 hmm

 On Oct 29, 9:44 pm, kypriakos demet...@ece.neu.edu wrote:







  Hi all,

  I am getting the famous Failure [INSTALL_FAILED_MISSING_FEATURE] on an
  Optimus LG 350P running Froyo (2.2.1). Checking the logging I see the
  following:

  E/PackageManager( 1376): Package org.mortbay.ijetty requires
  unavailable feature android.hardware.camera.autofocus; failing!

  What ??? The phone does have the autofocus feature on the phone. And
  the app works
  fine on the G1 ... would this mean that the autofocus is not enabled
  hardware wise
  on the device? Or is something else missing from the app's point of
  view?

  Thanks

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


[android-developers] Re: Can GPS work without internet access in Android phone?

2011-10-30 Thread Kenneth WON
Hi, Kristopher, 

Thank you for your reply. Yes, I waited it more than 15 minutes. And
following is my code, I have no idea where's wrong, please feel free
to have a look, and If you don't mind, please give me some hints Thank
you! 

 
import android.app.Service; import android.content.Intent; import
android.location.Location; import
android.location.LocationListener; import
android.location.LocationManager; import android.os.Binder; import
android.os.Bundle; import android.os.Handler; import
android.os.IBinder; import android.util.Log; public class GPSService
extends Service implements LocationListener {   private Handler
requestLocUpdateHandler = new Handler();   private LocationManager
locationMgr;   private static int locUpdateTime = 3;   // Bind for
Service Connection   class GPSServiceBinder extends Binder {    
GPSService getService() {       return GPSService.this;     }   }   //
define ACTION   public static final String ACTION = GPS Service
Broadcast;   @Override   public void onCreate() {    
super.onCreate();     locationMgr =
(LocationManager) getSystemService(LOCATION_SERVICE);    
requestLocUpdateHandler.postDelayed(requestLocUpdateTask, 1000);   }  
private void updateLocStatus(Location loc) {     if (loc != null) {  
    double latitude = loc.getLatitude();       double longitude =
loc.getLongitude();       long locTime = loc.getTime();       String
dateTime = Utils.dateFormat.format(locTime);       Log.w(Location
Info, loc.getAccuracy() +  |  + loc.getProvider());      
Log.w(GPS, Time:  + dateTime +  | Lat:  + latitude +  | Long: 
+ longitude);     }   }   private Runnable requestLocUpdateTask = new
Runnable() {     @Override     public void run() {      
requestLocUpdate();      
requestLocUpdateHandler.postDelayed(requestLocUpdateTask, locUpdateTime);  
  }   };   private void requestLocUpdate() {    
locationMgr.removeUpdates(this);    
locationMgr.requestLocationUpdates(LocationManager.GPS_PROVIDER, 3000,
0, this);   }   @Override   public IBinder onBind(Intent arg0) {    
return new GPSServiceBinder();   }   @Override   public void
onRebind(Intent intent) {   }   @Override   public boolean
onUnbind(Intent intent) {     return true;   }   @Override   public
void onLocationChanged(Location location) {    
updateLocStatus(location);   }   @Override   public void
onProviderDisabled(String provider) {   }   @Override   public void
onProviderEnabled(String provider) {   }   @Override   public void
onStatusChanged(String provider, int status, Bundle extras) {   }  
@Override   public void onDestroy() {     super.onDestroy();    
locationMgr.removeUpdates(this);   }   @Override   public void
onStart(Intent intent, int startId) {     super.onStart(intent,
startId);   } } 
Thanks and Regards, Kenneth Won 



On 10月31日, 上午11時22分, Kristopher Micinski krismicin...@gmail.com
wrote:
 Cold starts can take up to 15 minutes...

 Did you wait 15 minutes...







 On Sun, Oct 30, 2011 at 11:17 PM, Kenneth WON kenneth...@gmail.com wrote:
  Hi, lbendlin,

  Thank you for your reply.
  I am really facing this issue.
  When I turn off the Network (WiFi and/or cell network), the app cannot
  obtain (GPS / A-GPS) position.
  Then I turn the network on, it can get the (GPS / A-GPS) position
  successfully.
  What's wrong?

  Thanks and Regards,
  Kenneth Won

  On 10月31日, 上午8時30分, lbendlin l...@bendlin.us wrote:
  GPS can work very well without internet access - after it got the first
  fix.  The internet access is used to download satellite position data to
  the GPS receiver which speeds up the TTFF (time to first fix).  Without the
  extra help the first fix can take quite some time, especially when you are
  already moving.

  Go to a location with unobstructed sky view and let the GPS receiver get a
  fix. Then check how it performs on subsequent fixes.

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

2011-10-30 Thread Seba
Hi Nand,

I am trying to do exaclty teh same thing, did you find any solution.

Thanks

Sebastian

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