[android-developers] Image scaled, scroll, zoom, without margin

2012-05-13 Thread huberte
Hi, A very easy thing, I thought. Have an image : exp1.png, which I want to fit the screen in landscape or portrait, and wish that the user can scroll this image. Tell me please, if I do that correctly : 1. I did copy different resolution in xhdpi (1024x) hdpi(640x) and

Re: [android-developers] Image scaled, scroll, zoom, without margin

2012-05-13 Thread [Perso]Svend WALTER
Sorry, zoom is not in imageview implemented as I red. I will pass this feature on my app, it's not so important... Le 13 mai 2012 02:06, huberte svend.wal...@gmail.com a écrit : Hi, A very easy thing, I thought. Have an image : exp1.png, which I want to fit the screen in landscape or

[android-developers] in Exapndible list view on clicklistener

2012-05-13 Thread Jagadeesh
i am doing expandible listview ,its working fine ,when iam trying set for onlcik listener for childlist in for textview .setonclicklistner with another activity its not working .. see my code.. public class CompaniesActivity extends ExpandableListActivity { /** Called when the activity

[android-developers] Distribution of App Containing Google Maps API

2012-05-13 Thread Matt Clark
Per Section 8.3, is it illegal to sell an app containing the Maps API without permission of Google? https://developers.google.com/maps/documentation/android/maps-api-signup -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] SecurityException: Given caller package com.android.settings is not running in process ProcessRecord

2012-05-13 Thread minilin.11
Hi, I use ActivityGroup for TAB UI, and one Tab content is Android Settings view, I used this method to embed into: final Intent settings = new Intent(android.provider.Settings.ACTION_SETTINGS); settings.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Window subActivity =

[android-developers] Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread Matt Clark
I am developing an android app that will utilize the Google Maps API. The app is a Dispatch Manager and Fleet Management system. It does all of the actual management system on my own server and SQL Databases using the GPS information from the phone, however, in the Google terms of service, it

[android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Matt Clark
If you wish... Here is an Network Class that I made that I use for all of my requests, Create a new Class, and import the following, use it as follows: Network network = new Network(); String response = network.getResponse(http://www.google.com;, postName1, postData1); Code:

[android-developers] Re: Proguard and PreferenceActivity

2012-05-13 Thread Mentos
I have to add 'Save button' below preferences: RelativeLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent Button android:id=@+id/saveProfile android:layout_width=fill_parent

[android-developers] Watch video in WebView problem

2012-05-13 Thread Richard Sámela
Hallo, I have implemented my app by TabActivity. There is a WebView as a root of layout in the one on the child activities. Orientation of all activities of project is setup to portrait in mainfest file. Everything works well, but problem occured if I double click on youtube video - change

Re: [android-developers] Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread Mark Murphy
On Sun, May 13, 2012 at 3:50 AM, Matt Clark mrclark32...@gmail.com wrote: I am developing an android app that will utilize the Google Maps API. The app is a Dispatch Manager and Fleet Management system. It does all of the actual management system on my own server and SQL Databases using the GPS

Re: [android-developers] Distribution of App Containing Google Maps API

2012-05-13 Thread Mark Murphy
See duplicate thread here: http://groups.google.com/group/android-developers/browse_thread/thread/e40d7ccd28a54c71 On Sun, May 13, 2012 at 3:35 AM, Matt Clark mrclark32...@gmail.com wrote: Per Section 8.3, is it illegal to sell an app containing the Maps API without permission of Google?

[android-developers] Changing application name for the launcher

2012-05-13 Thread Francisco M. Marzoa Alonso
Hi there, I have created a game with an Eclipse project called AwesomeGame, and the problem is that when installing it on the device it is also called AwesomeGame, but I rather like to change it to Awesome Game with an space between words. Where is the right place to change this??? Thanks a lot

Re: [android-developers] Changing application name for the launcher

2012-05-13 Thread Mark Murphy
Try the app_name string resource, in res/values/strings.xml. On Sun, May 13, 2012 at 9:05 AM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi there, I have created a game with an Eclipse project called AwesomeGame, and the problem is that when installing it on the device it is also

[android-developers] ViewPager with Fragments fails with MATCH_PARENT

2012-05-13 Thread NataliaPC
Hi I'm trying to create a ViewPager with a FragmentPagerAdapter. All works fine with devices API-10 but ViewPage measure fails in devices API-13 stretching the Fragment childs like adding a margin left and right. Seems a problem of measurement because if I change the ViewPager layout_width from

[android-developers] Re: Changing application name for the launcher

2012-05-13 Thread Fran
Thanks a lot Mark.That's what I though, but I want to be sure before breaking something... Best regards, On May 13, 3:18 pm, Mark Murphy mmur...@commonsware.com wrote: Try the app_name string resource, in res/values/strings.xml. On Sun, May 13, 2012 at 9:05 AM, Francisco M. Marzoa Alonso

[android-developers] Which authtokentype to obtain the user's email?

2012-05-13 Thread Andreas Ka
I have an Android app that synchronizes with a Server not hosted on App Engine. When I call the webservice, I want to pass the Server an auth token. The server should use the auth-token for authorization and should call a Google API to get the users email. My question is: Which auth token

[android-developers] Re: Changing application name for the launcher

2012-05-13 Thread Fran
One question more: There is an string resource called hello there also that I do not need for nothing. Can I remove it without problems? Thanks a lot, On May 13, 3:18 pm, Mark Murphy mmur...@commonsware.com wrote: Try the app_name string resource, in res/values/strings.xml. On Sun, May 13,

Re: [android-developers] Re: Changing application name for the launcher

2012-05-13 Thread Mark Murphy
On Sun, May 13, 2012 at 9:33 AM, Fran fmmar...@gmail.com wrote: One question more: There is an string resource called hello there also that I do not need for nothing. Can I remove it without problems? Assuming that you got rid of the TextView that was originally in your res/layout/main.xml

[android-developers] Re: Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread Matt Clark
The more you know xD Well thanks anyway, I guess I will have to have an actual lawyer read over it for me. :p On Sunday, May 13, 2012 3:50:00 AM UTC-4, Matt Clark wrote: I am developing an android app that will utilize the Google Maps API. The app is a Dispatch Manager and Fleet Management

[android-developers] Re: Per Google Terms of Service: Am I permitted to...?

2012-05-13 Thread JP
Terms of Service aren't the law... you're a bit overly cautious here. Although a lawyer could provide an answer of course. But to move to OP's original question. I want to point to section 8.7 (c) and it looks as if dispatch and fleet management that's critical to a core business is not

[android-developers] Re: ViewPager with Fragments fails with MATCH_PARENT

2012-05-13 Thread NataliaPC
I forgot mention that I'm trying to create a infinite ViewPager for a day calendar, so the adapter first position is at 750.000 private class FragAdapter extends FragmentPagerAdapter { private static final int ZERO = 75; private Calendar zeroCal = null; public

Re: [android-developers] Changing application name for the launcher

2012-05-13 Thread Marcin Orlowski
Application name is defined in your Manifest file, in android:label attribute of application block. If usually points to @strings/app_name as Mark indicated, but you can i.e. put string directly there or refer to any string resource you want. Regards, Marcin Orlowski *Tray Agenda

[android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Jeresam515
Thanks all, Matt I can not seem to get it to work under your code either, same error. Thanks for correcting my mistake in the query Marcin. I'm starting to think the error my be in my device and not the code itself. Thanks, and if you habe more ideas please let me know. -- You

Re: [android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Marcin Orlowski
error my be in my device and not the code itself. Thanks, and if you habe more ideas please let me know. Just add to you php code some debugging. Basically I'd just write $_POST to a file to see what is in it: file_put_contents( 'post_log.txt', print_r( $_POST, true), *FILE_APPEND* ); do you

[android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Jeresam515
Thanks all, I have gotten it to work. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Android to PHP error- Unidentified Index

2012-05-13 Thread Marcin Orlowski
Just a note, that to make this thread useful for others, searching for help in future, it's a good habbit to tell where the problem was and how you fixed it (if it was not trivial) Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray*

Re: [android-developers] Application runs faster in debug mode with cable connected

2012-05-13 Thread Kristopher Micinski
This could be confirmed by just plugging into a wall outlet and trying as well kris On Fri, May 11, 2012 at 8:14 AM, Mark Murphy mmur...@commonsware.com wrote: Your device may be slowing the CPU or other components when running on battery instead of running on an external source of power. That

Re: [android-developers] SecurityException: Given caller package com.android.settings is not running in process ProcessRecord

2012-05-13 Thread Dianne Hackborn
You can't embed the activity from one application inside of the activity of another, unless they are both running under the same uid (and clearly you are not running under the same uid as settings). On Sun, May 13, 2012 at 12:40 AM, minilin...@gmail.com wrote: Hi, I use ActivityGroup for

Re: [android-developers] Re: Thread lifetime

2012-05-13 Thread Dianne Hackborn
As a general rule, if you are using sleep(), you are doing something wrong. If you want your thread to stop and wait for more work to be available, just use Object.wait() and when you want it to wake up call Object.notify(). On Fri, May 11, 2012 at 2:46 PM, RLScott fixthatpi...@yahoo.com wrote:

Re: [android-developers] how to get id or value previous viewflipper

2012-05-13 Thread Narendra Singh Rathore
That is not more clear... Ok But, I guess, we should discuss here regarding this thread, shouldn't we? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Error in Google Play

2012-05-13 Thread Francisco M. Marzoa Alonso
May be a bit topic, but I have published my first app on Google Play about six hours ago and it seems that nobody is able to purchase it. It gives a very low informative error about that transaction could not be done and advicing to try again later. I have experiment the error trying to purchase

[android-developers] Re: Thread lifetime

2012-05-13 Thread RLScott
Thanks. So now that I know about Object.wait() and Object.notify() then I will use that instead. There is nothing special about the 2- second wait. I just didn't know how to do an infinite interruptable sleep(), which is what I wanted to do all along. On May 13, 2:00 pm, Dianne Hackborn

[android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
I am developing a simple GPS logger that runs as a service, getting fixes in short intervals. As I've read documentation and posts in this forum, I realize I need a WakeLock to keep the service running and logging points. Right now, without a WakeLock, my service runs fine for many hours, even

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread Dianne Hackborn
You need to hold a wake lock for any duration when you need to make sure the CPU doesn't go into deep sleep. It doesn't matter what other applications are doing, for your code to be correct you need to hold the wake lock when your code relies on the CPU being kept running, so the platform knows

Re: [android-developers] in Exapndible list view on clicklistener

2012-05-13 Thread TreKing
On Sun, May 13, 2012 at 1:53 AM, Jagadeesh mjagadeeshb...@gmail.com wrote: i am doing expandible listview ,its working fine ,when iam trying set for onlcik listener for childlist in for textview .setonclicklistner with another activity its not working .. Your issue is very hard to understand

Re: [android-developers] Question regarding Keystore and Developer Console

2012-05-13 Thread TreKing
On Sat, Apr 28, 2012 at 10:46 AM, TullyK tully...@hotmail.co.uk wrote: Is the only solution to change the package name and upload it as a brand new application, leaving the old one forever as 'unpublished'? Basically. Welcome to the Android Mar-, er, Google Suck. *BACK UP YOUR KEYSTORE!*

[android-developers] how to know that headset is plugged in?

2012-05-13 Thread Farhan Tariq
Hi, I aim at playing a sound only if the headset is plugged in. How can I use the sdk to check if headset is plugged in? Thanks Regards, Farhan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: The file size is double at google play.

2012-05-13 Thread Jaison Brooks
I believe its the copy protection option in your developer console for the application , if you disable it , that should resolve it. On May 11, 11:16 pm, Perry168 perry...@gmail.com wrote: Hi all, I found that the file size will show double at Google Play. For example: my app is 300K. After

[android-developers] Re: how to know that headset is plugged in?

2012-05-13 Thread lbendlin
I would check the current audio mode, and then test am.isSpeakerphoneOn()to be false. On Sunday, May 13, 2012 8:11:54 PM UTC-4, Farhan wrote: Hi, I aim at playing a sound only if the headset is plugged in. How can I use the sdk to check if headset is plugged in? Thanks Regards, Farhan

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
My question wasn't about battery life, but I'll address it anyway. Users who install apps that use long running services are usually fully aware that it will affect battery life. Certainly anyone who wants to record a GPS track for a few hours with very fine resolution (points every 5 seconds

Re: [android-developers] Menu : Handling click events : DialogBox

2012-05-13 Thread 冉峻萍
在 2012-5-12 下午6:23,huberte svend.wal...@gmail.com写道: Hi, I did red http://developer.android.com/guide/topics/ui/menus.html http://developer.android.com/guide/topics/resources/menu-resource.html I wrote this in main activity @Override public boolean onCreateOptionsMenu(Menu menu) {

[android-developers] convert arraylist to xml

2012-05-13 Thread nageswara rao rajana
Hi, I have an Arraylist of objects, that should be converted to xml file format and send to the webservice. So, please suggest me is there any conversion api in android. Thanking you, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers