[android-developers] Re: Barcode Generator

2013-05-06 Thread Piren
Two easy steps:
1) Open Google.com (or Bing.com if you prefer)
2) Type android barcode generator and press enter.

On Monday, May 6, 2013 8:51:22 AM UTC+3, sree wrote:

 Hi
 In my App i read numbers from web application using webservices,using 
 those numbers i need to generate barcode images.How it is possible.
 Please give me any idea or explain steps for do this.

 Thank you in Advance.


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




Re: [android-developers] how to create a 9Patch image of the attached, with the help of draw9patch.bat tool?

2013-05-06 Thread Fabien R
On 26/04/2013 23:18, sayan mukherjee wrote:

 https://lh5.googleusercontent.com/-mdjhsO6RPVE/UXrvAz3XPtI/Dew/gDZYIGp-OIM/s1600/btn_cancel.png
 Hi, 

 Any help welcomes...
What did you try ?
What's the problem ?
-
Fabien

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Frame Works

2013-05-06 Thread Arun Kumar K
Hi guys,

Which frame work is best for android web appslike jquery,phonegap
etc.

-- 
*Thanks  Regards*
*K.Arun Kumar*

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: how to create a 9Patch image of the attached, with the help of draw9patch.bat tool?

2013-05-06 Thread Piren
RTFM
http://developer.android.com/tools/help/draw9patch.html

On Saturday, April 27, 2013 12:18:14 AM UTC+3, sayan mukherjee wrote:


 https://lh5.googleusercontent.com/-mdjhsO6RPVE/UXrvAz3XPtI/Dew/gDZYIGp-OIM/s1600/btn_cancel.png
 Hi, 

 Any help welcomes...
 Please have a look at the attached image, and help me to find a solution 
 to create this as a 9Patch drawing with the help of draw9patch.bat


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Frame Works

2013-05-06 Thread Alessandro Pellizzari
Il Mon, 06 May 2013 14:09:43 +0530, Arun Kumar K ha scritto:

 Hi guys,
 
 Which frame work is best for android web appslike jquery,phonegap
 etc.

It depends on what you need and how well you know the one you use.

jQuery is a library for DOM manipulation, jQueryMobile is a HTML/CSS/JS 
widgets framework, Phonegap is a bridge framework to use the device 
hardware features from a web app.

You can use all three in the same app. They do different things.

You didn't mention Titanium. This is a compiler for javascript 
applications into native apps (not native code). It uses native code 
(Java 
on Android, ObjC on iOS, etc.) to implement framework extensions.

Bye.


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] HWUI

2013-05-06 Thread chandra
Hi,
 
what is the functionality of hwui ?
Are there any documents/links to understand HWUI in detail? I want to 
understand the flow of  OpenGLRenderer.cpp and LayerRenderer.cpp.
 
 
Thanks,
Chandra

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] How to do the slicing effect as in fruit ninja when user touches the screen?

2013-05-06 Thread maitrey
Hi, I would like to try the slicing effect like they do in Fruit Ninja. Is 
there any open source code or any example available for android? I see some 
libraries and example for iOS, but not for android. Please let me know if 
there is any example or open source library available for this effect.

thanks

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




[android-developers] addOnAttachStateChangeListene

2013-05-06 Thread Live Happy
 it is there any equivalent for addOnAttachStateChangeListener on
gingerbread

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Overloading of Back Key functionality

2013-05-06 Thread Doug Gordon
Excuse me for a minor rant, but is anyone else bothered by what I call 
the overloading of the Android Back key? What I mean by this is that 
pressing it can have two vastly different results: it can return you to 
an earlier view in the app you are using, or it can effectively exit 
the app and return to the previous app or home screen.


In the original concept (?) of Android, this can work well. For example, 
you have an app with a View on Map control. Tap it and you throw out 
an Intent that's picked up by Google Maps. When you're done, you press 
the Back key and return to the original app. Fine.


However -- and for me this is a big however -- many if not most apps are 
a lot more complex and are more in the nature of standalone programs. 
When running these apps, the Back key is used to back up to previous 
viewing states of the app, such as returning from an article to the 
table of contents. Trouble is, it's not always obvious or easy to 
remember the hierarchy of the app contents, and I don't know how many 
times I press the Back key expecting to return to another state of the 
app and instead find myself looking at the home screen!


An example: The user runs a weather app and it displays the weather for 
her location. She decides to look at the weather in another city and 
uses some control to select it. At this point it is easy to assume that 
pressing the Back key will return the app to the previous city's data, 
but that's not how it works: pressing that key exits the app.


My own app has this situation, and even when using it myself I sometimes 
accidentally exit it instead of going back to an earlier set of 
details. I notice that some apps have put in an Are you sure you want 
to exit? dialog that helps prevent this, but it would seem it would be 
a lot cleaner if this were not necessary.


--
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Overloading of Back Key functionality

2013-05-06 Thread Piren
Actually, even in earlier versions of Android the activity stack behavior 
could be manipulated in ways you wouldn't expect using task reparenting and 
etc. Basically in one instance back could bring you back to your app, in 
others it can act like going up in that app...Google's example was 
opening a Send Email activity which can have its Back button either go back 
to your app, or go into the Inbox of that app.

My guess is that all this confusion is why they created the Action Bar and 
give you the option to make it more consistent by making a distinction 
between what Back is and what Up is.

As far as i recall, Google doesn't even recommend overriding the Back 
button, pretty much for these exact reasons. But in your case (your app) 
you need to override it if you plan on getting what you expect...The way 
you described it is that you expect the Back button to navigate within you 
app, but it seems like you never switch activities/fragments, you just 
change the information displayed... so when pressing the Back button it 
exists the app, since this is what should happen... your expectations are 
actually the wrong ones, since this is not how you've implemented the app.


On Monday, May 6, 2013 3:52:40 PM UTC+3, Doug Gordon wrote:

 Excuse me for a minor rant, but is anyone else bothered by what I call 
 the overloading of the Android Back key? What I mean by this is that 
 pressing it can have two vastly different results: it can return you to 
 an earlier view in the app you are using, or it can effectively exit 
 the app and return to the previous app or home screen. 

 In the original concept (?) of Android, this can work well. For example, 
 you have an app with a View on Map control. Tap it and you throw out 
 an Intent that's picked up by Google Maps. When you're done, you press 
 the Back key and return to the original app. Fine. 

 However -- and for me this is a big however -- many if not most apps are 
 a lot more complex and are more in the nature of standalone programs. 
 When running these apps, the Back key is used to back up to previous 
 viewing states of the app, such as returning from an article to the 
 table of contents. Trouble is, it's not always obvious or easy to 
 remember the hierarchy of the app contents, and I don't know how many 
 times I press the Back key expecting to return to another state of the 
 app and instead find myself looking at the home screen! 

 An example: The user runs a weather app and it displays the weather for 
 her location. She decides to look at the weather in another city and 
 uses some control to select it. At this point it is easy to assume that 
 pressing the Back key will return the app to the previous city's data, 
 but that's not how it works: pressing that key exits the app. 

 My own app has this situation, and even when using it myself I sometimes 
 accidentally exit it instead of going back to an earlier set of 
 details. I notice that some apps have put in an Are you sure you want 
 to exit? dialog that helps prevent this, but it would seem it would be 
 a lot cleaner if this were not necessary. 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Overloading of Back Key functionality

2013-05-06 Thread lbendlin
Having a dialog popup asking Do you really want to exit the application 
seems to be bad karma. However, a toast stating If you press Back again 
this will exit the app seems to be less intrusive, and might be a better 
way to prevent accidental user actions. It may also depend on the current 
app state if you want to allow exiting the app or if you want to put the 
app into the background when the user presses back (or home for that 
matter)

On Monday, May 6, 2013 9:35:53 AM UTC-4, Piren wrote:

 Actually, even in earlier versions of Android the activity stack behavior 
 could be manipulated in ways you wouldn't expect using task reparenting and 
 etc. Basically in one instance back could bring you back to your app, in 
 others it can act like going up in that app...Google's example was 
 opening a Send Email activity which can have its Back button either go back 
 to your app, or go into the Inbox of that app.

 My guess is that all this confusion is why they created the Action Bar and 
 give you the option to make it more consistent by making a distinction 
 between what Back is and what Up is.

 As far as i recall, Google doesn't even recommend overriding the Back 
 button, pretty much for these exact reasons. But in your case (your app) 
 you need to override it if you plan on getting what you expect...The way 
 you described it is that you expect the Back button to navigate within you 
 app, but it seems like you never switch activities/fragments, you just 
 change the information displayed... so when pressing the Back button it 
 exists the app, since this is what should happen... your expectations are 
 actually the wrong ones, since this is not how you've implemented the app.


 On Monday, May 6, 2013 3:52:40 PM UTC+3, Doug Gordon wrote:

 Excuse me for a minor rant, but is anyone else bothered by what I call 
 the overloading of the Android Back key? What I mean by this is that 
 pressing it can have two vastly different results: it can return you to 
 an earlier view in the app you are using, or it can effectively exit 
 the app and return to the previous app or home screen. 

 In the original concept (?) of Android, this can work well. For example, 
 you have an app with a View on Map control. Tap it and you throw out 
 an Intent that's picked up by Google Maps. When you're done, you press 
 the Back key and return to the original app. Fine. 

 However -- and for me this is a big however -- many if not most apps are 
 a lot more complex and are more in the nature of standalone programs. 
 When running these apps, the Back key is used to back up to previous 
 viewing states of the app, such as returning from an article to the 
 table of contents. Trouble is, it's not always obvious or easy to 
 remember the hierarchy of the app contents, and I don't know how many 
 times I press the Back key expecting to return to another state of the 
 app and instead find myself looking at the home screen! 

 An example: The user runs a weather app and it displays the weather for 
 her location. She decides to look at the weather in another city and 
 uses some control to select it. At this point it is easy to assume that 
 pressing the Back key will return the app to the previous city's data, 
 but that's not how it works: pressing that key exits the app. 

 My own app has this situation, and even when using it myself I sometimes 
 accidentally exit it instead of going back to an earlier set of 
 details. I notice that some apps have put in an Are you sure you want 
 to exit? dialog that helps prevent this, but it would seem it would be 
 a lot cleaner if this were not necessary. 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] HWUI

2013-05-06 Thread Romain Guy
The library called libhwui is responsible for rendering Android UIs using
OpenGL. There are no documents available explaining the code architecture
but you can refer to my Google I/O 2011 session entitled Android
Accelerated Rendering for more information.
On May 6, 2013 3:35 AM, chandra chandra@gmail.com wrote:

 Hi,

 what is the functionality of hwui ?
 Are there any documents/links to understand HWUI in detail? I want to
 understand the flow of  OpenGLRenderer.cpp and LayerRenderer.cpp.


 Thanks,
 Chandra

 --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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




[android-developers] How to do the slicing effect as in fruit ninja when user touches the screen?

2013-05-06 Thread bob
Maybe look at this?


http://www.iossourcecode.com/2012/06/23/how-to-make-a-game-like-fruit-ninja-with-box2d-and-cocos2d-part-3/

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] GridView inside ListView giving OutOfMemoryError

2013-05-06 Thread bob
It sounds like you may need to put this in your manifest:

android:largeHeap=true

Thanks.

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




Re: [android-developers] GridView inside ListView giving OutOfMemoryError

2013-05-06 Thread Romain Guy
You really should not using largeHeap unless you have very good reasons to
do so. The large heap feature is meant to be used by applications like
photo editors who need to load very large images at once. The more memory
your app is using, the more likely it is to be killed when it goes in the
background. It will also cause other apps to get killed when in the
foreground. This leads to a bad user experience as it might slow down app
switching. Be considerate.


On Mon, May 6, 2013 at 9:04 AM, bob b...@coolfone.comze.com wrote:

 It sounds like you may need to put this in your manifest:

 android:largeHeap=true

 Thanks.

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





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

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: GridView inside ListView giving OutOfMemoryError

2013-05-06 Thread TreKing
On Mon, May 6, 2013 at 2:05 AM, Piren gpi...@gmail.com wrote:

 Is it just me, or lately everyone in this forum expect other people to do
 their work for them? WTF?


Just lately? =P

On Mon, May 6, 2013 at 11:04 AM, bob b...@coolfone.comze.com wrote:

 It sounds like you may need to put this in your manifest:

 android:largeHeap=true


No, it sounds like he needs to follow Piren's advice.

To quote the documentation for that flag:
*
Most apps should not need this and should instead focus on reducing their
overall memory usage for improved performance. Enabling this also does not
guarantee a fixed increase in available memory, because some devices are
constrained by their total available memory.
*

This dude was trying to load *2000* - that's *thousand *- images on a
platform designed for mobile devices. I don't care how large you set your
heap to. That shit ain't gonna fly.

-
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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Google Map not showing

2013-05-06 Thread surabhi jain
Hi all,

I am using Android Google Map V2.I have created api key with the help
of below command

keytool -list -v -alias androiddebugkey -keystore
C:\Users\android\.android\debug.keystore -storepass android -keypass
android

After generating api key,when I run my application on emulator it display grid.
Map is not displaying.

Thanks
Surabhi Jain

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: How to redesign this basic page to be a little more??

2013-05-06 Thread Daniel Chacon
Piren,

thats what im looking for, is how to take the results and feed them into a
gridview so i can then allow the user to sort, page and do on if thats
possible.


On Sun, May 5, 2013 at 2:01 AM, Piren gpi...@gmail.com wrote:

 Instead of building a string out of the results, just use them to feed a
 ListView or a GridView.


 On Sunday, May 5, 2013 7:42:50 AM UTC+3, Dan Cha wrote:

 Right now i have a very simple page, that has a ScrollView with a
 TextView within it to display results that are returned by my webservice.

 I have all the code posted here in another Thread for another issue:
 https://groups.google.com/**forum/?hl=enfromgroups#!**
 topic/android-developers/**ubmVCCW8nZIhttps://groups.google.com/forum/?hl=enfromgroups#!topic/android-developers/ubmVCCW8nZI

 I can post here, but figured for now ill just link to it.

 Anyway, the returned results from the webservice are within a SoapObject
 response = (SoapObject)envelope.bodyIn;
 Then i loop thru and build a StringBuilder with the results to make it
 readable.

 But that is not very nice, so id like to know what route to take in order
 to populate say maybe a grid or something to have it little easier to read
 and manage
 , maybe allowing for paging so that they arent scrolling forever once
 alot of records are in the database.

 thanks,

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




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




[android-developers] what to keep in mind with OpenJDK 7

2013-05-06 Thread seansf
Hey everybody, I just moved over to a new Linux Mint setup, basically a 
Ubuntu derivative, which comes with OpenJDK 7 out of the box. Some basic 
Android tutorials seem to build ok. It is safe to code for android using 
this Java version? Anything to keep in mind when using Android and OpenJDK7 
?

Thanks!


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




[android-developers] Re: Application background image auto resize problem

2013-05-06 Thread bob
 

It sounds like you will want to subclass *Drawable*.

Then you implement the *draw(Canvas c)* method in My_Drawable.

Then you do

*view.setBackground(my_drawable);*


Thanks.



On Thursday, May 2, 2013 8:43:04 PM UTC-5, Gerson Novais wrote:

 Hi,

 I have an application using custom theme in the activity. This theme using 
 android: windowBackground. The problem lies in how the image is displayed. 
 I am setting up gravity to top or center but out instead of the image 
 display only part of the image corresponding to the device screen. The 
 Andorid is resizing the image so that it fits entirely on the screen. How 
 do I transpose the image it leaves the device screen?

 Any idea?

 ?xml version=1.0 encoding=utf-8?

 resources xmlns:android=http://schemas.android.com/apk/res/android;

 style name=CustomWindowTitleBackground

 item name=android:background@android:color/transparent/item

 /style

  

 style name=CustomTheme parent=android:Theme

 item name=android:windowTitleSize48dip/item

 item name=android:windowTitleBackgroundStyle
 @style/CustomWindowTitleBackground/item

 item name=android:windowContentOverlay@null/item

 item name=android:windowBackground@drawable/bk/item

 /style/resources

 Atenciosamente,
 Gerson Novais
  

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] what to keep in mind with OpenJDK 7

2013-05-06 Thread Raphael P.F.
http://stackoverflow.com/questions/15848332/does-adt-support-java-7-api


On Mon, May 6, 2013 at 2:49 PM, seansf ether@gmail.com wrote:

 Hey everybody, I just moved over to a new Linux Mint setup, basically a
 Ubuntu derivative, which comes with OpenJDK 7 out of the box. Some basic
 Android tutorials seem to build ok. It is safe to code for android using
 this Java version? Anything to keep in mind when using Android and OpenJDK7
 ?

 Thanks!


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






-- 
Raphael
http://blog.rmontanaro.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Google Map not showing

2013-05-06 Thread lbendlin
The Google Maps Android API v2 uses a new system of managing keys. Existing 
keys from a Google Maps Android v1 application, commonly known as MapView, 
will not work with the v2 API.

On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote:

 Hi all, 

 I am using Android Google Map V2.I have created api key with the help 
 of below command 

 keytool -list -v -alias androiddebugkey -keystore 
 C:\Users\android\.android\debug.keystore -storepass android -keypass 
 android 

 After generating api key,when I run my application on emulator it display 
 grid. 
 Map is not displaying. 

 Thanks 
 Surabhi Jain 


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Google Map not showing

2013-05-06 Thread lbendlin
In addition, V2 maps do not (easily) work on an emulator.  You would need 
an actual device with Play Services installed.

On Monday, May 6, 2013 2:40:02 PM UTC-4, lbendlin wrote:

 The Google Maps Android API v2 uses a new system of managing keys. 
 Existing keys from a Google Maps Android v1 application, commonly known as 
 MapView, will not work with the v2 API.

 On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote:

 Hi all, 

 I am using Android Google Map V2.I have created api key with the help 
 of below command 

 keytool -list -v -alias androiddebugkey -keystore 
 C:\Users\android\.android\debug.keystore -storepass android -keypass 
 android 

 After generating api key,when I run my application on emulator it display 
 grid. 
 Map is not displaying. 

 Thanks 
 Surabhi Jain 



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] activity on boot

2013-05-06 Thread bob
So, I have a broadcast receiver that is supposed to start an activity on 
device boot:

public class Boot_Receiver extends BroadcastReceiver
{

@Override
public void onReceive(Context context, Intent intent)
{
Intent activity_intent = new Intent(Main_Activity.class.getName());
activity_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(activity_intent);
}

}


I think it used to work, but now it gives an error.  I can't seem to make 
heads or tails of the error:

https://lh4.googleusercontent.com/-WeZCMwK-87E/UYgFlPDjJ2I/AcU/Vd-AhGl9h2g/s1600/bootissue2.png



Any ideas?

Thanks.

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




[android-developers] Re: activity on boot

2013-05-06 Thread bob
 

Actually, I guess the key was realizing I could have multiple intent-filter 
tags.  Adding the latter one resolved the issue:

https://lh4.googleusercontent.com/-GSsL3J2AkgQ/UYgJ68MEJ3I/Acg/80M0xd3PDVE/s1600/intentfilter.png



I guess I had previously been swapping between the two as I needed.


Thanks.





On Monday, May 6, 2013 2:34:04 PM UTC-5, bob wrote:

 So, I have a broadcast receiver that is supposed to start an activity on 
 device boot:

 public class Boot_Receiver extends BroadcastReceiver
 {

 @Override
 public void onReceive(Context context, Intent intent)
 {
 Intent activity_intent = new Intent(Main_Activity.class.getName());
 activity_intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 context.startActivity(activity_intent);
 }

 }


 I think it used to work, but now it gives an error.  I can't seem to make 
 heads or tails of the error:


 https://lh4.googleusercontent.com/-WeZCMwK-87E/UYgFlPDjJ2I/AcU/Vd-AhGl9h2g/s1600/bootissue2.png



 Any ideas?

 Thanks.



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




Re: [android-developers]

2013-05-06 Thread rajeb makhlouf
Verify that we are applied the appropriate  permission in the  manifest.xml


On Sun, May 5, 2013 at 8:13 PM, asma rezgui asmarezgu...@gmail.com wrote:

 Hii , i want  to get the current position on the map on basis of latitude
 and longitude. But the program crashes with a null pointer exception
 05-05 18:05:34.444: E/AndroidRuntime(858): java.lang.NullPointerException
 05-05 18:05:34.444: E/AndroidRuntime(858): at
 hello.WSTest.MapWs.onLocationChanged(MapWs.java:217)
 05-05 18:05:34.444: E/AndroidRuntime(858): at
 android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:227)
 05-05 18:05:34.444: E/AndroidRuntime(858): at
 android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:160)
 05-05 18:05:34.444: E/AndroidRuntime(858): at
 android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:176)

 i have used the code below

 public void onLocationChanged(Location location) {
  lat = location.getLatitude();
  lng = location.getLongitude();
 Toast.makeText(
 getBaseContext(),
 Location change to : Latitude =  + lat +  Longitude = 
 + lng, Toast.LENGTH_SHORT).show();
 GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng *
 1E6));
 mc.animateTo(p);
 mc.setCenter(p);
 }
 please can someone help me to solve that issue , thanks in advance

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




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




[android-developers] Re:

2013-05-06 Thread bob
 

Well, what is line 217 of *MapWs.java*?


I bet mc is probably null?


Thanks.



On Sunday, May 5, 2013 2:13:52 PM UTC-5, ASMA wrote:

 Hii , i want  to get the current position on the map on basis of latitude 
 and longitude. But the program crashes with a null pointer exception 
 05-05 18:05:34.444: E/AndroidRuntime(858): java.lang.NullPointerException
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 hello.WSTest.MapWs.onLocationChanged(MapWs.java:217)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:227)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:160)
 05-05 18:05:34.444: E/AndroidRuntime(858): at 
 android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:176)

 i have used the code below

 public void onLocationChanged(Location location) {
  lat = location.getLatitude();
  lng = location.getLongitude();
 Toast.makeText(
 getBaseContext(),
 Location change to : Latitude =  + lat +  Longitude = 
 + lng, Toast.LENGTH_SHORT).show();
 GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng * 
 1E6));
 mc.animateTo(p);
 mc.setCenter(p);
 }
 please can someone help me to solve that issue , thanks in advance
  

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




[android-developers] How to add focus function in MeidaRecorder?

2013-05-06 Thread Linda Li
Device: HTC
Android: 2.3.5

I am programming a video recorder application using MediaRecorder.
It works, but without focus function.

I can add focus function in the camera preview stage.
But once I click the button to start MediaRecorder, the focus loses.

I searched online, failing to find 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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] If I set minSdkVersion as 8, but want to specify some methods for SdkVersion=15

2013-05-06 Thread Linda Li
 

How can I do that?


 I want to develop an Android application even for android devices with a 
lower version, while I do not want to sacrifice some available functions in 
higher versions.


 In the AndroidManifest.xml file: 

uses-sdk 

android:minSdkVersion=8 

android:targetSdkVersion=17 / 


 I get the android level of the current device:

deviceLevel = android.os.Build.VERSION.SDK_INT; 


 Then I will use if statements to specify different code for different 
versions.

if (deviceLevel = 11) 

{

ListCamera.Size videoSizes = parameters

.getSupportedVideoSizes();

..

}

else 

{

..

}


 However, Eclipse indicates there exists errors. getSupportedVideoSizes is 
not availabe for version = 8;


 I think I need to suppress the error at this situation.

How to do that?

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




Re: [android-developers] what to keep in mind with OpenJDK 7

2013-05-06 Thread seansf
Thanks, I saw that. Wondering if anybody on the list has any tips also.

On Monday, May 6, 2013 11:32:33 AM UTC-7, Raphael Pereira de Faria wrote:

 http://stackoverflow.com/questions/15848332/does-adt-support-java-7-api


 On Mon, May 6, 2013 at 2:49 PM, seansf ethe...@gmail.com javascript:wrote:

 Hey everybody, I just moved over to a new Linux Mint setup, basically a 
 Ubuntu derivative, which comes with OpenJDK 7 out of the box. Some basic 
 Android tutorials seem to build ok. It is safe to code for android using 
 this Java version? Anything to keep in mind when using Android and OpenJDK7 
 ?

 Thanks!


  -- 



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




[android-developers] Re: Android widget layout doesn't change after rotation

2013-05-06 Thread zhiyazw
up!

On Friday, April 26, 2013 10:06:14 PM UTC+8, bob wrote:

 Maybe make the chart view wider?


 What did you set the width of the chart view to?  If it is wrap_content, I 
 would at least try match_parent.


 Thanks.



 On Friday, April 26, 2013 3:10:39 AM UTC-5, zhiyazw wrote:

 See the layout xml:

 LinearLayout xmlns:tools=http://schemas.android.com/tools;
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:orientation=vertical
 tools:context=.MainActivity xmlns:android=
 http://schemas.android.com/apk/res/android;

 TextView
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center_horizontal
 android:layout_marginBottom=10dp
 android:layout_marginTop=10dp
 android:text=Temperature Chart
 android:textAppearance=?android:attr/textAppearanceLarge /

 LinearLayout
 android:id=@+id/chartContainer
 android:layout_width=match_parent
 android:layout_height=wrap_content 

 TextView
 android:id=@+id/textTemperature
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center_vertical
 android:transformPivotX=0sp
 android:translationY=0sp
 android:rotation=-90
 android:text=Temperature /

 /LinearLayout
 /LinearLayout
  
 then I insert a chart view into the chartContainer LinearLayout. The 
 executing result is as the following picture:
 you can see the problem is, after textTemperature is rotated, it still 
 occupy the room as before it rotated, bellow layout view confirmed this.


 https://lh4.googleusercontent.com/-qw0ryGAA_6A/UXo1t4C2RjI/AA8/Buvso--p66I/s1600/chart1.png


 My question is how can I make the textTemperature widget only occupy 
 the width as it is looked like? that's, there is no additional blank 
 between textTemperature and the chart.
 I know writing a customized widget or putting the rotated widget in an 
 individual FrameLayout could accomplish this, I mean to seek there is any 
 lighter way, such as a property, etc.

  



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] If I set minSdkVersion as 8, but want to specify some methods for SdkVersion=15

2013-05-06 Thread TreKing
On Mon, May 6, 2013 at 7:09 PM, Linda Li codingpotatoli...@gmail.comwrote:

 However, Eclipse indicates there exists errors. getSupportedVideoSizes is
 not availabe for version = 8;


  I think I need to suppress the error at this situation.

 How to do that?


Build against the latest version of the platform.

http://developer.android.com/training/basics/supporting-devices/platforms.html

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

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




Re: [android-developers] what to keep in mind with OpenJDK 7

2013-05-06 Thread Jonathan S
javac already set target to 6 and source to 6, so any 7 features will be 
disabled. You can use OpenJDK, but you can't use any 7 features. 

On Monday, May 6, 2013 8:55:09 PM UTC-4, seansf wrote:

 Thanks, I saw that. Wondering if anybody on the list has any tips also.

 On Monday, May 6, 2013 11:32:33 AM UTC-7, Raphael Pereira de Faria wrote:

 http://stackoverflow.com/questions/15848332/does-adt-support-java-7-api


 On Mon, May 6, 2013 at 2:49 PM, seansf ethe...@gmail.com wrote:

 Hey everybody, I just moved over to a new Linux Mint setup, basically a 
 Ubuntu derivative, which comes with OpenJDK 7 out of the box. Some basic 
 Android tutorials seem to build ok. It is safe to code for android using 
 this Java version? Anything to keep in mind when using Android and OpenJDK7 
 ?

 Thanks!


  -- 



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




Re: [android-developers]

2013-05-06 Thread Manish Srivas
give permissions
uses-permission android:name=android.permission.INTERNET/
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/

uses-permission android:name=android.permission.ACCESS_WIFI_STATE/

LocationManager locationmgr =
(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Criteria criteria = new Criteria();
/*criteria.setAccuracy(Criteria.ACCURACY_FINE);
criteria.setAltitudeRequired(false);
criteria.setBearingRequired(false);
criteria.setCostAllowed(true);
criteria.setPowerRequirement(Criteria.POWER_LOW); */
String provider = locationmgr.getBestProvider(criteria, false);
// Location location = locationmgr.getLastKnownLocation(provider);
//LatLng userLocation = new
LatLng(location.getLatitude(),location.getLongitude())
locationmgr.requestLocationUpdates(provider, 100, dis,new MyListener());
 location = locationmgr.getLastKnownLocation(provider);




if(location !=null)
{
 lon = location.getLongitude();
lat = location.getLatitude();
}


 class MyListener implements LocationListener
 {

  @Override
  public void onLocationChanged(Location location) {
  // TODO Auto-generated method stub
  // lat = location.getLatitude();
  // lon = location.getLongitude();
  Log.i(getLatitude, +location.getLatitude());
 Log.i(getLongitude, +location.getLongitude());
  }

  @Override
  public void onProviderDisabled(String provider) {
  // TODO Auto-generated method stub

  }

  @Override
  public void onProviderEnabled(String provider) {
  // TODO Auto-generated method stub

  }

  @Override
  public void onStatusChanged(String provider, int status, Bundle
extras) {
  // TODO Auto-generated method stub

  }




 }







-- 

Thanks  Regards,
--
Manish Shrivas
ADI Soft Tech (P)  Ltd.
54, Anand Nagar, Near Devi Ahilya Hospital,
Chitawad Road ,
INDORE
Mob no. 9907631333
**
*manish.sri...@adisoftin.com*
http://www.adisoftin.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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: How to do the slicing effect as in fruit ninja when user touches the screen?

2013-05-06 Thread maitrey
Hi, thanks for the reply. I have seen this library but still it is for iOS, 
I want to do it for Android. Any idea how do i do it? any similar library 
for android available?

On Monday, May 6, 2013 9:26:05 PM UTC+5:30, bob wrote:

 Maybe look at this?



 http://www.iossourcecode.com/2012/06/23/how-to-make-a-game-like-fruit-ninja-with-box2d-and-cocos2d-part-3/



-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Re: Google Map not showing

2013-05-06 Thread surabhi jain
I have run my app on device but it is not displaying map, again it is
displaying grid.
is there any jar file or other thing to import?


On Tue, May 7, 2013 at 12:11 AM, lbendlin l...@bendlin.us wrote:

 In addition, V2 maps do not (easily) work on an emulator.  You would need
 an actual device with Play Services installed.


 On Monday, May 6, 2013 2:40:02 PM UTC-4, lbendlin wrote:

 The Google Maps Android API v2 uses a new system of managing keys.
 Existing keys from a Google Maps Android v1 application, commonly known as
 MapView, will not work with the v2 API.

 On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote:

 Hi all,

 I am using Android Google Map V2.I have created api key with the help
 of below command

 keytool -list -v -alias androiddebugkey -keystore
 C:\Users\android\.android\**debug.keystore -storepass android
 -keypass
 android

 After generating api key,when I run my application on emulator it
 display grid.
 Map is not displaying.

 Thanks
 Surabhi Jain

  --
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




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