[android-developers] Why the memory usiage is kept on raising when running an application on Android Emulator with GPU support

2013-08-14 Thread Mike Yeh
Dear Sirs,
 
I used SDK API level 17 to test OpenGL application.
Currently I feld that the emulator with GPU support is much unstable after 
running some applications.
When I monitored the ProcessExplorer I found that the memroy usage was kept 
on raising after running an application.
Does anyone know how to solve this problem ? At least not let it run out of 
the memory.
 
TKS in advance.
 
Best Regards,
MIKE 

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

2013-08-14 Thread Sadhna Upadhyay
Hi Guys,
  can some one tell me that how to post photo on fb.




Thanks in advance.
sadhna

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

2013-08-14 Thread Michael Banzon
Sure,

You log in, and go to your timeline and presse the Add Photos / Video
link/button on the top, like this:

[image: Inline image 1]

After that the on-screen text should guide you.


If this is about interacting with the facebook api etc. please let us know
what you have tried so far and what isn't working out as expected.



On Wed, Aug 14, 2013 at 9:20 AM, Sadhna Upadhyay
sadhna.braah...@gmail.comwrote:

 Hi Guys,
   can some one tell me that how to post photo on fb.




 Thanks in advance.
 sadhna

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






-- 
Michael Banzon
http://michaelbanzon.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.


Facebook.png

[android-developers] Re: Designed for tablets with both minSdkVersion and targetSdkVersion tags?

2013-08-14 Thread MobileVisuals
I agree that we can't just ignore the older OS versions. I think they mean 
targetSdkVersion is declared with value 11 or higher  or
minSdkVersion is declared with value 11 or higher.
So minSdkVersion is declared with value 11 or higher is not required, but 
if you for instance add minSdkVersion = 9, the app won't be approved 
forDesigned for tablets.

So what am I supposed to do? If I remove minSdkVersion, there will be no 
filtering our of devices with uncompatible OS's.
People can then download the app without getting it to work on their 
device. Is this the price I have to pay to get approved for Designed for 
tablets?
Or is there any way to have both minSdkVersion = 9 and targetSdkVersion=11 
in the manifest?


On Tuesday, August 13, 2013 10:11:50 AM UTC+2, MobileVisuals wrote:

 I am implementing the new Designed for tablets specification on GP. It 
 is easy to implement and get it to work for live wallpapers. I replace 
 uses-sdk android:minSdkVersion=7 / with uses-sdk 
 android:targetSdkVersion=11 / in the manifest. I wonder if there is any 
 way of having both of the minSdkVersion and targetSdkVersion tags in the 
 manifest? I get a message that the app is not Designed for tablets when I 
 try to include both of these tags.


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

2013-08-14 Thread Piren
that's a bad idea... unless your application is just one activity, it will 
probably piss your users off that they have to navigate it from the start 
every time it is being backgrounded.
take mbanzon's idea - each activity will need to request the password if 
needed. 
You can do it easily by extending an activity with code that handles that, 
then having all the needed activities inherit from it.

On Tuesday, August 13, 2013 5:00:08 PM UTC+3, passer wrote:

 Hello. 

 I have application which should be ask password on start.

 I done it so. onCreate MainActivity calls(startActivityForResult) 
 EnterPasswordActivity. If user enters right password EnterPasswordActivity 
 returns information about it. Everything works good.

 But there is a problem. If application will be minimized in other 
 actvity(not MainActivity or EnterPasswordActivity), user can start 
 application without entering password. That's why i need to close 
 application on minimize. how can i do it?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] Select unselect image on list view

2013-08-14 Thread Amit Mangal
Hi there,

i have a list view and in that list view in each row i have image
unselectimage.png.
i want when some one click on that i want to replace that image with
selected.png.

suppose if item is already selected then i want to unselected image.

suppose list view is having 10 items in out of 10 . 9 itms willbe
unselected and only one willbe selected.

my query is that how to load unselect image on all items and select image
on the item which is currently selected.


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] Re: how to get a list of locales supported by device we're running on

2013-08-14 Thread Latimerius
On Tue, Aug 13, 2013 at 11:45 PM, Kostya Vasilyev kmans...@gmail.comwrote:

 So you have an HTC... I've got two on my desk, and the language / locale
 list on both of them is region-specific:

 Russian (Russia, Ukraine, Georgia, other former Soviet republics)
 English (same list of countries)

 Other deivices I have (a couple of Samsungs purchased in Russia, another
 Samsung from a German mail-order, a Galaxy Nexus from the UK) have a much
 more complete list of languages, and they're listed without countries.

 So yeah, device manufacturer mods...


So, the conclusion seems to be that getLocales() can return locales that
are not actually supported, and vice versa, it might not return locales
that are supported.  For my purpose, which is to support the widest
possible range of languages by exploiting what's on device already (as
opposed to distributing own fonts), the API looks useless, and I'm not
aware of any other call that would give the correct answer.


 What if I knew Korean and wanted to use it as the default language on my
 device? :)


My bet is it would work on Samsungs and LGs, regardless of what LI or
getLocales() say. ;-)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Designed for tablets with both minSdkVersion and targetSdkVersion tags?

2013-08-14 Thread Kostya Vasilyev
You're right, it's:

targetSdkVersion = 11

OR

minSdkVersion = 11

I must have been blind, and missed the or. Sorry.

-- K


On Wednesday, August 14, 2013 12:08:50 PM UTC+4, MobileVisuals wrote:

 I agree that we can't just ignore the older OS versions. I think they mean 
 targetSdkVersion is declared with value 11 or higher  or
 minSdkVersion is declared with value 11 or higher.
 So minSdkVersion is declared with value 11 or higher is not required, but 
 if you for instance add minSdkVersion = 9, the app won't be approved 
 forDesigned for tablets.

 So what am I supposed to do? If I remove minSdkVersion, there will be no 
 filtering our of devices with uncompatible OS's.
 People can then download the app without getting it to work on their 
 device. Is this the price I have to pay to get approved for Designed for 
 tablets?
 Or is there any way to have both minSdkVersion = 9 and targetSdkVersion=11 
 in the manifest?


 On Tuesday, August 13, 2013 10:11:50 AM UTC+2, MobileVisuals wrote:

 I am implementing the new Designed for tablets specification on GP. It 
 is easy to implement and get it to work for live wallpapers. I replace 
 uses-sdk android:minSdkVersion=7 / with uses-sdk 
 android:targetSdkVersion=11 / in the manifest. I wonder if there is any 
 way of having both of the minSdkVersion and targetSdkVersion tags in the 
 manifest? I get a message that the app is not Designed for tablets when I 
 try to include both of these tags.



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

2013-08-14 Thread Kostya Vasilyev
Why not use a state list drawable?

http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList

-- K

On Wednesday, August 14, 2013 12:53:23 PM UTC+4, Amit Mangal wrote:

 Hi there,

 i have a list view and in that list view in each row i have image 
 unselectimage.png.
 i want when some one click on that i want to replace that image with 
 selected.png.

 suppose if item is already selected then i want to unselected image.

 suppose list view is having 10 items in out of 10 . 9 itms willbe 
 unselected and only one willbe selected.

 my query is that how to load unselect image on all items and select image 
 on the item which is currently selected.


 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] GCM based sample app link

2013-08-14 Thread Shadab Khatib
Hello

Can someone post the link of the GCM based Client sample app link provided 
by Google licensed under Apache License 2.0 similar to the sample apps in 
the tutorials to all other simple features of UI design.

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

2013-08-14 Thread nemi chhimpa
Hi friends,
I am using map api android v2 for google map. It is only showing the zoom
control button an blank map. I followed all steps mention in google map api
v2 doc. In logcat, unable to find Lmap message showing.

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

2013-08-14 Thread cybersun
Hi all,
I am creating an app that can edit word documents saved on google drive.
From Android app, my webview will show an document manager page, click on a 
file (an Edit icon on webview), webview will redirect to 
google-drive-document-edit address.

I used a WebViewClient, checked 3 methods: 
onPageStarted, shouldOverrideUrlLoading and onPageFinished, that flow is:

shouldOverrideUrlLoading A, onPageStarted A, onPageFinished A: A is 
document manager page
shouldOverrideUrlLoading B, onPageStarted B: B is my service from own 
server, that get document-google-drive link, then redirect to C.
shouldOverrideUrlLoading C, onPageStarted C: C is 
google-drive-document-edit link
shouldOverrideUrlLoading D, onPageStarted D
shouldOverrideUrlLoading E, onPageStarted E

If my webview just load A, then load direct C, it's no problem. But if load 
A then user click Edit, my webview can not show expected address.
That is problem about redirect page, how can I resolve that?

Here is full LogCat:

--- Already show document manager page, log showed when click Edit icon.
...OVERIDE: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=false
...STARTED: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=false

...OVERIDE: 
http://www.google.com/url?sa=pq=https://www.google.com/accounts/ServiceLogin?service%3Dwise%26passive%3Dtrue%26go%3Dtrue%26continue%3Dhttps://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%253Dtrue%2526om%253Dtrue%2526richtext%253Dfalse%2526pref%253D2%2526pli%253D1
...STARTED: 
http://www.google.com/url?sa=pq=https://www.google.com/accounts/ServiceLogin?service%3Dwise%26passive%3Dtrue%26go%3Dtrue%26continue%3Dhttps://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%253Dtrue%2526om%253Dtrue%2526richtext%253Dfalse%2526pref%253D2%2526pli%253D1

...OVERIDE: 
https://www.google.com/accounts/ServiceLogin?service=wisepassive=truego=truecontinue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1
...STARTED: 
https://www.google.com/accounts/ServiceLogin?service=wisepassive=truego=truecontinue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1

...OVERIDE: 
https://accounts.google.com/ServiceLogin?service=wisepassive=truego=truecontinue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1
...STARTED: 
https://accounts.google.com/ServiceLogin?service=wisepassive=truego=truecontinue=https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile%3Dtrue%26om%3Dtrue%26richtext%3Dfalse%26pref%3D2%26pli%3D1

...OVERIDE: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=falsepref=2pli=1
...STARTED: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=falsepref=2pli=1

...OVERIDE: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=falsepli=1
...STARTED: 
https://docs.google.com/document/d/1VAqhYXSnua0oQT869u93iF84rB3cRTBFHFeZ1lYgHr8/edit?overridemobile=trueom=truerichtext=falsepli=1


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

2013-08-14 Thread vgokila
Hi,

We are working on to get all the camera photos and videos (Media Image and 
Videos) both in External and Internal Storage.

We have used the below code to get the file path of media files. Under the 
folder /DCIM, there are folders like Camera, 100ANDRO, 100MEDIA which 
is storing the camera photos and videos. How do we specifically look for 
files under these folders. We thought of hard coding it to get files under 
Camera, 100MEDIA.. But will this be in same name in a device 
manufactured from different countries like Japan, China. Can you 
suggest any other way to extract camera photos and videos.

File dcimFile = Environment

.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);

File pcitures = Environment

.getExternalStoragePublicDirectory(Environment.DIRECTORY_PCITURES);

Also some devices, we can select to save camera photos and videos in 
Internal storage. What would be the storage path for camera photos in 
Internal storage.

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

2013-08-14 Thread alex b
I'm trying to resize a webview in a relativelayout when a user clicks a 
button but it's proving to be quite difficult.  Here's what I've tried.  In 
every case the webview simply repositions itself but never resizes.
 



*protected* *void* toggleMap(){

...

lp*=new* RelativeLayout.LayoutParams(800,600);

//lp=new 
RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);

lp.addRule(RelativeLayout.

*BELOW*,R.id.*lblTop*);

web.setLayoutParams(lp);

// web.invalidate();

// web.refreshDrawableState();

// web.requestLayout();

// web.reload();

}

 

Here's my layout...

WebView

android:id=@+id/webDetMap

android:layout_width=fill_parent

android:layout_height=88dp 

android:layout_below=@+id/lblBusName

android:layout_alignParentRight=true

/

 

 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
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] any help to avoid the force close in the android application?

2013-08-14 Thread ansal
Hi,

I have some code that is working in the try catch block but still system 
force close the application instead of  throwing the exception in the try 
catch block.any help to avoid the force close in the 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 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] any help to avoid the force close in the android application?

2013-08-14 Thread TreKing
On Wed, Aug 14, 2013 at 1:15 PM, ansal ashish.a...@gmail.com wrote:

 I have some code that is working in the try catch block but still system
 force close the application instead of  throwing the exception in the try
 catch block.any help to avoid the force close in the android?


Debug your application and determine the actual error occurring. Then stop
that from happening.

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