Re: [android-developers] Re: IllegalArgumentException: parameter must be a descendant of this view related issue

2010-09-02 Thread Frank Weiss
I'd hazard a guess that it has something to do with
android.view.ViewRoot.scrollToRectOrFocus(). Can you narrow it down to
some user action that might invoke that method?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 webview pageUp method

2010-09-02 Thread Brijesh
Hi all,

I have a webview in my activity which displays a html file.

Now when i call webview.pageUp(); method it calls the
onScrollChanged() method many times , i want to find-out when the page
is completely scrolled because i want to do write some functions after
the scrolling finish ...


Thanks and Regards,
Brijesh Masrani

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] XML RPC login failed

2010-09-02 Thread Tsolmon Narantsogt
Actually i don't know. Url is correct i saw it.
public static final String HOST = http://10.0.2.2:8069/xmlrpc/common;;



On Thu, Sep 2, 2010 at 1:57 PM, Frank Weiss fewe...@gmail.com wrote:

 OK. So why is the server returning that HTTP status? My first guess is
 the URL is incorrect. What's your guess?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Launch Application from Settings Screen

2010-09-02 Thread chetan
Hi All,
   I have an application and i want this application should be
listed in Setting screen and can be initiate from there as a separate
process. How i can do the same. Please some body help me..

Thanks
Chetan Chauhan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] XML RPC login failed

2010-09-02 Thread Tsolmon Narantsogt
 my server log :
[2010-09-02 15:04:02,429] INFO:web-service:successful login from 'admin'
using database 'monos_erp'

But my client :
org.xmlrpc.android.XMLRPCException: HTTP status code: 404 != 200


On Thu, Sep 2, 2010 at 2:50 PM, Tsolmon Narantsogt mnt...@gmail.com wrote:

 Actually i don't know. Url is correct i saw it.
 public static final String HOST = http://10.0.2.2:8069/xmlrpc/common;;



 On Thu, Sep 2, 2010 at 1:57 PM, Frank Weiss fewe...@gmail.com wrote:

 OK. So why is the server returning that HTTP status? My first guess is
 the URL is incorrect. What's your guess?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] which is the best design for an android game?

2010-09-02 Thread Robert Lin
http://www.facebook.com/#!/album.php?aid=2042525id=1549646802

The url above is an album of my facebook. Could u pls tell me which is
better, the yellow, or the green? I want to know ur suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 create login screen

2010-09-02 Thread Gold
Hi.all,

 I am new to android ..

I create lables textboxes and buttons with the help of
textview and buttons..!

Now i need to connect the database , If I click the login
button it will connect the database and validate it.

if validation i need to show home screen..!

1) if i click the back button it wont show login screen

2) while click the login button i need to show process
dialog

How can I achieve these..I am eagerly waiting..!


Thanks in Advance,
Gold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Sensors with thread or not?

2010-09-02 Thread Paolo
Thanks for your answer!

well... but how do you manage the service? I explain better... if you
close your app or simply you don't need your activity anymore, what
happens to the service? Do you stop it?

On 1 Set, 17:05, Bret Foreman bret.fore...@gmail.com wrote:
 I use sensors extensively and find that they work best in a Service
 which you can bind to your Activity.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Launch Application from Settings Screen

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 3:00 AM, chetan chetanchauha...@gmail.com wrote:
           I have an application and i want this application should be
 listed in Setting screen and can be initiate from there as a separate
 process. How i can do the same. Please some body help me..

SDK applications cannot modify the Settings application.

If by Setting screen you mean your own PreferenceActivity, there is
some undocumented way to do that today, but I would suggest you create
your own custom Preference to be safe. There, you can call
startActivity() on some Intent. Whether it winds up in a separate
process is not your concern -- the operating system handles that.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 Market, google checkout minimal sum to be collected before payment.

2010-09-02 Thread sblantipodi
The only market on the planet that make a bank transfer for $0.7...
It's really a smart choice -_-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Bluetooth error: E/BluetoothSppPort(23252): port not connected

2010-09-02 Thread Pobudzio
I know that post.

But there was a situation when catching exception from InStream
reading loop was enough to recognize that connection is lost.
Also in BluetoothChat example there is no
BluetoothDevice.ACTION_ACL_DISCONNECTED action catched. Unfotunately
it stoped working in my application and I don't know why. In my
opinion it should be enough to catch IOException from inStream but I
have no idea why it is not working.

Regards,
Pobudzio



On Aug 17, 11:08 am, parag parag.shetgaon...@gmail.com wrote:
 check out this post

 http://groups.google.com/group/android-developers/browse_thread/threa...

 On Aug 12, 4:40 pm, Pobudzio pobudkiewicz.mac...@gmail.com wrote:

  Hello,

  When I lost connection I catch IOException but beside this in phone
  log I can see that Android generates a lot of lines saying:
 E/BluetoothSppPort(23252):portnotconnected

  Turning on/off Bluetooth doesn't fix the problem.
  Only killing application stop generation of this line.
  I have HTC Legend.

  Does anybody know how to prevent this situation?

  Thx,
  Pobudzio

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 Market, google checkout minimal sum to be collected before payment.

2010-09-02 Thread YuviDroid
Under Settings -- Financials you can at least Specify how often you'd like
to receive payouts: Daily, Weekly, Biweekly, Monthly.

On Sun, Aug 29, 2010 at 2:24 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 You cannot just add an account.  For security reasons, Google verifies
 that the account is yours by depositing a few cents.  I think what you
 are asking might be doable, if you are allowed to have no account
 linked, but it is sure a PITA.

 Persoanlly, I am not sure why Google is doing the daily deposit.  It
 would appear they could gain a few cents of interest by holding the
 money longer.


 On Aug 28, 3:52 pm, Brad Gies rbg...@gmail.com wrote:
  Has anyone tried removing their bank account information and then when
  the amount is high enough that you would like it deposited, adding it
  back in just until you get the deposit? Or... maybe there is a way to
  disable/renable the account without removing it, so you don't have to
  set it up every time?
 
  My apps are free so I don't have the problem, but it seems there should
  be some way to do it.
 
  Brad
 
  On 28/08/2010 7:17 AM, Zsolt Vasvari wrote:
 
 
 
 
 
  
 http://checkout.google.com/support/sell/bin/answer.py?hl=enanswer=25400
 
   No, you get a single payment every work day.  If you don't like that
   schedule, because who wouldn't like 22 small deposits a month, you are
   out of luck.
 
   On Aug 28, 8:09 am, sblantipodiperini.dav...@dpsoftware.org  wrote:
   no words.
 
   in this way getting the latest transactions from my ATM has no sense,
   I will have dozens of $2 on it and
   important payment will not be present.
 
   Congratulations google, as always ;)
 
   On Aug 27, 8:33 pm, TreKingtreking...@gmail.com  wrote:
 
   On Fri, Aug 27, 2010 at 12:34 PM, sblantipodi
   perini.dav...@dpsoftware.orgwrote:
   is there a way to set google checkout to pay us only after our
   balance surpassed a certain amount?
   I don't think so, at least I've not found a way from looking around.
   Checkout was really tacked on to Android and in no way designed to
 support
   small transactions for virtual goods.
  
 ---­
 --
   TreKinghttp://sites.google.com/site/rezmobileapps/treking  -
 Chicago
   transit tracking app for Android-powered devices- Hide quoted text -
   - Show quoted text -
 
  --
  Sincerely,
 
  Brad Gies
  ---
  Bistro Bot - Bistro
 Blurbhttp://bgies.comhttp://bistroblurb.comhttp://ihottonight.comhttp://
 forcethetruth.com
  ---
 
  Everything in moderation, including abstinence
 
  Never doubt that a small group of thoughtful, committed people can
  change the world. Indeed. It is the only thing that ever has - Margaret
 Mead- Hide quoted text -
 
  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




-- 
YuviDroid
Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to
quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Intent filter for SMS application

2010-09-02 Thread Incredible
Hi

I 'm trying to use


intent-filter
   action android:name=android.intent.action.SENDTO/action
   data android:scheme=smsto/data
   category android:name=android.intent.category.DEFAULT/
category
/intent-filter


in AndroidManifest.xml of my application.

Now after installing the application to android handset I want to give
choice to send sms using my application or default sms application ,,
whenever he tries to send sms.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] XML RPC login failed

2010-09-02 Thread Miguel Morales
Well, for whatever reason your server is returning a 404, simple as that.
You'll have to look at the server code and see why.

On Thu, Sep 2, 2010 at 12:06 AM, Tsolmon Narantsogt mnt...@gmail.com wrote:
  my server log :
 [2010-09-02 15:04:02,429] INFO:web-service:successful login from 'admin'
 using database 'monos_erp'
 But my client :
 org.xmlrpc.android.XMLRPCException: HTTP status code: 404 != 200

 On Thu, Sep 2, 2010 at 2:50 PM, Tsolmon Narantsogt mnt...@gmail.com wrote:

 Actually i don't know. Url is correct i saw it.
 public static final String HOST = http://10.0.2.2:8069/xmlrpc/common;;


 On Thu, Sep 2, 2010 at 1:57 PM, Frank Weiss fewe...@gmail.com wrote:

 OK. So why is the server returning that HTTP status? My first guess is
 the URL is incorrect. What's your guess?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Galaxy Tablet and Android Market

2010-09-02 Thread Zsolt Vasvari
Frankly, I was really surprised to see the Engadget video of the
Samsung Galaxy Tablet having Android Market on it.

I thought Google wasn't licensing it to non-phone devices, but more
importantly, this tablet uses a new resolution 1024x600, whcih is a
very much larger than any other Android device before and we cannot
test our apps in the emulator on this resolution, can we?

While I know I won't get an official answer, maybe one of the
platform people could chime in as to what we can expect as far as
developer supporting this device, which looks great, by the way.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] which is the best design for an android game?

2010-09-02 Thread Miguel Morales
Maybe you can use something like imgur for us without facebook
accounts.  Otherwise it seems like phishing.

On Thu, Sep 2, 2010 at 1:09 AM, Robert Lin robertli...@gmail.com wrote:
 http://www.facebook.com/#!/album.php?aid=2042525id=1549646802

 The url above is an album of my facebook. Could u pls tell me which is
 better, the yellow, or the green? I want to know ur suggestions.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Galaxy Tablet and Android Market

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 6:21 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I thought Google wasn't licensing it to non-phone devices, but more
 importantly, this tablet uses a new resolution 1024x600, whcih is a
 very much larger than any other Android device before and we cannot
 test our apps in the emulator on this resolution, can we?

 While I know I won't get an official answer, maybe one of the
 platform people could chime in as to what we can expect as far as
 developer supporting this device, which looks great, by the way.

http://www.tbray.org/ongoing/When/201x/2010/09/02/Samsung-Galaxy-Tab

All the apps I tried ran just fine, including a couple of immersive
games that really benefited from the extra inches. I’ve heard of a few
apps that misbehave, but their problems were obvious  easy to fix;
watch for details over on the Android Dev Blog, starting later today.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 create process dialogue for navigating one screen to another

2010-09-02 Thread Gold
Hi All,

  I need to create process dialogue (wait cursor) while
navigating one screen to another screen..





Thanks in advance,
Gold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Developing Android REST Client Applications

2010-09-02 Thread reda
Hi,

Note that creating an httpClient with new DefaultHttpClient()  fails
to connect with some mobile carrier, for example Orange in France.
(ERR_CONNECT_FAIL)

I recommend creating your httpClient using a more robust method as
described here :

http://thinkandroid.wordpress.com/2009/12/31/creating-an-http-client-example/

Best regards
Reda


On 1 sep, 22:29, authorwjf wfran...@softlayer.com wrote:
 In its most basic format, calling a rest service is simply doing an
 HTTP call.  For example:

     public void callSomeApi() throws Exception
     {
         DefaultHttpClient httpclient = new DefaultHttpClient();

         httpclient.getCredentialsProvider().setCredentials(
                 new AuthScope(api.service.domain.com, 443),
                 new UsernamePasswordCredentials(username,
 password));

         HttpGet httpget = new HttpGet(https://api.service.domain.com/
 rest/entry_point);

         ResponseHandlerString responseHandler = new
 BasicResponseHandler();
         String responseBody = httpclient.execute(httpget,
 responseHandler);

         //REST APIs typically return JSON or XML
         JSONArray response = new JSONArray(responseBody);

         int items = response.length();

         ListView list = new ListView(this);

         for (int i = 0; i  items; i++) {
                 ListItem item = new ListItem();
                 item.label =
 response.getJSONObject(0).getString(item_you_were_looking_for);

         }

         httpclient.getConnectionManager().shutdown();

     }

  This is a pretty bare-bones HTTP example, and if suffers from two
 problems.  The first is it's not very robust.
  This you can get around if you are semi-competent by adding error
 handling and whatever else.  The second,
  is that on the android platform these sorts of long running I/O
 operations need to happen on their own thread.
  That's fine and dandy so long as nothing interrupts the thread, like
 an orientation change or an incoming call,
  but we all know that is exactly what happens on a phone.

  For me a workable solution was to create a service in the start up
 activity of my application.  So when someone
  starts my app, the onCreate method first starts the backgroundIO
 service, and then starts the first
  UI activity.

    /**
      * This is the standard Android on create method that gets called
 when the activity initialized.
      */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         //Start up background I/O service
         Intent svc = new Intent(this, BackGroundIO.class);
         startService(svc);
         //Start up first UI
         Intent i = new Intent(this, MyFirstUI.class);
         i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
         startActivityForResult(i, 1);
         }

  So now the question is what is BackGroundIO, and how does it interact
 with the UI?  In my case the background i/o
  class was simply a serialized request queue with static members for
 adding / getting requests.  In other words the class
  had a couple members for adding requests, retrieving them, and
 clearing any pending I/O.

  public class BackGroundIO extends Service{

     private static Thread mWorker = null;

         public static long addToQue(ApiRequest request) {
                 //mechanism for adding requests
         //ApiRequest is some custom class that defines all the
 elements you need to make your api calls
         //Probably username, password, entrypoint, and a UI runnable
 or handler for signaling on completion
         //return a unique request identifier to the UI
         }

     public static ApiRequestResult getResult(long identifier) throws
 RequestNotFoundException, RequestStillPendingException {
                 //mechanism for returning a result from memory or file
         //return the ApiRequestResult for some unique identifier if
 found
         //if it came from disk don't forget to delete it from the file
         }

         public static void clearQue() {
                 //mechanism for clearing any and pending requests
         //usually called on shutdown
         }

         @Override
         public IBinder onBind(Intent arg0) {
                 // Not using IPC so just return empty
                 return null;
         }

         @Override
         public void onCreate() {
                 super.onCreate();
                 mWorker = new Thread() {
             public void run() {
                                 while (true) { //this is my main looper
                     //Is there a pending request?
                     //Yes
                         // 1 CallSomeApi function shown above.
                         // 2 Remove the request from the queue of
 pending requests
                         // Is the UI Activity who made this request
 still around?
                         // YES
                         //   1 Signal the UI the result is ready
                         // NO
  

[android-developers] Re: Galaxy Tablet and Android Market

2010-09-02 Thread Sam
Yes you can create a custom 1024x600 AVD to run on the emulator. I
have and yes it works.

It is worth testing your app to see how it looks.

On Sep 2, 6:24 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Sep 2, 2010 at 6:21 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
  I thought Google wasn't licensing it to non-phone devices, but more
  importantly, this tablet uses a new resolution 1024x600, whcih is a
  very much larger than any other Android device before and we cannot
  test our apps in the emulator on this resolution, can we?

  While I know I won't get an official answer, maybe one of the
  platform people could chime in as to what we can expect as far as
  developer supporting this device, which looks great, by the way.

 http://www.tbray.org/ongoing/When/201x/2010/09/02/Samsung-Galaxy-Tab

 All the apps I tried ran just fine, including a couple of immersive
 games that really benefited from the extra inches. I’ve heard of a few
 apps that misbehave, but their problems were obvious  easy to fix;
 watch for details over on the Android Dev Blog, starting later today.

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

 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] remote de conection

2010-09-02 Thread vineeshkc
hai

  i am trying remote database connection using  java to connect mysql
in ecllipse that connetion  working properly
but  by using android it is not  working properly
can u help me..?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Galaxy Tablet and Android Market

2010-09-02 Thread Zsolt Vasvari
Ok, let me rephrase the question.  If I want to support the 1024x600
how do I set up my layout folders so it's picked correctly?

On Sep 2, 7:46 am, Sam samuel.law...@gmail.com wrote:
 Yes you can create a custom 1024x600 AVD to run on the emulator. I
 have and yes it works.

 It is worth testing your app to see how it looks.

 On Sep 2, 6:24 pm, Mark Murphy mmur...@commonsware.com wrote:



  On Thu, Sep 2, 2010 at 6:21 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
   I thought Google wasn't licensing it to non-phone devices, but more
   importantly, this tablet uses a new resolution 1024x600, whcih is a
   very much larger than any other Android device before and we cannot
   test our apps in the emulator on this resolution, can we?

   While I know I won't get an official answer, maybe one of the
   platform people could chime in as to what we can expect as far as
   developer supporting this device, which looks great, by the way.

 http://www.tbray.org/ongoing/When/201x/2010/09/02/Samsung-Galaxy-Tab

  All the apps I tried ran just fine, including a couple of immersive
  games that really benefited from the extra inches. I’ve heard of a few
  apps that misbehave, but their problems were obvious  easy to fix;
  watch for details over on the Android Dev Blog, starting later today.

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

  Android Consulting:http://commonsware.com/consulting- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] AudioTrack/Record, stop(), callback

2010-09-02 Thread Daniel Åkerud
Hi,

Using libmedia from native code with the callback mechanism: when
AudioTrack/Record-stop() returns, is it guaranteed that (1) the user
supplied callback is not called again, and (2) has returned if it is
currently being called when stop() is called? I have problems understanding
the exact details of the underlying code.

This is on Eclair BTW, if it makes a difference.

Thanks so much for help,
BR/Daniel

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 Market, google checkout minimal sum to be collected before payment.

2010-09-02 Thread String
On Sep 2, 10:51 am, YuviDroid yuvidr...@gmail.com wrote:

 Under Settings -- Financials you can at least Specify how often you'd like
 to receive payouts: Daily, Weekly, Biweekly, Monthly.

Only for some banks, apparently. That setting has been mentioned here
before, but some of us don't see it, for some reason.

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] Do android support multiple languages?

2010-09-02 Thread G Ganesh
Hi,

If i run my android application with htc magic with locale
English, i find my application running properly and if i find to run
it on Motorola droid with locale korean, i find even my
application(apk) cannot b installed on the device. Do android support
different language? Isit is because of different language OS version ?
Waiting for your suggestions. Thanx in andvance. I am in real help
please get the suggestions soon...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 create login screen

2010-09-02 Thread vineeshkc
use sqlite


check   eg below.and try

import java.util.ArrayList;

import android.app.ListActivity;
import android.database.Cursor;
import android.database.sqlite.
SQLiteDatabase;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class databaseAct extends ListActivity {

SQLiteDatabase myDB = null;
ArrayList results = new ArrayList();

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


//creating database
myDB = databaseAct.this.openOrCreateDatabase(MyDatabase,
MODE_PRIVATE, null);
//creating table
myDB.execSQL(CREATE TABLE IF NOT EXISTS we (lastName varchar, 
+ firstName varchar, age INT(3)););
//inserting into table
myDB.execSQL(INSERT INTO we VALUES ('vineesh', 'wee', 23));
myDB.execSQL(INSERT INTO we VALUES ('we', 'std', 22));
myDB.execSQL(INSERT INTO we VALUES ('nr', 'Shakthima', 20));

Cursor cursor = myDB.query(we,null,null, null, null, null,null);
int count = 0;
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
count++;
//fetching from database and adding to arrayList
results.add(count+ :+cursor.getString(cursor.getColumnIndex(lastName))
+));
}

//display in screen
this.setListAdapter(new ArrayAdapter(databaseAct.this,
android.R.layout.simple_list_item_1, results));

}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Galaxy Tablet and Android Market

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 7:52 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Ok, let me rephrase the question.  If I want to support the 1024x600
 how do I set up my layout folders so it's picked correctly?

A 7 screen should be reported as -large. In terms of -mdpi vs. -hdpi,
my guess is that it is -mdpi, but that's a semi-educated guess.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Galaxy Tablet and Android Market

2010-09-02 Thread Alessandro Pellizzari
Il Thu, 02 Sep 2010 08:15:16 -0400, Mark Murphy ha scritto:

 A 7 screen should be reported as -large. In terms of -mdpi vs. -hdpi,
 my guess is that it is -mdpi, but that's a semi-educated guess.

It's a 170 dpi screen, about the same as 480x320 on 3.2 screens (180 
dpi), so it should definitely be mdpi, unless they forced hdpi for some 
reason.

Bye.

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


[android-developers] Re: Galaxy Tablet and Android Market

2010-09-02 Thread Zsolt Vasvari
On Sep 2, 7:46 am, Sam samuel.law...@gmail.com wrote:
 Yes you can create a custom 1024x600 AVD to run on the emulator. I
 have and yes it works.

Do you have a keyboard and the buttons, too?   I don't, so I cannot do
anything that requires any button presses.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Galaxy Tablet and Android Market

2010-09-02 Thread Maps.Huge.Info (Maps API Guru)
The Galaxy from Samsung will have a phone.

As far as connectivity goes, the Tab promises Wi-Fi compatibility of
to 802.11n, as well as cellular 2.5G (GSM/GPRS/EDGE) and 3G (HSUPA
5.76Mbps, HSDPA 7.2Mbps). Specific carrier agreements have not been
announced.

http://news.cnet.com/8301-17938_105-20015395-1.html

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Galaxy Tablet and Android Market

2010-09-02 Thread String
On Sep 2, 12:46 pm, Sam samuel.law...@gmail.com wrote:

 Yes you can create a custom 1024x600 AVD to run on the emulator. I
 have and yes it works.

Any idea how to apply a usable skin to it, to be able to access the
the standard buttons?

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 call RIL?

2010-09-02 Thread rams
Hi JBQ,

I want to extend the com.android.internal.telephony for VoIP
functionality
as follows:

Dialer (with alphanumerals, spl characters) ---intent/sip: ---
 PhoneApp  Telephony Manager  VoIP.java (VoIPJ) -
VoIP.c(VoIP Daemon) --- our custom libraries for SIP

Could you please tell me whether it is possible to do this in a
cleaner way.

Why we want to do like this is:

We think Google Android will flow the same architecture later on. We
can reduce porting effort.

 Also there is something misleading in this:

Currently, GSM and CDMA are supported by Telephony Manager. They are
the media and VoIP
is a technology which works over the DATA (GPRS, EDGE, Wifi, WiMax or
Ethernet).
Is it correct to integrate the VoIP changes into the Telephony
Manager?

I have seen opensource Android VoIP applications completely skip
Telephony Manager (Framework Layer)
and develop their applications as follows:

Application --- Service  Socket  Native C lib

Application  Native C --- Kernel (FW or Telephony Manager layer
is skipped)

Which is the best way to do this?

Could you please suggest?

Thank you,
Ram



On Nov 29 2008, 9:19 pm, Jean-Baptiste Queru j...@google.com wrote:
 Of course, if you go beyond the official SDK documentation, all bets
 are off once you start to consider what might happen with newer
 versions of the Android platform on the same devices, or on devices
 from a different manufacturer, or using a different chipset, or using
 a different protocol to communicate between the application CPU and
 the baseband CPU.

 There's nothing wrong going to see what happens under the hood, as
 long as you understand that you're leaving the realm of the SDK with
 its supported APIs that are meant to stay compatible across versions
 and across devices, and that peeking under the hood is nothing more
 than anecdotal data on implementation details about which no
 compatibility is guaranteed or even implied.

 Discussions about what happens under the SDK APIs are probably better
 suited for the android-platform mailing list, such that this list
 remains dedicated to discussions related to developing applications on
 top of the SDK APIs.

 JBQ



 On Sat, Nov 29, 2008 at 8:04 AM, Zigurd zigurd.medni...@gmail.com wrote:

  Some information on telephony internals, PhoneApp, and communications
  between PhoneApp and the RIL can be found in an upcoming book
  published by O'Reilly called Android Application Development. It is
  available on the O'Reilly Roughcuts site in draft form:
 http://safari.oreilly.com/9780596156220

  The chapter on telephony internals is mainly oriented around
  illustrating what happens within and underneath the TelephonyManager
  API, using the logging facilities. Although it is targeted to an
  application developer who needs to go beyond the documentation, it
  does provide brief explanations of the telephony internals classes and
  the implementations of those interfaces found in the sources. Maybe
  that can get you started on a full understanding of the relationship
  between the telephony UI apps, PhoneApp, and rild. It will, at least,
  walk you through the steps to observe the traffic between PhoneApp and
  rild using adb.

  ZM

  On Nov 28, 8:53 am, sunil sunee...@gmail.com wrote:
  Hi Jeff Hamilton,
  May i know if there is any documentation available which explains
  about the RIL layer , Telephony Manager layer and the service layer.

  Regards,
  Sunil.

  On Nov 18, 7:35 am, Jeff Hamilton j...@android.com wrote:

Thanks for your reply.
But the TelephonyManager doesn't provide enough information for us.
We really need to get more informaiton from the RIL layer.

   What information do you need from the RIL that isn't provided by the
   TelephonyManager APIs?

   -Jeff- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 acces RIL?

2010-09-02 Thread rams
Hi JBQ  All,

I want to extend the com.android.internal.telephony for VoIP
functionality
as follows:

Dialer (with alphanumerals, spl characters) ---intent/sip: ---
 PhoneApp  Telephony Manager  VoIP.java (VoIPJ) -
VoIP.c(VoIP Daemon) --- our custom libraries for SIP

Could you please tell me whether it is possible to do this in a
cleaner way.

Why we want to do like this is:

I think Google Android will flow the same architecture later on. We
can reduce porting effort.

 Also there is something misleading in this:

Currently, GSM and CDMA are supported by Telephony Manager. They are
the media and VoIP
is a technology which works over the DATA (GPRS, EDGE, Wifi, WiMax or
Ethernet).
Is it correct to integrate the VoIP changes into the Telephony
Manager?

I have seen opensource Android VoIP applications completely skip
Telephony Manager (Framework Layer)
and develop their applications as follows:

Application --- Service  Socket  Native C lib

Application  Native C --- Kernel (FW or Telephony Manager layer
is skipped)

Which is the best way to do this?

Could you please suggest?

Thank you,
Ram

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Do android support multiple languages?

2010-09-02 Thread { Devdroid }
On 2 September 2010 14:01, G Ganesh ganesh.in.andr...@gmail.com wrote:

        If i run my android application with htc magic with locale
 English, i find my application running properly and if i find to run
 it on Motorola droid with locale korean, i find even my
 application(apk) cannot b installed on the device.

Not sure about korean (could make any difference, still I doubt so) it shall
be no difference from app standpoint what language OS uses. If there's
no values-XX (i.e. values-kr/strings.xml) in your app, application would fall
back to contenct of values/strings.xml. Do you by any chance used
values-en in your app and do not have values folder to let it fall back to
(not sure if such would build, but if it does and you did what I asked,
it would explain why it does not work)

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

2010-09-02 Thread radiodee1
Hi,

I've got a custom xml file in my res/xml folder, and it's not an
android xml file (in that it doesn't describe a button or set of views
or anything, just data for my app) and now I want to read it with an
XML Pull Parser, but I don't know where to find it on the android file
system. I've googled a little bit and I cannot come up with a document
that shows what the android file system even is. (I'm sure it's out
there). Can anyone tell me how to find the xml file? or point me to a
doc that tells me how to do the same? 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: Setting wallpaper to bitmap

2010-09-02 Thread Neilz
Does anyone have any experience of using setWallpaper()?

I've tried a variety of alternatives, and a number of different image
sizes.

The wallpaper gets set, but it's always blown up way too big, so you
only get to see the center of the image - even if the image size is
much smaller than the screen dimensions.

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


Re: [android-developers] Using android:drawableLeft with diferent icons

2010-09-02 Thread TreKing
On Sun, Aug 29, 2010 at 2:17 AM, JPBerrocal jpberro...@gmail.com wrote:

 is there anyway to set the drawableleft property of the textview inside the
 getView method of my adapter?


Why set that property instead of the ImageView itself?

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

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

[android-developers] Re: how to find my custom xml file in res/xml

2010-09-02 Thread Bret Foreman
XmlResourceParser parser =
context.getResources().getXml(R.xml.filename);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Confusion in onItemClick and onListItemClick

2010-09-02 Thread Sohan badaya
Hi All,

I am confused with two below method

1.)   onItemClick(AdapterView? arg0, View view, int position,long
id)
2.)   onListItemClick(ListView l, View v, int position, long id)

Please let me know about these two methods.

Thanks,
Sohan Badaya

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Replace preloaded class?

2010-09-02 Thread Chris Stratton
Is there any way for an ordinary application to replace low level
classes that are preloaded on startup, so that higher level preloaded
classes will end up calling my custom versions rather than the
originals?

I'm thinking the answer is no, but want to make sure I haven't
overlooked something.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Replace preloaded class?

2010-09-02 Thread Mark Murphy
AFAIK, no, sorry.

On Thu, Sep 2, 2010 at 11:03 AM, Chris Stratton cs07...@gmail.com wrote:
 Is there any way for an ordinary application to replace low level
 classes that are preloaded on startup, so that higher level preloaded
 classes will end up calling my custom versions rather than the
 originals?

 I'm thinking the answer is no, but want to make sure I haven't
 overlooked something.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Freelance Android Projects

2010-09-02 Thread argon gold
Hi Developers,

If you are expert in 2D/3D , OpenGL on Android Platform and you are from
PAKISTAN, BANGLADESH, VIETNAM OR RUSSIA.
Please send  me you CV for Freelance Android based Projects with details of
your previously completed Android Projects.

*Note:* You must be good in 2D/3D, Advanced OpenGL , Java etc.


Regards,
argongold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Application not running..!

2010-09-02 Thread Gold
Hi..All,

 I create new Project . In that I move to res -
layout - create one xml file.!
 I gave name Login.xml but it show error (only [a-z]
and [0-9] allowed).
 Then I remove the file and create new file as
login.xml.!
 But It show the new Error

   your project contain error(s) please fix them
before running your application

How to I fix the error..! Please help me..!





Thanks in Advance,
Gold

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


[android-developers] Re: Setting wallpaper to bitmap

2010-09-02 Thread Neilz
Ah... a Eureka moment... I've realized what's happening now!

Because my device's desktop is scrollable (i.e., you can move between
five different desktops) the background image is being set for a wider
view, not just what you see when you look at the central desktop.

So, I need to somehow specify that the background image should be
fixed, and remain so when you scroll between desktops.

Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: obtainBuffer timed out in AudioTrack.write()

2010-09-02 Thread HeHe
as the log hints, it is likely that your app pegs cpu for too long or
your app causes GCs which may also peg cpu.

On Sep 1, 1:11 pm, sasq jonas.minnb...@gmail.com wrote:
 Don't know why I bother asking here but, you never know, right?

 Anyway - after stopping and restarting playback of an audiotrack
 stream, on some devices I consistently get;

 W/AudioTrack( 2453): obtainBuffer timed out (is the CPU pegged?)
 0x64acc0 user=0001, server=

 after freezing for a couple of seconds. This happens whether I just
 pause() and flush() my audiotrack or release() and recreate it.

 Anyway to avoid 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: obtainBuffer timed out in AudioTrack.write()

2010-09-02 Thread HeHe
as the log hints, it is likely that your app pegs cpu for too long or
your app causes GCs which may also peg cpu.


On Sep 1, 1:11 pm, sasq jonas.minnb...@gmail.com wrote:
 Don't know why I bother asking here but, you never know, right?

 Anyway - after stopping and restarting playback of an audiotrack
 stream, on some devices I consistently get;

 W/AudioTrack( 2453): obtainBuffer timed out (is the CPU pegged?)
 0x64acc0 user=0001, server=

 after freezing for a couple of seconds. This happens whether I just
 pause() and flush() my audiotrack or release() and recreate it.

 Anyway to avoid 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: how to find my custom xml file in res/xml

2010-09-02 Thread radiodee1
thanks alot. that's great.

On Sep 2, 10:52 am, Bret Foreman bret.fore...@gmail.com wrote:
 XmlResourceParser parser =
 context.getResources().getXml(R.xml.filename);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Voice Recognition for Voice Control?

2010-09-02 Thread moa
Hi,

Is it possible to use the voice recognition api in order to handle a
known set of commands yet?

For example;

Text to speech prompts Say Yes or No

User says no

VR matches this against a specific valid vocabulary containing only
yes  no, and then returns no.

Can you do this yet?


Last time I looked you could not. The VR would match against a full
vocabulary and user saying no would come back with things like
snow and so on.

The other BIG problem was that if the VR got no match a Retry dialog
was displayed, this needed to be dismissed by using the screen, which
meant the the voice control process failed at this point, terminally.

Is there any closer to being usable in 2.2 ?

Thanks in advance for any feedback.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 not running..!

2010-09-02 Thread San
Clean the project and build it again.
If you get errors again, please check Problems tab. You can find the
error descriptions there.


On Sep 2, 8:43 am, Gold thangadura...@gmail.com wrote:
 Hi..All,

                  I create new Project . In that I move to res -
 layout - create one xml file.!
                  I gave name Login.xml but it show error (only [a-z]
 and [0-9] allowed).
                  Then I remove the file and create new file as
 login.xml.!
                  But It show the new Error

                        your project contain error(s) please fix them
 before running your application

                 How to I fix the error..! Please help me..!

 Thanks in Advance,
 Gold

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Replace preloaded class?

2010-09-02 Thread San
Nooo..

On Sep 2, 8:03 am, Chris Stratton cs07...@gmail.com wrote:
 Is there any way for an ordinary application to replace low level
 classes that are preloaded on startup, so that higher level preloaded
 classes will end up calling my custom versions rather than the
 originals?

 I'm thinking the answer is no, but want to make sure I haven't
 overlooked something.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Sensors with thread or not?

2010-09-02 Thread Bret Foreman
The service is started automatically when you bind to it and stopped
when the last customer unbinds from it. In this way, multiple
activities or applications can all use the sensor service and it gets
started and stopped by the system as appropriate.

On Sep 2, 1:34 am, Paolo brand...@gmail.com wrote:
 Thanks for your answer!

 well... but how do you manage the service? I explain better... if you
 close your app or simply you don't need your activity anymore, what
 happens to the service? Do you stop 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


[android-developers] Re: Do android support multiple languages?

2010-09-02 Thread San
I think values folder is missing in the res.

@Devdroid
App will compile and build successfully even if the values folder is
not present the res

On Sep 2, 7:02 am, { Devdroid } webnet.andr...@gmail.com wrote:
 On 2 September 2010 14:01, G Ganesh ganesh.in.andr...@gmail.com wrote:

         If i run my android application with htc magic with locale
  English, i find my application running properly and if i find to run
  it on Motorola droid with locale korean, i find even my
  application(apk) cannot b installed on the device.

 Not sure about korean (could make any difference, still I doubt so) it shall
 be no difference from app standpoint what language OS uses. If there's
 no values-XX (i.e. values-kr/strings.xml) in your app, application would fall
 back to contenct of values/strings.xml. Do you by any chance used
 values-en in your app and do not have values folder to let it fall back to
 (not sure if such would build, but if it does and you did what I asked,
 it would explain why it does not work)

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


Re: [android-developers] client Server

2010-09-02 Thread Ekta Singh
 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

[android-developers] Need Help - View Flipper Force Close Error

2010-09-02 Thread kivy
Hi there,

for a short time now I got this Force Close Error apparently due to an
error with the View Flipper. The thing is I haven't touched or changed
the ViewFlipper in weeks and suddenly I got this error (see logcat
output)

If anyone could help me out that would be great because I have really
no idea what suddenly happend...

Thanks in advance.


09-02 18:04:29.923: ERROR/AndroidRuntime(5583): Uncaught handler:
thread main exiting due to uncaught exception
09-02 18:04:29.943: ERROR/AndroidRuntime(5583):
java.lang.IllegalArgumentException: Receiver not registered:
android.widget.viewflippe...@4476a5a0
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread
$PackageInfo.forgetReceiverDispatcher(ActivityThread.java:673)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ApplicationContext.unregisterReceiver(ApplicationContext.java:
757)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
321)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.View.dispatchDetachedFromWindow(View.java:5835)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1130)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1603)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewRoot.doDie(ViewRoot.java:2594)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.ViewRoot.die(ViewRoot.java:2564)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:
254)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
436)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
3693)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
3794)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread.access$2300(ActivityThread.java:126)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1936)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.os.Looper.loop(Looper.java:123)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
android.app.ActivityThread.main(ActivityThread.java:4603)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
java.lang.reflect.Method.invokeNative(Native Method)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
java.lang.reflect.Method.invoke(Method.java:521)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
dalvik.system.NativeStart.main(Native Method)

Here is the XML for the layout:


?xml version=1.0 encoding=utf-8?

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:background=@drawable/shape_background_gradient
  
LinearLayout
android:layout_width=205px
android:layout_height=155px
android:background=#FFCC
android:id=@+id/VideoViewHolder
android:padding=2.5px
android:layout_centerHorizontal=true
android:layout_marginTop=5px
android:layout_marginBottom=5px

VideoView
android:layout_width=200px
android:layout_height=150px
android:id =@+id/VideoViewEdit

[android-developers] Re: obtainBuffer timed out in AudioTrack.write()

2010-09-02 Thread niko20
You need to make sure that you have some audio data in the buffer
before calling AudioTrack.play(). If that buffer runs out, you'll get
such an error message. It could be you aren't keeping the buffer
filled fast enough.

-niko

On Sep 2, 10:49 am, HeHe cnm...@gmail.com wrote:
 as the log hints, it is likely that your app pegs cpu for too long or
 your app causes GCs which may also peg cpu.

 On Sep 1, 1:11 pm, sasq jonas.minnb...@gmail.com wrote:



  Don't know why I bother asking here but, you never know, right?

  Anyway - after stopping and restarting playback of an audiotrack
  stream, on some devices I consistently get;

  W/AudioTrack( 2453): obtainBuffer timed out (is the CPU pegged?)
  0x64acc0 user=0001, server=

  after freezing for a couple of seconds. This happens whether I just
  pause() and flush() my audiotrack or release() and recreate it.

  Anyway to avoid 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] Android internal autoscaling feature only for large screens

2010-09-02 Thread funcoder
Hey all,

i am developing a game with canvas. I want use the Android internal
autoscaling feature (anydensity=false;) only for large density
screens. Is it possible to enable this graphics (in the drawable
folder) scaling function only for large screens. For smallscreens my
Game Engine does automatically manage the presentation.

I attempted the following:

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

.. but it doesnt work :-(

Thank you!

Greetings
Andy

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


[android-developers] Using setContentView to change info presentation

2010-09-02 Thread Doug Gordon
My users will want to toggle between two different presentations of
their current data selection, with differing layouts. I want to handle
this part of the app in a single activity, so am thinking of simply
calling setContentView to change the layout and then of course fill in
the data accordingly.

Are there any drawbacks with this approach? It does not have to be
particularly speedy. Also, exactly when does the window get redrawn in
this case? When the method that does the work (i.e., an event
callback) returns?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] ProgressDialog with custom Drawable (IndeterminateDrawable)

2010-09-02 Thread Marco Alexander Schmitz
is there noone who can help me on this?

2010/8/31 Marco Alexander Schmitz marco.alexander.schm...@googlemail.com

 Hi,

 I'd like to change the rotating image inside the ProgressDialog.

 In the documentation this is suggested:

 ProgressDialog dialog =
 ProgressDialog.show(OnlineFilialeActivity.this, , Loading. Please
 wait..., true);

 This can be changed with:

 ProgressDialog dialog = new ProgressDialog(this);
 dialog.setTitle();
 dialog.setMessage(Loading. Please wait...);
 dialog.setIndeterminate(true);
 dialog.show();

 Now I want to change the drawable:

 dialog.setIndeterminateDrawable(getResources().getDrawable(R.drawable.progress_medium));

 The progress_medium.xml is based on the file in platforms
 \android-1.5\data\res\drawable\progress_medium.xml:

 ?xml version=1.0 encoding=utf-8?
 rotate xmlns:android=http://schemas.android.com/apk/res/android;
android:pivotX=50% android:pivotY=50% android:fromDegrees=0
android:toDegrees=360

shape android:shape=ring android:innerRadiusRatio=3
android:thicknessRatio=8 android:useLevel=false

size android:width=48dip android:height=48dip /

gradient android:type=sweep android:useLevel=false
android:startColor=#4c737373
 android:centerColor=#4c737373
android:centerY=0.50 android:endColor=#8000
 /

/shape
 /rotate


 But the thing isn't rotating. There is no animation at all.

 Who helps me?

 Thanks,
 Marco Schmitz

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] Resource not found exception in ListActivity

2010-09-02 Thread Bret Foreman
I'm using ListActivity with an ArrayAdapter as the list adapter and
getting a resource not found exception. When I build the ArrayAdapter
I call the constructor like this:

new ArrayAdapterString(this,resourceID,stringList);

If my list row layout in layout/listLayout.xml looks like this:

?xml version=1.0 encoding=utf-8?
LinearLayout android:id=@+id/listLinearLayout
android:layout_width=fill_parent android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
TextView android:text=None set android:id=@+id/
chooseTableRowTextView android:layout_width=wrap_content
android:layout_height=wrap_content/TextView
/LinearLayout

Should the resourceID field in the constructor be R.layout.listLayout,
R.id.listLinearLayout, or R.id.chooseTableRowTextView?


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


[android-developers] Using RIL for VoIP?

2010-09-02 Thread rams
Hi All,

Please help in answering this question.

Thank you,
Ram

On Sep 2, 5:59 am, rams plram2...@gmail.com wrote:
 Hi JBQ  All,

 I want to extend the com.android.internal.telephony for VoIP
 functionality
 as follows:

 Dialer (with alphanumerals, spl characters) ---intent/sip: --- 
 PhoneApp  Telephony Manager  VoIP.java (VoIPJ) -

 VoIP.c(VoIP Daemon) --- our custom libraries for SIP

 Could you please tell me whether it is possible to do this in a
 cleaner way.

 Why we want to do like this is:

 I think Google Android will flow the same architecture later on. We
 can reduce porting effort.

  Also there is something misleading in this:

 Currently, GSM and CDMA are supported by Telephony Manager. They are
 the media and VoIP
 is a technology which works over the DATA (GPRS, EDGE, Wifi, WiMax or
 Ethernet).
 Is it correct to integrate the VoIP changes into the Telephony
 Manager?

 I have seen opensource Android VoIP applications completely skip
 Telephony Manager (Framework Layer)
 and develop their applications as follows:

 Application --- Service  Socket  Native C lib

 Application  Native C --- Kernel (FW or Telephony Manager layer
 is skipped)

 Which is the best way to do this?

 Could you please suggest?

 Thank you,
 Ram

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Android factory test mode

2010-09-02 Thread twebb
Regarding the factory test mode discussed below, once the factory
testing is complete how can the ro.factorytest property be changed/
removed such that the device boots into normal operation?

Thanks,
twebb


The is no mode for apps.  This is for running the system in special
modes
with security turned off and few things running.  You shouldn't care
about
any of the normal apps; you should be putting special apps on the
device to
run factory tests (that will run instead of home).

On Mon, Mar 22, 2010 at 3:36 PM, Porting beginner 

porting.begin...@gmail.com wrote:

 On Mon, Mar 22, 2010 at 3:04 PM, Dianne Hackborn hack...@android.comwrote:

 It is controlled with this sytem property: ro.factorytest

 Possible values:

     public static final int FACTORY_TEST_OFF = 0;
     public static final int FACTORY_TEST_LOW_LEVEL = 1;
     public static final int FACTORY_TEST_HIGH_LEVEL = 2;

 You'll need to look in the code to SystemServer and elsewhere to see what
 all it does.

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


Re: [android-developers] Using setContentView to change info presentation

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 1:39 PM, Doug Gordon gordo...@gmail.com wrote:
 My users will want to toggle between two different presentations of
 their current data selection, with differing layouts. I want to handle
 this part of the app in a single activity, so am thinking of simply
 calling setContentView to change the layout and then of course fill in
 the data accordingly.

 Are there any drawbacks with this approach?

You keep destroying and recreating widgets, plus having to fire all
the code to get event listeners and such set up again.

I would recommend ViewFlipper or ViewSwitcher instead.

 Also, exactly when does the window get redrawn in
 this case? When the method that does the work (i.e., an event
 callback) returns?

Effectively, yes. The drawing operations are put on a message queue
that will be processed again once you return control of the main
application thread to Android.

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

Android Consulting: http://commonsware.com/consulting

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


Re: [android-developers] Using RIL for VoIP?

2010-09-02 Thread Marc Petit-Huguenin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You may be interested in a proposal for something similar:

http://groups.google.com/group/android-platform/browse_thread/thread/f519754846888193?hl=en#

I also pushed a patchset with the new API and an hacked implementation of this
API, so people can try it:

https://review.source.android.com/#change,16552

On 09/02/2010 10:48 AM, rams wrote:
 Hi All,
 
 Please help in answering this question.
 
 Thank you,
 Ram
 
 On Sep 2, 5:59 am, rams plram2...@gmail.com wrote:
 Hi JBQ  All,

 I want to extend the com.android.internal.telephony for VoIP
 functionality
 as follows:

 Dialer (with alphanumerals, spl characters) ---intent/sip: --- 
 PhoneApp  Telephony Manager  VoIP.java (VoIPJ) -

 VoIP.c(VoIP Daemon) --- our custom libraries for SIP

 Could you please tell me whether it is possible to do this in a
 cleaner way.

 Why we want to do like this is:

 I think Google Android will flow the same architecture later on. We
 can reduce porting effort.

  Also there is something misleading in this:

 Currently, GSM and CDMA are supported by Telephony Manager. They are
 the media and VoIP
 is a technology which works over the DATA (GPRS, EDGE, Wifi, WiMax or
 Ethernet).
 Is it correct to integrate the VoIP changes into the Telephony
 Manager?

 I have seen opensource Android VoIP applications completely skip
 Telephony Manager (Framework Layer)
 and develop their applications as follows:

 Application --- Service  Socket  Native C lib

 Application  Native C --- Kernel (FW or Telephony Manager layer
 is skipped)

 Which is the best way to do this?

 Could you please suggest?

 Thank you,
 Ram
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkx/7voACgkQ9RoMZyVa61cBBQCgkjx4JYjbMz+J5M6fRRVcg0EB
xKUAn29bHv7/koRBMU4BmlhzV6RMFRMj
=srBa
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] 1024x600 emulator: no access to 'menu' or other buttons

2010-09-02 Thread jsdf
Hi all,
We are building an app for a device that will have a 1024x600 screen
at API level 7, 160dpi (which, by the way, is going to be very popular
very shortly with the Samsung Tab and other tablets coming on the
market).
When we start the emulator, the touch surface takes up the entire
window, and we no longer see the emulator keyboard, hard buttons, or
(most importantly) the menu button on the right.
The emulator's window does not scale, so it is not simply a matter of
making the emulator window larger, unfortunately.

Does anyone have a suggestion on how to get these very important
buttons to appear in the emulator?

Thanks.
jsdf

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread TreKing
On Wed, Sep 1, 2010 at 11:36 PM, Dianne Hackborn hack...@android.comwrote:

 I don't know about this stuff in Market, so I can't help you there


That's really too bad. We could *really* use someone that's knows about this
stuff in the Market around here. Considering how much time you and others
spend helping out around here, why no one from the Market end is willing or
able to take two seconds here and there to answer some extremely simple
questions continues to boggle my mind.

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

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

[android-developers] Re: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread Maps.Huge.Info (Maps API Guru)
The problem is the market team is located on Mars and during the
closest approach the planet has to our own last month, when the team
can transmit upgrades to the market, their communication gear
malfunctioned, so we'll have to wait two more years for an update.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 create process dialogue for navigating one screen to another

2010-09-02 Thread TreKing
On Thu, Sep 2, 2010 at 6:10 AM, Gold thangadura...@gmail.com wrote:

 I need to create process dialogue (wait cursor) while navigating one screen
 to another screen..


Showing a *progress* (not process) dialogue for going from one screen to the
next does not make sense. You could have one while you're ending one
activity or at the start of another, but not in between.

What are you showing a progress dialog for?

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

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

Re: [android-developers] Confusion in onItemClick and onListItemClick

2010-09-02 Thread TreKing
On Thu, Sep 2, 2010 at 9:54 AM, Sohan badaya sohan.bad...@gmail.com wrote:

 I am confused with two below method


Why are you confused ... ?

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

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

[android-developers] Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
I have a web service running on my local machine, and I used IP
address 10.0.2.2 to connect from the emulator to that web service, but
when I try that on a Nexus One connected via USB, I get a timeout. Is
there a way to access my machine from a real phone like I can from an
emulator?

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


Re: [android-developers] Connect to localhost on a Nexus One?

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 3:39 PM, paladin quoti...@gmail.com wrote:
 I have a web service running on my local machine, and I used IP
 address 10.0.2.2 to connect from the emulator to that web service, but
 when I try that on a Nexus One connected via USB, I get a timeout. Is
 there a way to access my machine from a real phone like I can from an
 emulator?

10.0.2.2 is an emulator thing. Use a real IP address.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Resource not found exception in ListActivity

2010-09-02 Thread TreKing
On Thu, Sep 2, 2010 at 12:47 PM, Bret Foreman bret.fore...@gmail.comwrote:

 Should the resourceID field in the constructor be
 R.layout.listLayout, R.id.listLinearLayout, or R.id.chooseTableRowTextView?


You could probably just try them all and see what happens in about 30
seconds ... but ...

If you're using this constructor (not clear what stringList is)
*public ArrayAdapter (Context context, int textViewResourceId, ListT
objects)*

Then, as the parameter name implies, this is the resource ID of the TextView
you want the string to show up in.
So R.id.chooseTableRowTextView.

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

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

[android-developers] Re: Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
I'm behind a router, and the real IP address starts with 192... and
I tried even from a browser on my machine to connect using that real
IP address to the web service, and it doesn't work. Only localhost
works, and from the emulator, 10.0.2.2.

On Sep 2, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Sep 2, 2010 at 3:39 PM, paladin quoti...@gmail.com wrote:
  I have a web service running on my local machine, and I used IP
  address 10.0.2.2 to connect from the emulator to that web service, but
  when I try that on a Nexus One connected via USB, I get a timeout. Is
  there a way to access my machine from a real phone like I can from an
  emulator?

 10.0.2.2 is an emulator thing. Use a real IP address.

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

 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Connect to localhost on a Nexus One?

2010-09-02 Thread Kostya Vasilyev
Connect your phone to the router via Wifi, so it's on the same subnet as the
computer running the service.

Use the computer's real IP address, on the same subnet.

Finally, check the computer's firewall settings w.r.t. your service.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

02.09.2010 23:45 пользователь paladin quoti...@gmail.com написал:

I'm behind a router, and the real IP address starts with 192... and
I tried even from a browser on my machine to connect using that real
IP address to the web service, and it doesn't work. Only localhost
works, and from the emulator, 10.0.2.2.

On Sep 2, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote:

 On Thu, Sep 2, 2010 at 3:39 PM, paladin quoti...@gmail.com wrote:
  I have a web service runni...
 Mark Murphy (a Commons Guy)http://commonsware.com|
http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy


 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because 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: Connect to localhost on a Nexus One?

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 3:45 PM, paladin quoti...@gmail.com wrote:
 I'm behind a router, and the real IP address starts with 192... and
 I tried even from a browser on my machine to connect using that real
 IP address to the web service, and it doesn't work. Only localhost
 works, and from the emulator, 10.0.2.2.

Your Web service is misconfigured. Configure it to listen on more than
localhost. Then access it via WiFi from the device.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread Kostya Vasilyev
Market is purely a Google thing, isn't it? I mean it wasn't developed at
Android Inc.

But your explanation seems pretty likely as well, John, except I think it
was actually Halley's comet :)

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

02.09.2010 23:39 пользователь Maps.Huge.Info (Maps API Guru) 
cor...@gmail.com написал:

The problem is the market team is located on Mars and during the
closest approach the planet has to our own last month, when the team
can transmit upgrades to the market, their communication gear
malfunctioned, so we'll have to wait two more years for an update.

-John Coryat


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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] OpenGL ES - Color Picking - Front/Back Buffer

2010-09-02 Thread Thiago Lopes Rosa
Hi,

I have a 3D game and I am using color-picking to know which object was
selected.

When the user touches the screen, I draw each object with a different color.
Then I read the color where the user touched the screen to know which object
was selected. After that I draw each object with their respective
textures/colors. (everything done during one onDrawFrame pass)

The problem is that sometimes the colored objects appear on the screen (~5%
of the times the user touches the screen) and it is even worse on slower
hardwares.

This is my pseudo code:

public void onDrawFrame(GL10 gl) {
if (user touched the screen) {
 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
 gl.glMatrixMode(GL10.GL_MODELVIEW);

// DRAW COLORED OBJECTS

gl.glReadPixels(x, y, ..);
 // CHECK WHICH OBJECT WAS SELECTED
 gl.glColor4x(0x, 0x, 0x, 0x);
 }

 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
 gl.glMatrixMode(GL10.GL_MODELVIEW);

 // DRAW TEXTURED OBJECTS
}


As far as I understand, we always draw on the Back Buffer and only after we
finish, it swaps to the Front Buffer and updates the screen.
Is there anything wrong with the above code?

Thanks!


Thiago

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Connect to localhost on a Nexus One?

2010-09-02 Thread Chris Stratton
Ideas

1) put the phone on a local wifi network along with the pc hosting
your test server.

2) run the test server on the phone

3) you can use an adb forward to let the pc connect() to the phone.
Write something on each end to proxy  tunnel connections back out.

4) deploy your server on the internet

5) Get a rooted or dev phone and hack on its network or adb stacks or
drivers to permit reverse tethering like the emulator

6) use a vpn ?

On Sep 2, 3:45 pm, paladin quoti...@gmail.com wrote:
 I'm behind a router, and the real IP address starts with 192... and
 I tried even from a browser on my machine to connect using that real
 IP address to the web service, and it doesn't work. Only localhost
 works, and from the emulator, 10.0.2.2.

 On Sep 2, 3:41 pm, Mark Murphy mmur...@commonsware.com wrote:



  On Thu, Sep 2, 2010 at 3:39 PM, paladin quoti...@gmail.com wrote:
   I have a web service running on my local machine, and I used IP
   address 10.0.2.2 to connect from the emulator to that web service, but
   when I try that on a Nexus One connected via USB, I get a timeout. Is
   there a way to access my machine from a real phone like I can from an
   emulator?

  10.0.2.2 is an emulator thing. Use a real IP address.

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

  Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Connect to localhost on a Nexus One?

2010-09-02 Thread paladin
Yeah, I'm using Visual Studio's Cassini, and it doesn't accept
connections except on localhost.

On Sep 2, 3:47 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Sep 2, 2010 at 3:45 PM, paladin quoti...@gmail.com wrote:
  I'm behind a router, and the real IP address starts with 192... and
  I tried even from a browser on my machine to connect using that real
  IP address to the web service, and it doesn't work. Only localhost
  works, and from the emulator, 10.0.2.2.

 Your Web service is misconfigured. Configure it to listen on more than
 localhost. Then access it via WiFi from the device.

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

 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Connect to localhost on a Nexus One?

2010-09-02 Thread Kostya Vasilyev
Seems like your server is a .Net application. Can't you run it under IIS
instead, which doesn't have this limitation?

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

03.09.2010 0:04 пользователь paladin quoti...@gmail.com написал:

Yeah, I'm using Visual Studio's Cassini, and it doesn't accept
connections except on localhost.

On Sep 2, 3:47 pm, Mark Murphy mmur...@commonsware.com wrote:

 On Thu, Sep 2, 2010 at 3:45 PM, paladin quoti...@gmail.com wrote:
  I'm behind a router, and t...
 Mark Murphy (a Commons Guy)http://commonsware.com|
http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy


 Android Consulting:http://commonsware.com/consulting

-- 
You received this message because 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

[android-developers] Re: ByteBuffers and GLES

2010-09-02 Thread Samsyn
Thanks Lance, that's very useful!

- Dan

On Sep 1, 5:25 pm, Lance Nanek lna...@gmail.com wrote:
 The Javadoc for the OpenGL ES API does a good job explaining why you
 can't use wrapped arrays for everything:

 http://download.oracle.com/javame/config/cldc/opt-pkgs/api/jb/jsr239/...
  Because these functions do not consume the data located at the given 
  pointer immediately, but only at some unspecified later time, it is not 
  possible to use an array since the Java virtual machine may relocate the 
  array within system memory.

 But if you really want hardware details, here's a nice document for
 the type of graphics in the 
 Droid:http://www.imgtec.com/factsheets/SDK/POWERVR%20SGX.OpenGL%20ES%202.0%...

 There's lots of stuff for older chips like the MSM7200 in the G1 out
 there as well, although you may have to look in a BREW oriented
 document or two to find it.

 On Sep 1, 7:31 pm, Samsyn d...@synthetic-reality.com wrote:



  So, I've been a good boy (I think) and used ByteBuffers (and
  ShortBuffers and IntBuffers etc) for all the vertex lists and textures
  I feed to GLES.

  But can someone point me to the basic architecture of the 'typical'
  mobile GPU (or, I guess, the OpenVR Droid GPU at least).  For example,
  does a mobile GPU have its own texture/buffer memory, or does it
  always share 'system memory' ?

  If it's going to copy the data I give it into 'gpu ram' anyway, then
  have I just added another buffer in the bucket brigade of memory when
  I use a ByteBuffer?

  GLES seems perfectly happy using a direct java array for the data, but
  I imagine that does nasty things like locking memory when the GPU
  touches it, when maybe  memory outside the garbage collection heap
  doesn't have that problem (and just gets leaked when I mis-manage
  it :-)

  I can't say that I see any performance difference between using
  ByteBuffers or just direct java arrays.  But most of my meshes (and
  all of my textures) are created just once.  But some meshes (for
  example, particles) get regenerated every frame.  And for that, I do
  the math in a java array and then allocateDirect a suitable
  whateverBuffer before passing it to GLES.  That smells really awful
  to me and I guess I am just wondering how big a sin it would be to not
  use whateverBuffers for these dynamic meshes?

  I guess I just feel like I am flying blind without some GPU
  documentation to look at.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] bluetooth discoverability limitations?

2010-09-02 Thread Sean Liao
Hi,

My application needs to have bluetooth discoverable on for a long period of
time until user explicitly turn it off.  The max duration is only $300
seconds.  To work around the issue, using the current API, I can only send
the intent periodically.  Also, to implement turning bluetooth discoverable
off, I send the intent with zero duration.  The applications works just fine
functionality wise, but the permission dialogs just give me headache:
 repeated permission dialog to extend the discoverablility, and the verbiage
is totally wrong when the program intent to turn the discoverability off.

I need the following API:

1. be able to turn Bluetooth on without the limitation of $300 seconds.
2. be able to turn discoverability off without calling turn on with zero
duration.

Any suggestion or workaround?  What is the proper channel to request feature
enhancement if this is not the right place?

Thanks in advance.  Sean

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Automatic way to change versionCode (and/or versionName) in manifest

2010-09-02 Thread Adal
Hi everybody!

I feel like this one it's going to be a silly question but after asking
google and the list, I have no answer so... there I go:

Is there any way using just eclipse to automatic
update android:versionCode and/or android:versionName each time I rebuild my
app or every time I export it?

How do you deal with this?

As I don't know any way of doing it with eclipse, I'm thinking about making
a build_app script that change the values and use the script before
generating the apk file, but I feel like there should be an really easy
option.

Any of you know how to do it?

Thank you in advance!

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

[android-developers] Re: DDMS Heap Dump permissions problem

2010-09-02 Thread fadden
On Sep 1, 5:04 pm, mrmanuke mrman...@gmail.com wrote:
 D/ddm-heap(19153): Heap dump: file='/sdcard/com.bunnies.Shhh.hprof'
 E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof-
 hptemp: Perm
 ission denied.

 I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an
 emulator (Donut). Both gave exactly the same result as above. Also, I
 do have the WRITE_EXTERNAL_STORAGE permission in the manifest. I've
 searched and couldn't find anything about anyone ever having this
 problem. Any ideas?

Usually that comes up because of the WRITE_EXTERNAL_STORAGE issue.
Does the file already exist but owned by someone else?  Can you verify
that your app can create a file on /sdcard with that name using
java.io calls?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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 - View Flipper Force Close Error

2010-09-02 Thread Artak Kalantarian
If I have to guess, I would say some sort of threading issue.

Are you doing all the Ui updates from the UI thread?

Artak

On Thu, Sep 2, 2010 at 10:20 AM, kivy victoriasarabu...@gmail.com wrote:

 Hi there,

 for a short time now I got this Force Close Error apparently due to an
 error with the View Flipper. The thing is I haven't touched or changed
 the ViewFlipper in weeks and suddenly I got this error (see logcat
 output)

 If anyone could help me out that would be great because I have really
 no idea what suddenly happend...

 Thanks in advance.


 09-02 18:04:29.923: ERROR/AndroidRuntime(5583): Uncaught handler:
 thread main exiting due to uncaught exception
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583):
 java.lang.IllegalArgumentException: Receiver not registered:
 android.widget.viewflippe...@4476a5a0
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread
 $PackageInfo.forgetReceiverDispatcher(ActivityThread.java:673)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ApplicationContext.unregisterReceiver(ApplicationContext.java:
 757)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
 321)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.widget.ViewFlipper.onDetachedFromWindow(ViewFlipper.java:104)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.View.dispatchDetachedFromWindow(View.java:5835)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1130)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1128)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1603)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewRoot.doDie(ViewRoot.java:2594)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.ViewRoot.die(ViewRoot.java:2564)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:
 254)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:
 436)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
 3693)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:
 3794)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread.access$2300(ActivityThread.java:126)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1936)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.os.Looper.loop(Looper.java:123)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 android.app.ActivityThread.main(ActivityThread.java:4603)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 java.lang.reflect.Method.invokeNative(Native Method)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 java.lang.reflect.Method.invoke(Method.java:521)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:860)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 09-02 18:04:29.943: ERROR/AndroidRuntime(5583): at
 dalvik.system.NativeStart.main(Native Method)

 Here is the XML for the layout:


 ?xml version=1.0 encoding=utf-8?

RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
 android
android:layout_width=fill_parent
android:layout_height=fill_parent

  android:background=@drawable/shape_background_gradient
  
LinearLayout
android:layout_width=205px
android:layout_height=155px
android:background=#FFCC
android:id=@+id/VideoViewHolder
android:padding=2.5px
android:layout_centerHorizontal=true
android:layout_marginTop=5px

Re: [android-developers] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread Dianne Hackborn
On Thu, Sep 2, 2010 at 12:13 PM, TreKing treking...@gmail.com wrote:

 On Wed, Sep 1, 2010 at 11:36 PM, Dianne Hackborn hack...@android.comwrote:

 I don't know about this stuff in Market, so I can't help you there

 That's really too bad. We could *really* use someone that's knows about
 this stuff in the Market around here. Considering how much time you and
 others spend helping out around here, why no one from the Market end is
 willing or able to take two seconds here and there to answer some extremely
 simple questions continues to boggle my mind.


This group is for non-beginner development questions using the Android SDK.
 It doesn't really make sense for people who work on Market to follow such a
group (especially since many of the people don't even know the Android SDK
since they work on the servers).

And again, I don't work on Market stuff, I am here to answer questions about
developing with the SDK, so there isn't really anything I can add to this
thread so I will stop now. :}

-- 
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] Android factory test mode

2010-09-02 Thread Dianne Hackborn
This is not related to the Android SDK; please move this to an appropriate
group.

On Thu, Sep 2, 2010 at 11:20 AM, twebb taliaferr...@gmail.com wrote:

 Regarding the factory test mode discussed below, once the factory
 testing is complete how can the ro.factorytest property be changed/
 removed such that the device boots into normal operation?

 Thanks,
 twebb


 The is no mode for apps.  This is for running the system in special
 modes
 with security turned off and few things running.  You shouldn't care
 about
 any of the normal apps; you should be putting special apps on the
 device to
 run factory tests (that will run instead of home).

 On Mon, Mar 22, 2010 at 3:36 PM, Porting beginner 

 porting.begin...@gmail.com wrote:

  On Mon, Mar 22, 2010 at 3:04 PM, Dianne Hackborn hack...@android.com
 wrote:

  It is controlled with this sytem property: ro.factorytest

  Possible values:

  public static final int FACTORY_TEST_OFF = 0;
  public static final int FACTORY_TEST_LOW_LEVEL = 1;
  public static final int FACTORY_TEST_HIGH_LEVEL = 2;

  You'll need to look in the code to SystemServer and elsewhere to see
 what
  all it does.

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




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

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

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

Re: [android-developers] Re: Galaxy Tablet and Android Market

2010-09-02 Thread Dianne Hackborn
Actually I believe it is running as an hdpi device.  It is interesting,
because it is physically a bigger screen than the streak but wider aspect
ratio so with the tweaked hdpi you end up with the screen being effectively
more space in the long axis and less space in the short axis than the
streak.

At any rate making it hdpi is a perfectly valid thing to do.  The point of
density is that it is not directly tied to the real screen dpi.  If your
product works better with a larger UI by bumping up the density, that is
fine; for apps, what matters for layout is simply how much effective space
they have after accounting for the density.  This also drives whether the
screen goes in the small, normal, large bucket.

Also for the original poster, the different screen configurations in the
documentation are intended to be representative examples.  Expect variation
in each bucket...  in fact there already are, with the normal screen bucket
holding 320x480 mdpi, 480x800 hdpi, and 480x852 hdpi (three different aspect
ratios).

On Thu, Sep 2, 2010 at 5:15 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Thu, Sep 2, 2010 at 7:52 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
  Ok, let me rephrase the question.  If I want to support the 1024x600
  how do I set up my layout folders so it's picked correctly?

 A 7 screen should be reported as -large. In terms of -mdpi vs. -hdpi,
 my guess is that it is -mdpi, but that's a semi-educated guess.

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

 Android Consulting: http://commonsware.com/consulting

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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] ServiceTestCase does not trigger Service.onStartCommand()

2010-09-02 Thread doug
Hello,

I find it strange that my test case derived from ServiceTestCase does
not trigger Service.onStartCommand().  It only triggers
Service.onStart().  But both methods on the Service class will be
called when the service is run normally on the emulator.  In both my
test case and the normal app, I start the service by calling:

startService(new Intent(getContext(), MyService.class));

Why is there such a difference?

Emulator and avd are both 2.1 update 1.

Thanks,
doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Solid color listSelector?

2010-09-02 Thread Doug Gordon
When I try to override the default list selector by setting
listSelector to a solid color in my layout file, touching an item in
the list causes the entire list background to be set to the color.
What gives?

Also, is there someplace where it describes how to create your own
graphic for the list selector background?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread Shawn Brown
 .
  It doesn't really make sense for people who work on Market to follow such a
 group

 And again, I don't work on Market stuff,

Well you could tell them that there are questions, couldn't 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


[android-developers] Soft Keyboard covers part of dialogbox in pan and scan mode

2010-09-02 Thread droid-newbie
I have a view with a text edit box at the bottom, which when clicked
invokes a soft keyboard and the view is shifted up. The issue is that
the keyboard obscures a significant portion of the text edit box.
Looking at the diagrams @ 
http://developer.android.com/resources/articles/on-screen-inputs.html
, it seems that's normal/expected ? I would atleast expect to see the
edges of the text entry box itself, if not the entire dialog, [ as it
is in this link ]. Is this a known Android issue. Any suggestions on
workarounds

thanks,
manu

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] Error Installing ADT on Galileo with JRE 1.6.0_19+

2010-09-02 Thread frankw
I have my Android development system working at home. But trying to
install on my company machine it's failing with:

An error occurred during the
org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust
phase.
One or more certificates rejected. Cannot proceed with installation.

The system environment: WinXP, JRE 1.6.0_21_b07, Galileo 3.5.2 SP2.

I've been Googling, but the closest I came up with is this Eclipse
discussion: https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059

Now I feel like I'm stuck. I can't roll forward to Eclipse 3.6 yet
(nogo for ADT). Or I have to rollback to JRE 1.6.0_18. I'd appreciate
any suggestions.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: Sim Contacts

2010-09-02 Thread William Ferguson
Wow. For a platform mainly targetted at the mobile phone device the
deafening silence on accessing the SIM is truly amazing.


On Sep 1, 8:57 am, William Ferguson william.ferguson...@gmail.com
wrote:
 Anyone? One of the Google engineers perhaps?

 On Aug 30, 7:37 am, William Ferguson william.ferguson...@gmail.com
 wrote:

  I have some code that manipulates the Contacts database via the
  Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can
  add/edit/delete my Google contacts, Phone contacts and the Sim
  contacts cached there.

  Changes to the Phone contacts are immediate, changes to the Google
  contacts are synced to my Google account, but changes to the SIM
  contacts only affect the Contacts DB and aren't persisted to the SIM.

  Ie while I can delete the SIM contacts from the Contacts DB, once I
  reboot my phone the SIM contacts get repopulated into the Contacts DB.

  The IccProvider (accessed via content://icc/adn) seems to be a way to
  directly access the SIM contacts. The source code seems to suggest so
  and there is annectdotal evidence that this works, but it is an
  internal Android API and it doesn't work on my Galaxy S in any case.

  So, does anyone know a definitive way of modifying/deleting SIM
  contacts.
  Or failing that, a way to stop the SIM contacts being reopulated on
  reboot, though this seems less satisfying.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: ServiceTestCase does not trigger Service.onStartCommand()

2010-09-02 Thread doug
A correction.  It is not Servcie.onStart() but
Service.onCreate().  My ServiceTestCase derived test case calls
startService() which does not trigger Service.onStartCommand() but
only Service.onCreate().  Both Service methods will be called when the
service starts normally from the application.

doug

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread William Ferguson
Dianne, is there a Google group to which these question could be put?


On Sep 3, 8:06 am, Dianne Hackborn hack...@android.com wrote:
 On Thu, Sep 2, 2010 at 12:13 PM, TreKing treking...@gmail.com wrote:
  On Wed, Sep 1, 2010 at 11:36 PM, Dianne Hackborn hack...@android.comwrote:

  I don't know about this stuff in Market, so I can't help you there

  That's really too bad. We could *really* use someone that's knows about
  this stuff in the Market around here. Considering how much time you and
  others spend helping out around here, why no one from the Market end is
  willing or able to take two seconds here and there to answer some extremely
  simple questions continues to boggle my mind.

 This group is for non-beginner development questions using the Android SDK.
  It doesn't really make sense for people who work on Market to follow such a
 group (especially since many of the people don't even know the Android SDK
 since they work on the servers).

 And again, I don't work on Market stuff, I am here to answer questions about
 developing with the SDK, so there isn't really anything I can add to this
 thread so I will stop now. :}

 --
 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: Sim Contacts

2010-09-02 Thread Mark Murphy
On Thu, Sep 2, 2010 at 7:01 PM, William Ferguson
william.ferguson...@gmail.com wrote:
 Wow. For a platform mainly targetted at the mobile phone device the
 deafening silence on accessing the SIM is truly amazing.

I am not aware of APIs related to SIM contacts in Android or any
configurability regarding their operation.

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

Android Consulting: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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] GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread TreKing
On Thu, Sep 2, 2010 at 5:06 PM, Dianne Hackborn hack...@android.com wrote:

 It doesn't really make sense for people who work on Market to follow such a
 group (especially since many of the people don't even know the Android SDK
 since they work on the servers).


Indeed - but it does make sense for them to follow the official Android
Market Help forum http://market.android.com/support/?hl=en, which they
apparently do not, since questions like these get posted there over and over
again and are either left to rot or get a We'll see or Should be good
response from Dontae.

I simply don't understand why it's so difficult for them to do there what
you do here.

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

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

[android-developers] Re: Bitmaps and OutOfMemoryError: Best Practices needed

2010-09-02 Thread blahblah...@gmail.com
We are also having occasional problems with OutOfMemory errors in
createBitmap. It tends to happen after a few orientation changes when
we are allocating the backbuffers. I have made it so that it calls
recycle() on the old bitmaps (if any exist) and does a System.gc()
before allocating the new backbuffers. Hopefully this will solve the
problem, but I'm worried that it could still happen.

What we are doing is allocating a backbuffer that is twice the width
and height of the screen so that we can quickly zoom in and out. With
a 854x480 screen this would presumably be 6.25MB in size.

The problem as I see it is the 16 or 24MB maximum heap size per
process. This is unreasonably small, especially on devices that have
512MB of RAM. Ideally the max heap size should be something like 64MB,
or perhaps allow apps to request a larger heap size from the user.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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: OpenGL ES - Color Picking - Front/Back Buffer

2010-09-02 Thread Robert Green
Thiago,

I'm going to answer by providing a totally different way to do your
picking.  If you separate the object models and the rendering into two
different things, you can have it so that when it's time to pick, you
get a ray into your world using glUnProject (assuming you have your
own view transform matrix that you use) and run intersection tests of
that ray against your models.  I recommend doing a simple ray-sphere
intersection test to see if the ray was in the area of the object and
then test against the faces of the object itself or a convex hull
surrounding it to get a more accurate idea.  This, done optimally,
will most likely outperform your current solution as it doesn't
introduce a complete pipeline stall with 2 pass rendering
(glReadPixels, clear, draw again)...

If you're interested in doing it, just refer to 3D game math books for
the matrix math involved and google around for a ray-sphere test to
get started.  Once you've got that working, there are algorithms for
producing the hull around the object or if you're ok with bounding
boxes, they tend to work alright and are easily constructed.

On Sep 2, 2:50 pm, Thiago Lopes Rosa thiago.r...@gmail.com wrote:
 Hi,

 I have a 3D game and I am using color-picking to know which object was
 selected.

 When the user touches the screen, I draw each object with a different color.
 Then I read the color where the user touched the screen to know which object
 was selected. After that I draw each object with their respective
 textures/colors. (everything done during one onDrawFrame pass)

 The problem is that sometimes the colored objects appear on the screen (~5%
 of the times the user touches the screen) and it is even worse on slower
 hardwares.

 This is my pseudo code:

 public void onDrawFrame(GL10 gl) {
 if (user touched the screen) {
  gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
  gl.glMatrixMode(GL10.GL_MODELVIEW);

 // DRAW COLORED OBJECTS

 gl.glReadPixels(x, y, ..);
  // CHECK WHICH OBJECT WAS SELECTED
  gl.glColor4x(0x, 0x, 0x, 0x);
  }

  gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
  gl.glMatrixMode(GL10.GL_MODELVIEW);

  // DRAW TEXTURED OBJECTS

 }

 As far as I understand, we always draw on the Back Buffer and only after we
 finish, it swaps to the Front Buffer and updates the screen.
 Is there anything wrong with the above code?

 Thanks!

 Thiago

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


[android-developers] ViewFlipper Help Please

2010-09-02 Thread Tommy
Hi everyone,

I am currently using a ViewFlipper to move through some views. It
works fine when I want to move sequentially through IE 1,2,3,4 or
4,3,2,1 My question is if I want to go from say 1 to 4 when a button
is clicked how should I do this? Currently I use the following bit of
code but im not sure this is the correct way to go about it.

int x = 0;
   do{
   
flipper.setInAnimation(inFromRightAnimation());

flipper.setOutAnimation(outToLeftAnimation());
flipper.showNext();
x = x +1;
   }while(x = 5);
}

Thanks for your time and help,

Tommy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
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   >