[android-developers] Re: Getting cell signal strength for current cell vs neighboring cells

2010-01-24 Thread 3D
Hi, I'm curious to know approximately how many neighboring cells you
typically detect  Obviously this will vary with location but are we
talking 1-2 neighboring cells or are there many more?  Thanks.


On Jan 5, 11:38 pm, Doughy doughywil...@gmail.com wrote:
 I'm writing an android application that collects cellsignal
 strengths.  I am having trouble getting the current cellsignalstrength, but 
 I don't have any problem getting the neighboring cellsignalstrengths.

 To get the current cellsignalstrength, I created a
 PhoneStateListener and implemented the onSignalStrengthChanged
 callback.  It works, but not very well.  It seems like 
 thesignalstrengthhardly ever changes, and resolution jumps to only a few
 numbers.  I would accept the answer that the resolution of 
 thesignalstrengthhardware is coarse, but when I use the TelephonyManager's
 getNeighboringCellInfo() method, it works much better.  
 Thesignalstrengthreadings from neighboring cells change frequently, and they
 have much better resolution.

 So, how can I get the current cellsignalstrengthin the same way
 that I am getting the neighboring cell strengths?  It seems odd to me
 that the functionality of the neighboring cells is better than the
 current cell.  Am I missing something here?

 I would also like to directly call a method from the telephony manager
 to get current cellstrength, as opposed to a listener, if possible.
 If anyone knows how, please let me know.  Thanks.

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


[android-developers] Re: Extract one example from a project with many

2010-01-24 Thread Droidy
Yes, it is in the apiDemo project that I am trying to get just
one GL example out. Impossible. :-(

Its one reason I hate eclipse - I never do any programming in
eclipse, I just try to work out its buttons and dialogues.


On Jan 23, 12:09 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I'm guessing you're talking about the api demo app. It sure is
 complicated, however, taking the time to understand the particular
 parts and how it's organized will pay off in the long run. It may be
 worth your effort to look at a simpler example, one that covers a
 single function instead of hundreds until you've built up your
 knowledge base.

 -John Coryat

 Radar Now!

 What Zip Code?

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


[android-developers] Apps not appearing in market place on certain phones

2010-01-24 Thread TonyDoc
My family has got three android phones, an HTC Hero, a Samsung Galaxy,
and a T-Mobile Pulse, all are running android 1.5 with the latest
manufacturer firmware.
On the T-Mobile Pulse, when searching for a couple of apps (ones that
I have installed on the other two devices), I get returned 'no
matches'. For example, if I search for 'BrightAI', which is a
developer who has around 8 apps on the market, I get no matches. If I
search for individual apps, I get 'no matches'. Searching for the same
on either the Hero or Galaxy returns the expected results.
Does anyone have any ideas why certain apps are accessible on one
device, but not the other?
Thanks

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


[android-developers] Re: HttpServerConnection

2010-01-24 Thread Jags
i see, it is apache, can we use it freely for commerical apps ?

if i want to deploy an app of my choice, i will have to write a
servelet and publish in jetty server, right ?

regards

On Jan 24, 10:36 am, lucky4me bakhtiyo...@gmail.com wrote:
 Seehttp://code.google.com/p/i-jetty/

 On Jan 24, 10:27 am, Jags jag...@gmail.com wrote:

  ah, these are the apis for hitting a url and get some info and post
  data to from m android device, is not it ?

  I wanna a small http server running on my android device [may be as a
  service] and hosting small http pages browsable from my PC. for
  example if my android device is connected to wifi and gets a ip
  192.169.2.3 i can hithttp://192.168.2.3inpc browser connected to
  same network and get a welcome page :)

  i know running a web server in a mobile device is weird, but it is
  just for curiosity purposes, also my minimal server should be able to
  receive get post requests from the browsrs,

  i hope i am more clearer now

  regards

  On Jan 24, 4:11 am, Brion Emde brione2...@gmail.com wrote:

   I don't know exactly what you are talking about. The full Apache
   HttpClient library is present, as well as the Java equivalent.

   Take a look at the Apache DefaultHttpClient 
   here:http://developer.android.com/reference/org/apache/http/impl/client/pa...

   Also there is HttpGet and HttpPost and so on are all defined here:

  http://developer.android.com/reference/org/apache/http/client/methods...

   There are many examples of using these objects on the internet and in
   this group.

   On Jan 23, 8:39 am, Jags jag...@gmail.com wrote:

is there a simple example of HttpServerConnection usage in android ?
can it be used for posting some data to android device ? i mean get
post type ?

thanks and regards
Jagat

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


Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-24 Thread Jonas Petersson

Romain Guy wrote:

The bug reported below was fixed the day it was reported to us. I took
care of it personally. 


That is very good to know. Still, it would be very good to know either:

a) A rough estimate when to expect 2.1 phones to have this fixed or

b) Some kind of workaround (in particular for the seemingly very simple 
case in comment #2).


If (a) is very soon, then (b) is not an issue, but if (a) is more like 
April or so, then any application using something like the code in 
comment #2 on a 2.1 device will keep crashing on rotation unless they 
are rewritten in some way.


I assume the 2.1 emulator will stay broken for verification purposes, 
just like the 2.0 still has the search issues  fixed in 2.0.1.


Best / Jonas


On Sat, Jan 23, 2010 at 2:56 PM, Vassilio vassi...@gmail.com wrote:

On 23 Jan 2010, at 09:34, Jonas Petersson jonas.peters...@xms.se wrote:

[...] This one appears to be the only significant problem I've found
in 2.1 compared to 2.0.1:

http://code.google.com/p/android/issues/detail?id=6191

If anyone has an idea for a workaround, please elaborate (see comment #2).


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


Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-24 Thread Juan Delgado
Hi,

 a) A rough estimate when to expect 2.1 phones to have this fixed or


Not that it concerns me too much, but it's been said a billion times
that Google cannnot / will not be responsible for updating specific
phones, that is up to manufacturers. Google can only be accountant for
release dates of Android itself, then it's up to, let's say HTC, to
pick that release, run their tests, apply any modifications (ie Sense
UI) and make the release available to their users.

Basically, there's no coordinated date for any given Android release
to make it to ALL phones available, you just cannot count on that.

J

 I assume the 2.1 emulator will stay broken for verification purposes, just
 like the 2.0 still has the search issues  fixed in 2.0.1.

                        Best / Jonas

 On Sat, Jan 23, 2010 at 2:56 PM, Vassilio vassi...@gmail.com wrote:

 On 23 Jan 2010, at 09:34, Jonas Petersson jonas.peters...@xms.se
 wrote:

 [...] This one appears to be the only significant problem I've found
 in 2.1 compared to 2.0.1:

 http://code.google.com/p/android/issues/detail?id=6191

 If anyone has an idea for a workaround, please elaborate (see comment
 #2).

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



-- 
Juan Delgado - Zárate
http://zarate.tv
http://blog.zarate.tv

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


[android-developers] How can I verify android basic API? (e.g. Date and Time API)

2010-01-24 Thread Evans
We already use Android API. But sometimes I want to know is it
verified or not? by whom?(e.g. Android team in google) by which one?
(e.g. Unit test or Basic Acceptance Test for API) Do android team have
any test report?

Because this is a platform for smartphone. For example, if there has
any problem in Android API (e.g. Date and Time), it makes customer
spend money and time more. But I can't find any report about verifying
API test.

If you have any information about it, please let me know :) Also if
there has no information, how can I test some API to verify API.

Thanks.

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


[android-developers] Re: How can I verify android basic API? (e.g. Date and Time API)

2010-01-24 Thread Evans
Is it already covered by Platform API Tests in CTS (Compatibility Test
Suit)?


On Jan 24, 8:54 pm, Evans shkimst...@gmail.com wrote:
 We already use Android API. But sometimes I want to know is it
 verified or not? by whom?(e.g. Android team in google) by which one?
 (e.g. Unit test or Basic Acceptance Test for API) Do android team have
 any test report?

 Because this is a platform for smartphone. For example, if there has
 any problem in Android API (e.g. Date and Time), it makes customer
 spend money and time more. But I can't find any report about verifying
 API test.

 If you have any information about it, please let me know :) Also if
 there has no information, how can I test some API to verify API.

 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


Re: [android-developers] Android 2.1 backward Compatability? Urgent Question

2010-01-24 Thread Jonas Petersson

Juan Delgado wrote:

a) A rough estimate when to expect 2.1 phones to have this fixed or


Not that it concerns me too much, but it's been said a billion times
that Google cannnot / will not be responsible for updating specific
phones, that is up to manufacturers. Google can only be accountant for
release dates of Android itself, then it's up to, let's say HTC, to
pick that release, run their tests, apply any modifications (ie Sense
UI) and make the release available to their users.


Very true in general, but in this particular case, the RELEASED 2.1 
phones are pretty much Googles own Nexus One phones and therefore they 
*DO* have rather good control over updates, right? Or did is miss 
anything obvious? (I would assume that any prereleased 2.1 phones will 
have this bug fixed before actual release.)


Speaking of updates, when I ask my Milestone to check for system updates 
I always get an Unable to connect. The device is unable to connet to 
the server. Try again later. dialog. I fully understand that there IS 
no update available, but the message appears to indicate that there is 
actually not even a server to host any future updates at the moment. Is 
this normal or should I dig deeper? (I live in Sweden and the phone was 
bought from Expansys local web show - which is really UK based.)


Best / Jonas

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


[android-developers] Re: Getting the Manifest Version Code

2010-01-24 Thread Chris.H
Hi..

Just a general tip:
It's better to put the use/printout within the try statement (or exit
the function etc if it catches the error), as pInfo (in this case)
would be null if the info isn't found, and then you get a
NullException instead...

so, either:

try {
pInfo = getPackageManager().getPackageInfo(com.beanie.test,
PackageManager.GET_META_DATA);

System.out.println(pInfo.versionCode);
} catch (NameNotFoundException e) {
e.printStackTrace();
}

or:


try {
pInfo = getPackageManager().getPackageInfo(com.beanie.test,
PackageManager.GET_META_DATA);
} catch (NameNotFoundException e) {
e.printStackTrace();
return; /* return false;  or  return null; */
}

System.out.println(pInfo.versionCode);

Just something to remember, so you don't introduce one extra
(unnecessary) possible exception/bug, that you need to catch, while
catching another exception...

Regards
Chris

On Jan 24, 5:11 am, Kumar Bibek coomar@gmail.com wrote:
 PackageInfo pInfo = null;

 try {
         pInfo = getPackageManager().getPackageInfo(com.beanie.test,
 PackageManager.GET_META_DATA);

         } catch (NameNotFoundException e) {
                 e.printStackTrace();}

 System.out.println(pInfo.versionCode);

 Kumar Bibek

 On Jan 24, 8:48 am, dapaintballer331 dapaintballer...@gmail.com
 wrote:

  How do you retrieve the current version code of an app's manifest?
  I don't need to access another application, I'm talking about My app
  accessing its own version code.

  Thanks
  -Brandon

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


[android-developers] External storage permission issue on Nexus

2010-01-24 Thread ellipsoidmob...@googlemail.com
Hi

I have an application on the market which writes to the SD card. I
only need the version 2 APIs but have tested for higher platforms (and
don't want compatibility mode to kick in) so I have it defined as:

uses-sdk android:targetSdkVersion=4
android:minSdkVersion=2
/uses-sdk

One of my customers reported that writing to the SD card is not
working on Nexus, and he suspects this is a permission issue. I think
he's probably right - I haven't declared
android.permission.WRITE_EXTERNAL_STORAGE.

But - the documentation says that I don't need to declare this as I am
using SDK version 2 and this permission is implicitly granted for SDK
 3.

I could just go ahead and declare it...but then I'd need to build for
SDK 3 and I'd cut off any customers out there with version 2 devices.

Am I doing something wrong here, or is this a Nexus / Android 2.1 bug?

Thanks

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


[android-developers] Re: Problems with AccountManager

2010-01-24 Thread Brion Emde
It turns out that my account is being added, at least according to
this trace from logcat:

D/AddAccount(   58): account added: Bundle
[{accountType=com.example.bloa, authto
ken=WEbDlp4trjR3ajXPGn0GthNqrhPAUaJ6gWaKEAo0, authAccount=20341230-
xRIt1kiGskNUW
AsUYyRA0nw39p0ZlmKeUXr5jQfvp}]

That is the correct information. I am intending to to have the
authAccount be the User's OAUTH token and the authtoken be the User's
OAUTH secret. It seems that the infrastructure is claiming that an
account has been created in the AccountManager. Yet it does not show
up in the list of Accounts in Accounts  Sync settings. This is after
I did an Add Account to my authenticator on that settings page.

When I try to call addAccount from within the same package as the
Authenticator, it does not work at all, as described above, dying with
a bind failure.

I saw this same thing in a thread about AccountManager from November
and that seemed to have ended up in a defect. I'm pretty sure I'm not
seeing the same thing they were. One of them was getting a similar
message that his account had been added that I am getting. Yet, no
accounts are found, either in that list or programatically.


On Jan 23, 9:12 am, Brion Emde brione2...@gmail.com wrote:
 I've researched the earlier threads about AccountManager and still am
 having problems. I'm trying to extend my Twitter OAUTH demo to use the
 AccountManager. I've built the beginnings of a class based on
 AbstractAccountAuthenticator and a Service that seems to do what it is
 supposed to do.

 My Authenticator does get installed on a 2.1 Emulator. I can see it
 when I go to the Accounts  Sync Settings app. If I click on Add
 Accounts and then on My Authenticator, I go through the OAUTH process,
 with an Activity being fired off (by the Account Manager?) from the
 KeyIntent that the authenticator returns. The authentication process
 proceeds and the Activity fields the redirection from the browser in
 its onNewIntent() function (it's a SingleInstance activity).
 Everything appears to be working and the Activity returns its results
 the way it seems it is supposed to. The problem is, the new account
 never shows up in the Accounts list on the Accounts  Sync page.

 My second problem is that I also have an Activity in the application
 that contains the authenticator. When I try to do an addAccount() from
 that activity, which is my original demo tiny Twitter client, I get a
 very succinct bind failure of my service to the AccountManager.

 So, when I run the Authenticator from the Accounts  Sync Settings
 page, it all works, except the new account isn't showing up. When I
 try to run the Authenticator from my Activity which is in the same
 package, I get a bind failure.

 Now I'll document how I'm returning the result in the Activity, which
 is derived from AccountAuthenticatorActivity:

   �...@override
     public void onNewIntent(Intent i) {
             Bundle b = new Bundle();
         String verifier;
             try {
                 Uri data = i.getData();
                 if(data == null || (verifier = data.getQueryParameter
 (OAuth.OAUTH_VERIFIER)) == null) {
                                 b.putInt(AccountManager.KEY_ERROR_CODE, 
 -1);
                                 b.putString(AccountManager.KEY_ERROR_MESSAGE, 
 getString
 (R.string.auth_error));
                                 mResponse.onError(-1, 
 getString(R.string.auth_error));
                 } else {
                                 mProvider.retrieveAccessToken(verifier);
                             String token = mConsumer.getToken();
                             String secret = mConsumer.getTokenSecret();
                             b.putString(AccountManager.KEY_ACCOUNT_NAME, 
 token);
                             b.putString(AccountManager.KEY_ACCOUNT_TYPE, 
 getString
 (R.string.auth_type));
                             b.putString(AccountManager.KEY_AUTHTOKEN, secret);
                             mResponse.onResult(b);
                 }
                 } catch (OAuthMessageSignerException e) {
                         b.putInt(AccountManager.KEY_ERROR_CODE, -1);
                         b.putString(AccountManager.KEY_ERROR_MESSAGE, 
 e.getMessage());
                         mResponse.onError(-1, e.getMessage());
                         e.printStackTrace();
                 } catch (OAuthNotAuthorizedException e) {
                         b.putInt(AccountManager.KEY_ERROR_CODE, -2);
                         b.putString(AccountManager.KEY_ERROR_MESSAGE, 
 e.getMessage());
                         mResponse.onError(-2, e.getMessage());
                         e.printStackTrace();
                 } catch (OAuthExpectationFailedException e) {
                         b.putInt(AccountManager.KEY_ERROR_CODE, -3);
                         b.putString(AccountManager.KEY_ERROR_MESSAGE, 
 e.getMessage());
                         mResponse.onError(-3, e.getMessage());
                         

[android-developers] Re: Apps not appearing in market place on certain phones

2010-01-24 Thread TonyDoc
It seems like the apps that are missing are ALL protected apps, Seems
like google has not yet white listed the T-Mobile Pulse for use in the
market? I've had the phone for nearly three months now. Does it take
that long to white list a phone? Who should I contact? Google directly
or T-Mobile?

On Jan 24, 10:20 am, TonyDoc tony...@gmail.com wrote:
 My family has got three android phones, an HTC Hero, a Samsung Galaxy,
 and a T-Mobile Pulse, all are running android 1.5 with the latest
 manufacturer firmware.
 On the T-Mobile Pulse, when searching for a couple of apps (ones that
 I have installed on the other two devices), I get returned 'no
 matches'. For example, if I search for 'BrightAI', which is a
 developer who has around 8 apps on the market, I get no matches. If I
 search for individual apps, I get 'no matches'. Searching for the same
 on either the Hero or Galaxy returns the expected results.
 Does anyone have any ideas why certain apps are accessible on one
 device, but not the other?
 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


Re: [android-developers] Apps not appearing in market place on certain phones

2010-01-24 Thread Yuvi
They same happened to me, but with HTC Tatoo (no showing some apps) vs HTC
Hero and Magic...


On Sun, Jan 24, 2010 at 11:20 AM, TonyDoc tony...@gmail.com wrote:

 My family has got three android phones, an HTC Hero, a Samsung Galaxy,
 and a T-Mobile Pulse, all are running android 1.5 with the latest
 manufacturer firmware.
 On the T-Mobile Pulse, when searching for a couple of apps (ones that
 I have installed on the other two devices), I get returned 'no
 matches'. For example, if I search for 'BrightAI', which is a
 developer who has around 8 apps on the market, I get no matches. If I
 search for individual apps, I get 'no matches'. Searching for the same
 on either the Hero or Galaxy returns the expected results.
 Does anyone have any ideas why certain apps are accessible on one
 device, but not the other?
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] StackOverflowError on drawing Spannable string

2010-01-24 Thread Rimma Sukhovsky
I have a listView which contains TextViews. I append to it several
strings, and some of them are linkified.

SpannableString str = SpannableString.valueOf(text);
str.setSpan(new URLSpan(url), 0, text.length(),
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
textView.append(str);

For some reason, when i compile it for sdk 1.1 it works fine, but on
sdk 1.5 devices (like Galaxy) it crashes with the following error.

Any ideas why?


01-24 15:05:54.915: INFO/dalvikvm(687): Stack overflow, expanding
(0x41048200 to 0x41048000)
01-24 15:05:54.915: INFO/dalvikvm(687): Shrank stack (to 0x41048200,
curFrame is 0x41049cd8)
01-24 15:05:54.925: DEBUG/AndroidRuntime(687): Shutting down VM
01-24 15:05:54.925: WARN/dalvikvm(687): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
01-24 15:05:54.925: ERROR/AndroidRuntime(687): Uncaught handler:
thread main exiting due to uncaught exception
01-24 15:05:55.014: DEBUG/dalvikvm(687): GC freed 5881 objects /
487464 bytes in 67ms
01-24 15:05:55.014: ERROR/AndroidRuntime(687):
java.lang.StackOverflowError
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.SpannableStringBuilder.drawText
(SpannableStringBuilder.java:1042)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.graphics.Canvas.drawText(Canvas.java:1273)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.Styled.each(Styled.java:119)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.Styled.foreach(Styled.java:249)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.Styled.drawText(Styled.java:302)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.Layout.drawText(Layout.java:1346)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.text.Layout.draw(Layout.java:339)
01-24 15:05:55.014: ERROR/AndroidRuntime(687): at
android.widget.TextView.onDraw(TextView.java:3921)

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


Re: [android-developers] External storage permission issue on Nexus

2010-01-24 Thread Alessandro Pellizzari
Il giorno dom, 24/01/2010 alle 04.50 -0800,
ellipsoidmob...@googlemail.com ha scritto:

 android.permission.WRITE_EXTERNAL_STORAGE.

 I could just go ahead and declare it...but then I'd need to build for
 SDK 3 and I'd cut off any customers out there with version 2 devices.

I don't think there are SDK 2 (1.0 if I remember correctly) devices
anymore. All of them should be SDK 3 (1.5) at least.

WRITE_EXTERNAL_STORAGE is required since SDK 4 (1.6), AFAIK, but doesn't
hurt declaring it in SDK 3.
Or at least I get no warnings on doing it. :)

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


[android-developers] Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
We are receiving many emails from customers very afraid with the new
SD card permission that will modify their sdcard content. As all
developers know, this permission was granted automatically until OS
1.5 but not anymore. I hope there will be some education now to
the... end user to explain that the new application using the new OS
are not necessary more...dangerous than the previous one.

We feel like penalized to be one of those trying to support new
version of the OS

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


Re: [android-developers] Re: Launching the correct activity on resume

2010-01-24 Thread Yuvi
Hi.

I noticed something similar while developing for android...that is:
when I start the app from eclipse (either debug as, or run as) launching
Activity 1, then go to Activity 2, then press Home, and then restart the
app, I see that Activity 1 is shown (while Activity 2 should be on top of
the stack). If I press back I get my running Activity 2...
To avoid that, when the app starts, the first thing I do is quit (by
pressing back). Then I start the app again (Activity 1), launch Activity
2, then press Home, and restart...I get correctly Activity 2...

I really don't know why it happens (I noticed that also when starting apps
downloaded from the Market, and launched directly from the notification
status bar).
Btw I didn't specify any launch mode (singleTask, singleInstance, etc..).
Maybe you should try removing that too..


Ciao!
Yuvi

On Sat, Jan 23, 2010 at 11:22 PM, Josh Hoffman keshis...@gmail.com wrote:

 Thanks for your help Vo Trung Liem, I think I may not have been clear
 enough about what I'm trying to do. I don't have any trouble getting
 back to Activity1 (my launcher) from Activity2 (results). What I want
 is this:

 Launch app into Activity1 from the home screen.
 Go into Activity2 from Activity1 after choosing options.
 Be able to hit the 'Home' key and use other apps while my app does
 work.
 Launch app into Activity2 from the home screen.

 What I currently have is an app that will only ever launch into
 Activity1 from the home screen no matter what I do. It doesn't seem to
 care whether Activity2 was on top of the stack when I hit home, which
 tells me I probably don't understand the Android Lifecycle as well as
 I should. I should probably also mention that I am using
 android:launchMode=singleTask as I am under the impression that this
 makes sure I only ever have one instance of my application floating
 around.

 Thanks again for reading and for any help you may be able to offer!

 On Jan 22, 6:21 pm, Vo Trung Liem lie...@gmail.com wrote:
  Hi,
 
  No need set up your Manifest to get this functionality.
 
  You just use function onActivityResult() to code for your functionality.
 
  Example:
 
  Activity1 call Activity2 then Activity1 will resume after Activity2
 finish.
 
  Activity1 will call Activity2 by function: startActivityForResult(intent,
  requestCode);
 
  In Activity2, we need implement function onActivityResult() what you
 want.
  (Example: setResult(0);
  this.finish();)
 
  Hope you success!
 
  On Sat, Jan 23, 2010 at 7:09 AM, Josh Hoffman keshis...@gmail.com
 wrote:
   I'm currently working with a two-activity application. The first
   activity allows the user to choose options for their upload, and the
   second activity displays a ListView of their results once processed.
 
   I have code in place that performs the uploads/downloads in the
   background, regardless of whether the application is currently in
   focus or not (thanks to Matthias Kaeppler's Droid-Fu).
 
   I would like to have my application Resume into my second (results)
   activity when a user clicks on the icon from the top-level launcher,
   regardless of how long they have been away from the app. I thought
   that the 'alwaysRetainTaskState' flag in the Manifest would do it, but
   I've not had success with that. Can anyone tell me how I need to set
   up my Manifest to get this functionality?
 
   Thank you for your help! :)
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Re: Problem while sending unicode character via SMS

2010-01-24 Thread andu
Hi How are you

As you have suggested me I have installed the Ethiopian font in my
device. And I think the font is installed properly. But still the SMS
doesn't work. I don't know which part I can check. The message still
replaces unicode characters by space characters in the receiving side.
can you suggest me some more points that I should check or correct?

Thank you again.

Andu.



On Jan 22, 7:51 pm, Frank Weiss fewe...@gmail.com wrote:
 If the received character is U+0020 instead of U+1200, then chances are that
 the message is being restricted to 7-bit somewhere along the line. This is
 somewhat alluded to in the SDK 
 Referencehttp://developer.android.com/reference/android/telephony/SmsMessage.h...
 )

 Another problem may be the font. Have you installed the Ethiopian fonts in
 your device or emulator? I just tried adding ቁ into an Android
 application's string.xml res file. On both the emulator and the Droid, the
 character is displayed as a small rectangle.

 It may help in debugging to try some Latin-1/ISO-8859-1 characters, such as
 U+00E3. This would test the 7-bit issue without having to install Ethiopian
 fonts on the emulator or device.

 On Thu, Jan 21, 2010 at 10:53 PM, andu alemf...@yahoo.com wrote:
  Hello How are you

  I have tried to send the sms with unicode character to the android
  phone itself and accept the message by my application (using
  BroadcastReceiver ...)  to view its content. but still the unicode
  character is displayed as space. And I tried to see its code using
  codePointAt( )  and it displays number 32.

  What do you suggest?
  Should I change the encoding for my code, JVM, ...? How can I change
  the encoding of my program? I am developing my application by Eclipse
  and Android ADT.

  Thank you for response.

  and also I waiting your response

  Andu

  On Jan 1, 1:49 am, Frank Weiss fewe...@gmail.com wrote:
   The code looks good AFAICT.

   Please give the actual before/after characters that are coming out wrong.
   For example, try the Ethiopian syllable qu, U+1241. If it's coming across
  as
   a box followed by an A, then the receiver has gotten two characters,
   U+0012 and U+0041. I really need to see the hexadecimal data in your sent
   and received SMS messages to figure out what's going wrong.

   I would also suggest that using the debugger or android.util.Log, instead
  of
   Toast, would be a better way to debug.

   On Thu, Dec 31, 2009 at 2:26 AM, andu alemf...@yahoo.com wrote:
To send the message I have used the following function:

public boolean sendSMSMessage(String compiledContent, String
DistinationAddress)
       {
               String receiverPhoneNumber = DistinationAddress;
               String messageCenterPhoneNumber = ;
               SmsManager smsMgr = SmsManager.getDefault();
               smsMgr.sendTextMessage(receiverPhoneNumber, null,
compiledContent,
null, null);
               return isSent;
       }

To receive the message I have used the following function:

@Override
   public void onReceive(Context context, Intent intent) {
       Bundle bundle = intent.getExtras();

       if(bundle != null)
       {
               Object messages[] = (Object[]) bundle.get(pdus);
               SmsMessage smsMessage[] = new
  SmsMessage[messages.length];
               for (int n = 0; n  messages.length; n++)
               {
                   smsMessage[n] = SmsMessage.createFromPdu((byte[])
messages
[n]);
               }

               // show first message
               Toast toast = Toast.makeText(context,  Brhp Received
  SMS: 
+ smsMessage[0].getMessageBody()+ from  + smsMessage
[0].getOriginatingAddress(), Toast.LENGTH_LONG);
               toast.show();

               String messageBody = smsMessage[0].getMessageBody();
               String messageSource =
smsMessage[0].getOriginatingAddress();
        }

   }

On Dec 29, 1:02 am, andu alemf...@yahoo.com wrote:
 How are you all?

 I am developing application for android phone. Currently I am testing
 my system in the emulator. In my application, I want to send unicode
 character (Amharic language character) via SMS to the other emulator
 instance. But in the receiver side, the message is not viewed
 properly. I think the problem is some character encoding related
 problem.

 In addition similar problem happens for texts which are queried for
 the sqlite database. that is when I send a query result via SMS the
 same problem occurs. Please help me.

 Sorry for posting the same message again. Please help me.

 Thank you

 Andu.

--
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: Launching the correct activity on resume

2010-01-24 Thread Dianne Hackborn
Set android:launchMode=singleTop on your first activity.  You will then
get an onNewIntent() when you are re-launched from home.  There you can
startActivity() for your second activity; if you want back from the second
activity to skip the first, you can call finish() in the first after
starting the second.

You may want to do the same thing in onCreate() (when savedState is null),
to take care of the case where they launch your activity after finishing it
via back.

On Sat, Jan 23, 2010 at 3:08 PM, Josh Hoffman keshis...@gmail.com wrote:

 Thanks for your help Vo Trung Liem, I think I may not have been clear
 enough about what I'm trying to do. I don't have any trouble getting
 back to Activity1 (my launcher) from Activity2 (results). What I want
 is this:

 Launch app into Activity1 from the home screen.
 Go into Activity2 from Activity1 after choosing options.
 Be able to hit the 'Home' key and use other apps while my app does
 work.
 Launch app into Activity2 from the home screen.

 What I currently have is an app that will only ever launch into
 Activity1 from the home screen no matter what I do. It doesn't seem to
 care whether Activity2 was on top of the stack when I hit home, which
 tells me I probably don't understand the Android Lifecycle as well as
 I should. I should probably also mention that I am using
 android:launchMode=singleTask as I am under the impression that this
 makes sure I only ever have one instance of my application floating
 around.

 Thanks again for reading and for any help you may be able to offer!

 On Jan 22, 6:21 pm, Vo Trung Liem lie...@gmail.com wrote:
  Hi,
 
  No need set up your Manifest to get this functionality.
 
  You just use function onActivityResult() to code for your functionality.
 
  Example:
 
  Activity1 call Activity2 then Activity1 will resume after Activity2
 finish.
 
  Activity1 will call Activity2 by function: startActivityForResult(intent,
  requestCode);
 
  In Activity2, we need implement function onActivityResult() what you
 want.
  (Example: setResult(0);
  this.finish();)
 
  Hope you success!
 
  On Sat, Jan 23, 2010 at 7:09 AM, Josh Hoffman keshis...@gmail.com
 wrote:
   I'm currently working with a two-activity application. The first
   activity allows the user to choose options for their upload, and the
   second activity displays a ListView of their results once processed.
 
   I have code in place that performs the uploads/downloads in the
   background, regardless of whether the application is currently in
   focus or not (thanks to Matthias Kaeppler's Droid-Fu).
 
   I would like to have my application Resume into my second (results)
   activity when a user clicks on the icon from the top-level launcher,
   regardless of how long they have been away from the app. I thought
   that the 'alwaysRetainTaskState' flag in the Manifest would do it, but
   I've not had success with that. Can anyone tell me how I need to set
   up my Manifest to get this functionality?
 
   Thank you for your help! :)
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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




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

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

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

Re: [android-developers] Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Dianne Hackborn
If you are explicitly supporting 1.6 and up, users are NOT shown these
permissions, since you have set android:targetSdk=4 so the platform will
not automatically add those permissions.

If you have not set the targetSdk to 4 or higher, then you are an older app,
and the platform must automatically give you those permissions, because on
previous versions of the platform there was no restriction on applications
doing these things.

On Sun, Jan 24, 2010 at 9:13 AM, Carlo ca...@hyperdevbox.com wrote:

 We are receiving many emails from customers very afraid with the new
 SD card permission that will modify their sdcard content. As all
 developers know, this permission was granted automatically until OS
 1.5 but not anymore. I hope there will be some education now to
 the... end user to explain that the new application using the new OS
 are not necessary more...dangerous than the previous one.

 We feel like penalized to be one of those trying to support new
 version of the OS

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

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

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

Re: [android-developers] Re: Getting cell signal strength for current cell vs neighboring cells

2010-01-24 Thread Joey Wilson
I've seen as many as 8 neighboring cells at times. Usually I get
anywhere from none to 3.

On Sun, Jan 24, 2010 at 1:27 AM, 3D ernestgfre...@gmail.com wrote:
 Hi, I'm curious to know approximately how many neighboring cells you
 typically detect  Obviously this will vary with location but are we
 talking 1-2 neighboring cells or are there many more?  Thanks.


 On Jan 5, 11:38 pm, Doughy doughywil...@gmail.com wrote:
 I'm writing an android application that collects cellsignal
 strengths.  I am having trouble getting the current cellsignalstrength, 
 but I don't have any problem getting the neighboring cellsignalstrengths.

 To get the current cellsignalstrength, I created a
 PhoneStateListener and implemented the onSignalStrengthChanged
 callback.  It works, but not very well.  It seems like 
 thesignalstrengthhardly ever changes, and resolution jumps to only a few
 numbers.  I would accept the answer that the resolution of 
 thesignalstrengthhardware is coarse, but when I use the TelephonyManager's
 getNeighboringCellInfo() method, it works much better.  
 Thesignalstrengthreadings from neighboring cells change frequently, and they
 have much better resolution.

 So, how can I get the current cellsignalstrengthin the same way
 that I am getting the neighboring cell strengths?  It seems odd to me
 that the functionality of the neighboring cells is better than the
 current cell.  Am I missing something here?

 I would also like to directly call a method from the telephony manager
 to get current cellstrength, as opposed to a listener, if possible.
 If anyone knows how, please let me know.  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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
Yes, but that is not my point : if you need to write to external data
storage (the sdcard)  then the permission seems to be granted
automatically if your app is under 1.5 (or lower) so the end user does
not feel like..hey you are going to write to my sdcard and he does
feel secure (even if it is not true at all because this permission is
granted without his knowledge and application is probably going to
write freely to the sdcard),  however, the exact same application
using 1.6 , MUST add the permission and then the user must accept
it but,  the way it is presented, specially that the application
could modify the content of the sdcard makes the user feel like this
1,6 application is less secure than the previous one and might refuse
to install it (which is the case we are facing), so you have better
chance in the market having a 1.5 application than a 1.6 or higher,
unless you dont need to access the sdcard, i am not calling this very
good for pushing new OS application..

On Jan 25, 4:45 am, Dianne Hackborn hack...@android.com wrote:
 If you are explicitly supporting 1.6 and up, users are NOT shown these
 permissions, since you have set android:targetSdk=4 so the platform will
 not automatically add those permissions.

 If you have not set the targetSdk to 4 or higher, then you are an older app,
 and the platform must automatically give you those permissions, because on
 previous versions of the platform there was no restriction on applications
 doing these things.





 On Sun, Jan 24, 2010 at 9:13 AM, Carlo ca...@hyperdevbox.com wrote:
  We are receiving many emails from customers very afraid with the new
  SD card permission that will modify their sdcard content. As all
  developers know, this permission was granted automatically until OS
  1.5 but not anymore. I hope there will be some education now to
  the... end user to explain that the new application using the new OS
  are not necessary more...dangerous than the previous one.

  We feel like penalized to be one of those trying to support new
  version of the OS

  --
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

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

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


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread schwiz
Have you explained in your app description what you are requesting
sdcard access for?

On Jan 24, 2:36 pm, Carlo ca...@hyperdevbox.com wrote:
 Yes, but that is not my point : if you need to write to external data
 storage (the sdcard)  then the permission seems to be granted
 automatically if your app is under 1.5 (or lower) so the end user does
 not feel like..hey you are going to write to my sdcard and he does
 feel secure (even if it is not true at all because this permission is
 granted without his knowledge and application is probably going to
 write freely to the sdcard),  however, the exact same application
 using 1.6 , MUST add the permission and then the user must accept
 it but,  the way it is presented, specially that the application
 could modify the content of the sdcard makes the user feel like this
 1,6 application is less secure than the previous one and might refuse
 to install it (which is the case we are facing), so you have better
 chance in the market having a 1.5 application than a 1.6 or higher,
 unless you dont need to access the sdcard, i am not calling this very
 good for pushing new OS application..

 On Jan 25, 4:45 am, Dianne Hackborn hack...@android.com wrote:

  If you are explicitly supporting 1.6 and up, users are NOT shown these
  permissions, since you have set android:targetSdk=4 so the platform will
  not automatically add those permissions.

  If you have not set the targetSdk to 4 or higher, then you are an older app,
  and the platform must automatically give you those permissions, because on
  previous versions of the platform there was no restriction on applications
  doing these things.

  On Sun, Jan 24, 2010 at 9:13 AM, Carlo ca...@hyperdevbox.com wrote:
   We are receiving many emails from customers very afraid with the new
   SD card permission that will modify their sdcard content. As all
   developers know, this permission was granted automatically until OS
   1.5 but not anymore. I hope there will be some education now to
   the... end user to explain that the new application using the new OS
   are not necessary more...dangerous than the previous one.

   We feel like penalized to be one of those trying to support new
   version of the OS

   --
   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.comandroid-developers%2Bunsubs
cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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

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

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


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
No because we have been too short with the 325char description and we
had no room to add this information at the moment, we have just
released the application (this is the first one) so this is an
unexpected issue, we did not expect the mass end-user to react this
way to this permission but clearly, they did not have the experience
to see it before (apparently???) so we can understand that without the
proper education on why this new permission is now...popping up they
just ask themselves  why is this NEW permission needed and why your
application only???, so i believe now that we must find a way to add
it to the description now and very fast.


On Jan 25, 5:47 am, schwiz sch...@gmail.com wrote:
 Have you explained in your app description what you are requesting
 sdcard access for?

 On Jan 24, 2:36 pm, Carlo ca...@hyperdevbox.com wrote:



  Yes, but that is not my point : if you need to write to external data
  storage (the sdcard)  then the permission seems to be granted
  automatically if your app is under 1.5 (or lower) so the end user does
  not feel like..hey you are going to write to my sdcard and he does
  feel secure (even if it is not true at all because this permission is
  granted without his knowledge and application is probably going to
  write freely to the sdcard),  however, the exact same application
  using 1.6 , MUST add the permission and then the user must accept
  it but,  the way it is presented, specially that the application
  could modify the content of the sdcard makes the user feel like this
  1,6 application is less secure than the previous one and might refuse
  to install it (which is the case we are facing), so you have better
  chance in the market having a 1.5 application than a 1.6 or higher,
  unless you dont need to access the sdcard, i am not calling this very
  good for pushing new OS application..

  On Jan 25, 4:45 am, Dianne Hackborn hack...@android.com wrote:

   If you are explicitly supporting 1.6 and up, users are NOT shown these
   permissions, since you have set android:targetSdk=4 so the platform will
   not automatically add those permissions.

   If you have not set the targetSdk to 4 or higher, then you are an older 
   app,
   and the platform must automatically give you those permissions, because on
   previous versions of the platform there was no restriction on applications
   doing these things.

   On Sun, Jan 24, 2010 at 9:13 AM, Carlo ca...@hyperdevbox.com wrote:
We are receiving many emails from customers very afraid with the new
SD card permission that will modify their sdcard content. As all
developers know, this permission was granted automatically until OS
1.5 but not anymore. I hope there will be some education now to
the... end user to explain that the new application using the new OS
are not necessary more...dangerous than the previous one.

We feel like penalized to be one of those trying to support new
version of the OS

--
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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

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

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

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


Re: [android-developers] Apps not appearing in market place on certain phones

2010-01-24 Thread Dave Gracie
I had the same issue when releasing one of my applications, the app didnt
appear on the Orange UK network.

This was, as TonyDoc referred to, due to the app being protected. There is a
link somewhere on the android site showing all providers who allow protected
applications. I was not aware of this being phone specific however.

Dave


2010/1/24 Yuvi yuvidr...@gmail.com

 They same happened to me, but with HTC Tatoo (no showing some apps) vs HTC
 Hero and Magic...



 On Sun, Jan 24, 2010 at 11:20 AM, TonyDoc tony...@gmail.com wrote:

 My family has got three android phones, an HTC Hero, a Samsung Galaxy,
 and a T-Mobile Pulse, all are running android 1.5 with the latest
 manufacturer firmware.
 On the T-Mobile Pulse, when searching for a couple of apps (ones that
 I have installed on the other two devices), I get returned 'no
 matches'. For example, if I search for 'BrightAI', which is a
 developer who has around 8 apps on the market, I get no matches. If I
 search for individual apps, I get 'no matches'. Searching for the same
 on either the Hero or Galaxy returns the expected results.
 Does anyone have any ideas why certain apps are accessible on one
 device, but not the other?
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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


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

[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
and believe it or not, but potential customers seems to have some
worries about...not writing to the sdcard but with the word
modify into the permission description text, they feel our
application is going to delete or do some modification to their
already installed files i know that soon it will be a fact known
by the mass end-user but maybe to help , just to have the permission
description text labelled like  need to write to sdcard would have
been better for introducing this new permission.

On Jan 25, 5:59 am, Carlo ca...@hyperdevbox.com wrote:
 No because we have been too short with the 325char description and we
 had no room to add this information at the moment, we have just
 released the application (this is the first one) so this is an
 unexpected issue, we did not expect the mass end-user to react this
 way to this permission but clearly, they did not have the experience
 to see it before (apparently???) so we can understand that without the
 proper education on why this new permission is now...popping up they
 just ask themselves  why is this NEW permission needed and why your
 application only???, so i believe now that we must find a way to add
 it to the description now and very fast.

 On Jan 25, 5:47 am, schwiz sch...@gmail.com wrote:



  Have you explained in your app description what you are requesting
  sdcard access for?

  On Jan 24, 2:36 pm, Carlo ca...@hyperdevbox.com wrote:

   Yes, but that is not my point : if you need to write to external data
   storage (the sdcard)  then the permission seems to be granted
   automatically if your app is under 1.5 (or lower) so the end user does
   not feel like..hey you are going to write to my sdcard and he does
   feel secure (even if it is not true at all because this permission is
   granted without his knowledge and application is probably going to
   write freely to the sdcard),  however, the exact same application
   using 1.6 , MUST add the permission and then the user must accept
   it but,  the way it is presented, specially that the application
   could modify the content of the sdcard makes the user feel like this
   1,6 application is less secure than the previous one and might refuse
   to install it (which is the case we are facing), so you have better
   chance in the market having a 1.5 application than a 1.6 or higher,
   unless you dont need to access the sdcard, i am not calling this very
   good for pushing new OS application..

   On Jan 25, 4:45 am, Dianne Hackborn hack...@android.com wrote:

If you are explicitly supporting 1.6 and up, users are NOT shown these
permissions, since you have set android:targetSdk=4 so the platform 
will
not automatically add those permissions.

If you have not set the targetSdk to 4 or higher, then you are an older 
app,
and the platform must automatically give you those permissions, because 
on
previous versions of the platform there was no restriction on 
applications
doing these things.

On Sun, Jan 24, 2010 at 9:13 AM, Carlo ca...@hyperdevbox.com wrote:
 We are receiving many emails from customers very afraid with the new
 SD card permission that will modify their sdcard content. As all
 developers know, this permission was granted automatically until OS
 1.5 but not anymore. I hope there will be some education now to
 the... end user to explain that the new application using the new OS
 are not necessary more...dangerous than the previous one.

 We feel like penalized to be one of those trying to support new
 version of the OS

 --
 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.comandroid-developers%2Bunsubs
  cr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

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

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


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Maps.Huge.Info (Maps API Guru)
I think you may be over reacting. Users are most likely not going to
care if you write to the SD card. I would bet that 99 out of 100 users
don't even read or care about what permissions you're asking for, the
100th person is probably searching the skies for black helicopters
anyway, so it's highly unlikely you'll be able to please that person
regardless of what you do.

You have a choice, use the SD card or not. If you do, you'll have to
have permission. I don't see that as a problem.

-John Coryat

Radar Now!

What Zip Code?

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


[android-developers] Re: Apps not appearing in market place on certain phones

2010-01-24 Thread TonyDoc
Hi Dave,

I was unaware that some providers are specifically blocking protected
apps, should they not be required to advertise this fact to allow folk
to make a better informed decision when purchasing a phone from them?
Would a solution be to ask t-mobile to unlock the phone due to these
unadvertised restrictions, and then move to a different network
provider?

Also, my hero is on the Orange UK network. That seems to work fine.

On Jan 24, 9:01 pm, Dave Gracie david.gra...@gmail.com wrote:
 I had the same issue when releasing one of my applications, the app didnt
 appear on the Orange UK network.

 This was, as TonyDoc referred to, due to the app being protected. There is a
 link somewhere on the android site showing all providers who allow protected
 applications. I was not aware of this being phone specific however.

 Dave

 2010/1/24 Yuvi yuvidr...@gmail.com

  They same happened to me, but with HTC Tatoo (no showing some apps) vs HTC
  Hero and Magic...

  On Sun, Jan 24, 2010 at 11:20 AM, TonyDoc tony...@gmail.com wrote:

  My family has got three android phones, an HTC Hero, a Samsung Galaxy,
  and a T-Mobile Pulse, all are running android 1.5 with the latest
  manufacturer firmware.
  On the T-Mobile Pulse, when searching for a couple of apps (ones that
  I have installed on the other two devices), I get returned 'no
  matches'. For example, if I search for 'BrightAI', which is a
  developer who has around 8 apps on the market, I get no matches. If I
  search for individual apps, I get 'no matches'. Searching for the same
  on either the Hero or Galaxy returns the expected results.
  Does anyone have any ideas why certain apps are accessible on one
  device, but not the other?
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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



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


[android-developers] Asset/Resource in Content Provider

2010-01-24 Thread Alex
Hey
I need top specify a URI when opening an intent using the following
line:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(mediaUri, image/png);

My ContentProvider is all set up, but I have NO idea how to point the
Uri to the resource or asset. the following does NOT work (cant find
file):

Uri mediaUri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE +
:// + getApplicationContext().getResources
().getResourcePackageName(R.drawable.icon) +
/ + R.drawable.icon);

Cant get it working with assets OR resources

Thanks
Alex

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


[android-developers] layoutopt tool for TableLayout with one child and overlapping of views

2010-01-24 Thread Nikhil Agarwal
I am using the following xml for a view:-

TableLayout
TableRow...
TextView.../
CheckBox.../
/TableRow
/TableLayout

For this view, I got the following output from layoutopt tool
...This TableRow layout or its TableLayout parent is useless

I am not sure if I can remove TableRow or TableLayout. How can I solve
this? I don't want the TextView to be covered by Checkbox irrespective
of how much text is there in the TextView which is why I used the
TableLayout.

Also I had to use TableLayout in some places when I wanted two
TextViews on the same line to not overlap. Is there another solution
to prevent overlapping of views?

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


[android-developers] Re: Any API to create KML files in Android?

2010-01-24 Thread gjs
Hi,
I have not tried to use in ddms, the kml I have written is
specifically for use with google maps/earth.

Regards

On Jan 24, 11:19 am, Artak Kalantarian arta...@gmail.com wrote:
 Is the KML you create compatible with DDMS Location Controls KML import?

 I found that KML files created by My Tracks cannot be imported into DDMS.
 They fail without an error message.



 On Sat, Jan 23, 2010 at 12:30 AM, gjs garyjamessi...@gmail.com wrote:
  Hi,

  It is pretty easy to write your own, I've done it for kml and kmz
  files, code was only a about 100 lines or so.

  Regards

  On Jan 23, 3:25 pm, Charles charles.wh.c...@gmail.com wrote:
   I am interested in using the GPS to create a KML file to track my
   route using Paths (http://code.google.com/apis/kml/documentation/
   kml_tut.html#paths). I haved looked at JAK (Java API for KML), but it
   appears to have some compatibility issues with Android.

   Does anyone have any suggestions or should I create my own Java class
   to do this?

   Thanks,
   Charles

  --
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Cant get data from my service

2010-01-24 Thread WoodManEXP
Daffo0,

I would like to know how you solve this because I have a similar need
with a background service doing a job and the background service would
like to push updates to an activity (if the activity is running).

What are the preferred communication techniques between Service and
Activities? You are using IRemoteInterface class. What about IBinder?
Have you looked at that?


On Jan 19, 12:44 pm, draf...@gmail.com draf...@gmail.com wrote:
 I have aservicethat is running fine and I can see the data
 collecting in the logcat,

 However after creating an aidl and trying to get the information from
 theserviceto my main activity I have hit a problem.

 I just cant seem to get the data to pass across at all, I always get a
 null pointer exception.

 Here is myserviceclass, I want to get the connectedLevel int to use
 in my activity class.

 Is it because I'm not binding properly or what am I missing but any
 calls to the remote interface to try and get the data ends up with a
 null pointer exception.

 My activity class code is posted underneath.

 

 Serviceclass

 public class WIFIService extendsService{

     private static final int WIFI_NOTIFY = 0x2001;
     public static final String EXTRA_UPDATE_RATE = update-rate;
     public static final String WIFI_SERVICE =
 cicero.org.WIFIService.SERVICE;

         private WifiManager mainWifi;
         private BroadcastReceiver rssiListener = null;

         private int updateRate = -1;
         private int connectedLevel;

         @Override
         public void onCreate(){
                 super.onCreate();
                 mainWifi = (WifiManager) 
 getSystemService(Context.WIFI_SERVICE);
                 notifier = (NotificationManager) getSystemService
 (Context.NOTIFICATION_SERVICE);

         }

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

                 updateRate = intent.getIntExtra(EXTRA_UPDATE_RATE, -1);
                 if(updateRate == -1){

                         updateRate = 6;

                 }
                  rssiListener = new BroadcastReceiver(){

             �...@override
              public void onReceive(Context context, Intent intent) {
                      String action = intent.getAction();

                      if(WifiManager.RSSI_CHANGED_ACTION.equals(action))
 {
                         WifiInfo data = mainWifi.getConnectionInfo();
                         Log.d(WIFISERVICE, RSSI has changed);
                         if(mainWifi.getConnectionInfo()!=null){
                                 setConnectedLevel(data.getRssi());
                                 Log.d(WIFISERVICE, new RSSI =  +
 data.getSSID()+   + data.getRssi() + dBm);
                         }
                      }
              }
      };

 }

         @Override
         public void onDestroy(){

                 if(rssiListener != null){
                         unregisterReceiver(rssiListener);
                         rssiListener = null;
                 }

                 if(wifiChangeListener != null){
                         unregisterReceiver(wifiChangeListener);
                         wifiChangeListener = null;
                 }

                 if(receiverWifi != null){
                         unregisterReceiver(receiverWifi);
                         receiverWifi = null;
                 }
                 super.onDestroy();

         }
                 public void setConnectedLevel(int connectedLevel) {
                         this.connectedLevel = connectedLevel;

                 }

                 @Override
             public IBinder onBind(Intent intent) {
                 // we only have one, so no need to check the intent
                 return mRemoteInterfaceBinder;
             }

             //  remote interface
             private final IRemoteInterface.Stub mRemoteInterfaceBinder = new
 IRemoteInterface.Stub() {

                         @Override
                         public int getConnectedLevel() throws RemoteException 
 {
                                 Log.v(interface, getConnectedLevel() 
 called);
                                 return connectedLevel;
                         }

             };

 }

 

 Activity class

 public class TestApp extends Activity implements ServiceConnection{

         IRemoteInterface mRemoteInterface = null;
         int connectedLevel;

     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         CallMonitor cm = new CallMonitor(this);
         wifi = new WiFi(this);

         final Button settings_Button = (Button) findViewById
 (R.id.settingsButton);

                 settings_Button.setOnClickListener(new View.OnClickListener()
 {
                         public void onClick(View v){
         

[android-developers] Re: Understanding how the Final keyword in Android Works

2010-01-24 Thread jotobjects

On Jan 20, 10:49 am, Burk Hufnagel silveran...@gmail.com wrote:
 Tim,

 This is not an Android thing, it's a Java thing. Because the anonymous
 instance of OnClickListener can exist after the onCreate method
 completes its execution, you have to declare that builder is final
 otherwise it will be cleaned up with any other local variables because
 it's no longer in scope.

Actually the anonymous class object still has a reference to builder
so it won't be cleaned up anyway.  The final keyword has nothing to
do with garbage collection.

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


Re: [android-developers] Re: How to close an application?

2010-01-24 Thread Kevin Duffey
Frank, yes.. in short, badly behaved (coded?) applications that are not shut
down can drain battery life. I agree with Streets tho.. don't use
System.exit, just call finish() on the activity, and make sure to implement
the onPause and onDestroy correctly, cleaning up all threads, etc. Try
teaching an end user that an app may have threads left over which is eating
up your battery tho. That is why I think one of the most often posted end
user threads is about battery life. When I use Advanced Task Killer to kill
all apps before I sleep my phone, my batter will last all day easily, that
includes surfing the net, checking email several times, doing several phone
calls, using the maps, etc. Yet, my dad, who today I talked into buying an
Eris since he doesn't need the keyboard of the droid, said he did some
searching and found tons of posts on users complaining of horrible battery
life. Why is this? I can't imagine those users simply leave their phone on
all the time. The only thing I can think of is bad battery or rogue apps
that are not properly cleaning up things that consume battery life. If you
sleep your phone... does the front most activity/app pause? Or if it spawns
a thread (or more), do those still run even with the phone sleeping? I know
sometimes I've had the maps app going and press the power button to sleep my
phone.. come back a couple hours later and my batter is drained (or some
sort of drainage did occur). I can't say for sure it was the maps, but I
thought sleeping the phone would only allow background services to run, and
even thought perhaps only phone specific things like sms, emails and phone
calls would continue to run and most other things would be paused... with
the exception of timer services that wake up the phone on some condition.


On Thu, Jan 21, 2010 at 7:30 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:

 If you want to make sure that your app shuts down completely:
 - Implement onPause to pause any threads running in the background (if
 you have any)
 - Implement onDestroy to clean up any other resources (stop threads,
 if any, for example)

 Short of the user pulling the battery, the onPause is guaranteed to be
 called.
 If the onDestroy is not called, your process has been killed
 forcefully by Android -- resources are cleanup anyway.

 It is absolutely not necessary to do a System.exit() and can result in
 the behavior described by Pink444 (restarting of the process and
 activity). Even the Anrdroid apps that do implement a 'Quit' or 'Exit'
 button, most (i hope all) of them just do a call to 'finish()' and
 clean up stuff in the onDestroy. They should not ever call System.exit
 ().

 For apps that behave badly and leave threads actively running when
 their activities are in the background: They indeed will drain the
 battery. The user can figure this out, though (Battery info) and kill
 or even uninstall the app. For your app, just make sure your app
 behaves gracefully :-) ... it's in your control.

 It's just another model of programming model (although very close to
 regular event-driven programming) and that's actually the best part
 about it. I'm learning something new!

 In general, you can write activities that can be called by other
 activities. Your activity can be called within the process of another
 activity that is not yours. Doing a System.exit() may adversely affect
 the calling (parent) activity.

 On Jan 21, 5:27 pm, Kevin Duffey andjar...@gmail.com wrote:
  I don't know if I like this model. :D I'll give you one reason that I
 don't
  know if it comes up or exists often, but I think it's one of the most
  confusing issues for non-techie (and even techie peeps that don't know
 about
  programming and threads and such) users for android devices. The problem
 to
  me is.. I am a developer that will without a doubt make mistakes. As
 such,
  if I am writing an app that otherwise seems to run fine on devices, but
 I've
  forgotten to stop threads when my app is paused (either by user hitting
  home/back, phone call, etc).. to the users, my app may be finished. The
  notion of not closing down an app and users getting used to that idea
 means
  that they need to trust every app they ever get that it wont leave some
  battery draining possibility running behind. Now, Mark I know will
 correct
  me if I am wrong here, I've read his first book mostly and other books on
  Android. It is up to us in every Activity to handle the pause/resume,
  create(bundle) to resume properly if the app was actually shut down and
  bundle info saved, etc. But I still can't help to think that there are
 thos
  eapps that have bugs in them that have either a thread left behind
  (assuming android doesn't completely shut it down) that may end up
 draining
  the battery. I don't know for sure, but a few times now, I've come back
 to
  my phone a couple hours later to find it dead, from a completely charged
  state prior. And I don't know why. My only guess is that I left something

[android-developers] Re: Contacts FAQ?

2010-01-24 Thread Berto
So, it turns out that anything you put into your own ExternalSource
will never get parsed and therefore (theoretically) never show up.  Or
am I doing something wrong?  The code looks like it will parse only
the information in ContactsDataKind and not the EditField node from
the following:

ContactsSource xmlns:android=http://schemas.android.com/apk/res/
android
ContactsDataKind
android:mimeType=com.example.mimetype
android:icon=@drawable/icon
android:summaryColumn=data2
android:detailColumn=data3
EditField column=data1 title=@string/sample_string /
/ContactsDataKind
/ContactsSource

Essentially, I have adding an account and the sync adapter working.
But when I try to create a new contact through the contacts app, I can
never see any of the fields I added in the XML structure defined by
meta-data android:name=android.provider.CONTACTS_STRUCTURE
android:resource=@xml/contacts /.  Has anyone figured out an
answer to this problem yet?  I've seen a few posts, but nothing with a
solid answer.

On Jan 12, 4:45 am, Jens dunkingbikk...@gmail.com wrote:
 You could check the Email app - its the current location of the
 Exchange ActiveSync SyncAdapter implementation.

 http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=s...

 Note that this adapter isn't the complete story as any contacts you
 create with your custom accounts will be next to useless without
 looking into the wonky ExternalSource.java integration required for
 custom adapters (unless your happy with contacts that only contains a
 name and photo).

 http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;...

 Sources.java contains the super-special-let's-not-use-our-own-API:s-
 because-that's-hard-work-and-might-require-us-to-actually-document-
 anything-or-heaven-forbid-test-it if-statement that determines the
 layout of your contacts in the Contacts app - and gives super-special
 treatment to accounts with the type com.google or
 com.android.exchange.

 ExternalSource.java contains the sparse and incomplete API
 documentation that you're going to have to use.

 On 9 Jan, 22:16, joebowbeer joe.bowb...@gmail.com wrote:

  On Dec 10 2009, 7:03 am, ydario mc6...@mclink.it wrote:

   I tried addingcontactscode to this project

  http://code.google.com/p/androidaccounts/

  The referenced project no longer exists. Are there any similar
  projects to check out? If not, could someone who has a handle on this
  start anewproject?

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


[android-developers] Is there a way to control/monitor power usage with android APIs?

2010-01-24 Thread Cameron
I am new to the android platform.  I am a graduate student and I am
researching ways to reduce energy consumption for on-line games
through methods such as turning the wifi off during known periods of
inactivity or by reducing CPU clock speed through dynamic voltage
scaling.  Are there power usage models for the simulator with the
bundled SDK?  Are there APIs to dynamically monitor energy
consumption?

Thank you,

Cameron

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


[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

2010-01-24 Thread Gilles Duboscq
I had the problem on Win7x64 using http worked fine,
i made a tcpdump of what happens when AVD tries to use https location
and compared it to downloading the same file with chrome
AVD sends a SSLv2 Client Hello while chrome sends a TLSv1 Client Hello
then the Server Hello, Certificate, and Server Hello replies are the
same (all TLSv1)
After that chromes continues with the handshake while AVD sends an
Alert (type== Unexpected Message)
looks like it wants SSLv2 and wont accept the TLSv1 handshake

I'm using
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)


On Jan 17, 3:30 am, choffman craig.r.hoff...@gmail.com wrote:
 Hi, I had the same problem on Fedora 12.
 I added a new site-http://dl.google.com/android/repository/repository.xml
 , selected it and it worked.
 Force https in the settings had no effect.

 Strange thing though. When I reopen AVD, the new http site is checked,
 but AVD is still trying to go to
 the https site. So I have to deselect and reselect the site check
 boxes. IDK, it works.

 On Jan 4, 9:31 am, teryz teryzpl...@gmail.com wrote:



  I have a problem using Android SDK Updater (revision 4). For the
  record I'm under win xp 32-bits, jdk 1.6.
  I set up the Force https://... sources to be fetched using http://
  This seemed to work fine but as I am behing a (corporate) proxy I also
  filled the proxy server and port settings, however this proxy requires
  a user/password and I can't find a way to give Android Updater a proxy
  authentication as no authentication box pops up when I try downloading
  updates and I have a
   response code: 407 for 
  URL:http://dl-ssl.google.com/android/repository/repository.xml;
  when refreshing sources.

  If someone can help...

  Teryz.

  On 4 déc 2009, 09:30, Cédric Berger cedric.berge...@gmail.com wrote:

   2009/10/29 Cédric Berger cedric.berge...@gmail.com:

2009/10/29 Cédric Berger cedric.berge...@gmail.com:
I can't download through a proxy requiring authentication.

I had to select force http, and put user/password for proxy in JVM
command line. This way I can get the list of available updates.
But when trying to download, it stays stuck (looks like it waits for
user/password, but no prompt).

Oh in fact it is ok. Through a second proxy (with authentication too)
it worked. Looks like the first proxy (a bit more restrictive) blocked
the downloading url. (I could not check why since the URL is not
shown)

   What is the download URL ?
   Because I still have problems with the proxy I use. I can download
   updates metadata, but when trying to install, it hangs.
   I suspect the proxy blocks the download URL (but 
   nothttp://dl-ssl.google.com/android/repository/repository.xml)... how
   can I check what this download url is  (so I could ask for correction
   in the proxy rules) ?

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


[android-developers] authentication over proxy support

2010-01-24 Thread Mrigesh
i am using android 1.6 , and need to connect to my wireless network of
institute which implements authentication over proxy  i do not
want to root my phone ... any solution please

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


Re: [android-developers] Re: Uploading a File with HttpClient and HttpPost

2010-01-24 Thread Hubert Behaghel
Have you tried without the header Expect: 100-Continue ?
HttpProtocolParams.setUseExpectContinue(client.getParams(), false);

--
Hubert

On Wed, Dec 30, 2009 at 11:50 AM, Radek Skokan
radek.skokan.c...@gmail.com wrote:
 As you can see from the sniffed packets, the problem is not in
 establishing network connection, but on a higher level: HTTP multipart
 file upload using Apache HttpClient from Android SDK  Apache Commons
 File Upload.

 Radek

 On 12/24/2009 11:11 PM, jotobjects wrote:
 Apparently your HTC is able to connect over WIFI to your router and
 find a local network laptop running the servlet.

 Have you tried having the emulator running on the laptop connect to
 localhost using port 10.0.2.2?  That could at least establish that the
 code works (or not) in that situation.  See this link:

 http://developer.android.com/intl/zh-CN/resources/faq/commontasks.html#localhostalias

 On Dec 23, 10:38 pm, Radek Skokanradek.skokan.c...@gmail.com  wrote:

 I tried it on both the emulator and a physical device (HTC Hero). Same
 behavior.
 192.168.1.100 is my laptop running Tomcat. There is a servlet with
 Apache Commons File upload waiting for that multipart file. Works
 correctly with uploads from a browser (PC  Android).

 Thanks,
 R.

 On 12/23/2009 10:56 PM, jotobjects wrote:


 Are you running this on the emulator?


 Is 192.168.1.100 a different computer on the same router?


 On Dec 22, 4:51 am, Radek Skokanradek.skokan.c...@gmail.com    wrote:


 Hi,


 I'm trying to upload a file from Android to Tomcat server using
 HttpClient and HttpPost. The android-side code is:


                           HttpClient client = new DefaultHttpClient();
                           
 client.getParams().setParameter(http.socket.timeout, new Integer
 (9)); // 90 second
                           HttpPost httpPost = new 
 HttpPost(http://192.168.1.100:8080/
 mediator/upload);
                           FileEntity entity = new FileEntity(new 
 File(filePath), binary/
 octet-stream);
                           httpPost.setEntity(entity);
                           HttpResponse response = 
 client.execute(httpPost);
                           Log.i(TAG, Upload finished. Status:  + 
 response.getStatusLine());
                           client.getConnectionManager().shutdown();


 The result always is HTTP/1.1 400 Bad Request.


 I captured the data sent over the network and it looks like:


 POST /mediator/upload HTTP/1.1
 Content-Length: 8287
 Content-Type: binary/octet-stream
 Host: 192.168.1.100:8080
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)
 Expect: 100-Continue


     HTTP/1.1 100 Continue


     HTTP/1.1 400 Bad Request
     Server: Apache-Coyote/1.1
     Content-Type: text/html;charset=UTF-8
     Content-Length: 971
     Date: Tue, 22 Dec 2009 12:14:47 GMT
     Connection: close


 I created a simple HTML form for POSTing a file. This works fine from
 browser and the data is different:
 1) it doesn't use HTTP 100 continue
 2) Content-Type: multipart/form-data; boundary=
 WebKitFormBoundaryDlIVGYpQG46Q46So


 In my client I tried to change the content type to other values than
 binary/octet-stream, but when I sniff the traffic, the binary/octet-
 stream is still there.


 I do this on HTC Here/SDK 1.5.


 Thanks,
 Radek


 On Nov 15, 11:46 am, rezarrraw...@gmail.com    wrote:


 I solved the problem. I post my code here for others to have a working
 sample:
 on the server side I made a simple servlet:
 --
 private void receiveFile(HttpServletRequest req, HttpServletResponse
 resp) throws Exception {
                   Enumeration emns = req.getHeaderNames();
                   InputStream is = req.getInputStream();
                   OutputStream os = new 
 FileOutputStream(req.getHeader(FILENAME_STR));
                   byte[] buffer = new byte[4096];
                   int bytesRead;
                   while ((bytesRead = is.read(buffer)) != -1) {
                     os.write(buffer, 0, bytesRead);
                   }
                   is.close();
                   os.close();
           }
 protected void doPost(HttpServletRequest request,HttpServletResponse
 response) throws ServletException, IOException {
                   try {
                           receiveFile(request,response);
                   } catch (Exception e) {
                           
 System.err.println(ERROR-+e.getMessage());
                           e.printStackTrace();
                   }
           }
 
 At the android side (SDK v.2.0 ):
 private HttpPost post;
 public void doUpload(String filepath,String filename) {
                

[android-developers] Guide Me Right Way

2010-01-24 Thread sanj
hi,i m very new on mobile application development. i want to learn
Android. but i dont know where to start actually. i tried defferent
web including developer.android and i deffernt books as well. But
problem is i dnt know java at all. And all most everywere i found they
write some code and then traslate it in android code to explane. but
person like me who have no idea about any of it is very tough. So that
is best proctice- first learn java then Android or learn android with
part of java (onbly required to understand android). sorry for bad
english.

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


[android-developers] Re: Web service client

2010-01-24 Thread Hitech
It seems to be very buggy as i search couple of android forum, but no
one has right thing which is working.

I am trying from last 2 days , but i always get the result for
START_TAG  error.

Android sdk need to incorporate JAx-WS apis inbuilt as it is in
Jdk1.6 , to have smooth development for ws clients . This will add
user base along with developer base.

Regards
Hitesh Panchal.


On Jan 9, 5:21 am, Michael Rueger mike.rue...@gmail.com wrote:
 On 1/9/2010 10:32 AM, ls02 wrote:

  How do I implement SOAPWebserviceclient onAndroid? Can someone
  point me to any examples?

 http://code.google.com/p/ksoap2-android/

 There were a few discussions about using it on this list, just search
 the archives.

 Michael

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


[android-developers] Re: Announcement: cocos2d for Android updated

2010-01-24 Thread GrouchoDuke
On Jan 15, 9:35 pm, Philip philip.dese...@gmail.com wrote:
 I've just uploaded the latest version of cocos2d for android. It's
 available for you to grab it at:

 http://code.google.com/p/cocos2d-android/
 ...
 Please check it out and let me know what you think. If you find a
 problem and even better come up with a fix, just send me an email or
 use the google code forum to post your comments.

I'd love to help test Cocos2d for Android, but I'm hitting some road
blocks.  Can I get a few pointers on how to get the tests running on
my AVDs?  I have Eclipse set up with the SDK  can run my own programs
from there.  I downloaded the latest build of Cocos2d-android, created
a local.properties file  ran 'ant install' like the README says.

I tried to import Cocos into Eclipse as an existing project (File 
New  Android Project  Create project from existing source), but I
get an Invalid Project Description / ...overlaps another project
'cocos2d' error.

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


[android-developers] Any problems developing on XP-64?

2010-01-24 Thread DonFrench
I am attempting to use XP-64 with Eclipse to develop my first Android
app and I want to test it on my Nexus One.  I successfully installed
the USB driver and the device manager shows Android Phone  Android
Composite ADB Interface, so everything looks OK.  The phone is
connected via USB to the PC and USB Debugging is turned on, but when I
run adb devices, the phone does not appear in the list of attached
devices and Eclipse doesn't present it as a target for deployment.
Could this be an XP-64 problem?  I am able to deploy to the emulator.

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


[android-developers] Re: Launching the correct activity on resume

2010-01-24 Thread jotobjects
Hm.  The difference between task state and activity stack is not easy
to grasp (for me).   You always start a new activity-stack when you
return to Home as I understand it.  At any point you can switch to
another task by long-pressing Home to get the recent task list.

If Activity1 and Activity2 are part of the same task and Activity2 is
foreground when pressing the Home key, then I thought that choosing
that app on the Home screen would return you to Activity2. This is
what the OP expected and what I expect too.

See for instance #3 (Switch to first task...) at this link -
http://developer.android.com/intl/fr/guide/practices/ui_guidelines/activity_task_design.html#switching_between_tasks

What is the launchmode in the manifest for Activty1 and Activity2?

On Jan 24, 11:43 am, Dianne Hackborn hack...@android.com wrote:
 Set android:launchMode=singleTop on your first activity.  You will then
 get an onNewIntent() when you are re-launched from home.  There you can
 startActivity() for your second activity; if you want back from the second
 activity to skip the first, you can call finish() in the first after
 starting the second.

 You may want to do the same thing in onCreate() (when savedState is null),
 to take care of the case where they launch your activity after finishing it
 via back.



 On Sat, Jan 23, 2010 at 3:08 PM, Josh Hoffman keshis...@gmail.com wrote:
  Thanks for your help Vo Trung Liem, I think I may not have been clear
  enough about what I'm trying to do. I don't have any trouble getting
  back to Activity1 (my launcher) from Activity2 (results). What I want
  is this:

  Launch app into Activity1 from the home screen.
  Go into Activity2 from Activity1 after choosing options.
  Be able to hit the 'Home' key and use other apps while my app does
  work.
  Launch app into Activity2 from the home screen.

  What I currently have is an app that will only ever launch into
  Activity1 from the home screen no matter what I do. It doesn't seem to
  care whether Activity2 was on top of the stack when I hit home, which
  tells me I probably don't understand the Android Lifecycle as well as
  I should. I should probably also mention that I am using
  android:launchMode=singleTask as I am under the impression that this
  makes sure I only ever have one instance of my application floating
  around.

  Thanks again for reading and for any help you may be able to offer!

  On Jan 22, 6:21 pm, Vo Trung Liem lie...@gmail.com wrote:
   Hi,

   No need set up your Manifest to get this functionality.

   You just use function onActivityResult() to code for your functionality.

   Example:

   Activity1 call Activity2 then Activity1 will resume after Activity2
  finish.

   Activity1 will call Activity2 by function: startActivityForResult(intent,
   requestCode);

   In Activity2, we need implement function onActivityResult() what you
  want.
   (Example: setResult(0);
                       this.finish();)

   Hope you success!

   On Sat, Jan 23, 2010 at 7:09 AM, Josh Hoffman keshis...@gmail.com
  wrote:
I'm currently working with a two-activity application. The first
activity allows the user to choose options for their upload, and the
second activity displays a ListView of their results once processed.

I have code in place that performs the uploads/downloads in the
background, regardless of whether the application is currently in
focus or not (thanks to Matthias Kaeppler's Droid-Fu).

I would like to have my application Resume into my second (results)
activity when a user clicks on the icon from the top-level launcher,
regardless of how long they have been away from the app. I thought
that the 'alwaysRetainTaskState' flag in the Manifest would do it, but
I've not had success with that. Can anyone tell me how I need to set
up my Manifest to get this functionality?

Thank you for your help! :)

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

For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

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

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

 Note: please don't send 

[android-developers] Re: Kernel Messages

2010-01-24 Thread perumal316
Hi,

There is this android.util.Log class in Android but it only used for
logging but not displaying. Not sure whether there is any other way.

Thanks In Advance,
Perumal

On Jan 23, 8:09 pm, perumal316 perumal...@gmail.com wrote:
 Meaning I have to use Android NDK?

 On Jan 14, 1:19 pm, Frank Weiss fewe...@gmail.com wrote:

  I suppose JNI would be the way to go.

  On Wed, Jan 13, 2010 at 12:35 AM,perumal316perumal...@gmail.com wrote:
   Hi,

   Any idea how do I show the kernel messages to user? One way is to
   install terminal emulator and then 'dmesg'. But I want to write an app
   which shows the kernel messages to the user. Is it possible?

   Thanks In Advance,
   Perumal

   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Simple question... how do I open the browser?

2010-01-24 Thread Breezy
When a user clicks the about button in my app's menu I want it to
open the browser and go to a specific webpage...  Is there like a one-
liner out there somewhere to do this?  Seems simple but Google is not
being helpful right now - or I'm just searching the wrong thing.


Thanks!

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


[android-developers] Re: Loop audio from mic to earpiece?

2010-01-24 Thread ani
Not 100% sure about the earpiece, but you specify a stream when you
create the AudioTrack and I think a stream encpsulates audio routing
and volume amongst possibly other things.

If you set the stream to STREAM_VOICE_CALL it might come through the
earpiece as this is where a call would be routed, although I guess
that depends on headsets and stuff.
Can anyone clarify if I am right?

As for earpiece routing we can route audio to earpiece using
setrouting call in the case of cupcake.In case of ECLAIR you can use
various custom api's provided by android to route it to earpiece
(google it).You need to set the route explicitly to get the audio out
of earpiece or any other place.STREAM_VOICE_CALL will work i think but
not 100% sure.Please check in case you are not getting let me know.

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


[android-developers] Re: Loop audio from mic to earpiece?

2010-01-24 Thread ani
Not 100% sure about the earpiece, but you specify a stream when you
create the AudioTrack and I think a stream encpsulates audio routing
and volume amongst possibly other things.

If you set the stream to STREAM_VOICE_CALL it might come through the
earpiece as this is where a call would be routed, although I guess
that depends on headsets and stuff.
Can anyone clarify if I am right?

As for earpiece routing we can route audio to earpiece using
setrouting call in the case of cupcake.In case of ECLAIR you can use
various custom api's provided by android to route it to earpiece
(google it).You need to set the route explicitly to get the audio out
of earpiece or any other place.STREAM_VOICE_CALL will work i think but
not 100% sure.Please check in case you are not getting let me know.

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


[android-developers] Re: AudioRecord on Samsung Moment

2010-01-24 Thread niko20
You're supposed to query the device with a GetMinBufferSize call
first, and then check that for any error codes. I'm guessing if you do
that you will get correct error codes. Don't rely on the AudioTrack
creation to give you the error codes for testing the device's
capabilities. Use AudioTrack.GetMinBufferSize first before you try to
create the AudioTrack.

-niko

On Jan 20, 9:51 pm, dan raaka danra...@gmail.com wrote:
 What build does this device have?

 There is new update for this device. Did you try on this build 
 ?http://community.sprint.com/baw/thread/26322?featured=true

 -Dan

 On Mon, Jan 18, 2010 at 12:02 PM, Rico rico@gmail.com wrote:
  When switching between the emulator (which supports 8KHz) and a real
  phone like the G1 (which supports 16KHz), I used the following code to
  set up a valid AudioRecord object:

  AudioRecord ar;

  // Try to construct at 16KHz
  ar = new AudioRecord(
   MediaRecorder.AudioSource.MIC,
   16000,
   AudioFormat.CHANNEL_CONFIGURATION_MONO,
   AudioFormat.ENCODING_PCM_16BIT,
   AUDIO_BUFFER_SIZE);

  if (ar.getState() != AudioRecord.STATE_INITIALIZED) {
   // Unable to set up at 16KHz, try at 8KHz
   ar = new AudioRecord(
     MediaRecorder.AudioSource.MIC,
     8000,
     AudioFormat.CHANNEL_CONFIGURATION_MONO,
     AudioFormat.ENCODING_PCM_16BIT,
     AUDIO_BUFFER_SIZE);
  }

  This seems to work just fine, and a 16KHz AudioRecord object is
  instantiated on the G1, and a 8KHz object is instantiated on the
  emulator.

  However, on the Samsung Moment, which only supports 8KHz,
  AudioRecord.getState() returns STATE_INITIALIZED when trying to
  construct with 16KHz.  This ends up causing recording to fail since
  it's trying to record at 16KHz, even though the phone doesn't support
  it.  Also, I don't see any exceptions thrown when I try to wrap the
  construction in a try-catch.

  Does anyone know of a better way to detect 16KHz vs. 8KHz capabilities
  on the device?

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

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


[android-developers] Re: Simple question... how do I open the browser?

2010-01-24 Thread schwiz
You need to use an intent

startActivity(new Intent(Intent.ACTION_VIEW, newUri ));

On Jan 24, 8:59 pm, Breezy mbre...@gmail.com wrote:
 When a user clicks the about button in my app's menu I want it to
 open the browser and go to a specific webpage...  Is there like a one-
 liner out there somewhere to do this?  Seems simple but Google is not
 being helpful right now - or I'm just searching the wrong thing.

 Thanks!

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


[android-developers] Re: Simple question... how do I open the browser?

2010-01-24 Thread Breezy
Got it figured out...  The word I was missing in the search was
intent.  After seeing that word around more and more I used that and
came across this...

http://groups.google.com/group/android-developers/browse_thread/thread/4ab2dd070eb4e407/f7077d9b791cc200

Which said to use this...
Intent i = new Intent(Intent.VIEW_ACTION, Uri.parse(http://
www.cnn.com));
startActivity(i);

For future refence in case someone is looking for it.

On Jan 24, 8:59 pm, Breezy mbre...@gmail.com wrote:
 When a user clicks the about button in my app's menu I want it to
 open the browser and go to a specific webpage...  Is there like a one-
 liner out there somewhere to do this?  Seems simple but Google is not
 being helpful right now - or I'm just searching the wrong thing.

 Thanks!

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


[android-developers] Re: Synchronizing AudioTrack and AudioRecord

2010-01-24 Thread ani
I think it would be extremely difficult to do this in current
architecture of android(you need to have a sound server running in
android to do this kind of task).Basically you need to change your
alsa driver to do that.By just calling audiotrack api's it would be
difficult to get both the device(playback and recording) to start
simultaneously.

Below is a reply from Paul davis where the question was multiple sound
cards but in your case it would be two substreams(alsa terminology)
pcm0c and pcm0p.
http://www.mail-archive.com/alsa-de...@lists.sourceforge.net/msg00040.html

Someone from windriver team can lend a hand and probably add some api
to alsa files to give this feature to applications for doing this kind
of task.

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


[android-developers] Re: Synchronizing AudioTrack and AudioRecord

2010-01-24 Thread ani
I think it would be extremely difficult to do this in current
architecture of android(you need to have a sound server running in
android to do this kind of task).Basically you need to change your
alsa driver to do that.By just calling audiotrack api's it would be
difficult to get both the device(playback and recording) to start
simultaneously.

Below is a reply from Paul davis where the question was multiple sound
cards but in your case it would be two substreams(alsa terminology)
pcm0c and pcm0p.
http://www.mail-archive.com/alsa-de...@lists.sourceforge.net/msg00040.html

Someone from windriver team can lend a hand and probably add some api
to alsa files to give this feature to applications for doing this kind
of task.

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


[android-developers] Re: AudioTrack - Clicking Proplem

2010-01-24 Thread ani
You can dump the buffers in audioflinger and play it in some raw pcm
player and find out if you are not giving the PCM data properly or
there is some problem with playing back.

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


[android-developers] Re: How to perform socket communication

2010-01-24 Thread g...@devicedriven
i think your problem is the ip address..127.0.0.1 is the device/
emulator itself not the machine on which you are programming...if you
need to call localhost u should try this address--10.0.2.2

read this too--http://developer.android.com/guide/appendix/faq/

Regards
Gino

On Jan 22, 12:44 pm, saikiran n saikiran@gmail.com wrote:
 Hi
 I have done socket communication in a single application it is working fine
 But my requirement is i have opened two emulators and i am able to send sms
 between those two.
 Now i want to run server in one emulator(myavd-5554)
 and client on another emulator(myavd1-5556)
 I have used the following code
 on Serverside
 public class TCPServerActivity extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         Thread sThread = new Thread(new TCPServer());
         sThread.start();
         try {
             Thread.sleep(9);
         } catch (InterruptedException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         }
        Log.d(,Server activity closed);
     }

 }

 public class TCPServer implements Runnable{

     public static final String SERVERIP = 127.0.0.1;
     public static final int SERVERPORT = 3000;

     public void run() {
          try {
               Log.d(TCP, S: Connecting...);

               ServerSocket serverSocket = new ServerSocket(SERVERPORT);
               while (true) {
                  Socket client = serverSocket.accept();
                  Log.d(TCP, S: Receiving...);
                  try {
                       BufferedReader in = new BufferedReader(new
 InputStreamReader(client.getInputStream()));
                       String str = in.readLine();
                       Log.d(TCP, S: Received: ' + str + ');

                     } catch(Exception e) {
                         Log.e(TCP, S: Error, e);
                     } finally {
                          client.close();
                          Log.d(TCP, S: Done.);
                     }

               }

          } catch (Exception e) {
            Log.e(TCP, S: Error, e);
          }
     }

 }

 on client side
 public class TCPClientActivity extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         Thread cThread = new Thread(new TCPClient());
         cThread.start();

         Log.d(,Client activity closed);

     }

 }

 public class TCPClient implements Runnable {

      public static final String SERVERIP = 127.0.0.1;
         public static final int SERVERPORT = 3000;

     public void run() {
          try {

            InetAddress serverAddr = InetAddress.getByName(SERVERIP);

            Log.d(TCP, C: Connecting...);
            Socket socket = new Socket(serverAddr, SERVERPORT);
            String message = Hello from Client;
                try {
                 Log.d(TCP, C: Sending: ' + message + ');
                 PrintWriter out = new PrintWriter( new BufferedWriter( new
 OutputStreamWriter(socket.getOutputStream())),true);

                 out.println(message);
                 Log.d(TCP, C: Sent.);
                   Log.d(TCP, C: Done.);

              } catch(Exception e) {
                  Log.e(TCP, S: Error, e);
                 } finally {
                   socket.close();
                 }
          } catch (Exception e) {
               Log.e(TCP, C: Error, e);
          }
     }

 }

 So i run Server application on 5554 first and then client application on
 5556
 But i didn't receved the message
 Please help me
 Thanks in advance

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


[android-developers] Re: Get Attributes of a media file.

2010-01-24 Thread Manjunatha M
Hi,

I have downloaded a media file. (say mp3 file). I need to get the attributes
of the file, like ARTIST, TITLE etc.

Can anyone help me on this???

-- 
Regards,
Manjunatha

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

Re: [android-developers] Guide Me Right Way

2010-01-24 Thread Kevin Duffey
You are definitely going to want to learn Java first. Android should come
long after it. You can try, but will find yourself missing quite a bit and
getting stuck a lot if you try to learn Java and Android at the same time.
Android is one of those things you do after you understand Java. To
understand Java will take months of learning, practicing, etc. I'd say most
developers take quite a bit longer to really understand the internals of how
the JVM works, the language, and a good handle on a lot of the libraries you
will need.



On Sun, Jan 24, 2010 at 1:16 PM, sanj sangeev...@gmail.com wrote:

 hi,i m very new on mobile application development. i want to learn
 Android. but i dont know where to start actually. i tried defferent
 web including developer.android and i deffernt books as well. But
 problem is i dnt know java at all. And all most everywere i found they
 write some code and then traslate it in android code to explane. but
 person like me who have no idea about any of it is very tough. So that
 is best proctice- first learn java then Android or learn android with
 part of java (onbly required to understand android). sorry for bad
 english.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Web service client

2010-01-24 Thread Desu Vinod Kumar
HI

This will work

I tried and got result succeded.

http://www.anddev.org/webservice_soap_with_complex_data_type_and_ksoap_client-t2195.html

On Mon, Jan 25, 2010 at 2:32 AM, Hitech hitesh.he...@gmail.com wrote:

 It seems to be very buggy as i search couple of android forum, but no
 one has right thing which is working.

 I am trying from last 2 days , but i always get the result for
 START_TAG  error.

 Android sdk need to incorporate JAx-WS apis inbuilt as it is in
 Jdk1.6 , to have smooth development for ws clients . This will add
 user base along with developer base.

 Regards
 Hitesh Panchal.


 On Jan 9, 5:21 am, Michael Rueger mike.rue...@gmail.com wrote:
  On 1/9/2010 10:32 AM, ls02 wrote:
 
   How do I implement SOAPWebserviceclient onAndroid? Can someone
   point me to any examples?
 
  http://code.google.com/p/ksoap2-android/
 
  There were a few discussions about using it on this list, just search
  the archives.
 
  Michael

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




-- 
Regards
---
D Vinod Kumar
Software Engineer - Android Platform
09916009493

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

[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread SizzlingSkizzorsProgrammer
Honestly, I hardly think average users actually look at the
permissions...

On average, people don't care too much.  If they want the app, they
will install it anyways.  The best way is to build a quality app and
build dev reliability/a dev brand, and that way people will trust you.

On Jan 24, 2:11 pm, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I think you may be over reacting. Users are most likely not going to
 care if you write to the SD card. I would bet that 99 out of 100 users
 don't even read or care about what permissions you're asking for, the
 100th person is probably searching the skies for black helicopters
 anyway, so it's highly unlikely you'll be able to please that person
 regardless of what you do.

 You have a choice, use the SD card or not. If you do, you'll have to
 have permission. I don't see that as a problem.

 -John Coryat

 Radar Now!

 What Zip Code?

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


[android-developers] Re: Guide Me Right Way

2010-01-24 Thread Anthoni
Hi Sanj,

I was also in this same predicament a few days ago.
Desperately wanted to learn Android programming, but knew smatterings
of Java code.

What I did was the following :-
--
Purchase Sams Teach Yourself Java In 21 Days
Purchase Java Generics and Collections (Note: Android heavily uses
Generics so you need a firm grasp on them)
Purchase Hello Android

There are also lots of bookmarks and tutorial sites ready to read and
digest once you know your way around the
basics of Java. Last week I got the Sams book, on Saturday I deployed
my first Android application to the
emulator. I still have lots more to learn but I am looking forward to
the journey.

Regards
anthoni

On Jan 25, 3:59 am, Kevin Duffey andjar...@gmail.com wrote:
 You are definitely going to want to learn Java first. Android should come
 long after it. You can try, but will find yourself missing quite a bit and
 getting stuck a lot if you try to learn Java and Android at the same time.
 Android is one of those things you do after you understand Java. To
 understand Java will take months of learning, practicing, etc. I'd say most
 developers take quite a bit longer to really understand the internals of how
 the JVM works, the language, and a good handle on a lot of the libraries you
 will need.

 On Sun, Jan 24, 2010 at 1:16 PM, sanj sangeev...@gmail.com wrote:
  hi,i m very new on mobile application development. i want to learn
  Android. but i dont know where to start actually. i tried defferent
  web including developer.android and i deffernt books as well. But
  problem is i dnt know java at all. And all most everywere i found they
  write some code and then traslate it in android code to explane. but
  person like me who have no idea about any of it is very tough. So that
  is best proctice- first learn java then Android or learn android with
  part of java (onbly required to understand android). sorry for bad
  english.

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: Getting the Manifest Version Code

2010-01-24 Thread dapaintballer331
Yea I caught that on my own. Here I went even further to convert the
version to string, and prevent a null pointer by using an empty string
that exists.

String versionNo = ;
PackageInfo pInfo = null;
try{
pInfo = getPackageManager().getPackageInfo
(com.yourpackagehere,PackageManager.GET_META_DATA);
} catch (NameNotFoundException e) {
pInfo = null;
}
if(pInfo != null)
versionNo = +pInfo.versionCode;

You also need some imports

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;


On Jan 24, 7:24 am, Chris.H mrchi...@gmail.com wrote:
 Hi..

 Just a general tip:
 It's better to put the use/printout within the try statement (or exit
 the function etc if it catches the error), as pInfo (in this case)
 would be null if the info isn't found, and then you get a
 NullException instead...

 so, either:

 try {
         pInfo = getPackageManager().getPackageInfo(com.beanie.test,
 PackageManager.GET_META_DATA);

         System.out.println(pInfo.versionCode);} catch (NameNotFoundException 
 e) {

         e.printStackTrace();

 }

 or:

 try {
         pInfo = getPackageManager().getPackageInfo(com.beanie.test,
 PackageManager.GET_META_DATA);} catch (NameNotFoundException e) {

         e.printStackTrace();
         return; /* return false;  or  return null; */

 }

 System.out.println(pInfo.versionCode);

 Just something to remember, so you don't introduce one extra
 (unnecessary) possible exception/bug, that you need to catch, while
 catching another exception...

 Regards
 Chris

 On Jan 24, 5:11 am, Kumar Bibek coomar@gmail.com wrote:



  PackageInfo pInfo = null;

  try {
          pInfo = getPackageManager().getPackageInfo(com.beanie.test,
  PackageManager.GET_META_DATA);

          } catch (NameNotFoundException e) {
                  e.printStackTrace();}

  System.out.println(pInfo.versionCode);

  Kumar Bibek

  On Jan 24, 8:48 am, dapaintballer331 dapaintballer...@gmail.com
  wrote:

   How do you retrieve the current version code of an app's manifest?
   I don't need to access another application, I'm talking about My app
   accessing its own version code.

   Thanks
   -Brandon

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


[android-developers] Re: Extract one example from a project with many

2010-01-24 Thread Anthoni
Hi John / Droidy,

Can you please tell me where these API demo APPs are please ?
I am just starting out learning Android and want to glean as much
information as I can.

Tried posting this question before to both of you, but it seemed to
have got sucked into the void. Not sure why.

Regards
Anthoni

On Jan 23, 12:09 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 I'm guessing you're talking about the api demo app. It sure is
 complicated, however, taking the time to understand the particular
 parts and how it's organized will pay off in the long run. It may be
 worth your effort to look at a simpler example, one that covers a
 single function instead of hundreds until you've built up your
 knowledge base.

 -John Coryat

 Radar Now!

 What Zip Code?

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


[android-developers] ViewFlipper switching views on screen orientation change

2010-01-24 Thread Marc
I have a 3 nested ViewFlippers which seem to be working ok except that
when I change the screen orientation the view flip back to the first
one of my views, giving the user the impression it went back a few
steps.

I am a bit stumped as to what to do and was hoping someone had some
experience with this. Thanks.

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


[android-developers] emulator not getting launched with 2.1 platform

2010-01-24 Thread prachi
Hi all

I have updated my android sdk to 2.1 version and was trying to build
one application on that target.My application was bulid properly bt i
am unable to launch tha emulator with the target 2.1.
Its showing the message as:-
System image file too large for device's hardware configuration 74MB
72MB.

Please help me 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


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
Thank you for your feedback, I rather not based my business on guess
or bet but on fact, we got 25 emails from users about this issue on
launch day 1, i think we should listen to them. I believe we have a
quality app and soon people will know about those permission, however
in the meantine, we are going to see if we can convert to MinSdk3 and
support more customers and erase this local trouble until it is a
common and accepted fact among the users. Btw, 1.6 is not really
supported by phone makers, most of them don't provide the update and
wait to go directly to 2.0 or even 2.1 so it might not be a so
bad...move..after all.


On Jan 25, 1:02 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
wrote:
 Honestly, I hardly think average users actually look at the
 permissions...

 On average, people don't care too much.  If they want the app, they
 will install it anyways.  The best way is to build a quality app and
 build dev reliability/a dev brand, and that way people will trust you.

 On Jan 24, 2:11 pm, Maps.Huge.Info (Maps API Guru)



 cor...@gmail.com wrote:
  I think you may be over reacting. Users are most likely not going to
  care if you write to the SD card. I would bet that 99 out of 100 users
  don't even read or care about what permissions you're asking for, the
  100th person is probably searching the skies for black helicopters
  anyway, so it's highly unlikely you'll be able to please that person
  regardless of what you do.

  You have a choice, use the SD card or not. If you do, you'll have to
  have permission. I don't see that as a problem.

  -John Coryat

  Radar Now!

  What Zip Code?

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


[android-developers] Re: How to force US Account in Android phone

2010-01-24 Thread Guillaume
Hi All,

Can someone in the US help me out?
Can you go to the Android Market, and search for 'nanonavi' to see if
you can see 2 versions?
One is paid and one is free.

Thank you very much for your time.

Best regards,
Guillaume

On Jan 22, 12:06 pm, Guillaume tcg...@gmail.com wrote:
 Hi All,

 This question may sound stupid but let me give you bit of my
 background.

 I am a developer in a country which is neither a buying-app supported
 nor a selling-app supported country, and have submitted my application
 to Android market as a paid application.

 Now, I would like to see if I can see my app on the the Android
 market, but can't find a way to set my Android phone to as US account.

 I have tried setting the location of my account to US, creating a new
 Google Account and set my location to US, but both methods don't allow
 me to browse the paid applications.

 Is there a way to get around this? or should I physically be present
 in one of those country to really test the presence of my paid apps in
 the Android market?

 Does the Android market determine the location by the IP address of
 the Android Phone?

 Thanks for your time reading,

 Best regards,
 Guillaume

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


Re: [android-developers] ViewFlipper switching views on screen orientation change

2010-01-24 Thread Atif Gulzar
whenever the orientation is changed the onCreate fuction is called again
(unless you handled it). Means your activity is refreshed.

before orientation change happened  onRetainNonConfigurationInstance()  is
called. You can save you activity state in this function.

And then in onCreate you can get it by calling

Object data = getLastNonConfigurationInstance();


Hope it helps.

--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Mon, Jan 25, 2010 at 9:23 AM, Marc gobl...@gmail.com wrote:

 I have a 3 nested ViewFlippers which seem to be working ok except that
 when I change the screen orientation the view flip back to the first
 one of my views, giving the user the impression it went back a few
 steps.

 I am a bit stumped as to what to do and was hoping someone had some
 experience with this. 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] ViewFlipper switching views on screen orientation change

2010-01-24 Thread Atif Gulzar
whenever the orientation is changed the current activity is destroyed and
new one is created and onCreate fuction is called again (unless you handled
it). Means your activity is refreshed.


Before orientation change happened  onRetainNonConfigurationInstan

 ce()  is called. You can save you activity state in this function.

 And then in onCreate you can get it by calling

 Object data = getLastNonConfigurationInstance();


 Hope it helps.




--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Mon, Jan 25, 2010 at 10:29 AM, Atif Gulzar atif.gul...@gmail.com wrote:

 whenever the orientation is changed the onCreate fuction is called again
 (unless you handled it). Means your activity is refreshed.

 before orientation change happened  onRetainNonConfigurationInstance()  is
 called. You can save you activity state in this function.

 And then in onCreate you can get it by calling

 Object data = getLastNonConfigurationInstance();


 Hope it helps.

 --
 Best Regards,
 Atif Gulzar

 I  Unicode, ɹɐzlnƃ ɟıʇɐ




 On Mon, Jan 25, 2010 at 9:23 AM, Marc gobl...@gmail.com wrote:

 I have a 3 nested ViewFlippers which seem to be working ok except that
 when I change the screen orientation the view flip back to the first
 one of my views, giving the user the impression it went back a few
 steps.

 I am a bit stumped as to what to do and was hoping someone had some
 experience with this. 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
Well, sounds like we do not have that option to switch back to 1.5
after all, we do call OpenGL 1.x API within the native code and it
seems not supported in 1.5. We shall explain and handle case by case
our potential users's concerns and educated them about our
application. Like previously said, state into the app description the
reason why the permission is needed is a good start :)

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


Re: [android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Kevin Duffey
Carlo,

You must have a very protective unique group of people using your app. I've
asked dozens of droid users and not one of them pay attention to the
permissions. Like others said, they want they app, they install it and so
far everyone I've talked to doesn't look at the permissions thing at all.
They just tap ok ok ok until it's installed.

Since they emailed you, you may want to return an email to all them, perhaps
the same email in bulk to them, and explain to them how this has changed and
that your app will only store info on the SD card.

I also am finding it hard to imagine anyone buying an android device with 8,
16 soon 32GB of SD card space, worrying about stuff being stored. I do
understand what you mean..the word modify might suggest that it may find
other content and do something to it, but like I said you must have a pretty
unique set of people using your app.

On Sun, Jan 24, 2010 at 9:07 PM, Carlo ca...@hyperdevbox.com wrote:

 Thank you for your feedback, I rather not based my business on guess
 or bet but on fact, we got 25 emails from users about this issue on
 launch day 1, i think we should listen to them. I believe we have a
 quality app and soon people will know about those permission, however
 in the meantine, we are going to see if we can convert to MinSdk3 and
 support more customers and erase this local trouble until it is a
 common and accepted fact among the users. Btw, 1.6 is not really
 supported by phone makers, most of them don't provide the update and
 wait to go directly to 2.0 or even 2.1 so it might not be a so
 bad...move..after all.


 On Jan 25, 1:02 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
 wrote:
  Honestly, I hardly think average users actually look at the
  permissions...
 
  On average, people don't care too much.  If they want the app, they
  will install it anyways.  The best way is to build a quality app and
  build dev reliability/a dev brand, and that way people will trust you.
 
  On Jan 24, 2:11 pm, Maps.Huge.Info (Maps API Guru)
 
 
 
  cor...@gmail.com wrote:
   I think you may be over reacting. Users are most likely not going to
   care if you write to the SD card. I would bet that 99 out of 100 users
   don't even read or care about what permissions you're asking for, the
   100th person is probably searching the skies for black helicopters
   anyway, so it's highly unlikely you'll be able to please that person
   regardless of what you do.
 
   You have a choice, use the SD card or not. If you do, you'll have to
   have permission. I don't see that as a problem.
 
   -John Coryat
 
   Radar Now!
 
   What Zip Code?

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


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

Re: [android-developers] Re: How to force US Account in Android phone

2010-01-24 Thread Kevin Duffey
I see 2. One is free, one is $9.80.

On Sun, Jan 24, 2010 at 9:24 PM, Guillaume tcg...@gmail.com wrote:

 Hi All,

 Can someone in the US help me out?
 Can you go to the Android Market, and search for 'nanonavi' to see if
 you can see 2 versions?
 One is paid and one is free.

 Thank you very much for your time.

 Best regards,
 Guillaume

 On Jan 22, 12:06 pm, Guillaume tcg...@gmail.com wrote:
  Hi All,
 
  This question may sound stupid but let me give you bit of my
  background.
 
  I am a developer in a country which is neither a buying-app supported
  nor a selling-app supported country, and have submitted my application
  to Android market as a paid application.
 
  Now, I would like to see if I can see my app on the the Android
  market, but can't find a way to set my Android phone to as US account.
 
  I have tried setting the location of my account to US, creating a new
  Google Account and set my location to US, but both methods don't allow
  me to browse the paid applications.
 
  Is there a way to get around this? or should I physically be present
  in one of those country to really test the presence of my paid apps in
  the Android market?
 
  Does the Android market determine the location by the IP address of
  the Android Phone?
 
  Thanks for your time reading,
 
  Best regards,
  Guillaume

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Carlo
Yes we have already taken that path and to be precise, they are not
really yet our users since they did not install it, they just reported
their concerns and we replied them. Now, future will tell if they will
decide or not to install it.


On Jan 25, 2:44 pm, Kevin Duffey andjar...@gmail.com wrote:
 Carlo,

 You must have a very protective unique group of people using your app. I've
 asked dozens of droid users and not one of them pay attention to the
 permissions. Like others said, they want they app, they install it and so
 far everyone I've talked to doesn't look at the permissions thing at all.
 They just tap ok ok ok until it's installed.

 Since they emailed you, you may want to return an email to all them, perhaps
 the same email in bulk to them, and explain to them how this has changed and
 that your app will only store info on the SD card.

 I also am finding it hard to imagine anyone buying an android device with 8,
 16 soon 32GB of SD card space, worrying about stuff being stored. I do
 understand what you mean..the word modify might suggest that it may find
 other content and do something to it, but like I said you must have a pretty
 unique set of people using your app.



 On Sun, Jan 24, 2010 at 9:07 PM, Carlo ca...@hyperdevbox.com wrote:
  Thank you for your feedback, I rather not based my business on guess
  or bet but on fact, we got 25 emails from users about this issue on
  launch day 1, i think we should listen to them. I believe we have a
  quality app and soon people will know about those permission, however
  in the meantine, we are going to see if we can convert to MinSdk3 and
  support more customers and erase this local trouble until it is a
  common and accepted fact among the users. Btw, 1.6 is not really
  supported by phone makers, most of them don't provide the update and
  wait to go directly to 2.0 or even 2.1 so it might not be a so
  bad...move..after all.

  On Jan 25, 1:02 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
  wrote:
   Honestly, I hardly think average users actually look at the
   permissions...

   On average, people don't care too much.  If they want the app, they
   will install it anyways.  The best way is to build a quality app and
   build dev reliability/a dev brand, and that way people will trust you.

   On Jan 24, 2:11 pm, Maps.Huge.Info (Maps API Guru)

   cor...@gmail.com wrote:
I think you may be over reacting. Users are most likely not going to
care if you write to the SD card. I would bet that 99 out of 100 users
don't even read or care about what permissions you're asking for, the
100th person is probably searching the skies for black helicopters
anyway, so it's highly unlikely you'll be able to please that person
regardless of what you do.

You have a choice, use the SD card or not. If you do, you'll have to
have permission. I don't see that as a problem.

-John Coryat

Radar Now!

What Zip Code?

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

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


Re: [android-developers] ContextMenu on TableLayout: how to get selected item position?

2010-01-24 Thread Atif Gulzar
I had the similar issue and solved it with a work around. In your table row
add a TextView and makes its visibility GONE and set its text as 0,1,2,4...
for respective rows. Add a single listener for each row. When some row is
clicked the listener will give you a clicked view. From this view get the
text view from this text view the index.





--
Best Regards,
Atif Gulzar

I  Unicode, ɹɐzlnƃ ɟıʇɐ



On Sat, Jan 23, 2010 at 5:19 AM, Thierry Legras tleg...@gmail.com wrote:

 Hi,

 ContextMenu seems quite handy as long as we are using an AdapterView as we
 can easily get selected item position in onContextItemSelected from
 AdapterContextMenuInfo.position

 Any idea how we can achieve something similar in a TableLayout?
 In my TableLayout, i have some TableRow and i would like to get the row
 index in the onContextItemSelected callback like i would do with a simple
 ListView.

 I guess i will have to register the contextmenu for each row? but how can
 tie the row index with the menu? i see no way to do it with
 registerForContextMenu.

 Thks,
 Thierry.

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Guide Me Right Way

2010-01-24 Thread Kevin Duffey
The Java book is good.. Oriely has some great books as well for learning
Java.  Perhaps the best resource I've found on Android.. I keep plugging
this so I am thinking I'll get a free year out of it (Mark?? ;).. is Mark
Murphy's online books. For $40, you get 3 online books that are updated
every so often and you get the updates for a year as part of the price. The
best part is Mark has a forum for the book as well as you'll see him
replying here on this forum quite a bit. I won't knock the other books, the
few on android I found were pretty good, but having the knowledge of Mark,
along with some of the android team like Dianne, Romain and a few others
here, has taught me a ton already. Google Mark Murphy online books (always
forget the name!!), you'll find it. CommonsWare I think it is, or the site
he sells it from.


On Sun, Jan 24, 2010 at 8:09 PM, Anthoni anthoni.gard...@gmail.com wrote:

 Hi Sanj,

 I was also in this same predicament a few days ago.
 Desperately wanted to learn Android programming, but knew smatterings
 of Java code.

 What I did was the following :-
 --
 Purchase Sams Teach Yourself Java In 21 Days
 Purchase Java Generics and Collections (Note: Android heavily uses
 Generics so you need a firm grasp on them)
 Purchase Hello Android

 There are also lots of bookmarks and tutorial sites ready to read and
 digest once you know your way around the
 basics of Java. Last week I got the Sams book, on Saturday I deployed
 my first Android application to the
 emulator. I still have lots more to learn but I am looking forward to
 the journey.

 Regards
 anthoni

 On Jan 25, 3:59 am, Kevin Duffey andjar...@gmail.com wrote:
  You are definitely going to want to learn Java first. Android should come
  long after it. You can try, but will find yourself missing quite a bit
 and
  getting stuck a lot if you try to learn Java and Android at the same
 time.
  Android is one of those things you do after you understand Java. To
  understand Java will take months of learning, practicing, etc. I'd say
 most
  developers take quite a bit longer to really understand the internals of
 how
  the JVM works, the language, and a good handle on a lot of the libraries
 you
  will need.
 
  On Sun, Jan 24, 2010 at 1:16 PM, sanj sangeev...@gmail.com wrote:
   hi,i m very new on mobile application development. i want to learn
   Android. but i dont know where to start actually. i tried defferent
   web including developer.android and i deffernt books as well. But
   problem is i dnt know java at all. And all most everywere i found they
   write some code and then traslate it in android code to explane. but
   person like me who have no idea about any of it is very tough. So that
   is best proctice- first learn java then Android or learn android with
   part of java (onbly required to understand android). sorry for bad
   english.
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Dianne Hackborn
It doesn't matter what minSdkVersion you specify.  As of 1.6 (and every
version there-after, including any devices running 2.0, 2.1, and later
versions), you need to have this permission to be able to write to the SD
card.  You can get this permission (and thus have the warning shown to the
user) either one of two ways:

1) by specifying minSdkVersion or targetSdkVersion  4, in which case the
platform treats you as an old application that didn't know it needed to
request the permission and thus is given it automatically.

2) by explicitly requesting the permission, with any SDK version, so you
will be explicitly granted the permission.

Your significant concern over this is... strange...  given that everyone
running 1.6 or later probably sees this permission a lot since ANY
APPLICATION WRITTEN BEFORE 1.6 IS GRANTED IT FOR COMPATIBILITY.  You are no
a unique and special flower in this regard.

Just do the right thing for your app.  If your app writes to the SD card,
then take the permission, and do it.  The permission is just there to show
users what an application will do, and if that is what you do, then it makes
sense for you to have the permission.

On Sun, Jan 24, 2010 at 9:07 PM, Carlo ca...@hyperdevbox.com wrote:

 Thank you for your feedback, I rather not based my business on guess
 or bet but on fact, we got 25 emails from users about this issue on
 launch day 1, i think we should listen to them. I believe we have a
 quality app and soon people will know about those permission, however
 in the meantine, we are going to see if we can convert to MinSdk3 and
 support more customers and erase this local trouble until it is a
 common and accepted fact among the users. Btw, 1.6 is not really
 supported by phone makers, most of them don't provide the update and
 wait to go directly to 2.0 or even 2.1 so it might not be a so
 bad...move..after all.


 On Jan 25, 1:02 pm, SizzlingSkizzorsProgrammer cbo...@gmail.com
 wrote:
  Honestly, I hardly think average users actually look at the
  permissions...
 
  On average, people don't care too much.  If they want the app, they
  will install it anyways.  The best way is to build a quality app and
  build dev reliability/a dev brand, and that way people will trust you.
 
  On Jan 24, 2:11 pm, Maps.Huge.Info (Maps API Guru)
 
 
 
  cor...@gmail.com wrote:
   I think you may be over reacting. Users are most likely not going to
   care if you write to the SD card. I would bet that 99 out of 100 users
   don't even read or care about what permissions you're asking for, the
   100th person is probably searching the skies for black helicopters
   anyway, so it's highly unlikely you'll be able to please that person
   regardless of what you do.
 
   You have a choice, use the SD card or not. If you do, you'll have to
   have permission. I don't see that as a problem.
 
   -John Coryat
 
   Radar Now!
 
   What Zip Code?

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




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

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

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

[android-developers] Re: AVD - Emulator limitations

2010-01-24 Thread Kumar Bibek
Hey,

Of course it can make calls, to other emulators, and it can emulate
GPS too
Checkout the emulator options in the DDMS perspective to see these
options.

Kumar Bibek

On Jan 22, 10:10 am, Sudhir Nallagangu nallagan...@gmail.com wrote:
 I am curious on limitations on AVD /Emulators. It is clear that it
 cannot support making phone calls etc ..Can it emulate GPS to leverage
 google maps and navigations?

 Sudhir

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


[android-developers] Re: Get Attributes of a media file.

2010-01-24 Thread Kumar Bibek
You can query the MediaStore content provider to get the details. In
the Android docs, search for this, and you will get a lot of
information.

Kumar Bibek

On Jan 25, 9:00 am, Manjunatha M man...@gmail.com wrote:
 Hi,

 I have downloaded a media file. (say mp3 file). I need to get the attributes
 of the file, like ARTIST, TITLE etc.

 Can anyone help me on this???

 --
 Regards,
 Manjunatha

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


[android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread String
On Jan 25, 5:39 am, Carlo ca...@hyperdevbox.com wrote:

 We shall explain and handle case by case
 our potential users's concerns and educated them about our
 application. Like previously said, state into the app description the
 reason why the permission is needed is a good start :)

If you don't have room in the app description, put it on the website
that your Market listing links to. That's what I do - list the app's
permissions, and why each is needed, in an FAQ on my linked site. And
I've yet to receive a single e-mail from a prospective user asking why
the permissions are needed.

String

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


[android-developers] Re: Extract one example from a project with many

2010-01-24 Thread Maps.Huge.Info (Maps API Guru)
Under Samples in the platform you desire to work with, in the SDK.
There's actually a lot of good stuff in the samples directory.

-John Coryat

Radar Now!

What Zip Code?

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


[android-developers] Re: Setting wifi AP while wireless is switched off

2010-01-24 Thread Henning
I think I found the answer myself.

It seems Android directly push the settings to the WPA-Supplicant,
which is not available with wifi switched off. So (at the moment) it
seems to be impossible to control this settings without activating
wifi.

Henning Rogge

On Jan 14, 11:14 am, Henning hro...@googlemail.com wrote:
 I'm working on an application that creates the settings for a new
 access point. Unfortunately it seems that the addNetwork() API-call
 is not working while wifi is switched off in the settings.

 Is there a way around this problem ?

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


[android-developers] Re: Launching the correct activity on resume

2010-01-24 Thread String
On Jan 25, 12:54 am, jotobjects jotobje...@gmail.com wrote:

 If Activity1 and Activity2 are part of the same task and Activity2 is
 foreground when pressing the Home key, then I thought that choosing
 that app on the Home screen would return you to Activity2.

Something to remember is that choosing that app on the Home
screen (or in the Launcher drawer) is really clicking on a shortcut,
and that shortcut is specifically to the activity with this in your
manifest:

  intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
  /intent-filter

It's also true (as another poster said) that installing your app from
Eclipse can change what its default activity is. If you want to
accurately simulate the behavior that  your users will see, you need
to build an APK as you would for release, install it through the
command line, and see what that does.

String

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


Re: [android-developers] Re: Using OS 1.6 and Up , are we penalized on the market ?

2010-01-24 Thread Jonas Petersson

String wrote:

On Jan 25, 5:39 am, Carlo ca...@hyperdevbox.com wrote:

We shall explain and handle case by case
our potential users's concerns and educated them about our
application. Like previously said, state into the app description the
reason why the permission is needed is a good start :)


If you don't have room in the app description, put it on the website
that your Market listing links to. That's what I do - list the app's
permissions, and why each is needed, in an FAQ on my linked site. And
I've yet to receive a single e-mail from a prospective user asking why
the permissions are needed.


For the record, I've done exactly this on one of my apps, PLUS a big 
button on the main screen that links to the very same FAQ, and I still 
get a fair amount of users who fail to read it... 8-/


I guess this is a sign of hitting the mass market as opposed to hi-tech 
geeks, so it's not all bad. (In my case, the application is very much 
Sweden specific, so everything is in Swedish except, obviously, the 
Market as that is still not an option.)


Best / Jonas

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