[android-developers] Re: Android Market: server error when authorizing credit card

2009-03-05 Thread acrosser

Heh... I guess it would create some problems if you tried to purchase
an app with your own account for, say, 1 dollar... So your account is
then $-1.00, Google gets $0.30 and you get the other $0.70, bringing
your own account up to $-0.30. Then if you return the app you would be
refunded $1.00, and Google would take away your $0.70 profit... and
you would be back to $1.00... but it would probably spawn some
infinite loop and all hell would break loose on the Android Market (oh
wait, it already has).


Suggestion: Displaying the message You may not purchase your own
goods from the Market would be much more informative than A server
error has occurred. (Thus avoiding the developer hitting Retry a
bunch of times!) :-)


On Feb 20, 3:11 pm, Inderjeet Singh inder...@gmail.com wrote:
 That is true: Google Checkout will not let a merchant be a buyer for their
 own goods.
 Inder

 On Fri, Feb 20, 2009 at 12:00 PM, Robert Green rbgrn@gmail.com wrote:

  Yup, it appears as though you can't buy your own app!  :)

  On Feb 20, 1:21 pm, Sundog sunns...@gmail.com wrote:
   Same here.

   On Feb 20, 11:38 am, g1bb corymgibb...@gmail.com wrote:

Are you trying to purchase your own app? I got the same error when I
did, but not when I purchased someone else's.

On Feb 20, 10:58 am, SR stan.r...@gmail.com wrote:

 Hi all,

 I've been trying to buy some apps but have been getting a server
  error
 after Authorizing credit card... bubble shows up.   For about an
 hour or so...

 Anybody else have this problem?

 Maybe there are problems with the server and someone from Google
  ought
 to look at them?

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

2009-03-05 Thread Al Sutton

I've been playing with a UK G1 which has received the 1.1 firmware 
update (TC9), but it would seem that it can't access paid for apps.

I'd appreciate someone else verifying this on another update UK G1, but 
when I switched the view to show paid apps only all the categories just 
have a message saying;

No matching content in Android Market.

If someone could check this I'd appreciate it because at the moment I'm 
not sure if it is something wrong with the G1 I was using (signal 
strength, etc.), or does the UK TC9 update not bring paid-apps to UK users?

Al.

-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Where can I find a app for my gps test?

2009-03-05 Thread www_...@yahoo.com.cn

I have already known about that, but i still need a app to start my
GPS as I don't have the environment to build a app.

On 3月5日, 下午12时05分, www_...@yahoo.com.cn www_...@yahoo.com.cn
wrote:
 Thanks Avraham. DoesGPSstarts automatically when android boots up? I
 mean whether or not i need a app to startGPSthread ?
 Inmyopinion, the route program runs like: main( app_mian.cpp) -
 runtime.start ( )-  register functions -...

 But when and where theGPSthread will be started ? thanks again.

 On 3月5日, 上午12时17分, Avraham Serour tovm...@gmail.com wrote:



  isn't the google maps enough for what you want?

  On Wed, Mar 4, 2009 at 3:50 AM, www_...@yahoo.com.cn
  www_...@yahoo.com.cnwrote:

   Hi all,

   I need aGPSapplication on android so  I cantestmygpsfunction.
   Can any one who knows and being so kind to tell me about? 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: Update UK G1 not showing paid apps

2009-03-05 Thread Ryan

I can confirm this is the same on my UK G1.

The market is no longer Beta, but no paid app's yet. My guess is the
update means UK G1's can now support paid app's, but we're still
waiting on Google to flick the switch and make them available.

Hopefully, not too much longer to wait.

On Mar 5, 8:13 am, Al Sutton a...@funkyandroid.com wrote:
 I've been playing with a UK G1 which has received the 1.1 firmware
 update (TC9), but it would seem that it can't access paid for apps.

 I'd appreciate someone else verifying this on another update UK G1, but
 when I switched the view to show paid apps only all the categories just
 have a message saying;

 No matching content in Android Market.

 If someone could check this I'd appreciate it because at the moment I'm
 not sure if it is something wrong with the G1 I was using (signal
 strength, etc.), or does the UK TC9 update not bring paid-apps to UK users?

 Al.

 --

 * Written an Android App? - List it athttp://andappstore.com/*

 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Refresh Notification after deleting from user

2009-03-05 Thread Manfred

Hi!

I have a Backgroundservice running, an icon is displayed in the status-
bar. When a user clicks the button delete notifications my icon
dissappears also.
But i want that after that my icon appears again! So that the user is
able to click on the notification to get into my application. Now i
display the notification in a thread every time. But i want to display
it only if it was deleted. I think the best way is to check if the
notification is displayed, is there a way to get this information?

Thanks
manfred
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Update UK G1 not showing paid apps

2009-03-05 Thread lotusscript

Same here!

Now where did I put that Google, switch em on or else email  :-)

Al Sutton wrote:
 I've been playing with a UK G1 which has received the 1.1 firmware 
 update (TC9), but it would seem that it can't access paid for apps.

 I'd appreciate someone else verifying this on another update UK G1, but 
 when I switched the view to show paid apps only all the categories just 
 have a message saying;

 No matching content in Android Market.

 If someone could check this I'd appreciate it because at the moment I'm 
 not sure if it is something wrong with the G1 I was using (signal 
 strength, etc.), or does the UK TC9 update not bring paid-apps to UK users?

 Al.

   

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

2009-03-05 Thread Cyril Mottier

I prefer you being terse and giving understandable answers than no one
answering me :p. Thanks ;)

On 4 mar, 18:09, Romain Guy romain...@google.com wrote:
 onkeydown: make sure your view is focusable and focused.

 Padding: known bug, fixed in cupcake.

 Sorry for being terse, sent from my phone :)

 On Mar 4, 2009 9:05 AM, Cyril M cyrilmott...@gmail.com wrote:

 Here is a skeleton of the class I'm currently working on.
 Unfortunatly, i'm stuck on two problems and it's driving me mad !

 The first problem is about the onKeyDown(KeyEvent) : I don't
 understand why this method isn't called while I pressed a key on the
 emulator.
 The second problem deals with padding. Indeed, I'm always creating
 widget using fake paddings in order to be sure my widget correctly
 handle those values. Unfortunatly, I tried to extend a ProgressBar and
 I had some problems because my ProgressBar is clipped.

 My code is :

 package com.niji.android.myhouse;

 import android.content.Context;
 import android.graphics.Canvas;
 import android.graphics.Color;
 import android.graphics.Paint;
 import android.graphics.drawable.Drawable;
 import android.util.AttributeSet;
 import android.util.Log;
 import android.view.KeyEvent;
 import android.view.MotionEvent;
 import android.widget.ProgressBar;

 public class ProgressWheel extends ProgressBar {

        private static final String TAG_LOG = ProgressWheel;
        private static final Paint mPaint = new Paint();

        private float oldX;

        public ProgressWheel(Context context, AttributeSet attrs) {
                this(context, attrs, 0);
        }

        public ProgressWheel(Context context, AttributeSet attrs, int
 defStyle) {
                super(context, attrs, defStyle);

                mPaint.setStrokeWidth(1.0f);
                mPaint.setColor(Color.MAGENTA);
                mPaint.setStyle(Paint.Style.STROKE);

                setPadding(5, 15, 40, 10)

        }

       �...@override
        protected synchronized void onDraw(Canvas canvas) {
                /*
                 * I'm not sure the onDraw(Canvas) method from ProgressBar is
 correctly
                 * implemented. Indeed. With padding values, The progressBar
 may be
 clipped
                 */
                super.onDraw(canvas);
                canvas.drawRect(0, 0, getWidth()-1, getHeight()-1, mPaint);
        }

   �...@override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
                /*
                 * I don't understand why this method is not called
                 */
        int progress = getProgress();
        Log.d(TAG_LOG, onKeyDown);
        switch (keyCode) {
            case KeyEvent.KEYCODE_DPAD_LEFT:
                Log.d(TAG_LOG, KEYCODE_DPAD_LEFT);
                if (progress = 0) break;
                setProgress(progress - 1);
                return true;

            case KeyEvent.KEYCODE_DPAD_RIGHT:
                Log.d(TAG_LOG, KEYCODE_DPAD_RIGHT);
                if (progress = getMax()) break;
                setProgress(progress + 1);
                return true;
        }

        return super.onKeyDown(keyCode, event);
    }

       �...@override
        public boolean onTouchEvent(MotionEvent event) {
                Log.d(TAG_LOG, onTouchEvent);
                int progress = getProgress();

                switch (event.getAction()) {
                case MotionEvent.ACTION_DOWN:
                        oldX = event.getX();
                        break;
                case MotionEvent.ACTION_MOVE:
                        if (event.getX()  oldX) {
                                setProgress(progress + 1);
                        }
                        else setProgress(progress - 1);
                        oldX = event.getX();
                        break;

                default:
                        break;
                }

                return true;
        }

 }

 and here is my XML layout :

 ?xml version=1.0 encoding=utf-8?

 RelativeLayout
        android:id=@+id/RelativeLayout01
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        xmlns:android=http://schemas.android.com/apk/res/android; 

        com.mypackage.ProgressWheel
            style=?android:attr/progressBarStyleHorizontal
                android:layout_centerInParent=true
                android:layout_margin=10px
                android:layout_width=fill_parent
                android:layout_height=wrap_content
                android:progress=35 /

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

2009-03-05 Thread dillirao malipeddi
while creating notification

set flags as FLAG_NO_CLEAR

then the notification remains after user clicks clear notification

 Notification my_notification = new Notification(R.drawable.iconl,
status_text, System.currentTimeMillis());

my_notification .flags = Notification.FLAG_NO_CLEAR;

i think this will help you

On Thu, Mar 5, 2009 at 2:26 PM, Manfred manfred.fettin...@gmail.com wrote:


 Hi!

 I have a Backgroundservice running, an icon is displayed in the status-
 bar. When a user clicks the button delete notifications my icon
 dissappears also.
 But i want that after that my icon appears again! So that the user is
 able to click on the notification to get into my application. Now i
 display the notification in a thread every time. But i want to display
 it only if it was deleted. I think the best way is to check if the
 notification is displayed, is there a way to get this information?

 Thanks
 manfred
 



-- 
Dilli Rao. M
ARIJASOFT
+91 - 9703073540

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

2009-03-05 Thread Manfred

Thanks alot, this is what i need :-)

On 5 Mrz., 10:04, dillirao malipeddi dillir...@arijasoft.com wrote:
 while creating notification

 set flags as FLAG_NO_CLEAR

 then the notification remains after user clicks clear notification

  Notification my_notification = new Notification(R.drawable.iconl,
 status_text, System.currentTimeMillis());

         my_notification .flags = Notification.FLAG_NO_CLEAR;

 i think this will help you



 On Thu, Mar 5, 2009 at 2:26 PM, Manfred manfred.fettin...@gmail.com wrote:

  Hi!

  I have a Backgroundservice running, an icon is displayed in the status-
  bar. When a user clicks the button delete notifications my icon
  dissappears also.
  But i want that after that my icon appears again! So that the user is
  able to click on the notification to get into my application. Now i
  display the notification in a thread every time. But i want to display
  it only if it was deleted. I think the best way is to check if the
  notification is displayed, is there a way to get this information?

  Thanks
  manfred

 --
 Dilli Rao. M
 ARIJASOFT
 +91 - 9703073540
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 a view with a background that wraps up all the content of the view?

2009-03-05 Thread hc

I'm trying to create a listview containing conversations in chat
bubbles, and each chat bubbles are rows in the list view.

So what I have is an avatar on the left, and a chat bubble on the
right.
Then in the chat bubble, I have a textview for name, a textview for
content, and a textview for time.

The problem is, I cannot adjust the height of the chat bubble such
that the bottom edge is just below the textview for time. In the
chatBubble, I have this line that does not work
android:layout_alignBottom=@+id/timeLabel
because timeLabel is a textview created after chatBubble. If I place
chatBubble tags right below timeLabel, the height of chatBubble will
be just right because lf the layout_alignBottom, but chatBubble covers
all the text created before it.

Is there a way I can create the chatBubble last, and bring the view to
the background?
Or is there a better way to do this?


?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=wrap_content

Button android:id=@+id/avatarIcon
android:background=@drawable/logo
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginLeft=5dip android:layout_marginTop=5dip/
Button android:id=@+id/chatBubble
android:layout_toRightOf=@+id/avatarIcon
android:background=@drawable/chat_bubble_left
android:layout_width=fill_parent
android:layout_alignBottom=@+id/timeLabel
android:layout_height=fill_parent
android:layout_margin=5dip/
TextView android:id=@+id/userLabel
android:layout_toRightOf=@+id/avatarIcon
android:text=user name should be here..
android:textColor=#ff8400
android:textStyle=bold
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_marginTop=10dip
android:textSize=11dip
android:layout_marginLeft=20dip/
TextView android:id=@+id/content
android:layout_toRightOf=@+id/avatarIcon
android:layout_below=@+id/userLabel
android:text=This is just a test description
android:textStyle=bold
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textSize=11dip
android:layout_marginLeft=20dip
android:textColor=#fff
android:layout_marginRight=20dip
android:layout_marginTop=5dip/
TextView android:id=@+id/timeLabel
android:layout_alignParentRight=true
android:layout_below=@+id/reviewContent
android:text=10 mins
android:textStyle=bold
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textSize=11dip
android:layout_marginLeft=20dip
android:textColor=#fff
android:layout_marginRight=20dip
android:layout_marginTop=5dip/

/RelativeLayout

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: what is the recording format of Intent .RECORD_SOUND_ACTION?

2009-03-05 Thread zeeshan

thanks for the reply Dave, i was really waiting for it.
is there any way to transcode it in mp3 after record finish.

i need this kind of output:

Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

protected void onActivityResult(int requestCode, int resultCode,Intent
data) {

if(requestCode == SELECT_AUDIO){
if (resultCode == RESULT_CANCELED) {


} else {

if (data != null) {


Uri RecordedAudio = data.getData();
 convertInMp3(Uri);

}

}
}

}

?


On Mar 5, 7:59 am, Dave Sparks davidspa...@android.com wrote:
 The only audio format supported on G1 is AMR format (raw .AMR file).

 On Mar 4, 1:18 pm, zeeshan genx...@gmail.com wrote:



  Hi,

  can anyone tell me what is the default format of android recording.
  i have recorded an audio clip but dont know how can i check its
  extention?

  i am using this activity

  Intent intent = new Intent
  (MediaStore.Audio.Media.RECORD_SOUND_ACTION);
  startActivityForResult(intent, ACTIVITY_RECORD_SOUND);

  i need mp3/wav format, is it the same or do i need to convert it? how?

  please reply me

  thanks.- 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 get raw data decoded by MediaPlayer

2009-03-05 Thread npak...@gmail.com

Hi all,
Is it possible to get raw data decoded by MediaPlayer? If yes, please
show me how to do that.
Thank for your help.
NPAK
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin

Thanks for your reply, but still not working.. Now i am trying with
this code...



import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.MediaController.MediaPlayerControl;

public class Monster extends Activity implements
SurfaceHolder.Callback, MediaPlayer.OnPreparedListener {

SurfaceView mPreview;
SurfaceHolder holder;
MediaPlayer mediaplayer;
int mVideoWidth,mVideoHeight;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.bushentry);
mPreview = (SurfaceView)findViewById(R.id.surface);
holder = mPreview.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
mediaplayer = MediaPlayer.create(this, R.raw.monster);
mediaplayer.start();
mediaplayer.setDisplay(holder);
mediaplayer.setOnPreparedListener(this);
}
public void surfaceChanged(SurfaceHolder holder, int format, int
width,
int height) {

}
public void surfaceCreated(SurfaceHolder holder1) {
mVideoWidth = mediaplayer.getVideoWidth();
mVideoHeight = mediaplayer.getVideoHeight();
if (mVideoWidth != 0  mVideoHeight != 0) {
holder.setFixedSize(mVideoWidth, mVideoHeight);
mediaplayer.start();
}
}
public void surfaceDestroyed(SurfaceHolder holder) {
}

public void onPrepared(MediaPlayer mp) {
mVideoWidth = mediaplayer.getVideoWidth();
mVideoHeight = mediaplayer.getVideoHeight();
if (mVideoWidth != 0  mVideoHeight != 0) {
holder.setFixedSize(mVideoWidth, mVideoHeight);
mediaplayer.start();
}
}
}


Still, the same problem, no error, but blank screen, any idea please..

Nithin


On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote:
 You need to tell the mediaplayer where to display the video with
 setDisplaySurface(). Check out the media demo apps on
 developer.android.com.

 On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote:

  hi,

  I tried a simple mediaplayer application, just to run a .3gp file.
  First, i put the .3gp file in Raw folder and tried to run, but
  nothing is displaying, just blank screen only please guide me,
  where i am going wrong. I dont have any xml file, is it needed ??

  heres the code, which i am trying

  import android.app.Activity;
  import android.media.MediaPlayer;
  import android.os.Bundle;

  public class MonsterEntry extends Activity {

          public void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  MediaPlayer mediaplayer = MediaPlayer.create(this, 
  R.raw.monster);
                  mediaplayer.start();
          }

  }

  Thanks
  Nithin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MediaPlayer not running - just blank screen

2009-03-05 Thread dillirao malipeddi
did you get any error in ddms logcat ?
may  be your player gives error while try to play



On Thu, Mar 5, 2009 at 3:14 PM, nithin nithin.war...@gmail.com wrote:


 Thanks for your reply, but still not working.. Now i am trying with
 this code...



 import android.app.Activity;
 import android.media.MediaPlayer;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.SurfaceHolder;
 import android.view.SurfaceView;
 import android.widget.MediaController.MediaPlayerControl;

 public class Monster extends Activity implements
 SurfaceHolder.Callback, MediaPlayer.OnPreparedListener {

SurfaceView mPreview;
SurfaceHolder holder;
MediaPlayer mediaplayer;
int mVideoWidth,mVideoHeight;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.bushentry);
mPreview = (SurfaceView)findViewById(R.id.surface);
holder = mPreview.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
mediaplayer = MediaPlayer.create(this, R.raw.monster);
mediaplayer.start();
mediaplayer.setDisplay(holder);
mediaplayer.setOnPreparedListener(this);
}
public void surfaceChanged(SurfaceHolder holder, int format, int
 width,
int height) {

}
public void surfaceCreated(SurfaceHolder holder1) {
mVideoWidth = mediaplayer.getVideoWidth();
mVideoHeight = mediaplayer.getVideoHeight();
if (mVideoWidth != 0  mVideoHeight != 0) {
holder.setFixedSize(mVideoWidth, mVideoHeight);
mediaplayer.start();
}
}
public void surfaceDestroyed(SurfaceHolder holder) {
}

public void onPrepared(MediaPlayer mp) {
mVideoWidth = mediaplayer.getVideoWidth();
mVideoHeight = mediaplayer.getVideoHeight();
if (mVideoWidth != 0  mVideoHeight != 0) {
holder.setFixedSize(mVideoWidth, mVideoHeight);
mediaplayer.start();
}
}
 }


 Still, the same problem, no error, but blank screen, any idea please..

 Nithin


 On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote:
  You need to tell the mediaplayer where to display the video with
  setDisplaySurface(). Check out the media demo apps on
  developer.android.com.
 
  On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote:
 
   hi,
 
   I tried a simple mediaplayer application, just to run a .3gp file.
   First, i put the .3gp file in Raw folder and tried to run, but
   nothing is displaying, just blank screen only please guide me,
   where i am going wrong. I dont have any xml file, is it needed ??
 
   heres the code, which i am trying
 
   import android.app.Activity;
   import android.media.MediaPlayer;
   import android.os.Bundle;
 
   public class MonsterEntry extends Activity {
 
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   MediaPlayer mediaplayer = MediaPlayer.create(this,
 R.raw.monster);
   mediaplayer.start();
   }
 
   }
 
   Thanks
   Nithin
 



-- 
Dilli Rao. M

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

2009-03-05 Thread zeeshan

Hi Mates,

i am trying to write mp3 file in OutputStreamWriter.

here is the code:

String fileName=/sdcard/test_cbr.mp3;

byte [] buffer = new byte[1024*4];
int bytesRead = 0;

FileInputStream is = new FileInputStream(fileName);

// everything fine untill here

while( (bytesRead = is.read(buffer))  0) { // while condition is
false
wr.write(buffer,0,bytesRead);
wr.flush();
}


it can access the file and makes the FileInputStream object but cann't
read. it doesn't go in While loop

any solution?

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: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin

no, there is no error in logcat...
i put log messages every where and logcat showing all messages, but no
video is playing..

Nithin

On Mar 5, 2:48 pm, dillirao malipeddi dillir...@arijasoft.com wrote:
 did you get any error in ddms logcat ?
 may  be your player gives error while try to play



 On Thu, Mar 5, 2009 at 3:14 PM, nithin nithin.war...@gmail.com wrote:

  Thanks for your reply, but still not working.. Now i am trying with
  this code...

  import android.app.Activity;
  import android.media.MediaPlayer;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.SurfaceHolder;
  import android.view.SurfaceView;
  import android.widget.MediaController.MediaPlayerControl;

  public class Monster extends Activity implements
  SurfaceHolder.Callback, MediaPlayer.OnPreparedListener {

         SurfaceView mPreview;
         SurfaceHolder holder;
         MediaPlayer mediaplayer;
         int mVideoWidth,mVideoHeight;

         public void onCreate(Bundle savedInstanceState) {
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.bushentry);
                 mPreview = (SurfaceView)findViewById(R.id.surface);
                 holder = mPreview.getHolder();
                 holder.addCallback(this);
                 holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
                 mediaplayer = MediaPlayer.create(this, R.raw.monster);
                 mediaplayer.start();
                 mediaplayer.setDisplay(holder);
                 mediaplayer.setOnPreparedListener(this);
         }
         public void surfaceChanged(SurfaceHolder holder, int format, int
  width,
                         int height) {

         }
         public void surfaceCreated(SurfaceHolder holder1) {
                 mVideoWidth = mediaplayer.getVideoWidth();
         mVideoHeight = mediaplayer.getVideoHeight();
         if (mVideoWidth != 0  mVideoHeight != 0) {
             holder.setFixedSize(mVideoWidth, mVideoHeight);
             mediaplayer.start();
         }
         }
         public void surfaceDestroyed(SurfaceHolder holder) {
         }

         public void onPrepared(MediaPlayer mp) {
                 mVideoWidth = mediaplayer.getVideoWidth();
         mVideoHeight = mediaplayer.getVideoHeight();
         if (mVideoWidth != 0  mVideoHeight != 0) {
             holder.setFixedSize(mVideoWidth, mVideoHeight);
             mediaplayer.start();
         }
         }
  }

  Still, the same problem, no error, but blank screen, any idea please..

  Nithin

  On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote:
   You need to tell the mediaplayer where to display the video with
   setDisplaySurface(). Check out the media demo apps on
   developer.android.com.

   On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote:

hi,

I tried a simple mediaplayer application, just to run a .3gp file.
First, i put the .3gp file in Raw folder and tried to run, but
nothing is displaying, just blank screen only please guide me,
where i am going wrong. I dont have any xml file, is it needed ??

heres the code, which i am trying

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;

public class MonsterEntry extends Activity {

        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                MediaPlayer mediaplayer = MediaPlayer.create(this,
  R.raw.monster);
                mediaplayer.start();
        }

}

Thanks
Nithin

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

2009-03-05 Thread Daisuke Miyakawa
Hi,

When I'm looking over source code, I often find LOCAL_MODULE_TAGS. But
there's no definition about that.

Especially, I'm interested in the difference between
- eng
- user
- optional
- development

Could anyone teach me what each tag means?

Thanks,

-- 
Daisuke Miyakawa (宮川大輔)
d.miyak...@gmail.com

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



[android-developers] Re: When to setResult for onActivityResult

2009-03-05 Thread Chronos

@Tseng: I can't find this method - are you talking about class
Activity ?

So, let me get this straight: there are just two possible ways to
setResult():

 - Either: setResult() in your change listeners after data (even the
slightest bit) changes in your activity
 - Or: present a dedicated GUI element (menu entry, button or sth) to
end the activity; setResult() and finish() in its activate listener

*sigh* Both ways have reasonable drawbacks ... I will have to think
about which way suits me most :(


On Mar 5, 3:28 am, Dianne Hackborn hack...@android.com wrote:
 You can call it a design flaw, but the design is that at the point you say
 to finish your activity, the current result is bundled up and delivered, and
 than we go through the normal pause etc flow to transition from that
 activity to the previous.  At this point in time this just isn't going to
 change.



 On Wed, Mar 4, 2009 at 6:20 AM, Chronos g358279012044...@gmail.com wrote:

  Thanks for your input ;)

  I'm also discussing this with my colleagues - and I consider this
  either a bug or a design flaw...
  onPause() should be guaranteed to run before onActivityResult() - in
  more detail: setResult() in onPause() should have an effect in
  onActivityResult().

  On Mar 4, 3:03 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
   So you really don't want to *return*, hence the setResult() isn't
   appropriate in your case. You just want to communicate something back
   to the parent activity, is that right? In this case you want to use a
   broadcast receiver.

   Cheers

   On Wed, Mar 4, 2009 at 3:28 PM, Chronos g358279012044...@gmail.com
  wrote:

You should set the result when your child activity is about to exit -
for example I set the result from my child activity when a button is
clicked and just before exiting it, e.g.:

// in a button click handler
setResult(...);
finish();

This is the way they do it in the samples, but it makes not much sense
- I don't want to have an exit or save button; users should be
able to hit back (listening for back is my current workaround, but
it will probably fail under certain circumstances).

The documentation for Activity mentions that When an activity exits,
it can call setResult(int)  to return data back to its parent.

Yes - it says so. But it doesn't say WHEN - this is my problem; I
don't know when to setResult efficiently: onPause() doesn't work,
onSaveInstanceState() doesn't work; listening for back ain't
failproof; listening for data changes is ineffective. *sigh*

When you're getting a NPE what does you stacktrace look like?

Nevermind the NPE - it comes from RESULT_CANCELLED and Intent.getExtras
() returning null.

btw, you shouldn't assume that the parent activity will outlive the
child one - that is, the fact that your parent activity has spawned
another one for result doesn't mean it won't be destroyed should the
system need to destroy it because it's not in the foreground.

Yes, I don't.

On Mar 4, 1:58 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
On Wed, Mar 4, 2009 at 2:41 PM, Chronos g358279012044...@gmail.com
  wrote:

 Thanks for the idea - but this is not my problem: the result sent is
 the result I set in the onCreate method (a default result); if I
  fail
 to do this, I will get a java.lang.NullPointerException, which
 underlines my point - setResult() in onPause() is too late; my
 activity is not cancelled either - I always get an
  Activity.RESULT_OK.

You should set the result when your child activity is about to exit -
for example I set the result from my child activity when a button is
clicked and just before exiting it, e.g.:

// in a button click handler
setResult(...);
finish();

The documentation for Activity mentions that When an activity exits,
it can call setResult(int)  to return data back to its parent.

When you're getting a NPE what does you stacktrace look like?

 Do you think, onPause() is the correct point to setResult() ? It
  seems
 to me, that the result has already been transmitted in some
 communication queue at this point - all calls to setResult() are in
 vain.

btw, you shouldn't assume that the parent activity will outlive the
child one - that is, the fact that your parent activity has spawned
another one for result doesn't mean it won't be destroyed should the
system need to destroy it because it's not in the foreground.

 On Mar 4, 12:39 pm, Stoyan Damov stoyan.da...@gmail.com wrote:
 Actually read carefullyhttp://
  developer.android.com/reference/android/app/Activity.html#star...)

 On Wed, Mar 4, 2009 at 1:31 PM, Stoyan Damov 
  stoyan.da...@gmail.com wrote:
  Re:

  - setResult() in client.onPause() is called TOO LATE; the result
  has
  already been transmitted to the parent (although the method
  client.onPause() seems to be 

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin

ya, i saw log messages, in that, getVideoSize returning -1...

what may be the reason for that, any idea please..


Nithin


03-05 14:59:43.072: INFO/(324): 111
03-05 14:59:43.113: INFO/222(324): 
03-05 14:59:43.123: INFO/333(324): 33
03-05 14:59:43.333: INFO/(324): 
03-05 14:59:43.412: INFO/666(324): 666
03-05 14:59:43.412: ERROR/MediaPlayerService(24): getVideoSize
returned -1
03-05 14:59:43.424: ERROR/MediaPlayerService(24): getVideoSize
returned -1
03-05 14:59:43.634: INFO/5(324):
55
03-05 14:59:43.644: ERROR/MediaPlayerService(24): getVideoSize
returned -1
03-05 14:59:43.654: ERROR/MediaPlayerService(24): getVideoSize
returned -1
03-05 14:59:43.714: INFO/ActivityManager(46): Displayed activity
com.monster/.Monster: 735 ms
03-05 14:59:48.863: DEBUG/dalvikvm(94): GC freed 1037 objects / 53600
bytes in 68ms
03-05 14:59:51.931: WARN/AudioFlinger(24): write blocked for 157 msecs
03-05 14:59:53.465: WARN/AudioFlinger(24): write blocked for 146 msecs
03-05 14:59:54.915: WARN/AudioFlinger(24): write blocked for 259 msecs
03-05 14:59:55.094: WARN/AudioFlinger(24): write blocked for 130 msecs
03-05 14:59:55.190: WARN/AudioFlinger(24): write blocked for 58 msecs
03-05 14:59:55.449: WARN/AudioFlinger(24): write blocked for 96 msecs
03-05 14:59:56.705: WARN/AudioFlinger(24): write blocked for 75 msecs
03-05 15:05:42.232: DEBUG/dalvikvm(88): GC freed 9596 objects / 538312
bytes in 73ms
03-05 15:21:10.564: DEBUG/dalvikvm(88): GC freed 9289 objects / 524248
bytes in 90ms


On Mar 5, 3:03 pm, nithin nithin.war...@gmail.com wrote:
 no, there is no error in logcat...
 i put log messages every where and logcat showing all messages, but no
 video is playing..

 Nithin

 On Mar 5, 2:48 pm, dillirao malipeddi dillir...@arijasoft.com wrote:

  did you get any error in ddms logcat ?
  may  be your player gives error while try to play

  On Thu, Mar 5, 2009 at 3:14 PM, nithin nithin.war...@gmail.com wrote:

   Thanks for your reply, but still not working.. Now i am trying with
   this code...

   import android.app.Activity;
   import android.media.MediaPlayer;
   import android.os.Bundle;
   import android.util.Log;
   import android.view.SurfaceHolder;
   import android.view.SurfaceView;
   import android.widget.MediaController.MediaPlayerControl;

   public class Monster extends Activity implements
   SurfaceHolder.Callback, MediaPlayer.OnPreparedListener {

          SurfaceView mPreview;
          SurfaceHolder holder;
          MediaPlayer mediaplayer;
          int mVideoWidth,mVideoHeight;

          public void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.bushentry);
                  mPreview = (SurfaceView)findViewById(R.id.surface);
                  holder = mPreview.getHolder();
                  holder.addCallback(this);
                  holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
                  mediaplayer = MediaPlayer.create(this, R.raw.monster);
                  mediaplayer.start();
                  mediaplayer.setDisplay(holder);
                  mediaplayer.setOnPreparedListener(this);
          }
          public void surfaceChanged(SurfaceHolder holder, int format, int
   width,
                          int height) {

          }
          public void surfaceCreated(SurfaceHolder holder1) {
                  mVideoWidth = mediaplayer.getVideoWidth();
          mVideoHeight = mediaplayer.getVideoHeight();
          if (mVideoWidth != 0  mVideoHeight != 0) {
              holder.setFixedSize(mVideoWidth, mVideoHeight);
              mediaplayer.start();
          }
          }
          public void surfaceDestroyed(SurfaceHolder holder) {
          }

          public void onPrepared(MediaPlayer mp) {
                  mVideoWidth = mediaplayer.getVideoWidth();
          mVideoHeight = mediaplayer.getVideoHeight();
          if (mVideoWidth != 0  mVideoHeight != 0) {
              holder.setFixedSize(mVideoWidth, mVideoHeight);
              mediaplayer.start();
          }
          }
   }

   Still, the same problem, no error, but blank screen, any idea please..

   Nithin

   On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote:
You need to tell the mediaplayer where to display the video with
setDisplaySurface(). Check out the media demo apps on
developer.android.com.

On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote:

 hi,

 I tried a simple mediaplayer application, just to run a .3gp file.
 First, i put the .3gp file in Raw folder and tried to run, but
 nothing is displaying, just blank screen only please guide me,
 where i am going wrong. I dont have any xml file, is it needed ??

 heres the code, which i am trying

 import android.app.Activity;
 import 

[android-developers] Re: Setting clickable on individual ListView's ChildViews

2009-03-05 Thread chiizuf...@googlemail.com

Thanks for your reply,

What do you mean by disable the items in my adapter?

On Mar 4, 4:27 pm, Romain Guy romain...@google.com wrote:
 That's not the way to do it. Simply use an OnItemClickListener on your
 ListView and modify your adapter to disable the items  you don't want
 clickable. Do NOT attempt to change the properties of the children in
 this way.

 On Wed, Mar 4, 2009 at 3:06 AM, chiizuf...@googlemail.com



 chiizuf...@googlemail.com wrote:

  Hi,

  I'm in a situation where I have a ListView in which I want some of the
  entries to be clickable and some not to be. Setting
  listView.setClickable(false) disables clicks on everything even if
  textView.setClickable(true) is set when the child view is being added
  in my customised ArrayAdapter. Conversely, leaving clickableness of a
  ListView at the default of true, textView.setClickable(false) doesn't
  work.

  I've tried:

  textView.setClickable(false);
  textView.setFocusable(false);
  textView.setFocusableInTouchMode(false);
  textView.setLinksClickable(false);
  textView.setLongClickable(false);
  parent.setClickable(false);
  parent.setFocusable(false);
  parent.setFocusableInTouchMode(false);
  parent.setLongClickable(false);

  but none of them have any effect.

  The issue at
 http://code.google.com/p/android/issues/detail?id=625can=1q=clickab...
  notes that clicks don't go to the child view in a ListView. This being
  the case, is it even possible to disable clicks for an individual
  element which isn't a header?

  Thanks =].

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Help using autocomplete in my database.....

2009-03-05 Thread roland
Check this out,
http://groups.google.com/group/android-developers/browse_thread/thread/aee4be30ed6c737b/268dcd8155a059b3?lnk=gstq=autocomplete#268dcd8155a059b3

On 4 mar, 07:22, aljo aljochim...@gmail.com wrote:
 i'm kinda new to this android application and still a newbei to
 programming so hope someone could help me

 i've created an SQLite database program.. but i don't know how to use
 theautocompletefunction to access my database... here's my code:

 --

 package database.dev5;

 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;
 import android.widget.EditText;

 public class Database extends ListActivity {

         private final String MY_DATABASE_NAME = myCoolDB_2;
         private final String MY_DATABASE_TABLE = Users;

         /** Called when the activity is first created. */
         @Override
         public void onCreate(Bundle icicle) {
                 super.onCreate(icicle);

                 EditText et = new EditText(this);
                 et.setSelection(et.getText().length());
                 /* Will hold the 'Output' we want to display at the end. */
                 ArrayListString results = new ArrayListString();

                 SQLiteDatabase myDB = null;
                 try {

                         //Create the Database (no Errors if it already exists)
                         this.openOrCreateDatabase(MY_DATABASE_NAME, 
 MODE_PRIVATE, null);
                         // Open the DB and remember it
                         myDB = this.openOrCreateDatabase(MY_DATABASE_NAME, 
 MODE_PRIVATE,
 null);

                         //this.deleteDatabase(MY_DATABASE_NAME);

                         // Create a Table in the Database.
                         myDB.execSQL(CREATE TABLE IF NOT EXISTS 
                                                         + MY_DATABASE_TABLE
                                                         +  (English VARCHAR, 
 Japanese VARCHAR,
                                                         +  MASU_Form 
 VARCHAR, Definition VARCHAR););

                         //myDB.delete(MY_DATABASE_TABLE, null, null);

                         // Add two DataSets to the Table.
                         /*myDB.execSQL(INSERT INTO 
                                                         + MY_DATABASE_TABLE
                                                         +  (English, 
 Japanese, MASU_Form, Definition)
                                                         +  VALUES ('yes', 
 'hai', 'NA', 'noun'););
                         myDB.execSQL(INSERT INTO 
                                                         + MY_DATABASE_TABLE
                                                         +  (English, 
 Japanese, MASU_Form, Definition)
                                                         +  VALUES ('yes', 
 'ee', 'NA', 'noun'););
                         myDB.execSQL(INSERT INTO 
                                                         + MY_DATABASE_TABLE
                                                         +  (English, 
 Japanese, MASU_Form, Definition)
                                                         +  VALUES ('call', 
 'kakeru', 'kakemasu', 'verb: to call'););
                         myDB.execSQL(INSERT INTO 
                                                         + MY_DATABASE_TABLE
                                                         +  (English, 
 Japanese, MASU_Form, Definition)
                                                         +  VALUES ('call', 
 'kakeru', 'kakemasu', 'verb: to wear'););
                         myDB.execSQL(INSERT INTO 
                                                         + MY_DATABASE_TABLE
                                                         +  (English, 
 Japanese, MASU_Form, Definition)
                                                         +  VALUES ('call', 
 'kakeru', 'kakemasu', 'verb: to
 hang'););*/

                         //myDB.delete(MY_DATABASE_TABLE, LastName + = + 
 'Ponce',
 null);
                         //myDB.delete(MY_DATABASE_TABLE, null, null);

                         //Query for some results with Selection and 
 Projection.
                         /*Cursor c = myDB.query(MY_DATABASE_TABLE,
                                         new String[] {FirstName, Age }, 
 null,
                                         null, null, null, null, 7);  */

                         Cursor c = myDB.query(MY_DATABASE_TABLE,
                                         new String[] {English, Japanese , 
 MASU_Form, Definition},
                                         Japanese + = + 'kakeru', null, 
 null, null, null, 7);

                         // Get the indices of the Columns we will need
      

[android-developers] Capturing exceptions on user's phones?

2009-03-05 Thread admin.androidsl...@googlemail.com

We all know what its like - everything works perfect on the dev's
phone, but once you roll something out, user's complain about the
dreaded force close!!

Sometimes its just on one or two phones, but wouldn't it be good if we
could get some kind of stack trace to see whats really going on?

Obviously we can't speak to our users in person or play with their
phones, so we need some way of getting error diagnostics off their
phone and onto the dev's computer.

I was thinking along the lines of apps having a generic exception
handler which could store the stack trace and then maybe upload to a
web server so that the dev can take a look - anyone achieved something
like this?

Maybe the SDK should (or already does?) support something like this -
I think it will benefit developers and users enormously!!

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



[android-developers] Why different behaviour when exiting app using BACK and HOME ?

2009-03-05 Thread TAKEphONE

Hi all,

I know this probably was discussed here before, but I can only find
bits of info.

Say a user runs my app from the HOME screen.
The app has 3 tabs. Say he/she selectes a different tab,
so he/she is in a different screen (same task).

Now - if the user presses BACK - the device returns to the HOME
screen.
If the user launches my app again - the default tab is shown.

BUT - if the user presses HOME - the device returns to the HOME screen
(same).
If the user launches my app again - the OTHER tab is shown.

I understand (sort of) the logic - BACK returns to previous app,
popping my app
from the history stack, so when launched again - it is started from
scratch.
But this is confusing my customers - they say it's a bug !
They dont understand the different between two keys doing the same
thing
as far as they see (returning to HOME).

Moreover - I see a different behavior with the built-in DIALER app - I
change tabs,
press HOME, launch the app again - and it starts with the default tab.

Can I imitate this ?

TIA


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

2009-03-05 Thread admin.androidsl...@googlemail.com

My theory is that RC9 means that all Google now needs to do is flick a
switch and the UK will see paid apps without needing e.g. RC10.

But I don't think Google are ready to flick the switch. They still
want to sort out any teething issues they had from opening the paid
market in the US.

My paid app available US only has had several Google issues, including
users not being able to download updates, users not being able to get
refunds within 24 hours, users not being able to transfer apps to new
phone, etc.

Google will want to sort out these issues before they open up the
market too widely so I can understand why they are not giving any
definite dates.



On Mar 5, 8:57 am, lotusscript lotusscr...@gmail.com wrote:
 Same here!

 Now where did I put that Google, switch em on or else email  :-)

 Al Sutton wrote:
  I've been playing with a UK G1 which has received the 1.1 firmware
  update (TC9), but it would seem that it can't access paid for apps.

  I'd appreciate someone else verifying this on another update UK G1, but
  when I switched the view to show paid apps only all the categories just
  have a message saying;

  No matching content in Android Market.

  If someone could check this I'd appreciate it because at the moment I'm
  not sure if it is something wrong with the G1 I was using (signal
  strength, etc.), or does the UK TC9 update not bring paid-apps to UK users?

  Al.


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



[android-developers] How to stop Gallery scroll?

2009-03-05 Thread neuzou

Hi:
   everybody, I need to stop Gallery scrolling as I want, the Gallery
default behavior is stop at the end item, I don't know how to change
it,can you give me some advice?
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: Update UK G1 not showing paid apps

2009-03-05 Thread Stoyan Damov

On Thu, Mar 5, 2009 at 1:17 PM, admin.androidsl...@googlemail.com
admin.androidsl...@googlemail.com wrote:

 My theory is that RC9 means that all Google now needs to do is flick a
 switch and the UK will see paid apps without needing e.g. RC10.

 But I don't think Google are ready to flick the switch. They still
 want to sort out any teething issues they had from opening the paid
 market in the US.

 My paid app available US only has had several Google issues, including
 users not being able to download updates, users not being able to get
 refunds within 24 hours, users not being able to transfer apps to new
 phone, etc.

 Google will want to sort out these issues before they open up the
 market too widely so I can understand why they are not giving any
 definite dates.


Which is great. I've said it already and can't stress enough that
perfectly working Market application is billions of times more
important than meeting *any* deadline.

Cheers

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



[android-developers] Re: Capturing exceptions on user's phones?

2009-03-05 Thread Mads Kristiansen
I do this in my beta applications and it is incredibly valuable.

I am not aware of any existing implementations, so I built it myself. I'll
store the stacktraces on the phone and upload them to a webserver, where I
have a PHP script which will store the stack trace to a plain text file and
also send me an email with the details.

Some of the stack traces I collected would probably have taken me days to
reproduce myself.

/ Mads

On Thu, Mar 5, 2009 at 11:44 AM, admin.androidsl...@googlemail.com 
admin.androidsl...@googlemail.com wrote:


 We all know what its like - everything works perfect on the dev's
 phone, but once you roll something out, user's complain about the
 dreaded force close!!

 Sometimes its just on one or two phones, but wouldn't it be good if we
 could get some kind of stack trace to see whats really going on?

 Obviously we can't speak to our users in person or play with their
 phones, so we need some way of getting error diagnostics off their
 phone and onto the dev's computer.

 I was thinking along the lines of apps having a generic exception
 handler which could store the stack trace and then maybe upload to a
 web server so that the dev can take a look - anyone achieved something
 like this?

 Maybe the SDK should (or already does?) support something like this -
 I think it will benefit developers and users enormously!!

 Alex
 


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



[android-developers] Re: Capturing exceptions on user's phones?

2009-03-05 Thread admin.androidsl...@googlemail.com

Mads,

Thats exactly what we all need.

How do you get unhandled exceptions or do you put try...catch in all
your code blocks?

Do you submit stack traces individually or batch them up?

Any chance of sharing some of the code?

We really need a generic component for this - it will be a huge boost
for quality of the apps!

Alex



On Mar 5, 11:30 am, Mads Kristiansen mads.kristian...@nullwire.com
wrote:
 I do this in my beta applications and it is incredibly valuable.

 I am not aware of any existing implementations, so I built it myself. I'll
 store the stacktraces on the phone and upload them to a webserver, where I
 have a PHP script which will store the stack trace to a plain text file and
 also send me an email with the details.

 Some of the stack traces I collected would probably have taken me days to
 reproduce myself.

 / Mads

 On Thu, Mar 5, 2009 at 11:44 AM, admin.androidsl...@googlemail.com 

 admin.androidsl...@googlemail.com wrote:

  We all know what its like - everything works perfect on the dev's
  phone, but once you roll something out, user's complain about the
  dreaded force close!!

  Sometimes its just on one or two phones, but wouldn't it be good if we
  could get some kind of stack trace to see whats really going on?

  Obviously we can't speak to our users in person or play with their
  phones, so we need some way of getting error diagnostics off their
  phone and onto the dev's computer.

  I was thinking along the lines of apps having a generic exception
  handler which could store the stack trace and then maybe upload to a
  web server so that the dev can take a look - anyone achieved something
  like this?

  Maybe the SDK should (or already does?) support something like this -
  I think it will benefit developers and users enormously!!

  Alex


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



[android-developers] Re: Capturing exceptions on user's phones?

2009-03-05 Thread Mads Kristiansen
Yes, you are right. It could probably be helpful to others and I'd be happy
to share - I'll see if I can create a component somehow over the weekend. I
don't have the code with me right now, but I'll be back ;)

Basically I just have a default exception handler, which will catch all
unhandled exceptions. I'll then batch them up and at a later time, I'll then
submit the available traces to my server (and then of course also delete
them on the phone, when they have been submitted).

/ Mads

On Thu, Mar 5, 2009 at 12:40 PM, admin.androidsl...@googlemail.com 
admin.androidsl...@googlemail.com wrote:


 Mads,

 Thats exactly what we all need.

 How do you get unhandled exceptions or do you put try...catch in all
 your code blocks?

 Do you submit stack traces individually or batch them up?

 Any chance of sharing some of the code?

 We really need a generic component for this - it will be a huge boost
 for quality of the apps!

 Alex



 On Mar 5, 11:30 am, Mads Kristiansen mads.kristian...@nullwire.com
 wrote:
  I do this in my beta applications and it is incredibly valuable.
 
  I am not aware of any existing implementations, so I built it myself.
 I'll
  store the stacktraces on the phone and upload them to a webserver, where
 I
  have a PHP script which will store the stack trace to a plain text file
 and
  also send me an email with the details.
 
  Some of the stack traces I collected would probably have taken me days to
  reproduce myself.
 
  / Mads
 
  On Thu, Mar 5, 2009 at 11:44 AM, admin.androidsl...@googlemail.com 
 
  admin.androidsl...@googlemail.com wrote:
 
   We all know what its like - everything works perfect on the dev's
   phone, but once you roll something out, user's complain about the
   dreaded force close!!
 
   Sometimes its just on one or two phones, but wouldn't it be good if we
   could get some kind of stack trace to see whats really going on?
 
   Obviously we can't speak to our users in person or play with their
   phones, so we need some way of getting error diagnostics off their
   phone and onto the dev's computer.
 
   I was thinking along the lines of apps having a generic exception
   handler which could store the stack trace and then maybe upload to a
   web server so that the dev can take a look - anyone achieved something
   like this?
 
   Maybe the SDK should (or already does?) support something like this -
   I think it will benefit developers and users enormously!!
 
   Alex
 
 
 


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



[android-developers] Re: can't read mp3 file from sdcard

2009-03-05 Thread zeeshan

its working now!
actually it was read permission problem.

On Mar 5, 9:53 am, zeeshan genx...@gmail.com wrote:
 Hi Mates,

 i am trying to write mp3 file in OutputStreamWriter.

 here is the code:

 String fileName=/sdcard/test_cbr.mp3;

 byte [] buffer = new byte[1024*4];
 int bytesRead = 0;

 FileInputStream is = new FileInputStream(fileName);

 // everything fine untill here

 while( (bytesRead = is.read(buffer))  0) { // while condition is
 false
                     wr.write(buffer,0,bytesRead);
                     wr.flush();
                 }

 it can access the file and makes the FileInputStream object but cann't
 read. it doesn't go in While loop

 any solution?

 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: Capturing exceptions on user's phones?

2009-03-05 Thread admin.androidsl...@googlemail.com

That would be really great if you could post something Mads.

Alex



On Mar 5, 11:50 am, Mads Kristiansen mads.kristian...@nullwire.com
wrote:
 Yes, you are right. It could probably be helpful to others and I'd be happy
 to share - I'll see if I can create a component somehow over the weekend. I
 don't have the code with me right now, but I'll be back ;)

 Basically I just have a default exception handler, which will catch all
 unhandled exceptions. I'll then batch them up and at a later time, I'll then
 submit the available traces to my server (and then of course also delete
 them on the phone, when they have been submitted).

 / Mads

 On Thu, Mar 5, 2009 at 12:40 PM, admin.androidsl...@googlemail.com 

 admin.androidsl...@googlemail.com wrote:

  Mads,

  Thats exactly what we all need.

  How do you get unhandled exceptions or do you put try...catch in all
  your code blocks?

  Do you submit stack traces individually or batch them up?

  Any chance of sharing some of the code?

  We really need a generic component for this - it will be a huge boost
  for quality of the apps!

  Alex

  On Mar 5, 11:30 am, Mads Kristiansen mads.kristian...@nullwire.com
  wrote:
   I do this in my beta applications and it is incredibly valuable.

   I am not aware of any existing implementations, so I built it myself.
  I'll
   store the stacktraces on the phone and upload them to a webserver, where
  I
   have a PHP script which will store the stack trace to a plain text file
  and
   also send me an email with the details.

   Some of the stack traces I collected would probably have taken me days to
   reproduce myself.

   / Mads

   On Thu, Mar 5, 2009 at 11:44 AM, admin.androidsl...@googlemail.com 

   admin.androidsl...@googlemail.com wrote:

We all know what its like - everything works perfect on the dev's
phone, but once you roll something out, user's complain about the
dreaded force close!!

Sometimes its just on one or two phones, but wouldn't it be good if we
could get some kind of stack trace to see whats really going on?

Obviously we can't speak to our users in person or play with their
phones, so we need some way of getting error diagnostics off their
phone and onto the dev's computer.

I was thinking along the lines of apps having a generic exception
handler which could store the stack trace and then maybe upload to a
web server so that the dev can take a look - anyone achieved something
like this?

Maybe the SDK should (or already does?) support something like this -
I think it will benefit developers and users enormously!!

Alex


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



[android-developers] Receiver dynamically or in manifest?

2009-03-05 Thread Manfred

Hi!

I have dynamically registered a receiver in a class that extends
Service to inform for incoming sms.

Code:
this.registerReceiver(smslistener, new IntentFilter
(android.provider.Telephony.SMS_RECEIVED));

It works, but sometimes, when the phone is longer not used and the
black-screen appears, my application does not notice incoming sms
until i use the phone again.
So for example, i sent a sms at 13:23 and the G1 got it also at 13:23
but in the Logfile the entry was made at 13:43 when i used the phone
again.

I read in another article that its better for listening to incoming
sms to register the receiver not dynamically but in the manifest, then
it should work! But my problem is, if i register it in the manifest it
is running when the application starts, but i want that the user can
choose if incoming sms would be noticed.

So is there a way to register the receiver in manifest, but stop it
then dynamically and start it again? Or how could this be done??

Thanks
manfred
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: One adapter for different adapter views - how to specify proper layout for the view?

2009-03-05 Thread (Mishail)

Up thread.

I believe it should be trivial. Just stick my nose into the
appropriate docs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] can't view pictures (camera Unhandled exception )

2009-03-05 Thread zeeshan

Hi,
i am having the camera unhandled exception (stoped unexpectedly) when
i try to view any image in the Pictures directory.

i actually want to use crop funtion like

Intent i = new Intent(com.android.camera.action.CROP);
i.setClassName(com.android.camera,com.android.camera.CropImage);

which is giving me the same error as it is related to the above
problem.
someone in the post said this is a bug in sdk-r2

is this right or do we have any other solution?


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

2009-03-05 Thread Asif k

Hi all,

   I want  to configure  IP address of the emulator and to set the
network redirection ports for the socket communication.

   For that I had followed the steps as per android.developer.com/
emulator guides. But could not succeed in that.
   Can you plz tell me what will be the default IP of the emulator.

I got the error while executing followin command,

redir add tcp::

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



[android-developers] video player problem

2009-03-05 Thread manoj

Hi,

I have written a small app which plays video files. Some files are
playing nicely.

but some files's view is not visible, but I am able to listen the
audio.

I dont know why?

Can any one please suggest me where I am doing the wrong?

here is my code:

package bluemediaLab.vodcast1;



import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;


public class MediaPlayerDemo_Video extends Activity implements
MediaPlayer.OnBufferingUpdateListener,
MediaPlayer.OnCompletionListener,
MediaPlayer.OnPreparedListener, SurfaceHolder.Callback {

private static final String TAG = MediaPlayerDemo;
private int mVideoWidth;
private int mVideoHeight;
private MediaPlayer mMediaPlayer;
private SurfaceView mPreview;
private SurfaceHolder holder;
private String path;
private Bundle extras;
private static final String MEDIA = media;
private static final int LOCAL_AUDIO = 1;
private static final int STREAM_AUDIO = 2;
private static final int RESOURCES_AUDIO = 3;
private static final int LOCAL_VIDEO = 4;
private static final int STREAM_VIDEO = 5;

/**
 *
 * Called when the activity is first created.
 */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.mediaplayer_2);
mPreview = (SurfaceView) findViewById(R.id.surface);
holder = mPreview.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
extras = getIntent().getExtras();

}

private void playVideo(Integer Media) {
try {

switch (Media) {
case LOCAL_VIDEO:
/*
 * TODO: Set the path variable to a local media
file path.
 */
path = ;
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity, 
+ and set the path
variable to your media file path.
+  Your media file
must be stored on sdcard.,
Toast.LENGTH_LONG).show();

}
break;
case STREAM_VIDEO:
/*
 * TODO: Set path variable to progressive
streamable mp4 or
 * 3gpp format URL. Http protocol should be used.
 * Mediaplayer can only play progressive
streamable
 * contents which basically means: 1. the movie
atom has to
 * precede all the media data atoms. 2. The clip
has to be
 * reasonably interleaved.
 *
 */
   // path = http://feeds.nos.nl/~r/journaal/
~5/531307337/NOS_Journaal_VODcast_std_4-2-2009_7_00_53.mp4;
path = extras.getString(MediaFileName);
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity,
+  and set the path
variable to your media file URL.,
Toast.LENGTH_LONG).show();

}

break;


}

// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);
//mMediaPlayer.prepare();
mMediaPlayer.prepareAsync();// added by manoj on 28-2-9,
its suggestion from the media api, for streams.
mMediaPlayer.setOnBufferingUpdateListener(this);
//mMediaPlayer.setOnCompletionListener(this);//commented
by manoj.
mMediaPlayer.setOnPreparedListener(this);
//mMediaPlayer.setAudioStreamType
(AudioManager.STREAM_MUSIC);


} catch (Exception e) {
Log.e(TAG, error:  + e.getMessage(), e);
}
}

public void onBufferingUpdate(MediaPlayer arg0, int percent) {
Log.d(TAG, onBufferingUpdate percent: + percent);

if(arg0.isPlaying())
{
Log.i(isPlaying() is ,true);
}
else
{
Log.i(isPlaying() is ,false);


}

if(percent == 100)
{

[android-developers] video viewing problem

2009-03-05 Thread manoj

Hi,

I have written the following code which plays the media file(.mp4).
Its working fine but,

I have two problems:
1. While trying to play a video file for the first time, video is not
getting played but the audio is playing(audible). Now if i try to play
the same video again in the application or if i restart the phone
(switch off and on ) i can see both video playing as well as the
audio.

2. I can play video if it is h.264 format. but if the video is of
encoding mpeg4, the app is unable to play the video.

can any one please suggest me to solve these two problems.



public class MediaPlayerDemo_Video extends Activity implements
MediaPlayer.OnBufferingUpdateListener,
MediaPlayer.OnCompletionListener,
MediaPlayer.OnPreparedListener, SurfaceHolder.Callback {

private static final String TAG = MediaPlayerDemo;
private int mVideoWidth;
private int mVideoHeight;
private MediaPlayer mMediaPlayer;
private SurfaceView mPreview;
private SurfaceHolder holder;
private String path;
private Bundle extras;
private static final String MEDIA = media;
private static final int LOCAL_AUDIO = 1;
private static final int STREAM_AUDIO = 2;
private static final int RESOURCES_AUDIO = 3;
private static final int LOCAL_VIDEO = 4;
private static final int STREAM_VIDEO = 5;

/**
 *
 * Called when the activity is first created.
 */
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.mediaplayer_2);
mPreview = (SurfaceView) findViewById(R.id.surface);
holder = mPreview.getHolder();
holder.addCallback(this);
holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
extras = getIntent().getExtras();

}

private void playVideo(Integer Media) {
try {

switch (Media) {
case LOCAL_VIDEO:
/*
 * TODO: Set the path variable to a local media
file path.
 */
path = ;
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity, 
+ and set the path
variable to your media file path.
+  Your media file
must be stored on sdcard.,
Toast.LENGTH_LONG).show();

}
break;
case STREAM_VIDEO:
/*
 * TODO: Set path variable to progressive
streamable mp4 or
 * 3gpp format URL. Http protocol should be used.
 * Mediaplayer can only play progressive
streamable
 * contents which basically means: 1. the movie
atom has to
 * precede all the media data atoms. 2. The clip
has to be
 * reasonably interleaved.
 *
 */

path = extras.getString(MediaFileName);
if (path == ) {
// Tell the user to provide a media file URL.
Toast
.makeText(
MediaPlayerDemo_Video.this,
Please edit
MediaPlayerDemo_Video Activity,
+  and set the path
variable to your media file URL.,
Toast.LENGTH_LONG).show();

}

break;


}

// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);

mMediaPlayer.prepareAsync();/
mMediaPlayer.setOnBufferingUpdateListener(this);

mMediaPlayer.setOnPreparedListener(this);


} catch (Exception e) {
Log.e(TAG, error:  + e.getMessage(), e);
}
}

public void onBufferingUpdate(MediaPlayer arg0, int percent) {
Log.d(TAG, onBufferingUpdate percent: + percent);





}

public void onCompletion(MediaPlayer arg0) {
Log.d(TAG, onCompletion called);
finish();
}

public void onPrepared(MediaPlayer mediaplayer) {
Log.d(TAG, onPrepared called);
mVideoWidth = mMediaPlayer.getVideoWidth();
mVideoHeight = mMediaPlayer.getVideoHeight();

if (mVideoWidth != 0  mVideoHeight != 0) {
holder.setFixedSize(mVideoWidth, mVideoHeight);
mMediaPlayer.setScreenOnWhilePlaying(true); //?? WHY ???

[android-developers] Load two different views simultaneously in a screen

2009-03-05 Thread And-Rider

I want to create a single screen with two different views .And i want
to refresh one view without disturbing the second view.I mean i do not
want to refresh the entire screen and want to refresh only a part in a
screeni am able to populate two layouts in one view but is there a
way to populate two views in one screen...?

   Screen
---
 -View 1
---



 View 2





-


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



[android-developers] Re: Why different behaviour when exiting app using BACK and HOME ?

2009-03-05 Thread Jean-Baptiste Queru

The default behavior of the back key is to exit your activity by
calling finish() (which should pop to the next activity in the
activity stack of the task your activity was in, or to another task if
your activity was at the bottom of its task). You can override that.

The behavior of the home key is to switch to the home application, but
your activity doesn't exit.

JBQ

On Thu, Mar 5, 2009 at 3:03 AM, TAKEphONE shimo...@gmail.com wrote:

 Hi all,

 I know this probably was discussed here before, but I can only find
 bits of info.

 Say a user runs my app from the HOME screen.
 The app has 3 tabs. Say he/she selectes a different tab,
 so he/she is in a different screen (same task).

 Now - if the user presses BACK - the device returns to the HOME
 screen.
 If the user launches my app again - the default tab is shown.

 BUT - if the user presses HOME - the device returns to the HOME screen
 (same).
 If the user launches my app again - the OTHER tab is shown.

 I understand (sort of) the logic - BACK returns to previous app,
 popping my app
 from the history stack, so when launched again - it is started from
 scratch.
 But this is confusing my customers - they say it's a bug !
 They dont understand the different between two keys doing the same
 thing
 as far as they see (returning to HOME).

 Moreover - I see a different behavior with the built-in DIALER app - I
 change tabs,
 press HOME, launch the app again - and it starts with the default tab.

 Can I imitate this ?

 TIA


 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-03-05 Thread shaddu

Hello Android,

We are plannig to write a new music application from scratch.
Also we want to uninstall the built-in music application to ensure
only our application resides on the phone. adb ls /data/app command
doesn't list built-in applications. So, I am unable to uninstall the
built in music application without knowing its name. So, I am getting
a feeling like built in applications uninstallation is handled in
different way.

Please provide the full command to uninstall built-in music
application.

Regards,
Shaddu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-05 Thread Sena Gbeckor-Kove
Personally I don't think its an issue. I think it should stay in here  
and android-discuss unless there is already a place for it.

S



On 4 Mar 2009, at 17:24, John Lauricella wrote:

 Is it possible to start a new discussion group for folks who promote  
 their own products that compete with the Android Market, so we don't  
 get this constant conflict-of-interest commentary on how bad the  
 Google system is...

  Date: Wed, 4 Mar 2009 13:38:49 +
  From: a...@funkyandroid.com
  To: android-developers@googlegroups.com
  Subject: [android-developers] Re: (OT) Is the combination of  
 Android Market and Google Checkout a joke?
 
 
  I'm getting more and more tempted to open up paid-for apps on
  AndAppStore where all payments go directly to the developers  
 account so
  they can set the TCs.
 
  Would this be something people would be interested in?
 
  Al.
 
  Semprebon wrote:
   It would be nice if some other pricing models were available (for
   example, subscriptions), but I just don't see a no returns or  
 even a
   no returns after 1 hour model being very popular with users. I  
 may
   be wrong, but I don't think most people see these products as
   consumables in the same way you do.
  
   On Mar 2, 11:41 pm, madcoder paperga...@gmail.com wrote:
  
   I believe there should be demos and full apps in the market. It
   shouldn't be too hard to do. If the user downloads the lite  
 version
   then buys the regular version, there should be a 1-2 hour refund
   window (in case it doesn't work as promised). This is much better
   than the 48 hours refund policy that allows people to have  
 their cake
   and not pay for it too.
  
   I really wish Google would address this. They can look forward  
 to a
   very lackluster market if they don't.
  
  
   
  
 
 
  --
 
  * Written an Android App? - List it at http://andappstore.com/ *
 
  ==
  Funky Android Limited is registered in England  Wales with the
  company number 6741909. The registered head office is Kemp House,
  152-160 City Road, London, EC1V 2NX, UK.
 
  The views expressed in this email are those of the author and not
  necessarily those of Funky Android Limited, it's associates, or it's
  subsidiaries.
 
 
 
 


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

2009-03-05 Thread Noam

Anyone?

On Mar 4, 6:53 pm, Noam noam.ha...@gmail.com wrote:
 Hello everyone,
 Is there a certain way for me to know when a PreferenceScreen is
 closed?

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

2009-03-05 Thread Jean-Baptiste Queru

That's not possible. If your application responds to the right
intents, the user will be offered a choice when doing an action that
can be handled both by the built-in application and by your
application.

JBQ

On Thu, Mar 5, 2009 at 6:12 AM, shaddu shad...@gmail.com wrote:

 Hello Android,

 We are plannig to write a new music application from scratch.
 Also we want to uninstall the built-in music application to ensure
 only our application resides on the phone. adb ls /data/app command
 doesn't list built-in applications. So, I am unable to uninstall the
 built in music application without knowing its name. So, I am getting
 a feeling like built in applications uninstallation is handled in
 different way.

 Please provide the full command to uninstall built-in music
 application.

 Regards,
 Shaddu
 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-03-05 Thread Ludwig
I do not think you can uninstall system apps (for good reasons).
User applications are installed under /data/app or app-private (which is
writable), while system apps are under /system/app, which is ro.
The way to deal with this is to respond to the same intents: so if you app
is actually better than the system app, a user will make this the default
(after being  offered the choice).
That is better than you deciding that your app is better (you would,
wouldn't you).

HTH
Ludwig

2009/3/5 shaddu shad...@gmail.com


 Hello Android,

 We are plannig to write a new music application from scratch.
 Also we want to uninstall the built-in music application to ensure
 only our application resides on the phone. adb ls /data/app command
 doesn't list built-in applications. So, I am unable to uninstall the
 built in music application without knowing its name. So, I am getting
 a feeling like built in applications uninstallation is handled in
 different way.

 Please provide the full command to uninstall built-in music
 application.

 Regards,
 Shaddu
 


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

2009-03-05 Thread Avraham Serour
not sure if you can do that, if not you could do the opposite, make the user
send sms using you app, so if the number match your criteria you use your
gateway, if not send it using the phone regular sms service

On Thu, Mar 5, 2009 at 5:04 AM, Seer gilligan.ch...@gmail.com wrote:


 Hi,
 What i want to do is intercept outgoing sms.  The reason been that i
 want to redirect some sms over a web based sms sending service and
 others to go over the normal mobile network.  I would really like to
 do this as an invisible background process that does not need
 modifications to any of the existing apps people use to send sms.

 Is this possible or will i have to write my own app to send sms and
 let that app decide how to send the sms?  with so many sms apps out
 there i really did not want to add another to the mix and to instead
 work on a lower level.

 thanks


 Chris
 


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

2009-03-05 Thread Al Sutton

I would suggest you don't even try to uninstall any other applications. 

Your application should not mess with other applications the user has on 
their 'phone. You will most likely see a huge user backlash once they 
discover your app has uninstalled other applications that they chose to 
put on their 'phone.

Al.

shaddu wrote:
 Hello Android,

 We are plannig to write a new music application from scratch.
 Also we want to uninstall the built-in music application to ensure
 only our application resides on the phone. adb ls /data/app command
 doesn't list built-in applications. So, I am unable to uninstall the
 built in music application without knowing its name. So, I am getting
 a feeling like built in applications uninstallation is handled in
 different way.

 Please provide the full command to uninstall built-in music
 application.

 Regards,
 Shaddu
 
   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Where can I find a app for my gps test?

2009-03-05 Thread Kevin AN

phonefinder on market

On Mar 5, 4:17 pm, www_...@yahoo.com.cn www_...@yahoo.com.cn
wrote:
 I have already known about that, but i still need a app to start my
 GPS as I don't have the environment to build a app.

 On 3月5日, 下午12时05分, www_...@yahoo.com.cn www_...@yahoo.com.cn
 wrote:

  Thanks Avraham. DoesGPSstarts automatically when android boots up? I
  mean whether or not i need a app to startGPSthread ?
  Inmyopinion, the route program runs like: main( app_mian.cpp) -
  runtime.start ( )-  register functions -...

  But when and where theGPSthread will be started ? thanks again.

  On 3月5日, 上午12时17分, Avraham Serour tovm...@gmail.com wrote:

   isn't the google maps enough for what you want?

   On Wed, Mar 4, 2009 at 3:50 AM, www_...@yahoo.com.cn
   www_...@yahoo.com.cnwrote:

Hi all,

I need aGPSapplication on android so  I cantestmygpsfunction.
Can any one who knows and being so kind to tell me about? 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: PreferenceScreen Close

2009-03-05 Thread Ludwig

There is a OnPreferenceChangeListener, which is not quite the same as
knowing when the screen is closed, but it gives you a hook whenever a
user changes a setting.
Otherwise I would not think so as it would be eavesdropping on a user...

HTH
Ludwig

2009/3/5 Noam noam.ha...@gmail.com

 Hello everyone,
 Is there a certain way for me to know when a PreferenceScreen is
 closed?

 Thanks,
 Noam.
 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 create a view with a background that wraps up all the content of the view?

2009-03-05 Thread hc

nvm.. I've figured it out. Instead of setting a background using an
ImageView/Button, I can just set a background to RelativeLayout and it
will fix nicely

On Mar 5, 5:20 pm, hc honch...@gmail.com wrote:
 I'm trying to create a listview containing conversations in chat
 bubbles, and each chat bubbles are rows in the list view.

 So what I have is an avatar on the left, and a chat bubble on the
 right.
 Then in the chat bubble, I have a textview for name, a textview for
 content, and a textview for time.

 The problem is, I cannot adjust the height of the chat bubble such
 that the bottom edge is just below the textview for time. In the
 chatBubble, I have this line that does not work
 android:layout_alignBottom=@+id/timeLabel
 because timeLabel is a textview created after chatBubble. If I place
 chatBubble tags right below timeLabel, the height of chatBubble will
 be just right because lf the layout_alignBottom, but chatBubble covers
 all the text created before it.

 Is there a way I can create the chatBubble last, and bring the view to
 the background?
 Or is there a better way to do this?

 ?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=wrap_content

         Button android:id=@+id/avatarIcon
                 android:background=@drawable/logo
         android:layout_width=wrap_content
         android:layout_height=wrap_content
 android:layout_marginLeft=5dip android:layout_marginTop=5dip/
         Button android:id=@+id/chatBubble
                 android:layout_toRightOf=@+id/avatarIcon
                 android:background=@drawable/chat_bubble_left
         android:layout_width=fill_parent
         android:layout_alignBottom=@+id/timeLabel
         android:layout_height=fill_parent
         android:layout_margin=5dip/
     TextView android:id=@+id/userLabel
         android:layout_toRightOf=@+id/avatarIcon
         android:text=user name should be here..
         android:textColor=#ff8400
         android:textStyle=bold
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:layout_marginTop=10dip
         android:textSize=11dip
         android:layout_marginLeft=20dip/
         TextView android:id=@+id/content
         android:layout_toRightOf=@+id/avatarIcon
         android:layout_below=@+id/userLabel
         android:text=This is just a test description
         android:textStyle=bold
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:textSize=11dip
         android:layout_marginLeft=20dip
         android:textColor=#fff
         android:layout_marginRight=20dip
         android:layout_marginTop=5dip/
     TextView android:id=@+id/timeLabel
         android:layout_alignParentRight=true
         android:layout_below=@+id/reviewContent
         android:text=10 mins
         android:textStyle=bold
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:textSize=11dip
         android:layout_marginLeft=20dip
         android:textColor=#fff
         android:layout_marginRight=20dip
         android:layout_marginTop=5dip/

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

2009-03-05 Thread droozen

Thanks. I'll try it out!

On Mar 4, 5:29 pm, Marco Nelissen marc...@android.com wrote:
 If you want to make sentences, it's still a good idea to put a format
 string in the resource and then use that, since you'll be able to
 correctly localize your app later on.
 To use this with a Cursor and ListView, create a custom Adapter (you
 can probably just derive from SimpleCursorAdapter), and override the
 bindView() method. Then inside that method you can do whatever you
 want to set the text for the views in your list items, including
 gathering data from several columns in the database and combining them
 in to one string.

 On Wed, Mar 4, 2009 at 3:07 PM, droozen droozenr...@gmail.com wrote:

  Okay, I see, but I guess I didn't explain my entire issue. I don't
  know a whole lot about working with the SQLite databases, so right now
  I'm able to do what was done in the Notepad tutorial, get values from
  the database and tie them to ids of TextViews to display them. But
  part of the list I wanted to put together some of the values into a
  sentence. So I split it up into several text views. I have Some
  string blah blah , then the next TextView holds the value returned.
  Is there a way I can manipulate the data in each row to put it in my
  list? I just follow the Notepad tutorial right now. :S

  On Mar 3, 12:30 pm, Marco Nelissen marc...@android.com wrote:
  On Tue, Mar 3, 2009 at 6:26 AM, droozen droozenr...@gmail.com wrote:

   So, we're supposed to be using our strings.xml to construct most or
   all of our strings, right? I had a situation where I wanted to display
   to the user Somestringblah blah  + some value. So I put two views
   in a horizontal LinearLayout, with my Somestringblah blah  (with
   thatspaceon the end, no quotes) in the strings.xml. I reference the
  stringin my first view, then set the value in the second view.
   However, if I set it up like this, thespaceat the end of mystring
   gets trimmed off, which doesn't look pretty. My workaround was not to
   use the strings.xml and place the Somestringblah blah  (no quotes)
   directly in the android:text parameter of the TextView.

   Any idea if there is a better way to do this? Or should I submit a bug
   to Android about this?

  Instead of breaking up thestringand using two TextViews to display
  what is supposed to be a singlestring, you should use a single
  TextView and astringin your resource like Somestringblah blah
  %s, and then use the version of Context.getString() that takes
  format-arguments.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Finance for Android - A Google Developer’s Note

2009-03-05 Thread Bob

I wrote up my experiences working on the new Finance app here:

http://www.googleandblog.com/finance-for-android-google-developers-note/3827/

enjoy!
Bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Update UK G1 not showing paid apps

2009-03-05 Thread Ryan

 But I don't think Google are ready to flick the switch. They still
 want to sort out any teething issues they had from opening the paid
 market in the US.

Looks like we're in for a long wait then...

On Mar 5, 11:22 am, Stoyan Damov stoyan.da...@gmail.com wrote:
 On Thu, Mar 5, 2009 at 1:17 PM, admin.androidsl...@googlemail.com



 admin.androidsl...@googlemail.com wrote:

  My theory is that RC9 means that all Google now needs to do is flick a
  switch and the UK will see paid apps without needing e.g. RC10.

  But I don't think Google are ready to flick the switch. They still
  want to sort out any teething issues they had from opening the paid
  market in the US.

  My paid app available US only has had several Google issues, including
  users not being able to download updates, users not being able to get
  refunds within 24 hours, users not being able to transfer apps to new
  phone, etc.

  Google will want to sort out these issues before they open up the
  market too widely so I can understand why they are not giving any
  definite dates.

 Which is great. I've said it already and can't stress enough that
 perfectly working Market application is billions of times more
 important than meeting *any* deadline.

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



[android-developers] Re: getApplicationContext returns null in test case (unless you sleep first)

2009-03-05 Thread AndyM

There are APIs to allow you to run code on the main thread to access
its objects. I'm a little confused about what APIs you are talking
about and how they would help solve this problem. Could you clarify?

To me it seems that the test runner should not be calling my tests if
the Application is not finished initializing yet.

Andy


On Mar 4, 2:57 pm, Dianne Hackborn hack...@android.com wrote:
 You are calling this while the app is running, and it hasn't finished
 initializing.

 Generally you should be very careful about directly touching app objects
 like this from tests, since the test is running in a separate thread.  There
 are APIs to allow you to run code on the main thread to access its objects.

 On Wed, Mar 4, 2009 at 10:00 AM, AndyM andrewdm...@gmail.com wrote:

  I have a simple androidTestCase class that has this test:

  @MediumTest
  public void testFoo() {
           assertNotNull(this.mContext.getApplicationContext());
  }

  this fails unless I sleep first, then it passes. Whats the deal?

 --
 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.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Converting FREE app to PAID app

2009-03-05 Thread Sena Gbeckor-Kove

You could add a DataProvider to the free app and the paid app could  
use that to do an import.

S


On 4 Mar 2009, at 22:41, Stoyan Damov wrote:


 +1 for that, and if you share the backup/restore functionality code
 between the 2 apps you'll have 1 more feature to the paid app - backup
 (e.g. to SD card) and restore

 On Wed, Mar 4, 2009 at 11:39 PM, Avraham Serour tovm...@gmail.com  
 wrote:
 have the free app to export the settigns to your server or to user  
 file or
 somewhere
 have the paid one import it
 ...
 profit

 On Wed, Mar 4, 2009 at 11:26 PM, t.ar...@gmail.com  
 t.ar...@gmail.com
 wrote:

 Hi,

 From what I learn, a developer cannot convert his FREE app to a PAID
 app.
 I was looking out for some alternative ways to make this happen.
 I have an app with about 10K users. Users have their data stored
 inside the application.
 Lets call the existing FREE version com.myapp

 I would like to sell myapp for $10.

 How do I go about it?

 If I create a new application, it does not accept com.myapp since it
 says I already have an app on the store with the same name. Create a
 new app: com.paidmyapp does not help because how do the existing 10K
 users get their data from FREE version (myapp) to PAID version
 (paidmyapp).

 Any thoughts? Thanks for your help.






 


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



[android-developers] Re: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-05 Thread madcoder

...so we don't get this constant conflict-of-interest commentary on
how bad the Google system is...

I think is good to talk about the likes and dislikes of the Android
system.  This way, potential problems can be identified and corrected.

I also believe alternative application distribution methods should be
available to those who desire it.

So lets keep talking about the good and bad points about Google (this
thread is mainly about the bad points  :)



On Mar 4, 11:24 pm, John Lauricella jjlaurice...@hotmail.com wrote:
 Is it possible to start a new discussion group for folks who promote their 
 own products that compete with the Android Market, so we don't get this 
 constant conflict-of-interest commentary on how bad the Google system is...



  Date: Wed, 4 Mar 2009 13:38:49 +
  From: a...@funkyandroid.com
  To: android-developers@googlegroups.com
  Subject: [android-developers] Re: (OT) Is the combination of Android Market 
  and Google Checkout a joke?

  I'm getting more and more tempted to open up paid-for apps on
  AndAppStore where all payments go directly to the developers account so
  they can set the TCs.

  Would this be something people would be interested in?

  Al.

  Semprebon wrote:
   It would be nice if some other pricing models were available (for
   example, subscriptions), but I just don't see a no returns or even a
   no returns after 1 hour model being very popular with users. I may
   be wrong, but I don't think most people see these products as
   consumables in the same way you do.

   On Mar 2, 11:41 pm, madcoder paperga...@gmail.com wrote:

   I believe there should be demos and full apps in the market. It
   shouldn't be too hard to do. If the user downloads the lite version
   then buys the regular version, there should be a 1-2 hour refund
   window (in case it doesn't work as promised). This is much better
   than the 48 hours refund policy that allows people to have their cake
   and not pay for it too.

   I really wish Google would address this. They can look forward to a
   very lackluster market if they don't.

  --

  * Written an Android App? - List it athttp://andappstore.com/*

  ==
  Funky Android Limited is registered in England  Wales with the
  company number 6741909. The registered head office is Kemp House,
  152-160 City Road, London, EC1V 2NX, UK.

  The views expressed in this email are those of the author and not
  necessarily those of Funky Android Limited, it's associates, or it's
  subsidiaries.

 _
 Windows Live™ Groups: Create an online spot for your favorite groups to 
 meet.http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Uninstall built-in app

2009-03-05 Thread grennis


Wow, this has to be the single worst idea I have ever heard. Are you
planning to re-install the default music player if I uninstall your
app? Let me guess... your app is so great nobody would ever want to
uninstall it... right...


On Mar 5, 9:12 am, shaddu shad...@gmail.com wrote:
 Hello Android,

 We are plannig to write a new music application from scratch.
 Also we want to uninstall the built-in music application to ensure
 only our application resides on the phone. adb ls /data/app command
 doesn't list built-in applications. So, I am unable to uninstall the
 built in music application without knowing its name. So, I am getting
 a feeling like built in applications uninstallation is handled in
 different way.

 Please provide the full command to uninstall built-in music
 application.

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

2009-03-05 Thread brs

I think the idea is that the market should pretty much be the wild-
west and user feedback should eventually sort out the good, the bad
and the ugly. There might be some room for a third-party to provide
app audit  certification services. If there is every going to be an
enterprise class Android based phone, the interest for such things
might increase.

Writing power-efficient apps can be quite tricky, specially for people
like myself who are new to mobile application development. As
developers get a better feel for the real hardware, I would hope
things are going to improve. For example careless use of the location
service can drain the battery in no time. When trying to find out
which app is doing what in the background, keep an eye on the status
indicators (GPS, bluetooth, wifi, cell data) as well as run logcat and
top through adb.

To check what is going on when the phone isn't attached to a computer,
I wrote an app (NetMeter on the market) to plot CPU and network
activity as well as display the list of CPU consuming tasks. If
anybody has a way to monitor the logs from app, that would be very
useful as well.

Bernhard

On Mar 5, 12:31 am, Stanley Cai stanley.w@gmail.com wrote:
 Hi,

 I got a dev phone and installed plenty of applications, but the
 battery was used out in 7~8hours, even not enough for over-night. I
 guess some applications, which had permission to prevent system from
 sleeping, killed the battery.

 So I am very curious if Google will have any application
 criteria/certification for the developers, especially for the power
 usage.

 Thanks a lot,
 -stanley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Uninstall built-in app

2009-03-05 Thread Mads Kristiansen
Do you work for Sony? Might as well throw a rootkit in there along with the
app ;)

Why do you wan't to ensure your player is the only one on the phone? Maybe
there is another solution..

/ Mads

On Thu, Mar 5, 2009 at 3:12 PM, shaddu shad...@gmail.com wrote:


 Hello Android,

 We are plannig to write a new music application from scratch.
 Also we want to uninstall the built-in music application to ensure
 only our application resides on the phone. adb ls /data/app command
 doesn't list built-in applications. So, I am unable to uninstall the
 built in music application without knowing its name. So, I am getting
 a feeling like built in applications uninstallation is handled in
 different way.

 Please provide the full command to uninstall built-in music
 application.

 Regards,
 Shaddu
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-05 Thread John Lauricella

Yes, you are right, and I apologize to everybody who is contributing to this 
community, even if that contribution appears negative on the surface to those 
of us who don't look too deep into it...I am only a fallible human myself, and 
was irritated at other aspects of life when I wrote the below...Sorry again, 
and keep up your various ways to push Android forward...John Lauricella

 Date: Thu, 5 Mar 2009 08:20:37 -0800
 Subject: [android-developers] Re: (OT) Is the combination of Android Market 
 and Google Checkout a  joke?
 From: paperga...@gmail.com
 To: android-developers@googlegroups.com
 
 
 ...so we don't get this constant conflict-of-interest commentary on
 how bad the Google system is...
 
 I think is good to talk about the likes and dislikes of the Android
 system.  This way, potential problems can be identified and corrected.
 
 I also believe alternative application distribution methods should be
 available to those who desire it.
 
 So lets keep talking about the good and bad points about Google (this
 thread is mainly about the bad points  :)
 
 
 
 On Mar 4, 11:24 pm, John Lauricella jjlaurice...@hotmail.com wrote:
 Is it possible to start a new discussion group for folks who promote their 
 own products that compete with the Android Market, so we don't get this 
 constant conflict-of-interest commentary on how bad the Google system is...



 Date: Wed, 4 Mar 2009 13:38:49 +
 From: a...@funkyandroid.com
 To: android-developers@googlegroups.com
 Subject: [android-developers] Re: (OT) Is the combination of Android Market 
 and Google Checkout a joke?

 I'm getting more and more tempted to open up paid-for apps on
 AndAppStore where all payments go directly to the developers account so
 they can set the TCs.

 Would this be something people would be interested in?

 Al.

 Semprebon wrote:
 It would be nice if some other pricing models were available (for
 example, subscriptions), but I just don't see a no returns or even a
 no returns after 1 hour model being very popular with users. I may
 be wrong, but I don't think most people see these products as
 consumables in the same way you do.

 On Mar 2, 11:41 pm, madcoder paperga...@gmail.com wrote:

 I believe there should be demos and full apps in the market. It
 shouldn't be too hard to do. If the user downloads the lite version
 then buys the regular version, there should be a 1-2 hour refund
 window (in case it doesn't work as promised). This is much better
 than the 48 hours refund policy that allows people to have their cake
 and not pay for it too.

 I really wish Google would address this. They can look forward to a
 very lackluster market if they don't.

 --

 * Written an Android App? - List it athttp://andappstore.com/*

 ==
 Funky Android Limited is registered in England  Wales with the
 company number 6741909. The registered head office is Kemp House,
 152-160 City Road, London, EC1V 2NX, UK.

 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.

 _
 Windows Live™ Groups: Create an online spot for your favorite groups to 
 meet.http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
  

_
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Neither user nor current process has android.permission.SET_PREFERRED_APPLICATIONS

2009-03-05 Thread DanM

I'd also like to point out that there is a bug in the android system
when handling intents for subactivities.

I created an application that responds to the same intent as the call-
log portion of the phone application (the intent that is started when
the call-log tab is selected within that app). Normally, the activity
that is started via this intent runs inside the call-log tab of the
phone application, but if the activity resolver runs, the activity
started thereafter runs as a regular full-screen activity and not
inside of the call-log tab of the phone application. This happens no
matter which activity you choose to start with the resolver, even if
you select the default activity that usually runs with the phone
application. It seems to me this has to be a problem with the activity
resolver.

The problem with SET_PREFERRED_APPLICATIONS may be related to this. It
happens if you select the use by default for this action check box,
and then select one of the activities. The application then crashes
with the error above.

-Dan


On Mar 3, 11:38 am, MakeMobile makemobileinnovati...@gmail.com
wrote:
 Hello,
 I'd like to revisit a topic that was previously posted, but never
 resolved.

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

 Neither user 10002 nor current process has
 android.permission.SET_PREFERRED_APPLICATIONS

 I'm running into the same problem as the original poster. Currently my
 development is blocked until this problem is resolved. What is causing
 this problem and how do I resolve it? If you need more information
 about the application I'm writing, I'm happy to provide 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: Uninstall built-in app

2009-03-05 Thread Christine

Great idea!
Uninstall the music app to install your own. Then uninstall the mail
app and install another one. Uninstall the phone app and install
something else entirely. Finally, uninstall Android and install
Windows Mobile. Cool!

Christine


 On Thu, Mar 5, 2009 at 3:12 PM, shaddu shad...@gmail.com wrote:

  Hello Android,

  We are plannig to write a new music application from scratch.
  Also we want to uninstall the built-in music application to ensure
  only our application resides on the phone. adb ls /data/app command
  doesn't list built-in applications. So, I am unable to uninstall the
  built in music application without knowing its name. So, I am getting
  a feeling like built in applications uninstallation is handled in
  different way.

  Please provide the full command to uninstall built-in music
  application.

  Regards,
  Shaddu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: MediaPlayer not running - just blank screen

2009-03-05 Thread Marco Nelissen

That won't work for a number of reasons:
- when you create the MediaPlayer and call start(), your display isn't
ready yet. You need to wait for the surfaceCreated() callback.
- you need to use the version of MediaPlayer.create() that takes a
SurfaceHolder parameter.
(this was all discussed on this mailing list a few weeks ago, you
might want to search the archives)



On Thu, Mar 5, 2009 at 1:44 AM, nithin nithin.war...@gmail.com wrote:

 Thanks for your reply, but still not working.. Now i am trying with
 this code...



 import android.app.Activity;
 import android.media.MediaPlayer;
 import android.os.Bundle;
 import android.util.Log;
 import android.view.SurfaceHolder;
 import android.view.SurfaceView;
 import android.widget.MediaController.MediaPlayerControl;

 public class Monster extends Activity implements
 SurfaceHolder.Callback, MediaPlayer.OnPreparedListener {

        SurfaceView mPreview;
        SurfaceHolder holder;
        MediaPlayer mediaplayer;
        int mVideoWidth,mVideoHeight;

        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.bushentry);
                mPreview = (SurfaceView)findViewById(R.id.surface);
                holder = mPreview.getHolder();
                holder.addCallback(this);
                holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
                mediaplayer = MediaPlayer.create(this, R.raw.monster);
                mediaplayer.start();
                mediaplayer.setDisplay(holder);
                mediaplayer.setOnPreparedListener(this);
        }
        public void surfaceChanged(SurfaceHolder holder, int format, int
 width,
                        int height) {

        }
        public void surfaceCreated(SurfaceHolder holder1) {
                mVideoWidth = mediaplayer.getVideoWidth();
        mVideoHeight = mediaplayer.getVideoHeight();
        if (mVideoWidth != 0  mVideoHeight != 0) {
            holder.setFixedSize(mVideoWidth, mVideoHeight);
            mediaplayer.start();
        }
        }
        public void surfaceDestroyed(SurfaceHolder holder) {
        }

        public void onPrepared(MediaPlayer mp) {
                mVideoWidth = mediaplayer.getVideoWidth();
        mVideoHeight = mediaplayer.getVideoHeight();
        if (mVideoWidth != 0  mVideoHeight != 0) {
            holder.setFixedSize(mVideoWidth, mVideoHeight);
            mediaplayer.start();
        }
        }
 }


 Still, the same problem, no error, but blank screen, any idea please..

 Nithin


 On Mar 5, 12:58 pm, Dave Sparks davidspa...@android.com wrote:
 You need to tell the mediaplayer where to display the video with
 setDisplaySurface(). Check out the media demo apps on
 developer.android.com.

 On Mar 4, 11:45 pm, Nithin nithin.war...@gmail.com wrote:

  hi,

  I tried a simple mediaplayer application, just to run a .3gp file.
  First, i put the .3gp file in Raw folder and tried to run, but
  nothing is displaying, just blank screen only please guide me,
  where i am going wrong. I dont have any xml file, is it needed ??

  heres the code, which i am trying

  import android.app.Activity;
  import android.media.MediaPlayer;
  import android.os.Bundle;

  public class MonsterEntry extends Activity {

          public void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  MediaPlayer mediaplayer = MediaPlayer.create(this, 
  R.raw.monster);
                  mediaplayer.start();
          }

  }

  Thanks
  Nithin
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: (OT) Is the combination of Android Market and Google Checkout a joke?

2009-03-05 Thread Al Sutton

John,

It was my post you responded to and, believe it or not, I valued your 
response and stepped out of this thread to see what the general opinion was.

I do have a vested interest in seeing the bad points of Market brought 
to light because these represent opportunities for AndAppStore, and I do 
post comments and ideas which may highlight problems in Market to see 
what the general feedback is to an idea (because after all there's no 
point developing function X if nobody is going to use it). I can 
understand that some people will see these as promotional material, but 
I do get valuable feedback from that, even if it is finding out that 
people really don't even want to consider the idea.

I hope this helps you understand where I'm coming from when I make posts 
like that.

Al.

John Lauricella wrote:
 Yes, you are right, and I apologize to everybody who is contributing 
 to this community, even if that contribution appears negative on the 
 surface to those of us who don't look too deep into it...
 I am only a fallible human myself, and was irritated at other aspects 
 of life when I wrote the below...
 Sorry again, and keep up your various ways to push Android forward...
 John Lauricella

  Date: Thu, 5 Mar 2009 08:20:37 -0800
  Subject: [android-developers] Re: (OT) Is the combination of Android 
 Market and Google Checkout a joke?
  From: paperga...@gmail.com
  To: android-developers@googlegroups.com
 
 
  ...so we don't get this constant conflict-of-interest commentary on
  how bad the Google system is...
 
  I think is good to talk about the likes and dislikes of the Android
  system. This way, potential problems can be identified and corrected.
 
  I also believe alternative application distribution methods should be
  available to those who desire it.
 
  So lets keep talking about the good and bad points about Google (this
  thread is mainly about the bad points :)
 
 
 
  On Mar 4, 11:24 pm, John Lauricella jjlaurice...@hotmail.com wrote:
  Is it possible to start a new discussion group for folks who 
 promote their own products that compete with the Android Market, so we 
 don't get this constant conflict-of-interest commentary on how bad the 
 Google system is...
 
 
 
  Date: Wed, 4 Mar 2009 13:38:49 +
  From: a...@funkyandroid.com
  To: android-developers@googlegroups.com
  Subject: [android-developers] Re: (OT) Is the combination of 
 Android Market and Google Checkout a joke?
 
  I'm getting more and more tempted to open up paid-for apps on
  AndAppStore where all payments go directly to the developers 
 account so
  they can set the TCs.
 
  Would this be something people would be interested in?
 
  Al.
 
  Semprebon wrote:
  It would be nice if some other pricing models were available (for
  example, subscriptions), but I just don't see a no returns or 
 even a
  no returns after 1 hour model being very popular with users. I may
  be wrong, but I don't think most people see these products as
  consumables in the same way you do.
 
  On Mar 2, 11:41 pm, madcoder paperga...@gmail.com wrote:
 
  I believe there should be demos and full apps in the market. It
  shouldn't be too hard to do. If the user downloads the lite version
  then buys the regular version, there should be a 1-2 hour refund
  window (in case it doesn't work as promised). This is much better
  than the 48 hours refund policy that allows people to have their 
 cake
  and not pay for it too.
 
  I really wish Google would address this. They can look forward to a
  very lackluster market if they don't.
 
  --
 
  * Written an Android App? - List it athttp://andappstore.com/*
 
  ==
  Funky Android Limited is registered in England  Wales with the
  company number 6741909. The registered head office is Kemp House,
  152-160 City Road, London, EC1V 2NX, UK.
 
  The views expressed in this email are those of the author and not
  necessarily those of Funky Android Limited, it's associates, or it's
  subsidiaries.
 
  _
  Windows Live™ Groups: Create an online spot for your favorite 
 groups to 
 meet.http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
 
 


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England  Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at

[android-developers] Update G1

2009-03-05 Thread victorcab

Is there a process to update the original developer unlocked G1 to the
latest firmware available?
I have:
Model Number: Android Dev Phone 1
Firmware version: 1.0
Baseband Version: 62.33.20.08H_1.22.12.29
Kernel Version: 2.6.25-01843-gfea26b0 android-bu...@apa27 #6
Build number: dream_devphone-userdebug 1.0 UNLOCKED 116222 test-keys

Would like to update to the latest version or even the tmobile
firmware if possible.

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



[android-developers] Re: How to update Android Dev 1

2009-03-05 Thread victorcab

Have you found any info? I am looking for a similar solution.

On Feb 10, 3:30 am, Andreas Jellinghaus tolon...@gmail.com wrote:
 Hi,

 * where can I find official firmware for my android dev 1?
 * what is the official way toupdatethe firmware?
 * does such a firmwareupdatehave negative side effects? which one?

 So far I found only unofficial images for t-mobileg1,
 andupdatemethods using some root hack, neither is what I want.

 I'm fine if flashing the firmware resets all settings and deletes
 all applications I installed, but knowing what it will do exactly
 would be very helpfull. I hope that firmware updates will always
 keep the phoneunlocked? (I'm not using t-mobile and don't want
 to be forced into that...)

 Thanks for your help!

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

2009-03-05 Thread Jean-Baptiste Queru

No official system images are currently available for the ADP1. We're
working on it.

JBQ

On Thu, Mar 5, 2009 at 9:30 AM, victorcab victor...@gmail.com wrote:

 Have you found any info? I am looking for a similar solution.

 On Feb 10, 3:30 am, Andreas Jellinghaus tolon...@gmail.com wrote:
 Hi,

 * where can I find official firmware for my android dev 1?
 * what is the official way toupdatethe firmware?
 * does such a firmwareupdatehave negative side effects? which one?

 So far I found only unofficial images for t-mobileg1,
 andupdatemethods using some root hack, neither is what I want.

 I'm fine if flashing the firmware resets all settings and deletes
 all applications I installed, but knowing what it will do exactly
 would be very helpfull. I hope that firmware updates will always
 keep the phoneunlocked? (I'm not using t-mobile and don't want
 to be forced into that...)

 Thanks for your help!

 Regards, Andreas
 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-03-05 Thread Ryan

Hi,

My app uses a simple HttpConnection to download and parse some XML
that I host. The important code is as follows:-

URL url = new URL(urlStr);
URLConnection connection = url.openConnection();
HttpURLConnection httpConnection = (HttpURLConnection)
connection;
int responseCode = httpConnection.getResponseCode();

if(responseCode == HttpURLConnection.HTTP_OK) {
// do useful stuff here
}
else {
   // display connection
failed error message here
}

This works all the time on my G1 (based in UK), but a number of my
users are complaing they always see the connection failed message.
This is even though they have 3G connections and can browse the
internet, use google maps etc.

Can you see that I'm doing something obviously wrong?

Is there a more robust way to connect?

Any advice greatly appreciated,

Ryan


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

2009-03-05 Thread Nmix

On Mar 4, 11:59 pm, Nmix nepean...@gmail.com wrote:
 No doubt you're right. After a while it feels like I'm doing a
 peculiar dance to celebrate the Rites of Spring, all the while
 sprinkling magic pixie dust over my code.

 I had already come to the same conclusion, that doing dismissDialog()
 in onSaveInstanceState() is a mistake, because it changes activity
 state in a way such that the dialog doesn't automatically reappear at
 the end of a phone call (which it did before). As to what I want to
 accomplish, it's very simple: all views, including any dialog,
 survives over configuration changes and temporary ceding of control to
 another activity. Until I encountered the problem with my dynamic
 dialog content I had everything under control. It was then that I
 speculated that I ought to just dismiss the dialog in this rare case
 to simplify my life since the dialog is easily re-accessed by the user
 with one button press. Ideally I would want to do have the dialog
 survive, and contain the same (refreshed) dynamic data.

 So let me see if I've got this right (I can revisit the code later to
 try stuff). In onSaveInstanceState() I bundle away the stateful data I
 need to refresh the app state and all views, including dialogs. If the
 app is just being paused, the saved data shouldn't be used elsewhere,
 such as in onResume(), where it isn't delivered anyway. And I believe
 onRestoreInstanceState() will not be called.

 I am uncertain at this point whether, in case of restoration after
 config change, I should pull the saved data from the bundle in onCreate
 () or, (which I image happens afterward) in onRestoreInstanceState().
 When I was merely pulling database records and filling in dynamic
 parts of the main layout view, I don't believe it mattered. With
 static dialogs, I don't need to do anything at all.

 With dynamic dialogs I started running into problems and coming up
 with ineffective solutions. As reported earlier, I can't call
 dismissDialog() -- it seemed unavailable to my code after restoration
 of the activity. So if I don't call dismissDialog() before the
 activity is destroyed I have a visibly broken dialog that I can't
 dismiss. The buttons still work fine so the user can close it, but
 that is absolutely not good. When I tried dismissDialog() in onDestroy
 (), along the lines that Marco suggested, nothing happened. I haven't
 checked but I assume onDestroy() was not called.

 Romain suggested removeDialog(), which I haven't tried yet, though I
 have to wonder if it'll work after restoration when dismissDialog()
 does not work. The way things stand, if I don't call dismissDialog()
 in onSaveInstanceState() I can't get rid of it. Yet if I do I seem to
 be creating additional trouble for myself since if it was just an
 ordinary pause I have to redo showDialog() in onResume() for no
 particularly good reason other than I can't find a better way.

 Sorry to be so long winded, but I wanted to try and be clear about
 this. If I hear nothing I will likely try this latter route and see
 what happens. I'll pull the saved data in onCreate() and then call
 showDialog() in onResume(). If I manage stateful data appropriately I
 think this will work. I just hope there's a better way. Thanks for
 your interest.

This worked.  However I suspect that there must be a better way to
handle managed dialogs, or perhaps there should be.  Active dialogs
that I can't access or dismiss after activity restoration is a
problem.

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



[android-developers] Looking for a way to build resolution independent layout xml?

2009-03-05 Thread Videoguy

Hi
I am working on a screen that needs to look fine at HVGA-L resolution
as well as 640x480 resolution. Lets say I have a button that is 200
pixels wide and 50 pixels high on HVGA-L skin. When the same layout
xml is shown at 640x480 skin, I want my button size increase
proportionately. The hardware the app runs on supports both the
resolutions.

How do I do that?

None of the units that the android framework provides seems to have
this facility. If I use px, then the button size will stay same. dip
doesn't matter because it is the same hardware. sp is meant for fonts,
not for button width/heights.

Is there any trick to do this?

Thanks
Videoguy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Looking for a way to build resolution independent layout xml?

2009-03-05 Thread Avraham Serour
build the interface without the xml, coding it, so each time you are going
to draw it check current resolution.
I worked with brew a few years back and some things we did that way, others
we just draw the button the same size in pixels, so the owner of the bigger
screen would see things smaller or had more unused screen area

On Thu, Mar 5, 2009 at 8:53 PM, Videoguy puri_mall...@yahoo.com wrote:


 Hi
 I am working on a screen that needs to look fine at HVGA-L resolution
 as well as 640x480 resolution. Lets say I have a button that is 200
 pixels wide and 50 pixels high on HVGA-L skin. When the same layout
 xml is shown at 640x480 skin, I want my button size increase
 proportionately. The hardware the app runs on supports both the
 resolutions.

 How do I do that?

 None of the units that the android framework provides seems to have
 this facility. If I use px, then the button size will stay same. dip
 doesn't matter because it is the same hardware. sp is meant for fonts,
 not for button width/heights.

 Is there any trick to do this?

 Thanks
 Videoguy




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Looking for a way to build resolution independent layout xml?

2009-03-05 Thread Videoguy

I have lot of screens that need this. XML is a great prototyping
tool.

I am wondering whether it can be accomplished with xml layouts
though.

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

2009-03-05 Thread Mattaku Betsujin
Hello,

Has anyone ported Apache C++ Standard Library (STDCXX) onto Android?

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: Failed to reopen debug port for Selected Client to:

2009-03-05 Thread NWallman

Turns out my hosts file was messed up.  When I fixed that my problem
was resolved.

On Mar 4, 8:02 pm, NWallman ad...@noobspeak.com wrote:
 Hi,

 I am struggling to get my emulator to be able to bind for debugging
 purposes.  I get the following stack trace when I start my emulator:

 [2009-03-04 19:35:46 - ddms]Failed to reopen debug port for Selected
 Client to: 8700
 [2009-03-04 19:35:46 - ddms]Address family not supported by protocol
 family: bind
 java.net.SocketException: Address family not supported by protocol
 family: bind
         at sun.nio.ch.Net.bind(Native Method)
         at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
         at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
         at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
         at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown
 Source)
         at com.android.ddmlib.MonitorThread.run(Unknown Source)

 [2009-03-04 20:00:39 - ddms]Can't bind to local 8600 for debugger
 [2009-03-04 20:00:43 - ddms]Can't bind to local 8601 for debugger
 [2009-03-04 20:00:43 - ddms]Can't bind to local 8602 for debugger
 [2009-03-04 20:00:45 - ddms]Can't bind to local 8603 for debugger
 [2009-03-04 20:00:54 - ddms]Can't bind to local 8604 for debugger
 [2009-03-04 20:00:54 - ddms]Can't bind to local 8605 for debugger
 [2009-03-04 20:00:54 - ddms]Can't bind to local 8607 for debugger
 [2009-03-04 20:00:55 - ddms]Can't bind to local 8610 for debugger
 [2009-03-04 20:00:55 - ddms]Can't bind to local 8611 for debugger

 Can someone please explain to me what I am doing wrong?  Here are some
 specs:

 Windows Vista Ultimate
 JDK 1.6 Update 12
 Android SDK 1.0r2

 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] Trying to understand TabHost source code

2009-03-05 Thread ying lcs

Hi,

I am trying to understand TabHost source code. In the setup() , it has:

 // KeyListener to attach to all tabs. Detects non-navigation keys
// and relays them to the tab content.
mTabKeyListener = new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_DPAD_LEFT:
case KeyEvent.KEYCODE_DPAD_RIGHT:
case KeyEvent.KEYCODE_DPAD_UP:
case KeyEvent.KEYCODE_DPAD_DOWN:
case KeyEvent.KEYCODE_ENTER:
return false;

}
mTabContent.requestFocus(View.FOCUS_FORWARD);
return mTabContent.dispatchKeyEvent(event);
}

};

My question is why it intersects all LEFT/RIGHT/UP/DOWN key event? If
that is the case, can i still use LEFT/RIGHT/UP/DOWN to navigate
within the TabContent (let say I have a row of buttons in the
TabContent. Can I use LEFT/RIGHT/UP/DOWN to move from 1 button to
another in the TabContent)?

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] Re: Trying to understand TabHost source code

2009-03-05 Thread Dianne Hackborn
The comment says is re-directs non-navigation keys to the content.  It isn't
intercepting the other keys, it is ignoring them (returning false).

On Thu, Mar 5, 2009 at 11:42 AM, ying lcs ying...@gmail.com wrote:


 Hi,

 I am trying to understand TabHost source code. In the setup() , it has:

  // KeyListener to attach to all tabs. Detects non-navigation keys
// and relays them to the tab content.
mTabKeyListener = new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
switch (keyCode) {
case KeyEvent.KEYCODE_DPAD_CENTER:
case KeyEvent.KEYCODE_DPAD_LEFT:
case KeyEvent.KEYCODE_DPAD_RIGHT:
case KeyEvent.KEYCODE_DPAD_UP:
case KeyEvent.KEYCODE_DPAD_DOWN:
case KeyEvent.KEYCODE_ENTER:
return false;

}
mTabContent.requestFocus(View.FOCUS_FORWARD);
return mTabContent.dispatchKeyEvent(event);
}

};

 My question is why it intersects all LEFT/RIGHT/UP/DOWN key event? If
 that is the case, can i still use LEFT/RIGHT/UP/DOWN to navigate
 within the TabContent (let say I have a row of buttons in the
 TabContent. Can I use LEFT/RIGHT/UP/DOWN to move from 1 button to
 another in the TabContent)?

 Thank you.

 



-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: getApplicationContext returns null in test case (unless you sleep first)

2009-03-05 Thread Dianne Hackborn
The framework runs the instrumentation independently of the app, so it can
do what it wants when it wants.  And an activity is not the app.
Activities are created all the time, you can't wait for whatever one to be
created before running the instrumentation.

http://developer.android.com/reference/android/app/Instrumentation.html

http://developer.android.com/reference/android/app/Instrumentation.html#onStart()

http://developer.android.com/reference/android/app/Instrumentation.html#runOnMainSync(java.lang.Runnable)

On Thu, Mar 5, 2009 at 7:04 AM, AndyM andrewdm...@gmail.com wrote:


 There are APIs to allow you to run code on the main thread to access
 its objects. I'm a little confused about what APIs you are talking
 about and how they would help solve this problem. Could you clarify?

 To me it seems that the test runner should not be calling my tests if
 the Application is not finished initializing yet.

 Andy


 On Mar 4, 2:57 pm, Dianne Hackborn hack...@android.com wrote:
  You are calling this while the app is running, and it hasn't finished
  initializing.
 
  Generally you should be very careful about directly touching app objects
  like this from tests, since the test is running in a separate thread.
  There
  are APIs to allow you to run code on the main thread to access its
 objects.
 
  On Wed, Mar 4, 2009 at 10:00 AM, AndyM andrewdm...@gmail.com wrote:
 
   I have a simple androidTestCase class that has this test:
 
   @MediumTest
   public void testFoo() {
assertNotNull(this.mContext.getApplicationContext());
   }
 
   this fails unless I sleep first, then it passes. Whats the deal?
 
  --
  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.  All such questions should be posted on public
  forums, where I and others can see and answer them.
 



-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Neither user nor current process has android.permission.SET_PREFERRED_APPLICATIONS

2009-03-05 Thread Dianne Hackborn
Ah yeah.  This is either a bug, or just not something that is supported.  We
will change Dialtacs to not use implicit intents for its tabs, since
replacing them just won't work.  This will avoid running into such problems
involving it.

On Thu, Mar 5, 2009 at 8:53 AM, DanM dan.me...@gmail.com wrote:


 I'd also like to point out that there is a bug in the android system
 when handling intents for subactivities.

 I created an application that responds to the same intent as the call-
 log portion of the phone application (the intent that is started when
 the call-log tab is selected within that app). Normally, the activity
 that is started via this intent runs inside the call-log tab of the
 phone application, but if the activity resolver runs, the activity
 started thereafter runs as a regular full-screen activity and not
 inside of the call-log tab of the phone application. This happens no
 matter which activity you choose to start with the resolver, even if
 you select the default activity that usually runs with the phone
 application. It seems to me this has to be a problem with the activity
 resolver.

 The problem with SET_PREFERRED_APPLICATIONS may be related to this. It
 happens if you select the use by default for this action check box,
 and then select one of the activities. The application then crashes
 with the error above.

 -Dan


 On Mar 3, 11:38 am, MakeMobile makemobileinnovati...@gmail.com
 wrote:
  Hello,
  I'd like to revisit a topic that was previously posted, but never
  resolved.
 
  http://groups.google.com/group/android-developers/browse_thread/threa...
 
  Neither user 10002 nor current process has
  android.permission.SET_PREFERRED_APPLICATIONS
 
  I'm running into the same problem as the original poster. Currently my
  development is blocked until this problem is resolved. What is causing
  this problem and how do I resolve it? If you need more information
  about the application I'm writing, I'm happy to provide it.
 



-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Intercepting outgoing sms

2009-03-05 Thread Seer

Avraham thanks for the reply.  I know i can do it by making my own app
that the send the mail by but that is really less than ideal in my
case.  Maybe it would be possible to write an sms gateway class or
something that is set to the default method instead of the normal
mobile one.  The i could redirect to the mobile one if i did not want
to process this sms.

Does anyone know the low level of the OS and if this is possible?  Has
someoen tried this before?  i find it strange that others have not
wanted to do similar.

Chris

On Mar 6, 1:25 am, Avraham Serour tovm...@gmail.com wrote:
 not sure if you can do that, if not you could do the opposite, make the user
 send sms using you app, so if the number match your criteria you use your
 gateway, if not send it using the phone regular sms service

 On Thu, Mar 5, 2009 at 5:04 AM, Seer gilligan.ch...@gmail.com wrote:

  Hi,
  What i want to do is intercept outgoing sms.  The reason been that i
  want to redirect some sms over a web based sms sending service and
  others to go over the normal mobile network.  I would really like to
  do this as an invisible background process that does not need
  modifications to any of the existing apps people use to send sms.

  Is this possible or will i have to write my own app to send sms and
  let that app decide how to send the sms?  with so many sms apps out
  there i really did not want to add another to the mix and to instead
  work on a lower level.

  thanks

  Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Distinguishing Between Edge and 3G network

2009-03-05 Thread rycerz1411

Well I created a workaround for this, by testing network download
speed.
Here is a link to the source code
a href=http://www.gregbugaj.com/?p=47;Source/a

This is not perfect but it works, maybe they are using one of their
internal packages that are not available via SDK.


On Mar 2, 1:39 pm, rycerz1411 gregbugaj1...@gmail.com wrote:
 That's exactly what I have tried

        ConnectivityManager c=(ConnectivityManager) getSystemService
 (Context.CONNECTIVITY_SERVICE);
         Log.i(TAG, c.getActiveNetworkInfo()=+c.getActiveNetworkInfo
 ());
         NetworkInfo info=c.getActiveNetworkInfo();
         Log.i(TAG,info.getTypeName()=+info.getTypeName());

 One would expect that there would be a reliable way to do this.
 Maybe checking the speed of connection would give me any idea what
 they are using ?

 Thanks

 On Mar 2, 1:22 pm, Kather Jailani jail...@gmail.com wrote:

  Try getActiveNetworkInfo or getNetwokInfo methods

  On Mar 2, 2009 3:13 PM, rycerz1411 gregbugaj1...@gmail.com wrote:

  Is there a way to distinguish between Edge and 3G network?
  I have looked at the ConnectivityManager getType method but all it
  returns is MOBILE or WI_FI.
  For 3G i want to show user different UI that I do for an Edge

  Anyone have any suggestions.

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

2009-03-05 Thread Disconnect
(Soon is getting farther and farther away..) In the meantime, if you need
to get back to stock you can use the backup images off my site -
http://is.gd/lYLL for update.zip or http://is.gd/lYLT if you want to flash
with fastboot. They aren't official, but they are here. (For the curious,
those are from a backup of JF's ADP1 back when they first started arriving.)

On Thu, Mar 5, 2009 at 12:35 PM, Jean-Baptiste Queru j...@android.comwrote:


 No official system images are currently available for the ADP1. We're
 working on it.

 JBQ

 On Thu, Mar 5, 2009 at 9:30 AM, victorcab victor...@gmail.com wrote:
 
  Have you found any info? I am looking for a similar solution.
 
  On Feb 10, 3:30 am, Andreas Jellinghaus tolon...@gmail.com wrote:
  Hi,
 
  * where can I find official firmware for my android dev 1?
  * what is the official way toupdatethe firmware?
  * does such a firmwareupdatehave negative side effects? which one?
 
  So far I found only unofficial images for t-mobileg1,
  andupdatemethods using some root hack, neither is what I want.
 
  I'm fine if flashing the firmware resets all settings and deletes
  all applications I installed, but knowing what it will do exactly
  would be very helpfull. I hope that firmware updates will always
  keep the phoneunlocked? (I'm not using t-mobile and don't want
  to be forced into that...)
 
  Thanks for your help!
 
  Regards, Andreas
  
 



 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why different behaviour when exiting app using BACK and HOME ?

2009-03-05 Thread TAKEphONE

Hi again.

Do you mean I can override finish() ?

What do I do there ? - if I just do not call super.finish(),
the BACK pressing does nothing.

But - wouldnt that cause problems elsewhere (other instances where
the OS or another app may want/need to close down my app) ?!

Shimon

On Mar 5, 3:57 pm, Jean-Baptiste Queru j...@android.com wrote:
 The default behavior of the back key is to exit your activity by
 calling finish() (which should pop to the next activity in the
 activity stack of the task your activity was in, or to another task if
 your activity was at the bottom of its task). You can override that.

 The behavior of the home key is to switch to the home application, but
 your activity doesn't exit.

 JBQ



 On Thu, Mar 5, 2009 at 3:03 AM, TAKEphONE shimo...@gmail.com wrote:

  Hi all,

  I know this probably was discussed here before, but I can only find
  bits of info.

  Say a user runs my app from the HOME screen.
  The app has 3 tabs. Say he/she selectes a different tab,
  so he/she is in a different screen (same task).

  Now - if the user presses BACK - the device returns to the HOME
  screen.
  If the user launches my app again - the default tab is shown.

  BUT - if the user presses HOME - the device returns to the HOME screen
  (same).
  If the user launches my app again - the OTHER tab is shown.

  I understand (sort of) the logic - BACK returns to previous app,
  popping my app
  from the history stack, so when launched again - it is started from
  scratch.
  But this is confusing my customers - they say it's a bug !
  They dont understand the different between two keys doing the same
  thing
  as far as they see (returning to HOME).

  Moreover - I see a different behavior with the built-in DIALER app - I
  change tabs,
  press HOME, launch the app again - and it starts with the default tab.

  Can I imitate this ?

  TIA

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why different behaviour when exiting app using BACK and HOME ?

2009-03-05 Thread Jean-Baptiste Queru

You can capture the back key and make it do whatever you want.

JBQ

On Thu, Mar 5, 2009 at 1:08 PM, TAKEphONE shimo...@gmail.com wrote:

 Hi again.

 Do you mean I can override finish() ?

 What do I do there ? - if I just do not call super.finish(),
 the BACK pressing does nothing.

 But - wouldnt that cause problems elsewhere (other instances where
 the OS or another app may want/need to close down my app) ?!

 Shimon

 On Mar 5, 3:57 pm, Jean-Baptiste Queru j...@android.com wrote:
 The default behavior of the back key is to exit your activity by
 calling finish() (which should pop to the next activity in the
 activity stack of the task your activity was in, or to another task if
 your activity was at the bottom of its task). You can override that.

 The behavior of the home key is to switch to the home application, but
 your activity doesn't exit.

 JBQ



 On Thu, Mar 5, 2009 at 3:03 AM, TAKEphONE shimo...@gmail.com wrote:

  Hi all,

  I know this probably was discussed here before, but I can only find
  bits of info.

  Say a user runs my app from the HOME screen.
  The app has 3 tabs. Say he/she selectes a different tab,
  so he/she is in a different screen (same task).

  Now - if the user presses BACK - the device returns to the HOME
  screen.
  If the user launches my app again - the default tab is shown.

  BUT - if the user presses HOME - the device returns to the HOME screen
  (same).
  If the user launches my app again - the OTHER tab is shown.

  I understand (sort of) the logic - BACK returns to previous app,
  popping my app
  from the history stack, so when launched again - it is started from
  scratch.
  But this is confusing my customers - they say it's a bug !
  They dont understand the different between two keys doing the same
  thing
  as far as they see (returning to HOME).

  Moreover - I see a different behavior with the built-in DIALER app - I
  change tabs,
  press HOME, launch the app again - and it starts with the default tab.

  Can I imitate this ?

  TIA

 --
 Jean-Baptiste M. JBQ Queru
 Android Engineer, Google.

 Questions sent directly to me that have no reason for being private
 will likely get ignored or forwarded to a public forum with no further
 warning.
 




-- 
Jean-Baptiste M. JBQ Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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

2009-03-05 Thread Lawrence

Hi,
i am now wondering how to preload an application. Does it work if
only place it under /system/app/?

Thanks,

Lawrence

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

2009-03-05 Thread rocia

hi,
I encountered with a problem when I use DDMS to send mock gps
location data .
   I checked out the source code of Android  and make the latest
version.Then put my test apk file of gps to the emulator and start
DDMS, but when I use Emulator Control of DDMS to manually Button to
send mock location data it says no GPS emulation in this virtual
device. But the same apk file works fine in the SDK 1.0
   Waiting for your reply,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] How to mount SD as USB mass storage automatically

2009-03-05 Thread telematics

I am developing an android app that will automatically mount the SD as
the USB mass storage when the G1 phone is connected to a PC via USB,
and automatically umount it when the USB is disconnected. I know to
how to create a broadcast receiver to receive  UMS_CONNECTED and
UMS_DISCONNECTED broadcast intents, but I don't know whic API I should
use to mount/umount the SD. Is there anyone can help me on this?

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] How to mount SD as USB mass storage programmatically

2009-03-05 Thread telematics

Is there anyone know how to mount the SD as USB mass storage from an
android app programmatically when it is connected to a PC? It is
unacceptable for the use case I am working on to ask the user to go to
the notification screen to manually click mount button. Your help
will be highly appreciated.

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



[android-developers] How to read feedback

2009-03-05 Thread Neil

This seems like a stupid question, but somehow I couldn't find the
answer anywhere ;)

How do I read the feedback that my app gets in Market?  Shouldn't
there be a link somewhere in Developer Console?

Regards

Neil



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Initial database population from large data files, several problems

2009-03-05 Thread Justin Allen Jaynes

I'm building a dictionary application with 135,000 word entries (words 
only).  My raw file must have been too large (1.5 meg), because I got 
this error:

D/asset (909): Data exceeds UNCOMPRESS_DATA_MAX (1424000 vs 1048576)

I've searched for this error with very few relevant hits.  It seemed to 
mean I could not open an uncompressed file over a meg.  So I then split 
the file into two smaller files and ran my code on both of them.  It 
worked out fine.  My total application size is 3 meg installed.

My code is:
public void onCreate(SQLiteDatabase database) {
database.execSQL(CREATE TABLE  + DATABASE_TABLE +  (wordid 
INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, word VARCHAR););
   
Scanner fileScanner = new 
Scanner(myContext.getResources().openRawResource(R.raw.wordlist));
while ( fileScanner.hasNextLine() ) {
String wordFromFile = fileScanner.nextLine();
 database.execSQL(INSERT INTO words (word) VALUES (' + 
wordFromFile + '););
}
fileScanner = new 
Scanner(myContext.getResources().openRawResource(R.raw.wordlist2));
while ( fileScanner.hasNextLine() ) {
String wordFromFile = fileScanner.nextLine();
 database.execSQL(INSERT INTO words (word) VALUES (' + 
wordFromFile + '););
 }
}

However, when the application is first run, it takes several MINUTES to 
initialize the database in this way.  Is there a way (like a copy 
command, as found in, say, postgresql, or a restore of a database file) 
to copy data from a raw file, and can such a method be accessed from the 
SDK so that standard first-run procedures can correctly set up the 
database?  I have been unable to locate such a luxury.  I am seeking to 
speed up this data populating process.

First question: how can I speed up my database population?

Second question: is there a way to read a raw resource file larger than 
1 megabyte (aside from making it into two smaller files)?  If not, why?

Justin

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

2009-03-05 Thread rocia
hi,
   I encountered with a problem when I use DDMS to send mock gps
location data .
  I checked out the source code of Android  and make the latest
version.Then put my test apk file of gps to the emulator and start
DDMS, but when I use Emulator Control of DDMS to manually Button to
send mock location data it says no GPS emulation in this virtual
device. But the same apk file works fine in the SDK 1.0
  Waiting for your reply,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: Neither user nor current process has android.permission.SET_PREFERRED_APPLICATIONS

2009-03-05 Thread MakeMobile

What do you mean by not supported? Do you mean that you should not be
able to do this
for any TabActivity class? What is to stop other developers from
falling into the
same trap?

Also, if this is the case, it seems to be impossible to create a new
call-log
application because one would have to re-implement the entire phone
application,
which would be Ok if that were possible. But, looking at the code it
seems that the
phone application has access to privileged code, making writing a 3rd
party phone app
imposible. So it is impossible to completely replace the default phone
application?



On Mar 5, 3:13 pm, Dianne Hackborn hack...@android.com wrote:
 Ah yeah.  This is either a bug, or just not something that is supported.  We
 will change Dialtacs to not use implicit intents for its tabs, since
 replacing them just won't work.  This will avoid running into such problems
 involving it.



 On Thu, Mar 5, 2009 at 8:53 AM, DanM dan.me...@gmail.com wrote:

  I'd also like to point out that there is a bug in the android system
  when handling intents for subactivities.

  I created an application that responds to the same intent as the call-
  log portion of the phone application (the intent that is started when
  the call-log tab is selected within that app). Normally, the activity
  that is started via this intent runs inside the call-log tab of the
  phone application, but if the activity resolver runs, the activity
  started thereafter runs as a regular full-screen activity and not
  inside of the call-log tab of the phone application. This happens no
  matter which activity you choose to start with the resolver, even if
  you select the default activity that usually runs with the phone
  application. It seems to me this has to be a problem with the activity
  resolver.

  The problem with SET_PREFERRED_APPLICATIONS may be related to this. It
  happens if you select the use by default for this action check box,
  and then select one of the activities. The application then crashes
  with the error above.

  -Dan

  On Mar 3, 11:38 am, MakeMobile makemobileinnovati...@gmail.com
  wrote:
   Hello,
   I'd like to revisit a topic that was previously posted, but never
   resolved.

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

   Neither user 10002 nor current process has
   android.permission.SET_PREFERRED_APPLICATIONS

   I'm running into the same problem as the original poster. Currently my
   development is blocked until this problem is resolved. What is causing
   this problem and how do I resolve it? If you need more information
   about the application I'm writing, I'm happy to provide it.

 --
 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.  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] MediaPlayer: Stop , play back issue

2009-03-05 Thread AndroidUser

When i tried to play the audio button i can ablet to play, pause.

But i am unable to play again once if i stopped. What i did mistake
here could u plz explain



public class PlayAudio extends Activity {

  /** Called when the activity is first created. */

  @Override

  public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

final MediaPlayer mp = MediaPlayer.create(getBaseContext
(),

R.raw.sunday);



final Button btnPlayAudio = (Button) findViewById
(R.id.btnPlayAudio);



btnPlayAudio.setOnClickListener(new OnClickListener()



{

  public void onClick(View v) {

if (v.getId() == R.id.btnPlayAudio)
{

  try {

mp.start
();

  } catch (Exception e) {

  }

}

  }



});



final Button pausePlayAudio = (Button) findViewById
(R.id.pausePlayAudio);

pausePlayAudio.setOnClickListener(new OnClickListener() {

  public void onClick(View v) {

if (v.getId() == R.id.pausePlayAudio) {

  mp.pause();

}

  }

});



final Button stopPlayAudio = (Button) findViewById
(R.id.stopPlayAudio);

stopPlayAudio.setOnClickListener(new OnClickListener() {

  public void onClick(View v) {

if (v.getId() == R.id.stopPlayAudio) {

  mp.stop();

  mp.release();

}

  }

});









  }



}


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

2009-03-05 Thread run99ner_ff


Okay, I have found a way to get the cell id, lac, ncc, bcc, (bsic),
rxLev, rxQual, C/I, neighbor info, gsm  umts information.  Launch the
Dialer app and type *#*#7262626#*#* . . next push the Menu key and
select Test Item.

But I'm still disappointed as there are more than 10 screens.  I would
love to know what the API's are so I can write an app that allows the
user to select what information they want to see.  I simply want to be
able to see only what I want on just one screen without scrolling.

I wonder if Google is purposely avoiding my questions because they
don't want to give out those API's?  Are there any Google employees on
these blogs?

Thanks!

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



[android-developers] Eclipse problems when adding layoutlib.jar to a project

2009-03-05 Thread Lars

Hello,

I need to use the IWindowManager classes et al that resides in the
layoutlib.jar file and have added it to my project in Eclipse (3.4.2)
as an external Jar. After doing this, Eclipse utilizes 100% CPU (very
slow, almost hung) and is unusable when Eclipse tries to build the
project. Sometimes I get it to create the classes,dex file but most of
the time I have to kill the IDE. Also, the dex-file is very large
(around 4MB, when it gets created at all). If I remove layoutlib.jar
the project builds normally.

1. How do I use the layoutlib.jar file in my project?
2. How do I prevent the classes.dex file to contain a copy of
layoutlib.jar? I assume I don't need the jar file when running the
program on the device, or?

I use SDK 1.1_r1

Thanks in advance,
Lars

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

2009-03-05 Thread pranab

Hi,

I am able to access all the sites through Android emulator except
www.facebook.com. Whereas I am able to access www.facebook.com from my
PC using internet exporer. I am using static IP to avoid the proxy.
Can anybody tell me what could be the issue and how to get rid of this
problem.

Thanks in advance,
Pranab

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

2009-03-05 Thread shuttle78

Hi,
I've developed an simple UDP socket connection client/server (in the
same application) with a standard java api, but when I try to start
the application in my sdk it crash.
I've tried to add the line
uses-permission android:name=android.permission.INTERNET
in AndroidManifest.xml file but I've the same problem.

Can you help my?

If I lunch the application with a normal java application (no andorid
api) it works fine.

Thanks for your help
Best Regards
Giulio

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

2009-03-05 Thread Lawrence

Dear all,
   i am finding all android preloaded applications are located under /
system/app/. So i am wondering if there is way that we can preload our
own applications. Does it work that we just placed an app under /
system/app/?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Load two different views simultaneously in a screen

2009-03-05 Thread Kacza

On 5 Mar, 14:50, And-Rider rahulregunat...@gmail.com wrote:
 I want to create a single screen with two different views .And i want
 to refresh one view without disturbing the second view.

Hi,
the first thing that comes to my mind is to create a LinearLayout, put
two views into it and refresh only one when needed.

class MyActivity extends Activity
{
View topView;
View bottomView;

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

 LinearLayout layout = new LinearLayout(this);
 layout.setOrientation(LinearLayout.VERTICAL);

 this.topView = new MyTopView(this);
 this.bottomView = new MyBottomView(this);

layout.addView(topView, new LinearLayout.LayoutParams
(LinearLayout.LayoutParams.FILL_PARENT));
layout.addView(bottomView, new LinearLayout.LayoutParams
(LinearLayout.LayoutParams.FILL_PARENT));
}

void refreshBottomView()
{
   if (this.topView != null)
   this.topView.postInvalidate();
}
}

(code not checked)


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

2009-03-05 Thread Jayant

Aftek has a very strong exposure to mobile application development and
has delivered variety of projects focusing on mobile applications
including touch point applications, mobile ads, mobile searches,
polls, location based services, CRM extensions etc. We also have
expertise in technologies related to portable applications, portable
devices, mobile commerce and multimedia applications.

In Android we have extensive expertise with the following

1.Rich UI designing, optimized graphics using OPENGL
2.Providing features using core level mobile aspects like making a
call, sending SMS, receiving SMS and post processing the same,
3.Building intelligence using various logs including calls, SMS
4.Providing features using core data including phone book, contacts,
meetings, notes
5.Providing features using various supported API including Maps,
Media, Text to Speech and Bluetooth
6.Providing features using the SQLite database API

For more details please visit http://expertise.aftek.com and
http://www.aftek.com/technical_expertise.shtml


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

2009-03-05 Thread Mr.No

How do i enable Unicode in for my EditText,
if i enter ö,ä,ü he shows me [ +- ect...

rgds
mr.no

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 make an application NOT uninstallable like build-in apps

2009-03-05 Thread Explore Android

Hi All,

I am working on social networking application and our company/operator
requirement is that the user should not be allowed to uninstall this
application like any build in applications.

How can we make our application be NON uninstallable?

Any pointers, greatly appreciated.

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



  1   2   3   >