[android-developers] Re: -http-proxy for emulator on Android 1.6?

2009-11-13 Thread Piwai
By the way, don't you guys think this should be written somewhere in
the Android docs ?

I think that currently, no app developer is aware of that problem.
Which means that whenever an Android user is connected to a company
network and needs to set an HTTP Proxy, the only working app will be
the browser.

Do you think I should fill a bug report for this ?

Ow, and one more thing : the -verbose-proxy option seems to be unknown
to the Android emulator... Has anyone been able to use it yet ?
Another bug report to fill ?

Cheers,
Piwaï

On Nov 12, 6:12 pm, Piwai py.ri...@gmail.com wrote:
 Hello Android People !

 I spent a few days on this kind of problems, so here is my feedback.

 duykham : your tip (setting proxy in APN) works... for the browser app
 only.

 Once you have done this configuration, you need to write specific code
 in your apps to handle a http proxy.

 If you use java.net.* components, then you shoud set the default
 ProxySelector in a static way :

                 final String proxyHost = android.net.Proxy.getDefaultHost();
                 final int proxyPort = android.net.Proxy.getDefaultPort();

                 ProxySelector.setDefault(new ProxySelector() {

                         @Override
                         public void connectFailed(URI uri, SocketAddress sa, 
 IOException
 ioe) {
                         }

                         @Override
                         public ListProxy select(URI uri) {
                                 ArrayListProxy l = new ArrayListProxy();
                                 SocketAddress sa = new 
 InetSocketAddress(proxyHost, proxyPort);
                                 l.add(new Proxy(Proxy.Type.HTTP, sa));
                                 return l;
                         }
                 });

 By the way, maybe you shouldn't use getDefaultHost/Post but rather
 getHost/Port(Context) .

 If you use a http client, then here is the solution :

                 final String proxyHost = android.net.Proxy.getDefaultHost();
                 final int proxyPort = android.net.Proxy.getDefaultPort();

                 DefaultHttpClient client = new DefaultHttpClient();

                 HttpHost proxy = new HttpHost(proxyHost, proxyPort);

                 client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
 proxy);

 So, this is quite cool... and works on a per httpclient instance basis

 HOWEVER

 Google Maps still doesn't work. The reason is that the components that
 download all the stuff for Google Maps uses their own HttpClients. And
 we don't have any reference to this client, to be able to tweak them.

 IT SEEMS THAT GOOGLE MAPS COMPONENTS WERE NOT INTENDED TO WORK WITH
 HTTP PROXIES.

 I even tried to use the debugger and conditional breakpoints to inject
 a new HttpProxy in DefaultHttpRoutePlanner.determineRoute (line 104).
 But the debugger wouldn't allow any HttpHost instanciation, and says
 UnsupportedOperationException. I can edit strings, but not create new
 objects. Sad.

 If you have any clue, you are welcome to answer. And if someone find
 this mail in the archives some days and have a solution, please email
 me ;-) .

 I have read somewhere that a solution could be to disable anything
 related to proxies on Android, but rather use a Windows (or Linux)
 local software that would redirect all requests getting outside to the
 real proxy. I have no idea of how I could do this. Any idea ?

 Cheers,
 Piwaï

 On Nov 6, 9:16 am, Marc Reichelt mcreich...@googlemail.com wrote:

  Hi duykham!

  I just tried the solution you provide on your blog (Link again just
  for the 
  record):http://duykham.blogspot.com/2009/11/setting-proxy-for-android-by-gui
  But it seems this solution does not work for me, the emulator still is
  not able to connect.

  When will the -http-proxyoption be finally fixed? It really is a
  severe problem for us here because we do not have Internet connection
  without it. :-(

  Regards
  Marc

  On 3 Nov., 09:58, duykham duyk...@gmail.com wrote:

   Hi Marc,

   Seems -http-proxyparameter does not work with emulator. In order to
   useproxyfor emulator, you can follow the guideline I posted on my
   blog.

   This 
   link:http://duykham.blogspot.com/2009/11/setting-proxy-for-android-by-gui

   Hope this help.

   P/S: It works well with all versions from 1.6 to earlier. But, not
   work with Eclair (2.0), (I don't know the reason  )

   On Oct 23, 7:12 pm, Marc Reichelt mcreich...@googlemail.com wrote:

Hi again,

is there anyone out there who at least has the same problem?

Regards

Marc Reichelt   ||  http://www.marcreichelt.de/

On 22 Okt., 20:54, Marc Reichelt mcreich...@googlemail.com wrote:

 Hi there!

 I am developing applications for Android in a company where the
 Internet is accessable via aproxyserver only.
 I found out that the emulator of the 1.5 R3 SDK works well with the
 option -http-proxy, but the emulator of the 1.6 R1 SDK does not. Can
 

[android-developers] Inter-activity communication

2009-11-13 Thread abhi
Hi,

Currently, I am starting a Child activity from a Parent activity in
the following manner:

public class Parent extends Activity {

   private int message;
   public Parent()
{
  message = 0;
 }

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
 //Start child activity
Intent child = new Intent(Parent.this,Child.class);
startActivityForResult(child, 1);
}
}

Is there a way to communicate the message member variable from the
Parent activity to the Child activity? I'm not creating any Child
objects above, so I'm confused as to how one is supposed to send
messages from the Parent  to the Child activities. Any suggestions?

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] APN list empty

2009-11-13 Thread simon
Hi, all
I have found that my APN list is empty. I want to add one.
First, the file frameworks/base/core/res/res/xml/apns.xml is
empty, so i modify it, add my apn content.

apns.xml
!--
 If you edit this version, also edit the version in the partner-
supplied
apns-conf.xml configuration file
--

When the system bootup, i think it will loadapn from the file apns-
conf.xml, in TelephonyProvider.java.

The bad news is that nothing happened!
any idea?

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


[android-developers] how to stop BroadcastReceiver after some point

2009-11-13 Thread Shrenik Vikam
i want to stop BroadcastReceiver  after some time / after some work

how to stop BroadcastReceiver after some point from  service/
activity  ?

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


Re: [android-developers] Choosing Dev Phone

2009-11-13 Thread Julius Spencer
Hi

I have found the G1 pretty good. I have written apps which combine  
sensors (acceleration, orientation), GPS, 3D graphics and some maths.  
It would be nice if the processor were faster, but generally it's  
great. The UI (touch) response could be better, but for development it  
is sufficient (especially if you're on a low budget).

The main issue I have is getting the Wifi to work consistently, but  
this seems to be the same with the Hero so perhaps this is not  
hardware related. Also this hasn't affected development.

I haven't read anything yet saying the G1 will not run 2.0.

No matter what you get, there will be something better though, once  
your device arrives... ;-)

Cheers,
Julius.


On 13/11/2009, at 3:43 PM, Nathan wrote:

 I'm sure this comes up once a while

 For me, this is one developer buying one phone. Not someone who can
 afford a fleet of them.

 Google Market offers two dev phones. They have a few specs but I don't
 know if it tells the whole picture. What retail phones are these ones
 most like?

 Dev Phone 1: Keyboard. No Wifi.
 Dev Phone 2: No Keyboard. Seems more advanced otherwise than Dev Phone
 1.

 Would you recommend one of these - or neither because you think they
 will never run 2.0? In that case I would be stuck with trying to
 unlock a locked phone. I don't know how successful I'd be at that - I
 never even managed to unlock a Nokia phone from ATT after the
 contract was up.

 The things I would hope to test out that I can't do with an emulator
 (at least don't know how):
 GPS
 Sensors.
 Gestures.

 The dev phones don't seem to mention what sensors they have.

 Possibly useful (not sure):
 Some 3D Capability

 I'm thinking the keyboard is helpful because I can always test with
 and without it.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 test if app is shown on Market for all screensizes

2009-11-13 Thread Klaus Kartou
Hi!

How's your uses-sdk part of manifest looks like ?


It looks like this:

uses-sdk android:minSdkVersion=3/
supports-screens
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=true
/


On Fri, Nov 13, 2009 at 5:47 AM, SoftwareForMe.com SoftwareForMe.com 
softwareforme@gmail.com wrote:

 As if it's not enough to have to manage the manifest, but HTC has a bit of
 a habit of releasing phones that cannot see some apps. Examples include the
 HTC Hero when it was released in Europe, and the HTC Eris recently released
 in the USA.

 I'd like to know if those phones you mention can see our app (PhoneMyPC) as
 well. Anybody have an idea how to check that?

 Scott
 SoftwareForMe.com
 Makers of PhoneMyPC


 On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy avolo...@gmail.comwrote:

 How's your uses-sdk part of manifest looks like ?

 On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote:
  Can anyone enlighten me? :)
  It looks like our app doesnt show up on the market on HTC Tattoo. What
 else
  should we specify in the manifest?
 
 
 
  On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou kar...@gmail.com wrote:
   Hi!
 
   We have uploaded a new version of our app where we added the following
 to
   the manifest:
 
   supports-screens
   android:smallScreens=true
android:normalScreens=true
   android:largeScreens=true
android:anyDensity=true
   /
 
   However, we are receiving complaints that users cannot find the app on
 the
   market using their HTC Tattoo and HTC Dragon phones. Any ideas what we
 are
   doing wrong, and is there a way for the developers to test if the app
 is
   visible on the market?
 
   Cheers!

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




 --
 Warm regards,
 The PhoneMyPC Team

 --
 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] how to stop BroadcastRe ceiver after some point

2009-11-13 Thread 张雷) zhang...@dopod.com

unregisterReceiver(BroadcastReceiver);

-邮件原件-
发件人: Shrenik Vikam [mailto:shre...@ruby-solutions.com] 
发送时间: 2009年11月13日 16:29
收件人: Android Developers
主题: [android-developers] how to stop BroadcastReceiver after some point

i want to stop BroadcastReceiver  after some time / after some work

how to stop BroadcastReceiver after some point from  service/
activity  ?

please reply
Thanks in advance

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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] Need Help: Is widestrings like LString allowed in Android?

2009-11-13 Thread Latha Shivanna
Hii All


Does anybody know about the behavoir of Android’s compiler for target
on wide strings like  L”string” ??

I have a piece of code like this:

Unsigned short* TESTWSTRING[] =
{
L.jpg”, L”.txt”
};

Will TESTWSTRING[0]  TESTWSTRING[1] be widestrings ?

In Win32, memory used by TESTWSTRING[0] is 5x2 bytes(inclusive of null
termination). But in Android this is not the case. So wondering
whether prepending “L” to a string is valid in Android or not?

Can someone please explain this difference in behavior?

Please do advise.

thanks,
Latha.

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


Re: 答复: [android-developers] how to stop Broadca stReceiver after some point

2009-11-13 Thread Shrenik Vikam
i have BroadcastReceiver in another package(application)
so how can i unregister it from there

On Nov 13, 1:31 pm, zhanglei(张雷) zhang...@dopod.com wrote:
 unregisterReceiver(BroadcastReceiver);

 -邮件原件-
 发件人: Shrenik Vikam [mailto:shre...@ruby-solutions.com]
 发送时间: 2009年11月13日 16:29
 收件人: Android Developers
 主题: [android-developers] how to stop BroadcastReceiver after some point

 i want to stop BroadcastReceiver  after some time / after some work

 how to stop BroadcastReceiver after some point from  service/
 activity  ?

 please reply
 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 
 athttp://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] eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Android Helebek
Hi All,
I was using Netbeans to write my Android applications for a few weeks
now (i was used to NB). Then I decided to give a chance to Eclipse,
since its the official recommended (with tools existing) development
environment. Now, that I moved my code to Eclipse, it keeps
complaining in the manifest file. The error is shows is as following:

receiver android:name=.MyPhoneListener
intent-filter
action
android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

/intent-filter
/receiver

org.xx.xx.MyPhoneListener does not extend
android.content.BroadcastReceiver

And actually it is true that it does not extend BroadcastReceiver, but
extends PhoneStateListener.

class MyPhoneListener extends PhoneStateListener


My question is, I was able to compile and run my exact same
application from Netbeans and the application was running fine.

So what might be the problem, is it an Eclipse bug or is this really a
wrong implementation (even it works!)?

-- 
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: HTC Hero + requestFeature() must be called

2009-11-13 Thread Anton Pirker
Hi Shane!

Have you solved your Problem? I think i have the same one!


Thanks for any information,
Anton


On Oct 18, 6:55 am, Shane shanemenchi...@gmail.com wrote:
 I am getting a requestFeature() must be called before adding content
 but only on HTC Hero phones.  This error nevers occurs on G1s, Magic
 but only on the Hero.

 I think it occurs (but not sure) when a progress dialog is shown to
 the user.  Weird thing is, the progress dialog is shown two or three
 times on the Hero with no problems.  On the third or forth time it is
 shown to the user, the error above occurs.

 Why only on the Hero?  Any suggestions?

             case DIALOG3_KEY:
                 progressDialog.setMessage(getString
 (R.string.deletefilewait));
                 progressDialog.setIndeterminate(true);
                 progressDialog.setCancelable(true);
                 return progressDialog;

 FYI - progressDialog is a global variable  - private ProgressDialog
 progressDialog;

 Thanks,

 Shane

-- 
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: eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Dexter#39;s Brain
I think, a clean re-build will solve the problem. :)

On Nov 13, 1:50 pm, Android Helebek bilge.tu...@gmail.com wrote:
 Hi All,
 I was using Netbeans to write my Android applications for a few weeks
 now (i was used to NB). Then I decided to give a chance to Eclipse,
 since its the official recommended (with tools existing) development
 environment. Now, that I moved my code to Eclipse, it keeps
 complaining in the manifest file. The error is shows is as following:

         receiver android:name=.MyPhoneListener
             intent-filter
                 action
 android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

             /intent-filter
         /receiver

 org.xx.xx.MyPhoneListener does not extend
 android.content.BroadcastReceiver

 And actually it is true that it does not extend BroadcastReceiver, but
 extends PhoneStateListener.

 class MyPhoneListener extends PhoneStateListener

 My question is, I was able to compile and run my exact same
 application from Netbeans and the application was running fine.

 So what might be the problem, is it an Eclipse bug or is this really a
 wrong implementation (even it works!)?

-- 
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] Need Help: Is widestrings like LString allowed in Android?

2009-11-13 Thread swapnil kamble
Why do you need that ? You dont need provide L .

On Fri, Nov 13, 2009 at 2:15 PM, Latha Shivanna latha...@gmail.com wrote:

 Hii All


 Does anybody know about the behavoir of Android’s compiler for target
 on wide strings like  L”string” ??

 I have a piece of code like this:

 Unsigned short* TESTWSTRING[] =
{
L.jpg”, L”.txt”
};

 Will TESTWSTRING[0]  TESTWSTRING[1] be widestrings ?

 In Win32, memory used by TESTWSTRING[0] is 5x2 bytes(inclusive of null
 termination). But in Android this is not the case. So wondering
 whether prepending “L” to a string is valid in Android or not?

 Can someone please explain this difference in behavior?

 Please do advise.

 thanks,
 Latha.

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




-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

-- 
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: eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Android Helebek
Nope it does not.

On Nov 13, 3:54 am, Dexter#39;s Brain coomar@gmail.com wrote:
 I think, a clean re-build will solve the problem. :)

 On Nov 13, 1:50 pm, Android Helebek bilge.tu...@gmail.com wrote:

  Hi All,
  I was using Netbeans to write my Android applications for a few weeks
  now (i was used to NB). Then I decided to give a chance to Eclipse,
  since its the official recommended (with tools existing) development
  environment. Now, that I moved my code to Eclipse, it keeps
  complaining in the manifest file. The error is shows is as following:

          receiver android:name=.MyPhoneListener
              intent-filter
                  action
  android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

              /intent-filter
          /receiver

  org.xx.xx.MyPhoneListener does not extend
  android.content.BroadcastReceiver

  And actually it is true that it does not extend BroadcastReceiver, but
  extends PhoneStateListener.

  class MyPhoneListener extends PhoneStateListener

  My question is, I was able to compile and run my exact same
  application from Netbeans and the application was running fine.

  So what might be the problem, is it an Eclipse bug or is this really a
  wrong implementation (even it works!)?

-- 
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: MyLocationOverlay causing crash in 1.6 (Donut)

2009-11-13 Thread Pieter
Allright, I have taken up the gauntlet and wrote a subclass for
working around this bug.
It draws the my location disc and an accuracy circle.  You can test
it on a device that is
not bugged by initializing the bugged variable to true.

It is a quick and dirty hack but it seems to work correctly on my G1,
although the calculations
might be way off when you are near the poles ;-). I hope to have some
more feedback from an
actual Cliq user later today.

You are free to use and adapt the source code as you see fit:
http://www.spectrekking.com/download/FixedMyLocationOverlay.java

And the accompanying drawable:
http://www.spectrekking.com/download/mylocation.png

I made the drawable orange instead of blue on purpose so users can see
when their device is bugged.
Note that there is no animation on GPS activity (as there is in the
original MyLocationOverlay).

On a related note: it seems that the Google logo drawable is also
bugged on the Cliq as I get reports
of a red square in the lower left where the Google logo is supposed
to be. I don't really see any
workaround for that one.

If you find any problems with this solution, or have any improvements
to share please let us know!

---
package com.spectrekking.play;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Paint.Style;
import android.graphics.drawable.Drawable;
import android.location.Location;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;
import com.google.android.maps.Projection;
import com.spectrekking.R;

public class FixedMyLocationOverlay extends MyLocationOverlay {
private boolean bugged = false;

private Paint accuracyPaint;
private Point center;
private Point left;
private Drawable drawable;
private int width;
private int height;

public FixedMyLocationOverlay(Context context, MapView mapView) {
super(context, mapView);
}

@Override
protected void drawMyLocation(Canvas canvas, MapView mapView,
Location lastFix, GeoPoint myLoc, long when) {
if (!bugged) {
try {
super.drawMyLocation(canvas, mapView, lastFix, 
myLoc, when);
} catch (Exception e) {
bugged = true;
}
}

if (bugged) {
if (drawable == null) {
accuracyPaint = new Paint();
accuracyPaint.setAntiAlias(true);
accuracyPaint.setStrokeWidth(2.0f);

drawable = 
mapView.getContext().getResources().getDrawable
(R.drawable.mylocation);
width = drawable.getIntrinsicWidth();
height = drawable.getIntrinsicHeight();
center = new Point();
left = new Point();
}
Projection projection = mapView.getProjection();

double latitude = lastFix.getLatitude();
double longitude = lastFix.getLongitude();
float accuracy = lastFix.getAccuracy();

float[] result = new float[1];

Location.distanceBetween(latitude, longitude, latitude, 
longitude +
1, result);
float longitudeLineDistance = result[0];

GeoPoint leftGeo = new GeoPoint((int)(latitude*1e6), 
(int)
((longitude-accuracy/longitudeLineDistance)*1e6));
projection.toPixels(leftGeo, left);
projection.toPixels(myLoc, center);
int radius = center.x - left.x;

accuracyPaint.setColor(0xffff);
accuracyPaint.setStyle(Style.STROKE);
canvas.drawCircle(center.x, center.y, radius, 
accuracyPaint);

accuracyPaint.setColor(0x18ff);
accuracyPaint.setStyle(Style.FILL);
canvas.drawCircle(center.x, center.y, radius, 
accuracyPaint);

drawable.setBounds(center.x - width / 2, center.y - 
height / 2,
center.x + width / 2, center.y + height / 2);
drawable.draw(canvas);
}
}
}
---
On Nov 12, 10:57 pm, TreKing treking...@gmail.com wrote:
 Yeah, it's better than a force-close, that's for sure.

 Though getting the pixel radius for the circle shouldn't be too hard. With
 the GPS accuracy value you can get a latitude / longitude value that's an
 offset from the current estimated location, map those two points to screen
 space 

[android-developers] Re: Choosing Dev Phone

2009-11-13 Thread String
I generally agree with Julius, I've been doing all my development on a
G1 (equivalent to the ADP1) and it's served me very well. IMHO, the G1/
ADP1 is the reference hardware for Android at the current time.

On Nov 13, 8:30 am, Julius Spencer jul...@msa.co.nz wrote:

 I have found the G1 pretty good. I have written apps which combine  
 sensors (acceleration, orientation), GPS, 3D graphics and some maths.  
 It would be nice if the processor were faster, but generally it's  
 great.

I would suggest that a slower CPU is *better* for a dev phone; a
faster CPU is more likely to mask performance problems in your code.
If your app runs well on a G1, it'll run great on any newer, faster
processors. The converse is not necessarily true, and given that this
is one of the main reasons for testing on real hardware (the emulators
do not give a true indication of performance), it's an important
issue.

 The main issue I have is getting the Wifi to work consistently, but  
 this seems to be the same with the Hero so perhaps this is not  
 hardware related. Also this hasn't affected development.

Haven't had this experience with my own G1, nor have I particularly
heard about it in the community, so I might respectfully suggest it's
just an issue with Julius' unit.

 I haven't read anything yet saying the G1 will not run 2.0.

Now, this *is* a red flag, IMHO. There's been no official word, of
course, but the numbers look iffy... see
http://androidandme.com/2009/10/news/g1-owners-could-miss-out-on-android-2-0/
for one appraisal. It's not the final answer, but it casts enough
doubt that I would seriously hesitate before buying a G1/ADP1 at this
stage. If I were in your shoes, Nathan, I think I'd try to hold off
buying anything until 2.0 is released at large and it's clear which
devices will and won't run it.

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: How to test if app is shown on Market for all screensizes

2009-11-13 Thread String
I'd add a targetSdkVersion attribute with the highest level you've
actually tested against, like this:

  uses-sdk android:minSdkVersion=3
android:targetSdkVersion=5 /

In my experience, the lack of that attribute caused higher-SDK
emulator images to be reluctant to run the app, so I could imagine
that it might cause issues on real hardware as well. Doesn't entirely
make sense, as SDK 4 (Donut/1.6) is now widespread on other handsets -
which I'm assuming can see your app - but it doesn't hurt.

String

On Nov 13, 8:31 am, Klaus Kartou kar...@gmail.com wrote:
 Hi!

 How's your uses-sdk part of manifest looks like ?

 It looks like this:

 uses-sdk android:minSdkVersion=3/
 supports-screens
 android:smallScreens=true
 android:normalScreens=true
 android:largeScreens=true
 android:anyDensity=true
 /

 On Fri, Nov 13, 2009 at 5:47 AM, SoftwareForMe.com SoftwareForMe.com 



 softwareforme@gmail.com wrote:
  As if it's not enough to have to manage the manifest, but HTC has a bit of
  a habit of releasing phones that cannot see some apps. Examples include the
  HTC Hero when it was released in Europe, and the HTC Eris recently released
  in the USA.

  I'd like to know if those phones you mention can see our app (PhoneMyPC) as
  well. Anybody have an idea how to check that?

  Scott
  SoftwareForMe.com
  Makers of PhoneMyPC

  On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy avolo...@gmail.comwrote:

  How's your uses-sdk part of manifest looks like ?

  On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote:
   Can anyone enlighten me? :)
   It looks like our app doesnt show up on the market on HTC Tattoo. What
  else
   should we specify in the manifest?

   On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou kar...@gmail.com wrote:
Hi!

We have uploaded a new version of our app where we added the following
  to
the manifest:

supports-screens
android:smallScreens=true
 android:normalScreens=true
android:largeScreens=true
 android:anyDensity=true
/

However, we are receiving complaints that users cannot find the app on
  the
market using their HTC Tattoo and HTC Dragon phones. Any ideas what we
  are
doing wrong, and is there a way for the developers to test if the app
  is
visible on the market?

Cheers!

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

  --
  Warm regards,
  The PhoneMyPC Team

  --
  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: -http-proxy for emulator on Android 1.6?

2009-11-13 Thread Piwai
This issue report already existed, so I added a comment :
http://code.google.com/p/android/issues/detail?id=3764

Please star the issue if you encounter the same problem.

On Nov 13, 9:10 am, Piwai py.ri...@gmail.com wrote:
 By the way, don't you guys think this should be written somewhere in
 the Android docs ?

 I think that currently, no app developer is aware of that problem.
 Which means that whenever an Android user is connected to a company
 network and needs to set an HTTP Proxy, the only working app will be
 the browser.

 Do you think I should fill a bug report for this ?

 Ow, and one more thing : the -verbose-proxy option seems to be unknown
 to the Android emulator... Has anyone been able to use it yet ?
 Another bug report to fill ?

 Cheers,
 Piwaï

 On Nov 12, 6:12 pm, Piwai py.ri...@gmail.com wrote:

  Hello Android People !

  I spent a few days on this kind of problems, so here is my feedback.

  duykham : your tip (setting proxy in APN) works... for the browser app
  only.

  Once you have done this configuration, you need to write specific code
  in your apps to handle a http proxy.

  If you use java.net.* components, then you shoud set the default
  ProxySelector in a static way :

                  final String proxyHost = android.net.Proxy.getDefaultHost();
                  final int proxyPort = android.net.Proxy.getDefaultPort();

                  ProxySelector.setDefault(new ProxySelector() {

                          @Override
                          public void connectFailed(URI uri, SocketAddress 
  sa, IOException
  ioe) {
                          }

                          @Override
                          public ListProxy select(URI uri) {
                                  ArrayListProxy l = new ArrayListProxy();
                                  SocketAddress sa = new 
  InetSocketAddress(proxyHost, proxyPort);
                                  l.add(new Proxy(Proxy.Type.HTTP, sa));
                                  return l;
                          }
                  });

  By the way, maybe you shouldn't use getDefaultHost/Post but rather
  getHost/Port(Context) .

  If you use a http client, then here is the solution :

                  final String proxyHost = android.net.Proxy.getDefaultHost();
                  final int proxyPort = android.net.Proxy.getDefaultPort();

                  DefaultHttpClient client = new DefaultHttpClient();

                  HttpHost proxy = new HttpHost(proxyHost, proxyPort);

                  
  client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
  proxy);

  So, this is quite cool... and works on a per httpclient instance basis

  HOWEVER

  Google Maps still doesn't work. The reason is that the components that
  download all the stuff for Google Maps uses their own HttpClients. And
  we don't have any reference to this client, to be able to tweak them.

  IT SEEMS THAT GOOGLE MAPS COMPONENTS WERE NOT INTENDED TO WORK WITH
  HTTP PROXIES.

  I even tried to use the debugger and conditional breakpoints to inject
  a new HttpProxy in DefaultHttpRoutePlanner.determineRoute (line 104).
  But the debugger wouldn't allow any HttpHost instanciation, and says
  UnsupportedOperationException. I can edit strings, but not create new
  objects. Sad.

  If you have any clue, you are welcome to answer. And if someone find
  this mail in the archives some days and have a solution, please email
  me ;-) .

  I have read somewhere that a solution could be to disable anything
  related to proxies on Android, but rather use a Windows (or Linux)
  local software that would redirect all requests getting outside to the
  real proxy. I have no idea of how I could do this. Any idea ?

  Cheers,
  Piwaï

  On Nov 6, 9:16 am, Marc Reichelt mcreich...@googlemail.com wrote:

   Hi duykham!

   I just tried the solution you provide on your blog (Link again just
   for the 
   record):http://duykham.blogspot.com/2009/11/setting-proxy-for-android-by-gui
   But it seems this solution does not work for me, the emulator still is
   not able to connect.

   When will the -http-proxyoption be finally fixed? It really is a
   severe problem for us here because we do not have Internet connection
   without it. :-(

   Regards
   Marc

   On 3 Nov., 09:58, duykham duyk...@gmail.com wrote:

Hi Marc,

Seems -http-proxyparameter does not work with emulator. In order to
useproxyfor emulator, you can follow the guideline I posted on my
blog.

This 
link:http://duykham.blogspot.com/2009/11/setting-proxy-for-android-by-gui

Hope this help.

P/S: It works well with all versions from 1.6 to earlier. But, not
work with Eclair (2.0), (I don't know the reason  )

On Oct 23, 7:12 pm, Marc Reichelt mcreich...@googlemail.com wrote:

 Hi again,

 is there anyone out there who at least has the same problem?

 Regards

 Marc Reichelt   ||  http://www.marcreichelt.de/

 On 22 Okt., 20:54, Marc 

[android-developers] Re: Is your Android app on Archos Market ?

2009-11-13 Thread arnouf
Just a small update
We're translated our article at frandroid for english readers :
http://www.frandroid.com/6782/the-archos-5-it-for-1e-what-it%e2%80%99s-all-about-english/

The official announcement should be happened today at appslib.com
website.

regards

On 9 nov, 13:27, Al Sutton a...@funkyandroid.com wrote:
 Responded to in android-discuss... please people can we move it off
 the -developers list as we're so far off topic its' probably just
 annoying many of the subscribers.

 Al.

 On 9 Nov, 09:04, Charbax char...@gmail.com wrote:

  Slander and disparage doesn't have to use f-words and s-words.

  alsutton has coordinated constantArchosbashing on the archosfans
  forum since September 2nd until about October 15th when he first
  announced he was seeking legal advice.

  All things from:

  - Recommending that people not buy theArchos5 Internet Tablet in
  countless posts
  - Advertising for alternatives toArchos5 Internet Tablet in
  countless posts
  - Claiming to have inside knowledge from Google engineers that Google
  Marketplace and Google Apps would never be available onArchos5
  Internet Tablet in countless posts
  - Plenty of other trolling posting controversial, inflammatory,
  irrelevant and off-topic messages

  I'm looking forward to see the emails. I am sure alsutton was asking
  an unreasonably large payment to be the exclusive marketplace on the
  device. Probably his dream, to finally have an opportunity make some
  money on his marketplace project.

  On Nov 8, 4:15 pm, JP joachim.pfeif...@gmail.com wrote:

   On Nov 7, 11:25 pm, Fred Grott(Android 
   Expert,http://mobilebytes.wordpress.com)

   fred.gr...@gmail.com wrote:
Charbox your slander definition seems to be somewhat unique and
different.

   Agreed. His coordinate system for slander and disparage could use some
   calibration, it seems.

-- 
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 test if app is shown on Market for all screensizes

2009-11-13 Thread Klaus Kartou
Actually we first used:

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

But that didnt work either :(
We tried to manually install the app on a real Tattoo device, and it worked
prefectly. But the app cannot be found on the market from that same device?
What to do? :)
If I understand correctly, the market only looks at the manifest to
determine if the app is visible or not?


On Fri, Nov 13, 2009 at 10:17 AM, String sterling.ud...@googlemail.comwrote:

 I'd add a targetSdkVersion attribute with the highest level you've
 actually tested against, like this:

  uses-sdk android:minSdkVersion=3
 android:targetSdkVersion=5 /

 In my experience, the lack of that attribute caused higher-SDK
 emulator images to be reluctant to run the app, so I could imagine
 that it might cause issues on real hardware as well. Doesn't entirely
 make sense, as SDK 4 (Donut/1.6) is now widespread on other handsets -
 which I'm assuming can see your app - but it doesn't hurt.

 String

 On Nov 13, 8:31 am, Klaus Kartou kar...@gmail.com wrote:
  Hi!
 
  How's your uses-sdk part of manifest looks like ?
 
  It looks like this:
 
  uses-sdk android:minSdkVersion=3/
  supports-screens
  android:smallScreens=true
  android:normalScreens=true
  android:largeScreens=true
  android:anyDensity=true
  /
 
  On Fri, Nov 13, 2009 at 5:47 AM, SoftwareForMe.com SoftwareForMe.com 
 
 
 
  softwareforme@gmail.com wrote:
   As if it's not enough to have to manage the manifest, but HTC has a bit
 of
   a habit of releasing phones that cannot see some apps. Examples include
 the
   HTC Hero when it was released in Europe, and the HTC Eris recently
 released
   in the USA.
 
   I'd like to know if those phones you mention can see our app
 (PhoneMyPC) as
   well. Anybody have an idea how to check that?
 
   Scott
   SoftwareForMe.com
   Makers of PhoneMyPC
 
   On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy avolo...@gmail.com
 wrote:
 
   How's your uses-sdk part of manifest looks like ?
 
   On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote:
Can anyone enlighten me? :)
It looks like our app doesnt show up on the market on HTC Tattoo.
 What
   else
should we specify in the manifest?
 
On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou kar...@gmail.com
 wrote:
 Hi!
 
 We have uploaded a new version of our app where we added the
 following
   to
 the manifest:
 
 supports-screens
 android:smallScreens=true
  android:normalScreens=true
 android:largeScreens=true
  android:anyDensity=true
 /
 
 However, we are receiving complaints that users cannot find the
 app on
   the
 market using their HTC Tattoo and HTC Dragon phones. Any ideas
 what we
   are
 doing wrong, and is there a way for the developers to test if the
 app
   is
 visible on the market?
 
 Cheers!
 
   --
   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.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
   Warm regards,
   The PhoneMyPC Team
 
   --
   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.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.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] showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread Anton Pirker
Hi fellow Android guys and girls!

I have following problem.
In my Activity I want to show in onResume() and ProgressDialog.

I do this call (where Constants.DIALOG_GET_POSITION is just an integer 
value):
showDialog(Constants.DIALOG_GET_POSITION);



in my onCreateDialog() callback (in the same Activity) I have following 
code:

protected Dialog onCreateDialog(int id) {
Dialog dialog;
AlertDialog.Builder builder = null;

switch(id) {  
case Constants.DIALOG_GET_POSITION:
dialog = ProgressDialog.show(this, , Trying to detect 
your location. Please wait..., true);
break;
   
default:
dialog = null;
}
return dialog;  
}


When I run my activity i get an AndroidRuntimeException: 
requestFeature() must be called before adding content
This error is on the line where I call showDialog();

Here the Stacktrace:

11-13 10:25:02.195: ERROR/AndroidRuntime(3266): Uncaught handler: thread 
main exiting due to uncaught exception
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): 
java.lang.RuntimeException: Unable to resume activity 
{at.ignaz.UrbanGolf/at.ignaz.UrbanGolf.Activity.SetupActivity}: 
android.util.AndroidRuntimeException: requestFeature() must be called 
before adding content
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2632)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2647)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2287)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.os.Handler.dispatchMessage(Handler.java:99)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.os.Looper.loop(Looper.java:123)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.main(ActivityThread.java:3948)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
java.lang.reflect.Method.invokeNative(Native Method)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
java.lang.reflect.Method.invoke(Method.java:521)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
dalvik.system.NativeStart.main(Native Method)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): Caused by: 
android.util.AndroidRuntimeException: requestFeature() must be called 
before adding content
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:286)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
com.android.internal.app.AlertController.installContent(AlertController.java:198)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.AlertDialog.onCreate(AlertDialog.java:251)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ProgressDialog.onCreate(ProgressDialog.java:176)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.Dialog.dispatchOnCreate(Dialog.java:287)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.Activity.showDialog(Activity.java:2402)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
at.ignaz.UrbanGolf.Activity.SetupActivity.onResume(SetupActivity.java:247)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1229)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.Activity.performResume(Activity.java:3530)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2619)
11-13 10:25:02.345: ERROR/AndroidRuntime(3266): ... 12 more


What am I doing wrong? I could swear that this code was working already.
Any hints or tips?

Thanks in advance,
Anton Pirker

-- 
DI(FH) Anton Pirker

--
cross platform mobile software
burggasse 123/53
a-1070 wien
tel: +43 699 1234 0 456
skype: antonpirker

http://anton-pirker.at



-- 
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: Application design - using threads

2009-11-13 Thread Paul Turchenko
I believe there's no common approach to games development. Every game
is unique and requires its own design. Therefore, it's really depends
on the game whether you should span 2 or more threads for your logic
and how excactly are you going to handle UI updates.

On Nov 12, 12:17 am, Neilz neilhorn...@googlemail.com wrote:
 Hi all. I've been reading the developer guide, the sections on
 designing for performance and responsiveness. It's great stuff, and
 I'm going to go through all my code and refactor everything I can to
 meet these suggestions.

 One line stood out for me: For games specifically, do calculations
 for moves in a child thread.

 Could someone possibly elaborate on this a little? If you had a game
 where the screen was being refreshed continuously, with calculations
 being made on every refresh, does this mean starting and ending a
 thread every time this happens? Or is one thread created at the start,
 which stays open for the duration of the game?

 And would this be an inner class extending Thread with a run() method
 as usual, or are there better ways of handling it? I recently used an
 AsyncTask to handle a background task, would that be something that
 could be of use here?

 Many thanks for any 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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Application design - using threads

2009-11-13 Thread Anton Pirker
Hi!

Maybe this is what you are looking for:
http://www.youtube.com/watch?v=U4Bk5rmIpic

Its a talk about developing real-time games for android.
Has a lot of best practices in it!

Enjoy,
Anton



Neilz wrote:
 Hi all. I've been reading the developer guide, the sections on
 designing for performance and responsiveness. It's great stuff, and
 I'm going to go through all my code and refactor everything I can to
 meet these suggestions.

 One line stood out for me: For games specifically, do calculations
 for moves in a child thread.

 Could someone possibly elaborate on this a little? If you had a game
 where the screen was being refreshed continuously, with calculations
 being made on every refresh, does this mean starting and ending a
 thread every time this happens? Or is one thread created at the start,
 which stays open for the duration of the game?

 And would this be an inner class extending Thread with a run() method
 as usual, or are there better ways of handling it? I recently used an
 AsyncTask to handle a background task, would that be something that
 could be of use here?

 Many thanks for any help.

   


-- 
DI(FH) Anton Pirker

--
cross platform mobile software
burggasse 123/53
a-1070 wien
tel: +43 699 1234 0 456
skype: antonpirker

http://anton-pirker.at



-- 
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] App Not showing up on Verizon DROID Phones

2009-11-13 Thread Armond Avanes
Scott  Others,

 

I have a similar request for my app. I've restricted it not to run on small
screen devices but the rest (including DROID) must be okay. Would you please
check my application as well? And its name is aCar. It's an application to
track your vehicles' maintenance, gas mileage and such.

 

Thanks a million,

Armond

 

  _  

From: SoftwareForMe.com SoftwareForMe.com
[mailto:softwareforme@gmail.com] 
Sent: Friday, November 13, 2009 8:03 AM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] App Not showing up on Verizon DROID Phones

 

Your Manifest looks fine.

 

I have a Droid. I searched the market and found MoneyNow - Preview, by
SAISK LLC. If that's you, you're AOK.

 

Scott

SoftwareForMe.com

On Thu, Nov 12, 2009 at 5:04 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

BTW, additionally I have ON ed the copy protection in the Android Market.

On (Helps prevent copying of this application from the device. Increases
the amount of memory on the phone required to install the application.)




Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...



On Thu, Nov 12, 2009 at 7:01 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

Thanks Dianne Hackborn.
This is my entire manifest file, I have just renamed the classes for this
email.


manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.saisk.moneynow
  android:versionCode=2
  android:versionName=Preview 1.0
   uses-permission android:name=android.permission.INTERNET /  
   uses-permission android:name=android.permission.ACCESS_NETWORK_STATE
/  
   application
   android:name=myApplication 
   android:icon=@drawable/mn 
   android:label=@string/app_name
   android:windowNoTitle=true
   
activity android:name=.MyActivity
  android:configChanges=keyboardHidden|orientation
  android:theme=@android:style/Theme.NoTitleBar
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application


uses-sdk android:minSdkVersion=3 /

/manifest 



Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...



On Thu, Nov 12, 2009 at 5:46 PM, Dianne Hackborn hack...@android.com
wrote:

What else is in your manifest?

On Thu, Nov 12, 2009 at 2:57 PM, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:

I just got a call from my friend saying that she is not able to see our App:
Money Now on her Droid phone. 

I have declared in manifest.xml as 
uses-sdk android:minSdkVersion=3 /

Is there anything that I am missing to have my app be displayed on the DROID
Phones or it is an user error. 


Appreciate your response.

Thanks,
Kumar_/|\_ 
www.saisk.com
ku...@saisk.com
making a profound difference with knowledge and creativity...

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




-- 
Warm regards,
The PhoneMyPC Team

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

[android-developers] BroadcastReciver in service

2009-11-13 Thread Shrenik Vikam
my BroadcastReciver is not getting called from serive ??
my service is running perfectly (as i can seee the log statements in
LogCat)
following is my code



public class ServiceExample extends Service {


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

@Override
public void onDestroy() {
stopservice();
super.onDestroy();
}

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

private void startservice() {
broadcastReciver = new ABC();  // here my class is there
intentFilter = new IntentFilter();
intentFilter.addAction(Intent.ACTION_ANSWER);
intentFilter.addAction(Intent.ACTION_CALL_BUTTON);
intentFilter.addAction(Intent.ACTION_DIAL);
intentFilter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);
registerReceiver(broadcastReciver, intentFilter);
broadcastReciver.setOrderedHint(true);
  // here my mussiness logic is there
}
}

public class ABCextends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
TelephonyManager tManager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
  CallStateListener callStateListener = new
CallStateListener();
tManager
.listen(callStateListener, 
PhoneStateListener.LISTEN_CALL_STATE);
}
}


-- 
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] Start Activity from Service

2009-11-13 Thread Nishant
Hi,

I want to develop a application that continuously running in
background as service.
And after that if i press any numeric key, it should start an
application.

I have developed a service which is running continuously.
Is it possible in Android?

Regards,
Nishant Shah

-- 
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 Android 2.0 Support Hebrew ???

2009-11-13 Thread νιѕнαℓ
Anybody knows???

-- 
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] MapView on 1.6 very strange behaviour

2009-11-13 Thread mobilek...@googlemail.com
Hi, in my app I display MapViews in several activities. Now that I
have updated my G1 device to 1.6, I notice that at some pleace the
MapView is displayed properly, and at others - it's not - I can see
the my OverlayItem though. I'm 100% I use the same keys throughout my
app. Any suggestions as to where it's going wrong? 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: MapView on 1.6 very strange behaviour

2009-11-13 Thread mobilek...@googlemail.com
Problem resolved.

On 13 Nov, 10:36, mobilek...@googlemail.com
mobilek...@googlemail.com wrote:
 Hi, in my app I display MapViews in several activities. Now that I
 have updated my G1 device to 1.6, I notice that at some pleace the
 MapView is displayed properly, and at others - it's not - I can see
 the my OverlayItem though. I'm 100% I use the same keys throughout my
 app. Any suggestions as to where it's going wrong? 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] Toggle state button

2009-11-13 Thread Ronnie
Hi all,
I need a button that stays pressed until I press on it the second
time. Just like a button with the behaviour of a checkbox.
How to do this?

-- 
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: Toggle state button

2009-11-13 Thread Shrenik Vikam
use ToggleButton
http://developer.android.com/intl/fr/reference/android/widget/ToggleButton.html

On Nov 13, 3:48 pm, Ronnie ronnievie...@gmail.com wrote:
 Hi all,
 I need a button that stays pressed until I press on it the second
 time. Just like a button with the behaviour of a checkbox.
 How to do this?

-- 
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: My appwidget broken Donut when keyboard slide out/in

2009-11-13 Thread Jeff Sharkey
TextView.onSaveInstanceState() saves details about the TextView into a
Bundle that is passed between the two Launcher instances when
orientation is changed.  By default, those values are keyed off
View.getId().  This means if your id's collide with those of another
widget, your views may overwrite the state of someone else widget.

When restoring the state, that ClassCastException is triggered if it
tries restoring the incorrect type of state.  (For example, the state
from a ImageView applied to a TextView.)


-- 
Jeff Sharkey
jshar...@android.com

On Fri, Nov 6, 2009 at 10:55 PM, NewPa shiji...@gmail.com wrote:
 Hi Jeff,
    I add setting android:saveEnabled=false  for all the views in
 the widget, then widget works well. Thanks for your kindly help. But I
 don't know why this setting can fix the problem, could you please
 explain to me?

 On Nov 3, 6:01 am, Jeff Sharkey jshar...@android.com wrote:
 For the views that have ids, try setting android:saveEnabled=false
 so that they don't bundle up their state.

 j



 On Sat, Oct 31, 2009 at 8:00 PM, NewPa shiji...@gmail.com wrote:
  Hi String,
      I use static var, i will test it.
  Hi Jeff,
    Here is my layout file content. it seems will cause confliction
  with others:
  Thanks for your kindly help.

  ?xml version=1.0 encoding=UTF-8?
  LinearLayout android:id=@+id/LinearLayout01
         android:layout_width=72dp android:layout_height=72dp
         android:background=@drawable/bg android:orientation=vertical
         android:paddingTop=3dp
         xmlns:android=http://schemas.android.com/apk/res/android;

         TextView android:text=TextView01
                 android:layout_width=wrap_content android:textStyle=bold
                 android:layout_height=14sp android:id=@+id/TVWeeks
                 android:textSize=12sp
                 android:paddingLeft=8dp
                 android:textColor=#00
         /TextView

         ImageView android:id=@+id/ImageView01
                 android:layout_width=65sp
                 android:src=@drawable/line
                 android:paddingLeft=5dp
                 android:layout_height=2sp
         /ImageView
         TextView android:text=TextView01
         android:paddingLeft=8dp
         android:textSize=12sp
                 android:layout_width=wrap_content 
  android:textColor=#00
                 android:layout_height=14sp android:id=@+id/TVHeight
         /TextView

         TextView android:text=TextView01
         android:textSize=12sp
         android:paddingLeft=8dp
                 android:layout_width=wrap_content 
  android:textColor=#00
                 android:layout_height=16sp android:id=@+id/TVWeight
         /TextView

  ImageView android:id=@+id/ImageView02
                 android:layout_width=65sp
                 android:src=@drawable/line
                 android:paddingLeft=5dp
                 android:layout_height=2sp
         /ImageView
         TextView android:text=TextView01 android:textColor=#00
         android:textSize=12sp

         android:paddingLeft=8dp
                 android:layout_width=wrap_content
                 android:layout_height=16sp
                 android:id=@+id/TVMomWeiAdded
         /TextView

  /LinearLayout

  On Oct 31, 4:13 am, Jeff Sharkey jshar...@android.com wrote:
  There can be issues if the android:id's in your layouts conflict with
  other widgets.  This was fixed in Eclair by having Launcher create
  separate SparseArray jails for each widget to store their state
  into.  It's change 09ddc08b... to be specific.

  Could you post your layout file, or describe how you're allocating ids?

  j

  On Thu, Oct 29, 2009 at 12:25 AM, String sterling.ud...@googlemail.com 
  wrote:

   On Oct 29, 6:51 am, Eong eong.c...@gmail.com wrote:

   Yeap. My users reported this to me today. The OTA release has the same
   bug. They should push a fixed update right now.

   FWIW, I'm not convinced it's a bug in Donut. I'm not seeing the same
   issue in my widgets, and I do plenty in onUpdate. If you genuinely
   think it's a platform bug, produce a minimal test case and write it
   up, please.

   I'm assuming you're aware that keyboard open/close on an HTC Dream
   destroys and recreates the widget instance, so if (for example) you're
   referencing any static vars in your code, those will no longer exist.
   I'm also assuming that you're sending a complete set of views to the
   RemoteViews object every time, or you probably would have had trouble
   before now. But you might check those things. :^)

   String

  --
  Jeff Sharkey
  jshar...@android.com

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

 --
 

[android-developers] Re: Force locale for an application, bug in 2.0?

2009-11-13 Thread Kaj Bjurman
Thanks. I'll try that.


On 12 Nov, 20:31, monmonja almondmend...@gmail.com wrote:
 Add android:configChanges=locale to your activity nodes on the
 manifest file
 activity android:name=.Main android:configChanges=locale
 android:label=@string/app_name /

 Update the post 
 onhttp://almondmendoza.com/2009/01/28/force-localize-an-application-on-...
 :)

 monmonja

 On Nov 10, 3:43 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:



  I don't think that the process is crashing, at least not in the
  emulator since I can see all these logging messages:

  11-07 23:11:33.849: WARN/UsageStats(61): Something wrong here, didn't
  expect mypackagename to be resumed

  There are lots of them. It looks like it gets stuck in some kind of
  loop.

  Btw. It used to work, and I think it is great that it used to work.
  There are lots of people in the world who speak more than one
  language, where none of the languages are English, or they might
  understand English but have two other languages as preferred
  languages.

  Setting the OSlocaleto Swedish would make the application display
  the English resources if Swedish isn't available, but an application
  that I have installed might support e.g .Spanish, and that could be
  preferred over English.

  On 9 Nov, 22:15, Dianne Hackborn hack...@android.com wrote:

   No, changing the application'slocalelike this is not supported, and will
   not entirely work.  It shouldn't cause an activity to restart though...
   actually I can't imagine how this would cause an activity to restart, 
   since
   this method is much lower-level than the activity.  Maybe the process is
   crashing for some reason in this call?

   2009/11/9 Bahadır Yağan bahadir.ya...@gmail.com

Does anyone know if this method of changingLocalejust for one 
application
is a supported functionality?

--
Bahadır Yağan

On Mon, Nov 9, 2009 at 12:18 PM, ydario mc6...@mclink.it wrote:

Hi,

found the same problem here. Even this kind of code fails:

       Configuration config = 
context.getResources().getConfiguration();
       config.locale= newLocale;
        context.getResources().updateConfiguration(config,
                       context.getResources().getDisplayMetrics());

where newLocale is a properly createdlocaleinstance.

The strange thing is that I can get the above code to work when my
wizard library is running; the library code does not implement a new
activity, but simply uses the existing one. I compared code, but I
cannot find other real differences.

And I'm getting the resume problem also when I start an activity from
a non-GUI class, this worked from 1.1 to 1.6 :-(

Yuri

--
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.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] Potential bug in the implementation of AppWidgets

2009-11-13 Thread Jeff Sharkey
There is a known issue where the class loader won't know about
MapActivity from the uses-library tag in the case you described.
Search this group for more details and possible workarounds.

j


On Tue, Nov 10, 2009 at 3:12 PM, Himanshu its.himan...@gmail.com wrote:
 Hi

 We have discovered a potential bug in the implementation of
 AppWidgets. Here is a simple reproducer.

 Attached is the code for an application containing a TestActivity and
 a TestWidget. TestActivity extends MapActivity and TestWidget is a
 simple widget provider which updates a TextView every 2 seconds.
 Now if the TestActivity is launched with no instance of TestWidget
 running, it works just fine. But if the TestActivity is launched after
 placing the TestWidget on the home, it results in
 ClassNotFoundException. Here is what we get:

 I/ActivityManager(  584): Starting activity: Intent
 { action=android.intent.action.MAIN categories=
 {android.intent.category.LAUNCHER} flags=0x1020 comp=
 {com.example.test/com.example.test.TestActivity} }
 W/dalvikvm( 1441): Unable to resolve superclass of Lcom/example/test/
 TestActivity; (15)
 W/dalvikvm( 1441): Link of class 'Lcom/example/test/TestActivity;'
 failed
 D/AndroidRuntime( 1441): Shutting down VM
 W/dalvikvm( 1441): threadid=3: thread exiting with uncaught exception
 (group=0x4000fe70)
 E/AndroidRuntime( 1441): Uncaught handler: thread main exiting due to
 uncaught exception
 E/AndroidRuntime( 1441): java.lang.RuntimeException: Unable to
 instantiate activity ComponentInfo{com.example.test/
 com.example.test.TestActivity}: java.lang.ClassNotFoundException:
 com.example.test.TestActivity in loader
 dalvik.system.pathclassloa...@49a52110
 E/AndroidRuntime( 1441):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2194)
 E/AndroidRuntime( 1441):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2284)
 E/AndroidRuntime( 1441):     at android.app.ActivityThread.access$1800
 (ActivityThread.java:112)
 E/AndroidRuntime( 1441):     at android.app.ActivityThread
 $H.handleMessage(ActivityThread.java:1692)
 E/AndroidRuntime( 1441):     at android.os.Handler.dispatchMessage
 (Handler.java:99)
 E/AndroidRuntime( 1441):     at android.os.Looper.loop(Looper.java:
 123)
 E/AndroidRuntime( 1441):     at android.app.ActivityThread.main
 (ActivityThread.java:3948)
 E/AndroidRuntime( 1441):     at java.lang.reflect.Method.invokeNative
 (Native Method)
 E/AndroidRuntime( 1441):     at java.lang.reflect.Method.invoke
 (Method.java:521)
 E/AndroidRuntime( 1441):     at com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:782)
 E/AndroidRuntime( 1441):     at com.android.internal.os.ZygoteInit.main
 (ZygoteInit.java:540)
 E/AndroidRuntime( 1441):     at dalvik.system.NativeStart.main(Native
 Method)
 E/AndroidRuntime( 1441): Caused by: java.lang.ClassNotFoundException:
 com.example.test.TestActivity in loader
 dalvik.system.pathclassloa...@49a52110
 E/AndroidRuntime( 1441):     at dalvik.system.PathClassLoader.findClass
 (PathClassLoader.java:243)
 E/AndroidRuntime( 1441):     at java.lang.ClassLoader.loadClass
 (ClassLoader.java:573)
 E/AndroidRuntime( 1441):     at java.lang.ClassLoader.loadClass
 (ClassLoader.java:532)
 E/AndroidRuntime( 1441):     at android.app.Instrumentation.newActivity
 (Instrumentation.java:1097)
 E/AndroidRuntime( 1441):     at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2186)
 E/AndroidRuntime( 1441):     ... 11 more

 So it seems we have an inconsistency in the way the class loader works
 for the same apk.

 WORKS - Launch the application by itself, without invoking the Widget.
 DOES NOT WORK - Create a Widget on the Home screen and then launch the
 application from the launcher.

 The source code for this application (http://www.yousendit.com/
 download/TzY3ZGVhZy96NE4zZUE9PQ) has been attached. Hope someone from
 the Android team can shed light on this behavior.

 BTW, this error is seen on the 1.5r3 SDK. Not sure if this has been
 addressed in 1.6 and 2.0 SDKs..

 Thanks,
 Himanshu.

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




-- 
Jeff Sharkey
jshar...@android.com

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


Re: [android-developers] Re: Widget Path

2009-11-13 Thread Jeff Sharkey
If you're talking about creating RemoteViews for AppWidgets, you're
probably looking for Context.getPackageName().

j


On Wed, Nov 11, 2009 at 8:11 PM, GPU gopuraj...@gmail.com wrote:
 Is it possible to find out the view is from widget or from normal
 application ?

 On Nov 12, 8:34 am, GPU gopuraj...@gmail.com wrote:
 Hi ,
 Is widget views are  handled by some system services ?
 not getting the getContext().getApplicationContext().getPackageCodePath
 ()

 On Nov 11, 6:36 pm, GPU gopuraj...@gmail.com wrote:

  Hi ,

  From View object how to get the application code path for WIdgets

  By using the getContext().getApplicationContext().getPackageCodePath
  (); i am able to get the

  apk path

  Its giving the path like data/app/appname.apk
  but for widget  i am not getting the path

  Is widget views are  handled by some system services ?

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




-- 
Jeff Sharkey
jshar...@android.com

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


[android-developers] Re: Support of JKS Keystore in Android

2009-11-13 Thread swapnil kamble
I got it working. I used KeyTool UIU app. Using it, worked smoothly.

If anyone wants details how I did it, send me an email. I will document it
and post it on list.

Thanks,
Swapnil


On Fri, Nov 13, 2009 at 12:53 PM, swapnil kamble swap.kam...@gmail.comwrote:

 Hi,
 I am having Java SSL based server and I want to connect android SSL
 supported client to it. My keystore in Java is JKS, but android says no JKS
 implementation found. It supports BKS. Is there any way to have JKS support
 for android ? If not then how can use BKS in Java.

 I am trying using PKCS12, but documentation says using PKCS12 for
 trustanchors purpose is not supported.

 Does anybody has any suggestions about this issue ?

 --
 ...Swapnil

 || Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
 || Hare RamaHare Rama   Rama   RamaHare Hare ||




-- 
...Swapnil

|| Hare Krishna Hare Krishna Krishna Krishna Hare Hare ||
|| Hare RamaHare Rama   Rama   RamaHare Hare ||

-- 
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] Read Phone Contact in Vcard Format in Android 2.0

2009-11-13 Thread Jeff Sharkey
If you add an intent-filter for the ACTION_SEND Intent with the
text/x-vcard MIME-type, your app will appear in the Menu  Share list
when viewing a contact.

Then you can use ContentResolver.openAssetFileDescriptor() on the
getData() Uri provided through that Intent to open and read that
contact pre-formatted as a vCard.  :)

j


On Fri, Nov 6, 2009 at 4:12 AM, Safy sarfarazmad...@gmail.com wrote:
 Hi,

  How can I read all the contacts from Phone book and covert it in
 VCard format in Android OS 2.0




 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




-- 
Jeff Sharkey
jshar...@android.com

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


Re: [android-developers] How to get all contact's name phone number, email for 2.0

2009-11-13 Thread Jeff Sharkey
Could you paste the exact query() that is returning empty for you?

Since all data is now stored in a single table you should be able to
query on Data.CONTENT_URI and filter by Data.MIMETYPE to match the two
types you're looking for.

j


On Sun, Nov 8, 2009 at 7:52 PM, Henry hongpingli...@gmail.com wrote:
 For android 2.0, how to get a list of all contact's phone number and
 email?

 I have an app which works fine for 1.6.  Now it is broken for 2.0
 Droid. If you
 could point me an example to get all contact info, I really appreciate
 it.
 Previously, I used People.Contect_URI. now it is deprecated and return
 me nothing.
 I went through samples but failed to find how to do it in 2.0.

 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




-- 
Jeff Sharkey
jshar...@android.com

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


[android-developers] Interesting and urgent

2009-11-13 Thread IPEG Student
Hello

 I post a code by which i can call any one from contact list .
protected void onListItemClick(ListView l, View v, int position, long id){
super.onListItemClick(l, v, position, id);

Intent i = new Intent(Intent.ACTION_CALL);

Cursor c = (Cursor) myAdapter.getItem(position);
long phoneID = c.getLong(c.getColumnIndex(People.PRIMARY_PHONE_ID));

i.setData(ContentUris.withAppendedId(
android.provider.Contacts.Phones.CONTENT_URI, phoneID));

this.startActivity(i);
   }

I have added
uses-permission android:name=android.permission.READ_CONTACTS /
   uses-permission android:name=android.permission.WRITE_CONTACTS /

in mainfest.

*Now my question is how can i delete and edit a contact?
What changes will be needed here?

Please response me as soon as possible? Thanks in advance.

Suman Ganguly.
*

-- 
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] Group related code with new ContactsContract APIs?

2009-11-13 Thread Yao
Hi all,

I'm struggling with changed contacts APIs. Could anyone please give me an
example/clue how to achieve following functionality via code? Thanks a lot
in advance!!!

* Insert a group
* List all groups names
* List group members of a group



-- 
Best regards,
MTM
Contacts GroupU - Group your Android Contacts
http://contacts-groupu.appspot.com

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

[android-developers] Re: Android 2.0 and ADP (necessary to flash the ADP?)

2009-11-13 Thread WoodManEXP
How are we suppose to take advantage of the 2.0 upgrades if it is not
going to be available for the ADPs? Will it ever be available for the
ADPs?



On Nov 12, 2:24 pm, Disconnect dc.disconn...@gmail.com wrote:
 That is because android 2.0 is closed source.

 On Thu, Nov 12, 2009 at 9:33 AM,WoodManEXPwoodman...@gmail.com wrote:
  Apologies if this is a silly question, but is it necessary to flash an
  updated OS into the ADP1 to run SDK version 5 apps in the ADP?

  If so where are the images? I do not see them 
  athttp://developer.htc.com/adp.html
  like for the other system images.

  Any one 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: Listening to Beacons

2009-11-13 Thread yuvalkesten

Anything? Guys?

-- 
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: custom protocol handler...

2009-11-13 Thread skink


On Nov 12, 6:31 pm, sdphil phil.pellouch...@gmail.com wrote:
 tried that, didn't work -- same result.

 Web page not available
 The Web page at myprotocol:///blah=42 might be temporarily down or it
 may have moved permanently to a new web address.


did you try:
-
myprotocol:///?blah=42
-
?

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


[android-developers] Re: SDK 2.0 vs SDK 1.6

2009-11-13 Thread WoodManEXP
Our upgrade to 2.0 was mostly painless and switching between SDKs and
emulators works OK.

We are trying to figure out how best to test against 2.0, other than
the emulator, as there is no 2.0 image available for the ADP.

On Nov 2, 7:02 pm, dataStorm armags...@gmail.com wrote:
 Oh cool, so it is easy to switch between SDKs in Eclipse? and
 emulators i guess?

 On Nov 2, 9:50 am, JP joachim.pfeif...@gmail.com wrote:

  After the usual hand wringing to work through an SDK update and get
  comfortable there, I've re-released my apps bound against the2.0SDK,
  into a world of 1.5 and 1.6 field devices. After a week, I have heard
  no complaints, so backwards compatibility seems not much of an issue
  as far as I can see. It is important to note that calls to classes
  introduced with2.0are off limits, such as AccountManager. If you
  want to make sure you don't accidentally cross the line while immersed
  in coding, I'd recommend to use Eclipse and switch to 1.6 during
  development. This will conveniently flag any2.0specialties that you
  may find in the doc pages but overlook as having been introduced with
 2.0.

  On Nov 2, 5:39 am, dataStorm armags...@gmail.com wrote:

   Android2.0- Great news!

   Should all the new apps be developed with the2.0SDK? I've heard that
   there are problems with some of the Android Market apps running on the
   review versions of the DROID.

   Should I release 2 versions of my app for 1.6 and2.0phones?

   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] onClickListener for tabs in TabActivity

2009-11-13 Thread mardah
Hi

I have a tab activity with 4 tabs. How do I set a onClickListener for
the tabs?

The onTabChangeListener only works if I click on the inactive tabs. I
would like a callback even if I click the current/active tab.

Any suggestions?

BR
Martin

-- 
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: Toggle state button

2009-11-13 Thread Rob
Thanks..

But I'm not able to set my text. the default text(ON/OFF) is
displayed.
I have specified text attr in xml.
What is the correct way?

Rob

On Nov 13, 3:58 pm, Shrenik Vikam shre...@ruby-solutions.com wrote:
 use 
 ToggleButtonhttp://developer.android.com/intl/fr/reference/android/widget/ToggleB...

 On Nov 13, 3:48 pm, Ronnie ronnievie...@gmail.com wrote:

  Hi all,
  I need a button that stays pressed until I press on it the second
  time. Just like a button with the behaviour of a checkbox.
  How to do this?

-- 
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] comments on the 'Integrating Application with Intents blog

2009-11-13 Thread Business Talk
I would like to make a few comments on the 'Integrating Application
with Intents ' blog posted on the developers.android side.
Specifically, as to the definition of the reserve action and the data
specifications.

Neither of these specifications are generic and exhibit a very narrow
view of the reservation concept. The restaurant reservation concept
should be abstracted as it will have a multitude future
implementations in terms of activities and services by other vendors.

Action specification presented by the OpenView,
com.opentable.action.RESERVE, incorporates 'opentable' in its
namespace. Such common actions, as it is with the restaurant
reservation action, should avoid any proprietary names and strive to
define a standard action specification that can be used by other
activity implementations of the reservation functionality.  The
generic approach to these specifications should be a driving force for
all of us. An example of a generic action specification could be;
ACTION SPECIFICATION: action.RESERV, CATEGORY SPECIFICATION;
''service.food.restaurant.

Data specification; as defined by the OpenTable, also violates basic
URI format specification;  reserve://opentable.com/2947?partySize=3.
The first element of the URI specification should be a protocol
specification, 'reserve' is an  action name and not a protocol name.
The action should be defined in the argument part of the data
specification. The domain name should also be a generic name since we
do not want to target a specific implementer of the reservation
activity. For example; “http://android.com/size=3?
datetime=09-11-2009T12:30” .  In cases when we do intend to invoke
activities implemented by a specific party we should be using a
CATEGORY SPECIFICATION; manufacture.software.company.name.OPENTABLE
or such.

This message is not intended as a criticism of the proposed
specifications. It is a way to point out a generic nature of
abstractions implemented by many activities and the necessity of using
generic action, category and data specifications.

-- 
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] Growing pains for Android developers??

2009-11-13 Thread WoodManEXP
We have spent significant time  energy and $$ producing several
Android applications on the bet/hope it will be able to cut into the
iPhone market. Unfortunately little is happening.

- The apps sales are sluggish (the apps are hardly even being pirated
as far as we can tell).
- ADP cannot be updated to Android 2.0 yet Google has pushed hard for
development to be updated to 2.0 and the Droid phone is released. How
is one to test?
- The Google Market seems ineffective. Consider limitations like the
short app descriptions for instance. Google Market has a way to go to
catch up with the magic of iTunes.
- There is void of two-way communication between Google and the
Android developer base so rumor and conjecture and trial and error
prevail.
- Distribution license agreement is updated in a take it or leave it
fashion (with no meaningful explanation or attempt to point out
changes). What was that all about?

The list of this dings goes on. Understandably it is a huge
undertaking for Google/Verizon/HTC/Developers and the others to launch
Android and support it to go after the market Apple iPhone has proven.
On the plus side the SDK and ADP is obviously something Google has
invested heavily in and the basic Android system is, IMHO, superior to
iPhone system. So that's all good. Hopefully these developer
irritations are part of the growing pains and will quickly be
resolved.

-- 
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] Problem with HttpURLConnection

2009-11-13 Thread vendor.net
I am coding for Android, but since it uses java based language I guess
here is the right place to post. I think that this is either a bug in
java or I can`t manage to do something wright.

Here is the code snippet
URL url;
HttpURLConnection conn = null;
try {
url = new URL(http://mtel.bg/sms/send_sms.php;);
conn = (HttpURLConnection) url.openConnection();
}catch (MalformedURLException e1) {


}catch (IOException e) {


}


// Set the Browser Agent
conn.setInstanceFollowRedirects(false);
try {
Log.d(DEBUGTAG, Integer.toString( 
conn.getResponseCode() ));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}


StringBuilder buffer = new StringBuilder();

BufferedReader in = null;
InputStreamReader deni = null;
try{
Log.d(DEBUGTAG, Lenght: +conn.getContentLength());
deni = new InputStreamReader(conn.getInputStream());
in = new BufferedReader( deni );


String inputLine;
while((inputLine = in.readLine()) != null){
buffer.append(inputLine);
}

deni.close();
in.close();
conn.disconnect();

}catch (Exception e) {
Log.d(DEBUGTAG, exception);
}finally{


try {
if( deni != null)   deni.close();
if( in != null) in.close();
} catch (IOException e) {
Log.d(DEBUGTAG, exception);
}

conn.disconnect();
}
Log.d(DEBUGTAG, buffer.toString());

url = null;
conn = null;

try {
url = new URL(http://mtel.bg/sms/send_sms.php;);
conn = (HttpURLConnection) url.openConnection();
}catch (MalformedURLException e1) {


}catch (IOException e) {


}
conn.setUseCaches(true);
// Set the Browser Agent
conn.setInstanceFollowRedirects(true);
try {
Log.d(DEBUGTAG, Integer.toString( 
conn.getResponseCode() ));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

Log.d(DEBUGTAG, Lenght: +conn.getContentLength());
 buffer = new StringBuilder();


try{
//BufferedReader in;

in = new BufferedReader( new InputStreamReader
(conn.getInputStream()) );


String inputLine;
while((inputLine = in.readLine()) != null){
buffer.append(inputLine);
}

conn.disconnect();
in.close();
}catch (Exception e) {

}


Where is the problem? I am connecting to http://mtel.bg/sms/send_sms.php
with conn.setInstanceFollowRedirects(false); because I want to read
some cookies and this pages redirects to another with HTTP code 302,
but since setInstanceFollowRedirects is false, there is no redirection
and the page is blank. The ContentLength is 0, but I am trying to read
the page. I get no error here in = new BufferedReader( new
InputStreamReader(conn.getInputStream()) ); . Until now everything is
ok.

But here comes the problem. After I try to read the page again with
conn.setInstanceFollowRedirects(true); , I get ContentLenght -1 and no
output.

The strange thing is that if I call System.gc(); before opening the
second page, there is no problem, but I don`t want to call System.gc
();

Could you please tell me where the problem is? I am trying different
things to debug, but nothing :(

I posted the topic first at sun`s java forums -
http://forums.sun.com/thread.jspa?threadID=5415660tstart=0

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: eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
is this a typo or actual in Manifest?

action
android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

needs ending tag completion ie /

Fred Grott
Android Developer
http://mobilebytes.wordpress.com


On Nov 13, 2:50 am, Android Helebek bilge.tu...@gmail.com wrote:
 Hi All,
 I was using Netbeans to write my Android applications for a few weeks
 now (i was used to NB). Then I decided to give a chance to Eclipse,
 since its the official recommended (with tools existing) development
 environment. Now, that I moved my code to Eclipse, it keeps
 complaining in the manifest file. The error is shows is as following:

         receiver android:name=.MyPhoneListener
             intent-filter
                 action
 android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

             /intent-filter
         /receiver

 org.xx.xx.MyPhoneListener does not extend
 android.content.BroadcastReceiver

 And actually it is true that it does not extend BroadcastReceiver, but
 extends PhoneStateListener.

 class MyPhoneListener extends PhoneStateListener

 My question is, I was able to compile and run my exact same
 application from Netbeans and the application was running fine.

 So what might be the problem, is it an Eclipse bug or is this really a
 wrong implementation (even it works!)?

-- 
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] service multiple time ?

2009-11-13 Thread Shrenik Vikam
how to check that the service with some name is running once ?

also if i go out from my activity then my service is running 
when i come to my activity the onCreate method is called
so my service is created again in this case or running service will be
attached again ???

public class ServiceExampleActivity extends Activity {
Intent intent;
Button start,stop;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
intent = new Intent(this, ServiceExample.class);// 
service
example is service class
Log.i(-service--, Service  Created);
}
}

-- 
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 showing up on Droid Eris (running cupcake)??

2009-11-13 Thread Flying Coder

I have the min SDK version set to 3 in the manifest.  Shouldn't the
apps still be available in the Cupcake Market?  Anyone know why apps
are not showing up there?  Or better yet, how to make them reappear?

Thanks!

Steve

-- 
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] Growing pains for Android developers??

2009-11-13 Thread Abdul Mateen
There are alternatives like AndAppstore and SlideMe proves to be better than
Android Market. developers can make these markets well in order and properly
grow if they put their apps on them also.

On Fri, Nov 13, 2009 at 5:57 PM, WoodManEXP woodman...@gmail.com wrote:

 We have spent significant time  energy and $$ producing several
 Android applications on the bet/hope it will be able to cut into the
 iPhone market. Unfortunately little is happening.

 - The apps sales are sluggish (the apps are hardly even being pirated
 as far as we can tell).
 - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
 development to be updated to 2.0 and the Droid phone is released. How
 is one to test?
 - The Google Market seems ineffective. Consider limitations like the
 short app descriptions for instance. Google Market has a way to go to
 catch up with the magic of iTunes.
 - There is void of two-way communication between Google and the
 Android developer base so rumor and conjecture and trial and error
 prevail.
 - Distribution license agreement is updated in a take it or leave it
 fashion (with no meaningful explanation or attempt to point out
 changes). What was that all about?

 The list of this dings goes on. Understandably it is a huge
 undertaking for Google/Verizon/HTC/Developers and the others to launch
 Android and support it to go after the market Apple iPhone has proven.
 On the plus side the SDK and ADP is obviously something Google has
 invested heavily in and the basic Android system is, IMHO, superior to
 iPhone system. So that's all good. Hopefully these developer
 irritations are part of the growing pains and will quickly be
 resolved.

 --
 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: Growing pains for Android developers??

2009-11-13 Thread Kaj Bjurman
You can test Android 2.0 applications in the emulator. I've been able
to correct a bug that I had on 2.0 even though I don't have a phone
that supports 2.0.



On 13 Nov, 13:57, WoodManEXP woodman...@gmail.com wrote:
 We have spent significant time  energy and $$ producing several
 Android applications on the bet/hope it will be able to cut into the
 iPhone market. Unfortunately little is happening.

 - The apps sales are sluggish (the apps are hardly even being pirated
 as far as we can tell).
 - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
 development to be updated to 2.0 and the Droid phone is released. How
 is one to test?
 - The Google Market seems ineffective. Consider limitations like the
 short app descriptions for instance. Google Market has a way to go to
 catch up with the magic of iTunes.
 - There is void of two-way communication between Google and the
 Android developer base so rumor and conjecture and trial and error
 prevail.
 - Distribution license agreement is updated in a take it or leave it
 fashion (with no meaningful explanation or attempt to point out
 changes). What was that all about?

 The list of this dings goes on. Understandably it is a huge
 undertaking for Google/Verizon/HTC/Developers and the others to launch
 Android and support it to go after the market Apple iPhone has proven.
 On the plus side the SDK and ADP is obviously something Google has
 invested heavily in and the basic Android system is, IMHO, superior to
 iPhone system. So that's all good. Hopefully these developer
 irritations are part of the growing pains and will quickly be
 resolved.

-- 
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: Growing pains for Android developers??

2009-11-13 Thread WoodManEXP
Yes we are on AndAppStore too. They seem like good people and are very
responsive!

On Nov 13, 8:31 am, Abdul Mateen abmat...@gmail.com wrote:
 There are alternatives like AndAppstore and SlideMe proves to be better than
 Android Market. developers can make these markets well in order and properly
 grow if they put their apps on them also.

 On Fri, Nov 13, 2009 at 5:57 PM, WoodManEXP woodman...@gmail.com wrote:
  We have spent significant time  energy and $$ producing several
  Android applications on the bet/hope it will be able to cut into the
  iPhone market. Unfortunately little is happening.

  - The apps sales are sluggish (the apps are hardly even being pirated
  as far as we can tell).
  - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
  development to be updated to 2.0 and the Droid phone is released. How
  is one to test?
  - The Google Market seems ineffective. Consider limitations like the
  short app descriptions for instance. Google Market has a way to go to
  catch up with the magic of iTunes.
  - There is void of two-way communication between Google and the
  Android developer base so rumor and conjecture and trial and error
  prevail.
  - Distribution license agreement is updated in a take it or leave it
  fashion (with no meaningful explanation or attempt to point out
  changes). What was that all about?

  The list of this dings goes on. Understandably it is a huge
  undertaking for Google/Verizon/HTC/Developers and the others to launch
  Android and support it to go after the market Apple iPhone has proven.
  On the plus side the SDK and ADP is obviously something Google has
  invested heavily in and the basic Android system is, IMHO, superior to
  iPhone system. So that's all good. Hopefully these developer
  irritations are part of the growing pains and will quickly be
  resolved.

  --
  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] Preference change notifying the main Activity

2009-11-13 Thread Kieran
Hi,
I think I've missed something in how Android is supposed to work!
I have the main Activity with a menu option that opens the preferences
screen. What I need is a way for any changes that were made to be
communicated back to the main Activity as soon as the preference is
activated. At the moment the only way I could get it working is by
using the intent data that gets sent back when the prefs activity
closes but this isn't really enough. The reason why it needs to be
instantaneous is that one of the preferences is a 'Clear cache'
button, so I would like the data to be deleted when the user requests
it and no later!

-- 
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: Growing pains for Android developers??

2009-11-13 Thread WoodManEXP
Yes that true and we are doing that. But Google is clear that apps
must be tested outside the emulator.

On Nov 13, 8:42 am, Kaj Bjurman kaj.bjur...@gmail.com wrote:
 You can test Android 2.0 applications in the emulator. I've been able
 to correct a bug that I had on 2.0 even though I don't have a phone
 that supports 2.0.

 On 13 Nov, 13:57, WoodManEXP woodman...@gmail.com wrote:

  We have spent significant time  energy and $$ producing several
  Android applications on the bet/hope it will be able to cut into the
  iPhone market. Unfortunately little is happening.

  - The apps sales are sluggish (the apps are hardly even being pirated
  as far as we can tell).
  - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
  development to be updated to 2.0 and the Droid phone is released. How
  is one to test?
  - The Google Market seems ineffective. Consider limitations like the
  short app descriptions for instance. Google Market has a way to go to
  catch up with the magic of iTunes.
  - There is void of two-way communication between Google and the
  Android developer base so rumor and conjecture and trial and error
  prevail.
  - Distribution license agreement is updated in a take it or leave it
  fashion (with no meaningful explanation or attempt to point out
  changes). What was that all about?

  The list of this dings goes on. Understandably it is a huge
  undertaking for Google/Verizon/HTC/Developers and the others to launch
  Android and support it to go after the market Apple iPhone has proven.
  On the plus side the SDK and ADP is obviously something Google has
  invested heavily in and the basic Android system is, IMHO, superior to
  iPhone system. So that's all good. Hopefully these developer
  irritations are part of the growing pains and will quickly be
  resolved.

-- 
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: Growing pains for Android developers??

2009-11-13 Thread Kieran
I'm not sure about anyone else but I just could not work out how to
buy an app from SlideMe. It had steps that it wanted you to do from my
desktop which isn't a big help when I'm on the bus! I was hoping they
would make it big as paid apps aren't available on Android Market for
my phone carrier.

My app has a small bug on QVGA devices (HTC Tattoo) but apart from
that everything is OK. I've programmed for Windows Mobile before and I
think Microsoft's new resolutions were well though out compared to
Google's. If you take the original res (HVGA for Android and QVGA for
WM) you'll see that Microsoft never made a res smaller than the res
everyone was used to. I have no ides how they came up with 854 x 480.

I'm also not happy about having to make a 2D icon when I had a nice 3D
one that met the guidelines! :)

On Nov 13, 11:42 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote:
 You can test Android 2.0 applications in the emulator. I've been able
 to correct a bug that I had on 2.0 even though I don't have a phone
 that supports 2.0.

 On 13 Nov, 13:57, WoodManEXP woodman...@gmail.com wrote:

  We have spent significant time  energy and $$ producing several
  Android applications on the bet/hope it will be able to cut into the
  iPhone market. Unfortunately little is happening.

  - The apps sales are sluggish (the apps are hardly even being pirated
  as far as we can tell).
  - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
  development to be updated to 2.0 and the Droid phone is released. How
  is one to test?
  - The Google Market seems ineffective. Consider limitations like the
  short app descriptions for instance. Google Market has a way to go to
  catch up with the magic of iTunes.
  - There is void of two-way communication between Google and the
  Android developer base so rumor and conjecture and trial and error
  prevail.
  - Distribution license agreement is updated in a take it or leave it
  fashion (with no meaningful explanation or attempt to point out
  changes). What was that all about?

  The list of this dings goes on. Understandably it is a huge
  undertaking for Google/Verizon/HTC/Developers and the others to launch
  Android and support it to go after the market Apple iPhone has proven.
  On the plus side the SDK and ADP is obviously something Google has
  invested heavily in and the basic Android system is, IMHO, superior to
  iPhone system. So that's all good. Hopefully these developer
  irritations are part of the growing pains and will quickly be
  resolved.

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


Re: 答复: [android-developers] how to stop Broadca stReceiver after some point

2009-11-13 Thread Alok Kulkarni
I dont know exactly but in general, if you make broadcast receiver as public
static then you can access it from any package.
Thanks,
Alok.

2009/11/13 Shrenik Vikam shre...@ruby-solutions.com

 i have BroadcastReceiver in another package(application)
 so how can i unregister it from there

 On Nov 13, 1:31 pm, zhanglei(张雷) zhang...@dopod.com wrote:
  unregisterReceiver(BroadcastReceiver);
 
  -邮件原件-
  发件人: Shrenik Vikam [mailto:shre...@ruby-solutions.com]
  发送时间: 2009年11月13日 16:29
  收件人: Android Developers
  主题: [android-developers] how to stop BroadcastReceiver after some point
 
  i want to stop BroadcastReceiver  after some time / after some work
 
  how to stop BroadcastReceiver after some point from  service/
  activity  ?
 
  please reply
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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] how to stop Broadca stReceiver after some point

2009-11-13 Thread Alok Kulkarni
By static i mean creating it  by specifying in the manifest file.

2009/11/13 Alok Kulkarni kulsu...@gmail.com

 I dont know exactly but in general, if you make broadcast receiver as
 public static then you can access it from any package.
 Thanks,
 Alok.

 2009/11/13 Shrenik Vikam shre...@ruby-solutions.com

 i have BroadcastReceiver in another package(application)
 so how can i unregister it from there

 On Nov 13, 1:31 pm, zhanglei(张雷) zhang...@dopod.com wrote:
  unregisterReceiver(BroadcastReceiver);
 
  -邮件原件-
  发件人: Shrenik Vikam [mailto:shre...@ruby-solutions.com]
  发送时间: 2009年11月13日 16:29
  收件人: Android Developers
  主题: [android-developers] how to stop BroadcastReceiver after some point
 
  i want to stop BroadcastReceiver  after some time / after some work
 
  how to stop BroadcastReceiver after some point from  service/
  activity  ?
 
  please reply
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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] ADP2 Coming

2009-11-13 Thread Fred Grott(Android Expert, http://mobilebytes.wordpress.com)
ADP2 is coming Brightstar just announced it:

http://www.rcrnewsdirectory.com/pressrelease.aspx?id=325512

I have not seen Google mentions of it yet..

Fred Grott
Android Developer
http://mobilebytes.wordpress.com

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


[android-developers] Re: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread Anton Pirker
I have more information:

The exception is thrown on my htc magic with android 1.5
But on a htc tattoo with android 1.6 everything works fine.

The code is compiled with Android SDK 1.5r2


Maybe there is a problem with the sdk version? I need to get it to
work on android 1.5, so i thought the best thing would be to compile
it with sdk 1.5, right?

Any ideas?

regards,
Anton




On Nov 13, 10:41 am, Anton Pirker an...@ignaz.at wrote:
 Hi fellow Android guys and girls!

 I have following problem.
 In my Activity I want to show in onResume() and ProgressDialog.

 I do this call (where Constants.DIALOG_GET_POSITION is just an integer
 value):
     showDialog(Constants.DIALOG_GET_POSITION);

 in my onCreateDialog() callback (in the same Activity) I have following
 code:

     protected Dialog onCreateDialog(int id) {
         Dialog dialog;
         AlertDialog.Builder builder = null;

         switch(id) {              
             case Constants.DIALOG_GET_POSITION:
                 dialog = ProgressDialog.show(this, , Trying to detect
 your location. Please wait..., true);
                 break;

             default:
                 dialog = null;
         }
         return dialog;      
     }

 When I run my activity i get an AndroidRuntimeException:
 requestFeature() must be called before adding content
 This error is on the line where I call showDialog();

 Here the Stacktrace:

 11-13 10:25:02.195: ERROR/AndroidRuntime(3266): Uncaught handler: thread
 main exiting due to uncaught exception
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):
 java.lang.RuntimeException: Unable to resume activity
 {at.ignaz.UrbanGolf/at.ignaz.UrbanGolf.Activity.SetupActivity}:
 android.util.AndroidRuntimeException: requestFeature() must be called
 before adding content
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.performResumeActivity(ActivityThread.java:2632)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2647)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2287)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.access$1800(ActivityThread.java:112)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.os.Handler.dispatchMessage(Handler.java:99)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.os.Looper.loop(Looper.java:123)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 dalvik.system.NativeStart.main(Native Method)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266): Caused by:
 android.util.AndroidRuntimeException: requestFeature() must be called
 before adding content
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:286)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 com.android.internal.app.AlertController.installContent(AlertController.java:198)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.AlertDialog.onCreate(AlertDialog.java:251)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ProgressDialog.onCreate(ProgressDialog.java:176)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.Dialog.dispatchOnCreate(Dialog.java:287)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.Activity.showDialog(Activity.java:2402)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 at.ignaz.UrbanGolf.Activity.SetupActivity.onResume(SetupActivity.java:247)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1229)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.Activity.performResume(Activity.java:3530)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     at
 android.app.ActivityThread.performResumeActivity(ActivityThread.java:2619)
 11-13 10:25:02.345: ERROR/AndroidRuntime(3266):     ... 12 more

 What am I doing wrong? I could swear that this code was working already.
 Any hints or tips?

 Thanks in advance,AntonPirker

 --
 DI(FH)AntonPirker

 --
 cross platform mobile software
 

[android-developers] Screen Sizes with 1.5, 1.6 and 2.0

2009-11-13 Thread Evan Ruff
Hey guys,

I've got a quick question about screen size support. Currently, I've
got an application that is rockin' along just fine on 1.5 and 1.6.
Today the client called and says they want to run on Droid. While I've
downloaded the 2.0 SDK, I'm a little wary of compiling against it.
Will it break 1.5 and 1.6 compatilbility? How will the medium phones
(G1, MyTouch) know to use those layouts?

I imagine this is a pretty rudimentary question so if it's in a doc
somewhere, can someone point me in the right direction?

Thanks!

E

-- 
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: ADP2 Coming

2009-11-13 Thread zero
hmm, basically a magic with new rom ?


On Nov 13, 3:36 pm, Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)
fred.gr...@gmail.com wrote:
 ADP2 is coming Brightstar just announced it:

 http://www.rcrnewsdirectory.com/pressrelease.aspx?id=325512

 I have not seen Google mentions of it yet..

 Fred Grott
 Android Developerhttp://mobilebytes.wordpress.com

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


[android-developers] Where is the DDMS allocation tracker

2009-11-13 Thread olivier
Dear,

I can't find the DDms allocation tracker in the DDMS perspective in
eclipse.

I search the view doing Window  show view

I look to the android view but i have no allocation tracker view
there.
I use search view tool and I can't find any...

Where is this View ?
(If it's obvious, i am sorry because i reallu can't find it)

Regards,

Olivier

-- 
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: Emulator Problem: No emulated GSM ubuntu 9.04 x64

2009-11-13 Thread Steve
Workaround Found!

Ok, admittedly this is a bit of a hack, but it DOES work and I've
tried it on a few different setups now.  When starting the emulator
add the following option: -bootchart 100 (no quotes).  My current
theory is that there is a race condition on running the emulated gsm
stack and booting the emulator.  My machine is quite fast (quad core,
4GB ram), so I'm thinking the emulator is coming up before the gsm is
ready.  Adding the bootchart option might be slowing down the emulator
enough that the gsm comes up first.

To recap:
$ emulator -avd myavd -bootchart 100

Now your emulator will connect to the Android GSM network instead of
just giving you the No Service message.

On Oct 26, 2:50 pm, Steve number5al...@gmail.com wrote:
 It appears as though the emulated GSM portion of the android emulator
 is not working on my system.  After scouring the web I have yet to
 find anyone with information about what might be causing the problem.
 When I fire up my avd (any avd), it says No Service  If I go to
 Settings - Mobile Networks - Network Operators, I get an error
 message: Error while searching for networks

 I am running Ubuntu 9.04 x64 desktop edition.  I have SDK 1.6r1
 downloaded.

 I'm hoping this is a simple thing to fix.  Any help is greatly
 appreciated

-- 
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] ADP2 Coming

2009-11-13 Thread Cédric Berger
On Fri, Nov 13, 2009 at 15:36, Fred Grott(Android Expert,
http://mobilebytes.wordpress.com) fred.gr...@gmail.com wrote:
 ADP2 is coming Brightstar just announced it:

 http://www.rcrnewsdirectory.com/pressrelease.aspx?id=325512

So given the description this may well be a HTC Magic (Ion) ?

-- 
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: App name/icon problems on Hero after reboot

2009-11-13 Thread Justin Giles
Just wanted to update with my current experiences:

A week or so ago, I did a factory reset on my Hero.  I went through the
initial settings you have to do and then immediately turned off the Hero
Sense UI and chose to use the stock Android UI by default.  Well, yesterday,
after I had updated a few apps (pandora, handcent, where), I decided to do a
test and reset the phone, thinking to myself that I was confident that
nothing would go wrong.  Well, handcent and where had broken icons and upon
running pandora, I noticed that the version number that I updated to didn't
match the version number that it stated while it was running.

So, there is something amiss here.  There were reports that doing a reset
and switching UIs would solve the problem.  I have just found evidence that
it doesn't.  Is this still a HTC issue?  Not sure at this point.  Are there
underlying HTC things going on in the background to handle package
management  display even if you aren't using the Sense UI?  Maybe, maybe
not.  But, since this isn't happening on non-Hero devices, it makes me think
HTC is doing something in the background that is causing some applications
to cause problems.

Thoughts?

Justin

On Tue, Nov 10, 2009 at 8:46 PM, westmeadboy westmead...@yahoo.co.ukwrote:

 I just released an update to my app and one HTC Hero (UK, unbranded,
 latest ROM downloaded from HTC site: HTC Hero_2.73.405.5) has reported
 seeing a random app icon and app name in the app list. The icon and
 name appear to be chosen at random from the app's resources. The user
 has never used his Hero to test/debug my app. He simply performed an
 update through the Market (from the previous version which worked
 without any problems).

 Like some others, I only ever used resources for the application
 label.

 However, the only change I made for this release was specifying a
 name attribute in the application element. This is the name of the
 Application class. I've checked to make sure this application class is
 actually being used. Note, the application name is specified as
 .MyApplication. Maybe it should refer to a resource instead!?

 I'm considering changing back to the old manifest (i.e. not specifying
 name attribute). Unfortunately, I don't have enough users to know
 whether my changes are successful :(

 --
 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: ADP2 Coming

2009-11-13 Thread Cédric Berger
On Fri, Nov 13, 2009 at 15:49, zero zeroo...@googlemail.com wrote:
 hmm, basically a magic with new rom ?


The latest ROM as available now for the Ion . Looks like it is just
the Ion available for all developers

http://www.frandroid.com/6843/adp2-le-nouveau-telephone-de-developpement/

-- 
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] Low Memory: No more background processes.

2009-11-13 Thread dadical
Can someone describe the semantics behind this situation?  What I'm
seeing is that obviously my application process that has a running
background service getting killed off, but in some scenarios it never
seems to get restarted, or at least takes much longer to restart than
I would have expected.  Should I expect Android to restart the
services when resources free up?  Is this simply an example of the O/S
thrashing in an attempt to process scheduled activity when memory is
very very low?

The scenario that I'm using to reproduce this right now is loading
WebKit with a complex page on a G1 with low memory, watching my
service (Screebl) die, and then exiting WebKit hoping that my service
will start again, but it never seems to start.

I've even started up a task manager and killed off everything that
isn't necessary to free up memory.  Eventually, some threshold is
passed, and my service gets restarted.  How does Android choose the
precedence of which services to start as resources are freed?  Can I
increase the priority of my process?

Here's the sequence of what I think are relevant entries in LogCat:
Entries that I'm watching have to do with Screebl and are highlighted
by spacing.

11-13 09:54:09.403: INFO/ActivityManager(76): Displayed activity
com.android.browser/.BrowserActivity: 3516 ms (total 3516 ms)
11-13 09:54:14.633: DEBUG/dalvikvm(12559): GC freed 3156 objects /
238016 bytes in 194ms
11-13 09:54:16.493: DEBUG/skia(12541): purging 6K from font cache [1
entries]
11-13 09:54:18.403: DEBUG/dalvikvm(12541): GC freed 672 objects /
70208 bytes in 1856ms
11-13 09:54:19.013: WARN/InputManagerService(76): Starting input on
non-focused client com.android.internal.view.IInputMethodClient$Stub
$pr...@43242248 (uid=10003 pid=12559)

11-13 09:54:21.843: INFO/ActivityManager(76): Process
com.keyes.screebl.lite (pid 12529) has died.

11-13 09:54:21.973: DEBUG/Sensors(76): sensors=, real=
11-13 09:54:21.993: WARN/ActivityManager(76): Scheduling restart of
crashed service com.keyes.screebl.lite/.ScreeblService in 5000ms
11-13 09:54:22.073: DEBUG/skia(12546): purging 6K from font cache [1
entries]

11-13 09:54:22.133: INFO/ActivityManager(76): Low Memory: No more
background processes.

11-13 09:54:22.183: DEBUG/AKMD(56): Compass CLOSE
11-13 09:54:22.323: DEBUG/dalvikvm(12546): GC freed 902 objects /
88072 bytes in 245ms

11-13 09:54:27.093: INFO/ActivityManager(76): Start proc
com.keyes.screebl.lite for service
com.keyes.screebl.lite/.ScreeblService: pid=12578 uid=10004 gids=
{3003, 1015}

11-13 09:54:27.424: DEBUG/skia(4605): purging 41K from font cache [5
entries]
11-13 09:54:27.863: DEBUG/dalvikvm(4605): GC freed 2992 objects /
160848 bytes in 435ms
11-13 09:54:27.923: INFO/dalvikvm(12578): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=38)
11-13 09:54:28.003: INFO/dalvikvm(12578): Debugger thread not active,
ignoring DDM send (t=0x41504e4d l=48)
11-13 09:54:29.343: DEBUG/SensorManager(12578): found sensor: AK8976A
3-axis Accelerometer, handle=0
11-13 09:54:29.343: DEBUG/SensorManager(12578): found sensor: AK8976A
3-axis Magnetic field sensor, handle=1
11-13 09:54:29.343: DEBUG/SensorManager(12578): found sensor: AK8976A
Orientation sensor, handle=2
11-13 09:54:29.343: DEBUG/SensorManager(12578): found sensor: AK8976A
Temperature sensor, handle=3
11-13 09:54:29.373: DEBUG/AKMD(56): Compass OPEN
11-13 09:54:29.393: DEBUG/Sensors(76): sensors=0004, real=0004
11-13 09:54:32.223: DEBUG/skia(76): purging 103K from font cache [13
entries]
11-13 09:54:32.603: DEBUG/dalvikvm(76): GC freed 15676 objects /
870880 bytes in 382ms
11-13 09:54:32.893: DEBUG/SearchDialog(76): launching Intent
{ act=android.intent.action.VIEW dat=http://www.android.com/market/
flg=0x1000 cmp=com.android.browser/.BrowserActivity (has extras) }
11-13 09:54:32.903: INFO/SearchDialog(76): Starting (as ourselves)
http://www.android.com/market/#Intent;action=android.intent.action.VIEW;launchFlags=0x1000;component=com.android.browser/.BrowserActivity;S.user_query=an;S.query=http%3A%2F%2Fwww.android.com%2Fmarket%2F;end
11-13 09:54:32.933: INFO/ActivityManager(76): Starting activity:
Intent { act=android.intent.action.VIEW dat=http://www.android.com/
market/ flg=0x1000 cmp=com.android.browser/.BrowserActivity (has
extras) }
11-13 09:54:33.163: WARN/IInputConnectionWrapper(76): showStatusIcon
on inactive InputConnection
11-13 09:54:33.303: DEBUG/dalvikvm(288): GC freed 524 objects / 36688
bytes in 114ms
11-13 09:54:34.673: DEBUG/dalvikvm(76): threadid=13: bogus mon 1+00;
adjusting
11-13 09:54:34.953: DEBUG/dalvikvm(12559): GC freed 5804 objects /
466352 bytes in 125ms
11-13 09:54:37.893: DEBUG/dalvikvm(12559): GC freed 5137 objects /
248968 bytes in 159ms
11-13 09:54:38.453: DEBUG/dalvikvm(4639): GC freed 15 objects / 464
bytes in 264ms
11-13 09:54:38.993: DEBUG/dalvikvm(12559): GC freed 4727 objects /
218336 bytes in 129ms
11-13 09:54:39.973: DEBUG/dalvikvm(12559): GC freed 4038 objects /
198104 bytes 

[android-developers] Re: Android keyevent keycodes and scancodes

2009-11-13 Thread Android_n00b
Hi Yi,

I am looking for the KeycodeLabels.h files in /android/frameworks/base/
libs/ui because that is where it is supposed to be, but I cannot find
it. I see the KeyLayoutMap.h file but do not see the KeycodeLabels
file. I am looking at online versions of the source code file
structure and do not see it there either. What am I missing?

On Nov 11, 2:46 pm, Yi Sun beyo...@gmail.com wrote:
 The EventHub.cpp calls the KeyLayoutMap.cpp to cover the real scan code to
 the Android internal keycode mapping. The internal key code mapping can be
 found in KeycodeLabels.h and KeyEvent.java.



 On Wed, Nov 11, 2009 at 11:34 AM, Android_n00b nikhil...@gmail.com wrote:
  I would really appreciate a reply from someone at Google if nobody can
  answer this. I really need to know this to move ahead with my
  project.
  Thanks.

  On Nov 11, 2:12 pm, Android_n00b nikhil...@gmail.com wrote:
   Hi
   I am writing a program which captures the keys pressed by user in
   android and displays it in Ubuntu. According to what I read, Android's
   input event device is structured around an interrupt or polling
   routine that captures the device-specific scancode and converts it to
   a standard form acceptable to Linux (as defined in input.h) before
   passing it to the kernel with input_event(). There are the steps which
   describe the translation from keyboard input to application action:
   1. Window manager reads key event from Linux keyboard driver.
   2. Window manager maps scancode to keycode.
   3. Window manager sends both the scancode and the keycode to the
   application.

   Now in my application I have an EditText which returns the keycode of
   any key which is pressed. So basically this is what I have:
                           public boolean onKey(View v, int keyCode,
  KeyEvent event) {
                                   // TODO Auto-generated method stub
                                   String a =;a+=keyCode;
                                   txt.setText(a);

                                   return false;
                           }

   Now I get this keycode value but it does not correspond to the
   scancode value. For example, the keycode value for 'A' is 29 but the
   scancode is 30. There is no correlation I can see between the input.h
   scancodes and these keycodes either. My question is, I want to know
   how step 2 (the mapping) above takes place. My applications aim is to
   echo whatever I type on my android keyboard on my Ubuntu desktop (I
   can connect between the 2 without a problem, so you don't have to
   worry about that). Any help would be appreciated, as I have looked
   online for quite a bit.

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

 --
 Android-x86http://www.android-x86.org

-- 
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] Alternative market for paid apps

2009-11-13 Thread Andrei
Guys

If you have paid app people can get it for free here
It took me 2 days to remove mine

http://search.4shared.com/network/search.jsp?sortType=1sortOrder=1sortmode=1searchName=.apksearchmode=2searchName=.apksearchDescription=searchExtention=sizeCriteria=atleastsizevalue=10start=0

-- 
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: Menu Items.

2009-11-13 Thread TreKing
And example for what? You haven't clarified how you're using your layouts or
what you're actually trying to do.
Have you read the section on
menushttp://developer.android.com/guide/topics/ui/menus.html#options-menuin
the developer's guide? It explains creating the menu and modifying it
with onPrepareOptionsMenu().

Also, please reply to the group so anyone else that can help can chime in
and anyone with a similar question can benefit from any answers posted.

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


On Thu, Nov 12, 2009 at 11:18 PM, Sasikumar.S sasikumar.it1...@gmail.comwrote:

 Thanks for ur reply.

 can u pls give one ex for this?

 On Nov 12, 6:59 pm, TreKing treking...@gmail.com wrote:
  The menu is generally associated with an activity, not any specific
 layout.
  Do you have a different activity for each layout? If so then just add the
  menu to the one activity that's using the layout you care about.
 Otherwise,
  if you have just one activity that's swapping layouts, override
  onPrepareOptionsMenu(I forget if that's the exact name) to modify the
 menu
  based on which layout you're currently using.
 
  On Wed, Nov 11, 2009 at 10:43 PM, Sasikumar.S 
 sasikumar.it1...@gmail.comwrote:
 
 
 
   Hi,
 
   In my application I'm using 3 layouts and one java file.
   I'm creating a menu.
   I want to show menu for only one particular layout.
   The other layout should not get the menu.
   what should i do for that?
   can any one know about this?
 
   Thanks in advance :)
 
   --
   Thanks  Regards
   Sasikumar.S
 
   --
   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
 
  --
  TreKing - Chicago transit tracking app for Android-powered deviceshttp://
 sites.google.com/site/rezmobileapps/treking

-- 
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] plz help me ... how to implement camera intent correctly?

2009-11-13 Thread wahib.t...@gmail.com
hi !! I am working to find out a solution to use Intent to call camera
app and then call my custom function in overridden onActivityResult().
This code actually displays camera preview and return like i want it
to but no actual snap is taken by it. There is no new image added to
the gallery. :S


   Button takePictureButton = (Button) this.findViewById
(R.id.camera);
   takePictureButton.setOnClickListener(new View.OnClickListener
() {
   public void onClick(View v) {


   ContentValues values = new ContentValues();
   values.put(Media.TITLE, IMAGE);
   values.put(Media.DISPLAY_NAME, Image Captured by Camera);
   Uri uri =
   getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);
   //Intent i = new Intent(android.media.action.action);
   Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
   i.putExtra(output, uri);
   startActivityForResult(i, ACTIVITY_TAKE_PICTURE_WITH_INTENT);

  This is my onActivityResult() code

 @Override
   protected void onActivityResult(int requestCode, int resultCode,
Intent data)
   {
   //super.onActivityResult(requestCode, resultCode, data);
   if (requestCode == ACTIVITY_TAKE_PICTURE_WITH_INTENT) {
   if (resultCode == RESULT_OK) {
  ///here i will call my function
   Toast.makeText(temp1.this, done !!,
Toast.LENGTH_SHORT).show();
   }
}

   }


Plz help me out what i am missing. I just used this code from a post
but being a newbie i have limited know how. so kindly explain with
suggestion.

Regards,
wahib

-- 
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] cannot scrollTo() a webview before rending it

2009-11-13 Thread ber4444
Hi, I have a map and some icons drawn on a webview that I redraw on
each GPS update. Even though only the icon that is representing my GPS
position should be redrawn, it still works without flickering. Now the
problem is that when the page has been scrolled, and I try to restore
its position after a refresh, it does flicker. Here is how I restore
the position:
@Override public void onPageFinished (WebView view, String url) {
if (scrollPercent != 0 || hScrollPercent != 0)
_view.scrollTo(hScrollPercent, scrollPercent);
super.onPageFinished(view, url);
}

Is there a function to call scrollTo() without a flicker. Or to do a
partial refresh?

-- 
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: eclipse problem in AndroidManifest.xml file

2009-11-13 Thread Android Helebek
I am sorry it is just a typo. It actually is fine in the code.
Ok, I wanna extend the question a little bit.
Assuming my code is working fine (possibly forced, from Netbeans) and
assuming receiver requires a BroadcastReceiver,
is PhoneStateListener a BroadcastReceiver?
I check the sdk and didn't see anything that implies an inheritance
though.

Thank you.

On Nov 13, 8:13 am, Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)
fred.gr...@gmail.com wrote:
 is this a typo or actual in Manifest?

 action
 android:name=android.telephony.TelephonyManager.ACTION_PHONE_STATE_CHANGED/

 needs ending tag completion ie /

 Fred Grott
 Android Developerhttp://mobilebytes.wordpress.com


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


[android-developers] Re: android.provider.Settings.System.FONT_SCALE -- Does this do anything (Android 2.0)?

2009-11-13 Thread Colin Brash
Thank you, that makes a lot more sense!

Colin

-- 
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: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread TreKing
I've seen this error when trying to set the view on a Dialog after it's been
created. Setting the view as part of the construction process using the
Builder makes it go away.

Maybe try creating the ProgressDialog with the constructor first (new
ProgressDialog(title, msg, ...), then using the show() method with no
arguments?

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


On Fri, Nov 13, 2009 at 8:36 AM, Anton Pirker l...@ignaz.at wrote:

 I have more information:

 The exception is thrown on my htc magic with android 1.5
 But on a htc tattoo with android 1.6 everything works fine.

 The code is compiled with Android SDK 1.5r2


 Maybe there is a problem with the sdk version? I need to get it to
 work on android 1.5, so i thought the best thing would be to compile
 it with sdk 1.5, right?

 Any ideas?

 regards,
 Anton




 On Nov 13, 10:41 am, Anton Pirker an...@ignaz.at wrote:
  Hi fellow Android guys and girls!
 
  I have following problem.
  In my Activity I want to show in onResume() and ProgressDialog.
 
  I do this call (where Constants.DIALOG_GET_POSITION is just an integer
  value):
  showDialog(Constants.DIALOG_GET_POSITION);
 
  in my onCreateDialog() callback (in the same Activity) I have following
  code:
 
  protected Dialog onCreateDialog(int id) {
  Dialog dialog;
  AlertDialog.Builder builder = null;
 
  switch(id) {
  case Constants.DIALOG_GET_POSITION:
  dialog = ProgressDialog.show(this, , Trying to detect
  your location. Please wait..., true);
  break;
 
  default:
  dialog = null;
  }
  return dialog;
  }
 
  When I run my activity i get an AndroidRuntimeException:
  requestFeature() must be called before adding content
  This error is on the line where I call showDialog();
 
  Here the Stacktrace:
 
  11-13 10:25:02.195: ERROR/AndroidRuntime(3266): Uncaught handler: thread
  main exiting due to uncaught exception
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266):
  java.lang.RuntimeException: Unable to resume activity
  {at.ignaz.UrbanGolf/at.ignaz.UrbanGolf.Activity.SetupActivity}:
  android.util.AndroidRuntimeException: requestFeature() must be called
  before adding content
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 android.app.ActivityThread.performResumeActivity(ActivityThread.java:2632)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2647)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2287)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.access$1800(ActivityThread.java:112)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.os.Handler.dispatchMessage(Handler.java:99)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.os.Looper.loop(Looper.java:123)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.main(ActivityThread.java:3948)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  java.lang.reflect.Method.invokeNative(Native Method)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  java.lang.reflect.Method.invoke(Method.java:521)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  dalvik.system.NativeStart.main(Native Method)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): Caused by:
  android.util.AndroidRuntimeException: requestFeature() must be called
  before adding content
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:286)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 com.android.internal.app.AlertController.installContent(AlertController.java:198)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.AlertDialog.onCreate(AlertDialog.java:251)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ProgressDialog.onCreate(ProgressDialog.java:176)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.Dialog.dispatchOnCreate(Dialog.java:287)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.Activity.showDialog(Activity.java:2402)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 

[android-developers] Stuck with ScrollView vs ListView, your thoughts?

2009-11-13 Thread Mark Wyszomierski
Hi,

I have to make a pretty complex activity layout, which needs to scroll
vertically. It is composed into row sections, which are focusable
rows. Some rows may not be focusable themselves, but have internal
focusable items, like this:

 // This whole row gets highlighted and focusable.
 LinearLayout
TextView
etc
 /LinearLayout

 // This row's internal controls get highlighted and focusable.
 LinearLayout
ImageView
Button
Button
EditText
etc
 /LinearLayout

  etc...

so there are about 5 different types of 'rows'. For now I've added
them all to a ScrollView, which means the entire layout is built once,
unlike a ListView, which tries to recreate each row as you scroll it
to save memory.

I'd like to use ListView, because it has built in support for
highlighting of rows, with a touch delay to discern between
ACTION_DOWN and ACTION_MOVE (which I can't get to work for
ScrollView).

In this case, I think ListView will be a problem for me. Each of my
'row types' is a pretty complex layout - images downloaded from the
net, many internal layouts - and also they may each have focusable
elements within (for example, the second row above has 2 focusable
buttons within it - I'd want these to get focus on scroll instead of
the entire row). When the user is scrolling a ListView, I'm worried
that the complexity of recreating each row will really slow things
down, as well as issues with focus paths etc.

ScrollView is working well for the moment, its just that it doesnt
help you discern between a tap and move event - so my rows get
highlighted even when the user starts scrolling with their finger,
which looks funny.

My options are to:

 1) Stick with ScrollView, and find a way to support checking between
ACTION_DOWN and ACTION_MOVE.
 2) Switch to ListView, and see if it can:
 a) Allow focus to widgets within a row
 b) Somehow turn off recycling of views (since some of the views
will be complex)

Any thoughts?

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] ADP2 now available

2009-11-13 Thread Jason Chen
Hey, folks.

Just a quick note to let you all know that the ADP2 (it's the same
hardware as the Google ION and the HTC Magic) is now available. Also,
the distribution of both ADP1 and ADP2 has expanded to include 9 more
countries: Italy, South Africa, New Zealand, Brazil, Czech Republic,
Estonia, Mexico, Northern Ireland and Norway. Check out Brightstar's
press release (http://j.mp/3UUn9U) for all the details.

As before, you can get access to the buy both phones via your Android
Market publisher account.

Best,

-Jason

-- 
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: Growing pains for Android developers??

2009-11-13 Thread niko20
Ok, let me answer some of these myself.

App sales sluggish - well android is still a growing platform, and yes
the latest improvements to the app store have helped, as well as all
the new phone releases as well, I'm seeing about double the orders per
day as before. Not to mention that we finally will probably actually
have customers that aren't also developers.

ADP - you can just get a droid phone and develop with it. The only
reason to have an ADP is so you can flash it with different ROMS. If
you want to test against Android 2.0 you can just use a DROID to
develop with. Any android device can be used for debugging and
development.

The Google market has improved over the last six months and will
likely improve again. Having on 325 characters may seem like a
restriction, but it does enable people's devices to download the data
faster, as well as preventing too much spam in their comments (like
keywords, and other garbage the is irrevlevant), that the apple Iphone
app store suffers from. Some of the apps I've looked at on the IPhone
store don't even say what they do in their description! It's usually a
little TOO long winded!

Rumor and conjecture - the rules and agreements between Google and
developers are quite clearly stated in the Developer agreement. Some
people want to read between the lines and have hissy fits about every
little detail. Maybe that is just the way programmers are. But it's
pretty much standard legal fare. A lot of what you may see on this
board is just whining about small details that may only affect a
minority of developers.

The IPhone system has its own flaws as well (approval process, etc).
And that system most likely is a take it or leave it agreement too. We
can't judge Google based on knowledge we DONT have. Speculation is
just that, speculation. I haven't seen any arguments that show the
opposing platforms advantages yet (like how their agreements work,
etc).

-niko


On Nov 13, 6:57 am, WoodManEXP woodman...@gmail.com wrote:
 We have spent significant time  energy and $$ producing several
 Android applications on the bet/hope it will be able to cut into the
 iPhone market. Unfortunately little is happening.

 - The apps sales are sluggish (the apps are hardly even being pirated
 as far as we can tell).
 - ADP cannot be updated to Android 2.0 yet Google has pushed hard for
 development to be updated to 2.0 and the Droid phone is released. How
 is one to test?
 - The Google Market seems ineffective. Consider limitations like the
 short app descriptions for instance. Google Market has a way to go to
 catch up with the magic of iTunes.
 - There is void of two-way communication between Google and the
 Android developer base so rumor and conjecture and trial and error
 prevail.
 - Distribution license agreement is updated in a take it or leave it
 fashion (with no meaningful explanation or attempt to point out
 changes). What was that all about?

 The list of this dings goes on. Understandably it is a huge
 undertaking for Google/Verizon/HTC/Developers and the others to launch
 Android and support it to go after the market Apple iPhone has proven.
 On the plus side the SDK and ADP is obviously something Google has
 invested heavily in and the basic Android system is, IMHO, superior to
 iPhone system. So that's all good. Hopefully these developer
 irritations are part of the growing pains and will quickly be
 resolved.

-- 
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 test if app is shown on Market for all screensizes

2009-11-13 Thread phil
Hi,

We have the same problem and tried some things to solve this. We found
out that with different Permissions set the app is visible in the
market for the HTC Tattoo. Here all the permissions we set:

uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE /
uses-permission
android:name=android.permission.ACCESS_WIFI_STATE /
uses-permission android:name=android.permission.CAMERA /
uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.VIBRATE /
uses-permission
android:name=android.permission.SET_ORIENTATION /
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/

We tried different combinations and left different Permissions out.
The following worked fine:

uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
android:name=android.permission.SET_ORIENTATION /
uses-permission android:name=android.permission.WAKE_LOCK /

With the others we have problems. Does someone have any idea why this
could be problem and how to solve this issue.

Thx for your help



On Nov 13, 10:38 am, Klaus Kartou kar...@gmail.com wrote:
 Actually we first used:

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

 But that didnt work either :(
 We tried to manually install the app on a real Tattoo device, and it worked
 prefectly. But the app cannot be found on the market from that same device?
 What to do? :)
 If I understand correctly, the market only looks at the manifest to
 determine if the app is visible or not?

 On Fri, Nov 13, 2009 at 10:17 AM, String sterling.ud...@googlemail.comwrote:



  I'd add a targetSdkVersion attribute with the highest level you've
  actually tested against, like this:

   uses-sdk android:minSdkVersion=3
              android:targetSdkVersion=5 /

  In my experience, the lack of that attribute caused higher-SDK
  emulator images to be reluctant to run the app, so I could imagine
  that it might cause issues on real hardware as well. Doesn't entirely
  make sense, as SDK 4 (Donut/1.6) is now widespread on other handsets -
  which I'm assuming can see your app - but it doesn't hurt.

  String

  On Nov 13, 8:31 am, Klaus Kartou kar...@gmail.com wrote:
   Hi!

   How's your uses-sdk part of manifest looks like ?

   It looks like this:

   uses-sdk android:minSdkVersion=3/
   supports-screens
   android:smallScreens=true
   android:normalScreens=true
   android:largeScreens=true
   android:anyDensity=true
   /

   On Fri, Nov 13, 2009 at 5:47 AM, SoftwareForMe.com SoftwareForMe.com 

   softwareforme@gmail.com wrote:
As if it's not enough to have to manage the manifest, but HTC has a bit
  of
a habit of releasing phones that cannot see some apps. Examples include
  the
HTC Hero when it was released in Europe, and the HTC Eris recently
  released
in the USA.

I'd like to know if those phones you mention can see our app
  (PhoneMyPC) as
well. Anybody have an idea how to check that?

Scott
SoftwareForMe.com
Makers of PhoneMyPC

On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy avolo...@gmail.com
  wrote:

How's your uses-sdk part of manifest looks like ?

On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote:
 Can anyone enlighten me? :)
 It looks like our app doesnt show up on the market on HTC Tattoo.
  What
else
 should we specify in the manifest?

 On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou kar...@gmail.com
  wrote:
  Hi!

  We have uploaded a new version of our app where we added the
  following
to
  the manifest:

  supports-screens
  android:smallScreens=true
   android:normalScreens=true
  android:largeScreens=true
   android:anyDensity=true
  /

  However, we are receiving complaints that users cannot find the
  app on
the
  market using their HTC Tattoo and HTC Dragon phones. Any ideas
  what we
are
  doing wrong, and is there a way for the developers to test if the
  app
is
  visible on the market?

  Cheers!

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

--
Warm regards,
The PhoneMyPC Team

--
You received this message because you are subscribed to the Google
Groups 

[android-developers] Re: SQLite database location restriction

2009-11-13 Thread Nathan

On Nov 12, 11:50 pm, westmeadboy westmead...@yahoo.co.uk wrote:
 Yes, I can see that is misleading. I'm sure they just mean that for
 when you don't specify a File.

 Have you tried putting it on the sdcard? I have an app, used by
 thousands of users, where a 20MB+ sqlite db file is located on the
 sdcard.

 Hope this helps!


Yes, it does. That's what I needed to know. I hadn't tried to code it
yet - I was reading the manual for once and found this tidbit that
could have big implications.

Given your experience, the chance that it will seem to work and then
blow up later sounds pretty small.

Nathan

-- 
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: Dallas Android Developers

2009-11-13 Thread Aniruddh Bajirao
Are we meeting tomorrow @ 11:30am ???

On Thu, Nov 12, 2009 at 1:10 AM, PJ pjbar...@gmail.com wrote:

 If anyone is interested in joining the Dallas Droid Devs, just reply
 to this thread and let us know that you're interested.

 An existing member can then invite you to be a collaborator of our
 spreadsheet, so that you can see who we are, see what all is going on,
 and tell us about yourself.

 -- PJ



 On Nov 12, 12:39 am, PJ pjbar...@gmail.com wrote:
  I vote for the 14th!  (I'm out of town on the 21st.)
 
  I was about to ask everyone where they lived and a bunch of other
  info, then I realized it would be easier if we just had a shared
  spreadsheet.
 
  So guys, I've created a Google Docs spreadsheet that we can all edit!
 http://spreadsheets.google.com/ccc?key=tLm0U-zoptmlhEk_B_DteaAhl=en
 
  It's not too fancy, but please note that it does have multiple sheets/
  tabs at the bottom:
  Members: Go here and enter your profile info so that we can see
  where you live, what your skills/interests are, etc.
  Meetings: List of meetings.  For now I went ahead and put the 14th
  down for our first meeting!
  Notes: Put random notes/discussions/crap about the group here.
 
  I'll give everyone (in this discussion) permissions to edit the
  spreadsheet.  If you have trouble viewing or editing it, let me know
  and I'll try to fix it.
 
  -- PJ
 
  On Nov 11, 4:44 pm, Aniruddh Bajirao abaji...@gmail.com wrote:
 
 
 
14th or 21st both are good for me.
   How about the others?
 
   On Wed, Nov 11, 2009 at 1:24 PM, Chris Dempsey cdal...@gmail.com
 wrote:
How about the 14th or 21st?  I'm in the Plano area but I own a car so
traveling isn't a problem. :)
 
On Wed, Nov 11, 2009 at 10:49 AM, Aniruddh Bajirao 
 abaji...@gmail.comwrote:
 
As PJ suggested 'Dallas Droid Devs'...
Lets plan an informal meet and get started... Any suggestions on
 when n
where we can have a meet...
 
On Wed, Nov 11, 2009 at 7:03 AM, Chris Dempsey cdal...@gmail.com
 wrote:
 
I am interested in a Dallas Droid developer group.  I think PJ has
 the
right idea.  Start informal and see where it goes.
 
On Wed, Nov 11, 2009 at 1:22 AM, PJ pjbar...@gmail.com wrote:
 
Dallas Droid Devs.  It's catchy.  Quick, someone reserve the
 domain!
 
I think the biggest barrier to forming a local Android Dev group
 is
the fact that developers can hang out in the IRC channel (and this
Google group) and find lots of discussion there, from the comfort
 (and
whim/speed) of their own homes.  So, some people might not feel
 the
extra effort is worth it.
 
So an important step to creating a successful Dallas Android Dev
 group
is to brainstorm and come up with a convincing list of incentives
 to
create/join a local group.  Developers will ask, What can the
 Dallas
group offer me that the worldwide community can't?
 
The answer is stuff like:
* Job placement: When Dallas devs get together, they can share
 info
about local opportunities
* Discuss local interests (like... uh... Dallas Cowboys?
Whataburger?  hahaha...)
* Get out of the house and meet in person
* etc.
 
I'm personally not gifted at organizing social events, but I'd
strongly consider joining/supporting.
 
On Nov 10, 9:54 pm, Aniruddh Bajirao abaji...@gmail.com wrote:
 Anyone interested in having a Dallas Android Group?
 
 On Fri, Nov 6, 2009 at 9:42 PM, Aniruddh Bajirao 
 abaji...@gmail.com
wrote:
  If we have enough people interested lets create a Dallas
 Android
Dev-group.
 
  We can have planned meets. Will definitely be interesting and
 useful
to
  share knowledge and experience as well as to get answers to
questions. Above
  all it would be very interesting to meet and network with
 other
Android
  Enthusiasts.
 
  On Fri, Nov 6, 2009 at 8:51 PM, cpick cp...@vmenu.com
 wrote:
 
  You might check the Texas Startup Blog. Alex Muse has a happy
 hour
  down at the info mart first monday of the month. Usually some
android
  guys there (although it is more entrepreneur related). They
 also
  sometimes have the mobile monday meeting in their office
 space..
But I
  would not mind getting a bit involved in a Android Dev group.
 There
is
  a North Texas PC Users group somewhere (My father is a part
 of it).
  They meet on a weekend, and have break out groups I think for
  different technologies.. Maybe get  a subgroup started there?
 
  --
  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.comandroid-developers%2Bunsubs
 cr...@googlegroups.comandroid-developers%2Bunsubs
cr...@googlegroups.com
 

[android-developers] Layout problems

2009-11-13 Thread jdekeij
Hoi,

I try to get a button below my gameboard, however the gameboard
overrides the button. When placed above the gameboard every thing is
alright.
The gameboard is named ¨reversi.com.BoardView¨

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent


   TextView
android:id=@+id/reversimessage
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_marginTop=10dip
android:text=Success with the match
/

Button android:id=@+id/takeback
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Takeback/

reversi.com.BoardView
android:id=@+id/reversi
android:layout_width=wrap_content
android:layout_height=wrap_content/
/LinearLayout

Help is very much appreciated
Jasper de Keijzer

-- 
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] Is Android 2.0 Support Hebrew ???

2009-11-13 Thread Tom Chen
Hello!

It does not.  It only has support for english and spanish right now. I'm
hoping for simplified chinese support.

Tom


2009/11/13 νιѕнαℓ vdkhakhk...@gmail.com

 Anybody knows???

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




-- 
Tom Chen
Software Architect
GOGII, Inc
t...@gogii.net
650-468-6318

-- 
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] Please Suggest, Where can we buy Android phones.

2009-11-13 Thread Ash
We need to buy some phones for android development for our university.
As it is not for personal use and only for android development for
students we prefer NO service plan or two year contract. We plan to
buy few Motorola Droid and HTC G1 initially and other android phones
in near future.

Can you Please Suggest where can we buy Android phones.

Please add your comments and viewpoints.

Thank you
-Ashwin

-- 
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] Testing on every possible device

2009-11-13 Thread Tom Chen
Are the devices you want to test on device anywhere?

You can rent a device virtually for approximately $20 bux a hour, this is a
great way to quickly make sure that your app works on a phone.

http://www.deviceanywhere.com/

After 200 to 300 bux, it's probably worth buying the phones to keep in
house.

Tom


On Thu, Nov 12, 2009 at 11:09 PM, SoftwareForMe.com sa...@softwareforme.com
 wrote:

 We have many phones, but we don't--and probably never will--have all of
 them.

 It's frustrating that some phones cannot see our apps in the market, and
 we'd like to know which phones those are.

 We'd like to have a simple way to have our app tested on each phone, but at
 this point there's no easy way to do that.

 My question is: what would we as developers be willing to do to get these
 needs met? Is there enough demand for someone to buy all possible Android
 devices and charge a nominal fee for these services?

 We would pay a small fee to have out app accessed and downloaded on all
 phones--this would give us a report of which phones could access our app. We
 would pay a fee to have a step-by-step test ran on each possible device so
 we could know it worked on that device, at least minimally.

 What about the rest of you? Can we encourage someone to provide us this
 service?

 --
 Warm regards,
 Scott
 SoftwareForMe.com
 Makers of PhoneMyPC

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




-- 
Tom Chen
Software Architect
GOGII, Inc
t...@gogii.net
650-468-6318

-- 
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] Please Suggest, Where can we buy Android phones.

2009-11-13 Thread Mark Murphy
Ash wrote:
 We need to buy some phones for android development for our university.
 As it is not for personal use and only for android development for
 students we prefer NO service plan or two year contract. We plan to
 buy few Motorola Droid and HTC G1 initially and other android phones
 in near future.
 
 Can you Please Suggest where can we buy Android phones.

eBay.

Or ADP1/ADP2, though they are more expensive and require an Android
Market account.

Or, if you do not need them to be phones and are willing for a slightly
off-kilter Android environment, use the ARCHOS 5 Android tablet.

Or, Expansys has some unlocked Android devices.

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

Android App Developer Training: http://commonsware.com/training

-- 
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: Growing pains for Android developers??

2009-11-13 Thread Dianne Hackborn
On Fri, Nov 13, 2009 at 6:01 AM, WoodManEXP woodman...@gmail.com wrote:

 Yes that true and we are doing that. But Google is clear that apps
 must be tested outside the emulator.


Yes we strongly recommend you test your app on -some- real device outside of
the emulator.  You can then use the emulator to cover other variations
(different platform versions, screen sizes, etc).

-- 
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: How to test if app is shown on Market for all screensizes

2009-11-13 Thread phil
Hi,

we did some further testing and found out that the
android.permission.CAMERA is the Problem in our case. We tried leaving
it out and then the app was showing up in the market. Does anyone else
have the same problem or can confirm that this is a problem.

We hope for a fast solution or any tip how this can be solved as we
need the CAMERA permission in our application.

Any help is much appreciated.

On Nov 13, 5:39 pm, phil philipp.bre...@gmail.com wrote:
 Hi,

 We have the same problem and tried some things to solve this. We found
 out that with different Permissions set the app is visible in the
 market for the HTC Tattoo. Here all the permissions we set:

     uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION /
     uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION /
     uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
     uses-permission
 android:name=android.permission.ACCESS_WIFI_STATE /
     uses-permission android:name=android.permission.CAMERA /
     uses-permission android:name=android.permission.INTERNET /
     uses-permission android:name=android.permission.VIBRATE /
     uses-permission
 android:name=android.permission.SET_ORIENTATION /
     uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/

 We tried different combinations and left different Permissions out.
 The following worked fine:

     uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION /
     uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION /
     uses-permission
 android:name=android.permission.SET_ORIENTATION /
     uses-permission android:name=android.permission.WAKE_LOCK /

 With the others we have problems. Does someone have any idea why this
 could be problem and how to solve this issue.

 Thx for your help

 On Nov 13, 10:38 am, Klaus Kartou kar...@gmail.com wrote:



  Actually we first used:

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

  But that didnt work either :(
  We tried to manually install the app on a real Tattoo device, and it worked
  prefectly. But the app cannot be found on the market from that same device?
  What to do? :)
  If I understand correctly, the market only looks at the manifest to
  determine if the app is visible or not?

  On Fri, Nov 13, 2009 at 10:17 AM, String 
  sterling.ud...@googlemail.comwrote:

   I'd add a targetSdkVersion attribute with the highest level you've
   actually tested against, like this:

    uses-sdk android:minSdkVersion=3
               android:targetSdkVersion=5 /

   In my experience, the lack of that attribute caused higher-SDK
   emulator images to be reluctant to run the app, so I could imagine
   that it might cause issues on real hardware as well. Doesn't entirely
   make sense, as SDK 4 (Donut/1.6) is now widespread on other handsets -
   which I'm assuming can see your app - but it doesn't hurt.

   String

   On Nov 13, 8:31 am, Klaus Kartou kar...@gmail.com wrote:
Hi!

How's your uses-sdk part of manifest looks like ?

It looks like this:

uses-sdk android:minSdkVersion=3/
supports-screens
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=true
/

On Fri, Nov 13, 2009 at 5:47 AM, SoftwareForMe.com SoftwareForMe.com 

softwareforme@gmail.com wrote:
 As if it's not enough to have to manage the manifest, but HTC has a 
 bit
   of
 a habit of releasing phones that cannot see some apps. Examples 
 include
   the
 HTC Hero when it was released in Europe, and the HTC Eris recently
   released
 in the USA.

 I'd like to know if those phones you mention can see our app
   (PhoneMyPC) as
 well. Anybody have an idea how to check that?

 Scott
 SoftwareForMe.com
 Makers of PhoneMyPC

 On Thu, Nov 12, 2009 at 2:45 PM, Alexey Volovoy avolo...@gmail.com
   wrote:

 How's your uses-sdk part of manifest looks like ?

 On Nov 12, 4:29 pm, Klaus Kartou kar...@gmail.com wrote:
  Can anyone enlighten me? :)
  It looks like our app doesnt show up on the market on HTC Tattoo.
   What
 else
  should we specify in the manifest?

  On Thu, Nov 12, 2009 at 4:01 PM, Klaus Kartou kar...@gmail.com
   wrote:
   Hi!

   We have uploaded a new version of our app where we added the
   following
 to
   the manifest:

   supports-screens
   android:smallScreens=true
    android:normalScreens=true
   android:largeScreens=true
    android:anyDensity=true
   /

   However, we are receiving complaints that users cannot find the
   app on
 the
   market using their HTC Tattoo and HTC Dragon phones. Any ideas
   what we
 are
   doing wrong, and is there a way for the developers to test if the
   app
 is
   visible on the market?

   Cheers!

 --
 You received this message because you are 

[android-developers] Re: How to enable Fingerpainting (i.e. API demo example) on a surface, but not only with finger touch

2009-11-13 Thread Juan David Trujillo C.
Thank you for you response Dianne,

I have one final question though, does this mean painting on the
device can't be emulated through software or by any other mean to
allow other objects (pencil, thick pen, etc.) to draw on the surface
of a touch  screen?

I appreciate any help or guidance

Best regards,

Juan.

On Nov 11, 12:15 pm, Dianne Hackborn hack...@android.com wrote:
 That is just how capacitive screens work.

 On Wed, Nov 11, 2009 at 8:35 AM, Juan David Trujillo C. 





 jdavidandr...@gmail.com wrote:
  Hi all!

  I was checking the possibility to allow painting on the screen of a
  surface (i.e. API demo Fingerpainting example), however when I checked
  it, this technic apparently only allows painting with the tip of your
  finger, if you try to use any other object (pencil, thick pen, etc.)
  it does not draw anything on the surface.  Am I missing something
  here?  Is there a way to allow other objects to draw things on a
  surface?  Is this achievable and how should I proceed?

  Please let me know any advice on this.

  Best regards,

  Juan.

  --
  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] How to play media via speaker phone

2009-11-13 Thread hap 497
I am able play a media using MediaPlayer. The media played via the ear piece.

But how can I play the media with speaker phone? I have tried:

AudioManager audioManager = (AudioManager)
mActivity.getSystemService(Context.AUDIO_SERVICE);
audioManager.setSpeakerphoneOn(true);

But that does not work. And I have added this to my Manifest file

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

Can someone please tell me what am i missing?

Thank you.

-- 
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: Growing pains for Android developers??

2009-11-13 Thread Dianne Hackborn
On Fri, Nov 13, 2009 at 6:13 AM, Kieran kieran.flem...@gmail.com wrote:

 If you take the original res (HVGA for Android and QVGA for
 WM) you'll see that Microsoft never made a res smaller than the res
 everyone was used to.


Not supporting QVGA screens would basically leave out the lower-end market,
which is the bulk of device sales.


 I have no ides how they came up with 854 x 480.


That's a very standard resolution -- FWVGA.  Also, please, when you develop
your app, don't think of things as I am going to design a UI for 320x480,
and 480x800, and 480x854.  Instead, design graphics for the different
densities you will support, and then do the layout for the smallest size you
will support and make sure it can adjust in some reasonable way for larger
screen sizes.  For most apps this is very straight-forward as long as they
have some data/content area that would naturally resize.  For things like
games this is often not so clear, but at the least you can target a few
common sizes and make sure your game centers itself or whatever on larger
screens from that.

-- 
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: Android keyevent keycodes and scancodes

2009-11-13 Thread Dianne Hackborn
The mapping tables are device-specific.

On Fri, Nov 13, 2009 at 7:36 AM, Android_n00b nikhil...@gmail.com wrote:

 Hi Yi,

 I am looking for the KeycodeLabels.h files in /android/frameworks/base/
 libs/ui because that is where it is supposed to be, but I cannot find
 it. I see the KeyLayoutMap.h file but do not see the KeycodeLabels
 file. I am looking at online versions of the source code file
 structure and do not see it there either. What am I missing?

 On Nov 11, 2:46 pm, Yi Sun beyo...@gmail.com wrote:
  The EventHub.cpp calls the KeyLayoutMap.cpp to cover the real scan code
 to
  the Android internal keycode mapping. The internal key code mapping can
 be
  found in KeycodeLabels.h and KeyEvent.java.
 
 
 
  On Wed, Nov 11, 2009 at 11:34 AM, Android_n00b nikhil...@gmail.com
 wrote:
   I would really appreciate a reply from someone at Google if nobody can
   answer this. I really need to know this to move ahead with my
   project.
   Thanks.
 
   On Nov 11, 2:12 pm, Android_n00b nikhil...@gmail.com wrote:
Hi
I am writing a program which captures the keys pressed by user in
android and displays it in Ubuntu. According to what I read,
 Android's
input event device is structured around an interrupt or polling
routine that captures the device-specific scancode and converts it to
a standard form acceptable to Linux (as defined in input.h) before
passing it to the kernel with input_event(). There are the steps
 which
describe the translation from keyboard input to application action:
1. Window manager reads key event from Linux keyboard driver.
2. Window manager maps scancode to keycode.
3. Window manager sends both the scancode and the keycode to the
application.
 
Now in my application I have an EditText which returns the keycode of
any key which is pressed. So basically this is what I have:
public boolean onKey(View v, int keyCode,
   KeyEvent event) {
// TODO Auto-generated method stub
String a =;a+=keyCode;
txt.setText(a);
 
return false;
}
 
Now I get this keycode value but it does not correspond to the
scancode value. For example, the keycode value for 'A' is 29 but the
scancode is 30. There is no correlation I can see between the input.h
scancodes and these keycodes either. My question is, I want to know
how step 2 (the mapping) above takes place. My applications aim is to
echo whatever I type on my android keyboard on my Ubuntu desktop (I
can connect between the 2 without a problem, so you don't have to
worry about that). Any help would be appreciated, as I have looked
online for quite a bit.
 
   --
   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
 
  --
  Android-x86http://www.android-x86.org

 --
 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: Choosing Dev Phone

2009-11-13 Thread Nathan
 If I were in your shoes, Nathan, I think I'd try to hold off
 buying anything until 2.0 is released at large and it's clear which
 devices will and won't run it.

I see the wisdom in that. I can get by with emulators.

At this time, Dev2 is at the top of my list - if it runs 2.0

 Buying an unlocked Motorola droid is also a possibility. Advantage is
lots of features, disadvantage that the performance might mask app
inefficiencies.

Also, I don't have enough experience to know what it's like using a
retail phone for development - are there big disadvantages compared to
a dev phone? Perhaps I could only use it for 2.0 and above.

-- 
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] Parsing results of XmlEncoder on server

2009-11-13 Thread stanlick
I am trying to consume the http response from a server that generated
the payload via java.beans.XMLEncoder.  Unfortunately, there is no
corresponding XMLDecoder in Android so I am sitting here staring at
perfectly valid XML (although ugly) wondering how I can deserialize it
back into the ArrayList of Objects that produced it in the first
place.  The beans in the ArrayList are trivial and do not contain any
complex data types.  Also, the ArrayList is regulated to contain at
most ten of these simple beans.

What is the preferred approach to process this XML stream in Android?

Peace,
Scott

-- 
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: showDialog() and requestFeature() must be called before adding content Error

2009-11-13 Thread Anton Pirker
You are awesome!

Calling the .show() method was completely stupid. In your 
onCreateDialog() callback method you just create the dialog and then 
return it. The rest is done by Android.

Now everything works fine!


Thanks a million,
Anton



TreKing wrote:
 I've seen this error when trying to set the view on a Dialog after 
 it's been created. Setting the view as part of the construction 
 process using the Builder makes it go away.

 Maybe try creating the ProgressDialog with the constructor first (new 
 ProgressDialog(title, msg, ...), then using the show() method with no 
 arguments?

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


 On Fri, Nov 13, 2009 at 8:36 AM, Anton Pirker l...@ignaz.at 
 mailto:l...@ignaz.at wrote:

 I have more information:

 The exception is thrown on my htc magic with android 1.5
 But on a htc tattoo with android 1.6 everything works fine.

 The code is compiled with Android SDK 1.5r2


 Maybe there is a problem with the sdk version? I need to get it to
 work on android 1.5, so i thought the best thing would be to compile
 it with sdk 1.5, right?

 Any ideas?

 regards,
 Anton




 On Nov 13, 10:41 am, Anton Pirker an...@ignaz.at
 mailto:an...@ignaz.at wrote:
  Hi fellow Android guys and girls!
 
  I have following problem.
  In my Activity I want to show in onResume() and ProgressDialog.
 
  I do this call (where Constants.DIALOG_GET_POSITION is just an
 integer
  value):
  showDialog(Constants.DIALOG_GET_POSITION);
 
  in my onCreateDialog() callback (in the same Activity) I have
 following
  code:
 
  protected Dialog onCreateDialog(int id) {
  Dialog dialog;
  AlertDialog.Builder builder = null;
 
  switch(id) {  
  case Constants.DIALOG_GET_POSITION:
  dialog = ProgressDialog.show(this, , Trying
 to detect
  your location. Please wait..., true);
  break;
 
  default:
  dialog = null;
  }
  return dialog;  
  }
 
  When I run my activity i get an AndroidRuntimeException:
  requestFeature() must be called before adding content
  This error is on the line where I call showDialog();
 
  Here the Stacktrace:
 
  11-13 10:25:02.195: ERROR/AndroidRuntime(3266): Uncaught
 handler: thread
  main exiting due to uncaught exception
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266):
  java.lang.RuntimeException: Unable to resume activity
  {at.ignaz.UrbanGolf/at.ignaz.UrbanGolf.Activity.SetupActivity}:
  android.util.AndroidRuntimeException: requestFeature() must be
 called
  before adding content
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 android.app.ActivityThread.performResumeActivity(ActivityThread.java:2632)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2647)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2287)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.access$1800(ActivityThread.java:112)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.os.Handler.dispatchMessage(Handler.java:99)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.os.Looper.loop(Looper.java:123)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  android.app.ActivityThread.main(ActivityThread.java:3948)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  java.lang.reflect.Method.invokeNative(Native Method)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  java.lang.reflect.Method.invoke(Method.java:521)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
  dalvik.system.NativeStart.main(Native Method)
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): Caused by:
  android.util.AndroidRuntimeException: requestFeature() must be
 called
  before adding content
  11-13 10:25:02.345: ERROR/AndroidRuntime(3266): at
 
 
 

[android-developers] Re: Where is the DDMS allocation tracker

2009-11-13 Thread Al
This isn't available in the DDMS view in Eclipse, you have you open
the separate DDMS app in SDK-PATH/tools/ddms.bat (or sh I think for
linux/os x).

On Nov 13, 2:53 pm, olivier olivier.stev...@treebux.fr wrote:
 Dear,

 I can't find the DDms allocation tracker in the DDMS perspective in
 eclipse.

 I search the view doing Window  show view

 I look to the android view but i have no allocation tracker view
 there.
 I use search view tool and I can't find any...

 Where is this View ?
 (If it's obvious, i am sorry because i reallu can't find it)

 Regards,

 Olivier

-- 
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] Alternative market for paid apps

2009-11-13 Thread Abdul Mateen
Amazing, I think developers will loose android platform because of this
piracy, there is not so much on App Store, and now Microsoft will win the
war against Google,

 Guys

 If you have paid app people can get it for free here
 It took me 2 days to remove mine


 http://search.4shared.com/network/search.jsp?sortType=1sortOrder=1sortmode=1searchName=.apksearchmode=2searchName=.apksearchDescription=searchExtention=sizeCriteria=atleastsizevalue=10start=0

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

  1   2   3   >