[android-developers] Re: help: button.setBackgroundColor

2009-05-07 Thread Sukitha Udugamasooriya

Romain Guy ,

Thanks.
Seems it is a long process to change the original assets. You meant
from the Android source code rite?

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: EditText with multiple listners

2009-05-07 Thread Romain Guy

There is only one thread to control the entire UI.

On Wed, May 6, 2009 at 10:15 PM, Raja Nagendra Kumar
nagendra.r...@tejasoft.com wrote:

 We have a few actions to be taken based on edit and based on focus
 lost on a Text Filed, Hence we made sure this View object listens to
 both some thing like this

 fieldEdit.addTextChangedListener(fileList);
 fieldEdit.setOnFocusChangeListener(fileList);

 In this context, when the field is edited and focus is lost I would
 expect text change events should be handled completely before
 onFocusChange events are executed provided the is only one event
 handling thread.

 Could any one tell me if there is only one event handling thread..Also
 in this event handling code if we are adding and remove parts of the
 view what kind of deadlock could happen..

 For some reasons related to updates to view is resulting in dead lock
 some where and we are seeing error messages

 05-07 10:35:03.826: WARN/KeyCharacterMap(402): No keyboard for id 0
 05-07 10:35:03.826: WARN/KeyCharacterMap(402): Using default keymap: /
 system/usr/keychars/qwerty.kcm.bin

 and unable to control the focused object there on..


 Regards,
 Raja Nagendra Kumar,
 C.T.O
 www.tejasoft.com


 




-- 
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: How to get current date ??

2009-05-07 Thread Daehoon Jeon
In Android we can get current date like this :
private TextView mDateDisplay;
private Button mPickDate;

private int mYear;
private int mMonth;
private int mDay;

static final int DATE_DIALOG_ID = 0;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

// capture our View elements
mDateDisplay = (TextView) findViewById(R.id.dateDisplay);
mPickDate = (Button) findViewById(R.id.pickDate);

// add a click listener to the button
mPickDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(DATE_DIALOG_ID);
}
});

// get the current date
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);

// display the current date
updateDisplay();
}

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



[android-developers] List All files in the directory

2009-05-07 Thread Muthu Kumar K.

Hi All,

Can any one tell me which is the best way to access the file system in
android device, also i want to list all the files in the application
directory. Please give me your comments.

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



[android-developers] Focus control

2009-05-07 Thread Raja Nagendra Kumar

Hi,

We see API for saying which is the next focusable view.. however
during the event handling we want to set the focus to xyz view  object
programmatically .

Is that possible..

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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] Focus algorithm's default logic

2009-05-07 Thread Raja Nagendra Kumar

Also, any good place to know how does android framework default
approach to decide on the next focusable component. Does this depend
on Layout.

What is its impact if the view is dynamically generated with certain
view items, either removed, added or hidden based on certain events.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.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: List All files in the directory

2009-05-07 Thread matthias

Hi,

for accessing e.g. the shared_prefs directory, you would do something
like this (in an Activity or Service):

PackageManager pm = getPackageManager();
ApplicationInfo appInfo = pm.getApplicationInfo(getPackageName
(), 0);

final ListString list = Arrays.asList(files);
File sharedPrefsDir = new File(appInfo.dataDir + /
shared_prefs);

FileFilter filter = new FileFilter() {
public boolean accept(File pathname) {
   // in case you must filter files...
   [...]
}
};
File[] prefFiles = sharedPrefsDir.listFiles(filter);
for (File f : prefFiles) {
[...]
}
}


HTH.

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



[android-developers] Creating window on Android using C++

2009-05-07 Thread Maha

Hi,

  Is there any way to create window on Android using C++. My
ultimate aim is to draw bitmap image on android but using C++

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

2009-05-07 Thread Romain Guy

Just call requestFocus() on that component. Note that it won't work in
touch mode (== after the user touched the screen) because the Android
UI design calls for no focused/selected element in touch mode.

On Thu, May 7, 2009 at 12:35 AM, Raja Nagendra Kumar
nagendra.r...@tejasoft.com wrote:

 Hi,

 We see API for saying which is the next focusable view.. however
 during the event handling we want to set the focus to xyz view  object
 programmatically .

 Is that possible..

 Regards,
 Raja Nagendra Kumar,
 C.T.O
 www.tejasoft.com
 




-- 
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: List All files in the directory

2009-05-07 Thread matthias

Hi,

not sure about the app dir, but for accessing e.g. the shared_prefs
directory, you would do something
like this (in an Activity or Service):

PackageManager pm = getPackageManager();
ApplicationInfo appInfo = pm.getApplicationInfo(getPackageName
(), 0);

File sharedPrefsDir = new File(appInfo.dataDir + /
shared_prefs);

FileFilter filter = new FileFilter() {
public boolean accept(File pathname) {
   // in case you must filter files...
   [...]
}
};
File[] prefFiles = sharedPrefsDir.listFiles(filter);
for (File f : prefFiles) {
[...]
}
}

HTH.

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

2009-05-07 Thread tekinico

Actually yes, you could suggest : )

I've seen many news on how adobe is bringing flash to android or that
Webkit is used as the browser engine.
I am however unable to find what version of CSS, HTML, SSL... is
supported.

Thing is, i'm not sure adroid is using the full capabilities of
webkit, is it ? isn't it lite weighted  because of mobile
restrictions ?

On May 6, 7:00 am, Disconnect dc.disconn...@gmail.com wrote:
 You googled and couldn't find out if it supported flash?

 Can I suggest trying harder?

 On Mon, May 4, 2009 at 4:15 AM, tekinico tekin...@gmail.com wrote:

  Hey everyone !

  I've been trying to collect information about Android web browser
  specifications, like html/css versions, security protocols, Java/Flash
  support, etc...

  Does anyone know where to find this info ? it seems pretty critical
  and yet i couldn't find anything...

  I googled it though ... ; )

  thx !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Does anyone do XPath on Android?

2009-05-07 Thread matthias

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

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

Hi all,

Now I'm writing a software and using GPS simulator on SDK1.5
I use an AVD device by command : android create avd --target 2 --name
AVD_15
My problem is when i change location up to the third times, my program
can not receive this change. I do not understand but I can be sure
that my program worked well on SDK 1.1
Do you know what happens in SDK1.5?
Please help me to solve that problem.

Thanks,
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: Lost focus on soft keyboard

2009-05-07 Thread Paranoia

do you mean the keyboard is popped up, but the activity is not pushed
aside? right?
i DID meet this issue. seems it's bug of the imf, or windowmanager.

On May 7, 3:15 pm, Yossi yossi@gmail.com wrote:
 Hi Dianne,

 Did you find anything wrong with my code?

 Thanks,
 Yossi

 On May 6, 11:00 am, Yossi yossi@gmail.com wrote:

  this is the layout
  ?xml version=1.0 encoding=utf-8?

  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
          android:id=@+android:id/widget_frame
          android:orientation=vertical
      android:padding=10px
          android:layout_width=fill_parent
          android:layout_height=fill_parent
                  TextView
                  android:text=@string/settings_text_email
                  android:layout_width=wrap_content
                          android:layout_height=wrap_content
                          android:textSize=24px
                  android:textColor=#ff
                  android:gravity=left
                  android:paddingLeft=3dip/
                  TextView
                  android:text=@string/settings_text_email_info
                  android:layout_width=wrap_content
                          android:layout_height=wrap_content
                  android:textColor=#ff
                          android:textSize=14px
                  android:gravity=left
                  android:paddingLeft=3dip/
                  LinearLayout
                      android:orientation=horizontal
                      android:gravity=left|top
                      android:layout_width=fill_parent
                          android:layout_height=fill_parent
                          EditText
                          android:id=@+id/settings_edit_email
                          android:text=
                          android:layout_width=248px
                                  android:layout_height=wrap_content
                          android:textColor=#262626
                                  android:textSize=16px
                          android:gravity=left|center/
                 Button android:id=@+id/settings_button_save
                              android:text=@string/settings_button_save
                              android:layout_width=52px
                              android:layout_height=44px
                          android:gravity=left|center/
                  /LinearLayout

  /LinearLayout

  and this is the code

  import android.content.Context;
  import android.preference.Preference;
  import android.util.AttributeSet;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;

  public class EditEmailPreference extends Preference implements
  View.OnClickListener
  {
          private EditText _emailEditText;

          public EditEmailPreference(Context context, AttributeSet attrs)
          {
                  super(context, attrs);
                  setLayoutResource(R.layout.settings_email);
          }

          @Override
          protected void onBindView(View view)
          {
                  super.onBindView(view);

                  _emailEditText = (EditText) view.findViewById
  (R.id.settings_edit_email);
                  _emailEditText.setText(getPersistedString());
                  Button saveButton = (Button) view.findViewById
  (R.id.settings_button_save);
                  saveButton.setOnClickListener(this);
          }

          @Override
          public void onClick(View v)
          {
                  persistString(_emailEditText.getText().toString());
          }

  }

  Thanks for your help.

  On May 6, 10:50 am, Dianne Hackborn hack...@android.com wrote:

   You'll need to supply code that demonstrates the problem.  Given that this
   behavior is nothing like the standard behavior of EditText anywhere else 
   in
   the system, here must be something in your code instigating it.

   On Wed, May 6, 2009 at 12:24 AM, Yossi yossi@gmail.com wrote:

1. User clicks on the EditText
2.Softkeyboardpops-up and EditText loses the focus. Any typing on
thekeyboarddoes nothing
3. User touches again the EditText to get focus
4. Now, any click on thekeyboardshows the character for a second in
the EditText but then it disappears.

Thanks.

On May 6, 10:11 am, Dianne Hackborn hack...@android.com wrote:
 IMEs do not take input focus, so I don't really understand what you 
 are
 describing.  What behavior are you seeing that is different than how 
 the
IME
 behaves in other parts of the UI?

 On Tue, May 5, 2009 at 11:47 PM, Yossi yossi@gmail.com wrote:

  Anyone has this issue or am I doing something wrong?

  On May 2, 11:51 am, Yossi yossi@gmail.com wrote:
   Hi,

   I implemented a custom preference screen on which I have an 
   EditText
   control. The problem I have is when the user clicks on the 
   EditText
   control to enter data, 

[android-developers] Can not change the text appears in AlertDialog

2009-05-07 Thread Omer Saatcioglu

Hello,

Today I faced a very weird problem. In my game I create AlertDialog to
show the user next level challenges when one is succeeded. So, the
corresponding code is like this. when the game is succeeded showDialog
(R.id.display_success) is called and the following code is executed.
So, I am expecting to execute this code in every call. However; the
game is executing only once and showing the same AlertDialog in every
other execution. I mean, like the instance is not created after the
first one is created and the first instance is used all the time. I
hope I could describe my problem. Thank you.

case R.id.display_success:
Log.d(GfxMasterShot::onCreateDialog, Succcess  +
Integer.toString(SMBGuesstheNumber.nCurrentLevel));
updateGameSettings();
message = formatLevel()
+ formatMission();
return new AlertDialog.Builder(this)
.setIcon(R.drawable.smiley_happy)
.setTitle(R.string.dialog_success)
.setMessage(message)
.setPositiveButton(R.string.alert_dialog_newgame, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, 
int whichButton) {
StartaNewGame();
}
})
.setNegativeButton(R.string.exit, new
DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int 
whichButton) {

CtrlMaintanence.getInstance().setCurrentLevel
(SMBGuesstheNumber.nCurrentLevel + 1);
finish();
}
})
.create();


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Weird bug when saving picture to file system!?

2009-05-07 Thread L'\tty

I see, thx for the 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: Android 1.5: How to get the BT state?

2009-05-07 Thread so_is

Thank you very much. :)

Here some advice for all the others reading that topic:

private static final String BLUETOOTH_STATE =
android.bluetooth.intent.BLUETOOTH_STATE;
private static final String BLUETOOTH_PREVIOUS_STATE =
android.bluetooth.intent.BLUETOOTH_PREVIOUS_STATE;

Regards

On May 6, 8:41 am, Nick Pelly npe...@google.com wrote:
 There is a simple bug in your code. Try looking in the source for
 other examples of the use of BLUETOOTH_STATE_CHANGED and you should
 quickly see what you have done wrong.

 Sorry not going to spoon feed you for private API's.

 Nick

 On Tue, May 5, 2009 at 10:45 PM, so_is festival.s...@googlemail.com wrote:

  Is there new information about that problem?

  On Apr 25, 9:41 am, scanning_it festival.s...@googlemail.com wrote:
  Well after testing the whole thing I recognized that the state is not
  delivered via an Intent extra. (although mentioned in the SDK)

  Here is what I tried:

          Log.e(TAG,Received Bt change. Change action: +intent.getAction
  ());
          int state = intent.getIntExtra(BLUETOOTH_STATE, 404);
          int previousState = intent.getIntExtra
  (BLUETOOTH_PREVIOUS_STATE, 404);

  The action is fine but the states are always 404. So there is no state
  returned.

  Could you lead me to the file where you have found the things you
  mentioned. I haven't found it in the source. :(

  Thank you very much.

  Regards.

  On Apr 25, 9:11 am, scanning_it festival.s...@googlemail.com wrote:

   Thank you very much. I am aware that it is not part of the public
   API. :)

   On Apr 24, 10:41 pm, Nick Pelly npe...@google.com wrote:

On Fri, Apr 24, 2009 at 7:09 AM, code_android_festival_way 

festival.s...@googlemail.com wrote:

 At the moment I am trying to update my application to Android 1.5.

 In Android 1.1 I was able to detect the BT state with catching the
 following broadcasts:

 action android:name=android.bluetooth.intent.action.ENABLED /
 action android:name=android.bluetooth.intent.action.DISABLED /
 action
 android:name=android.bluetooth.intent.action.REMOTE_DEVICE_FOUND /
 action
 android:name=android.bluetooth.intent.action.REMOTE_DEVICE_DISCONNECTED
  /

 action
 android:name=android.bluetooth.intent.action.REMOTE_DEVICE_CONNECTED
  /

 action
 android:name=android.bluetooth.intent.action.BONDING_CREATED /

 After testing with Android 1.5 I recognized that only:

 action
 android:name=android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED
  /

1) These are not part of the public API. If you use them it is at your 
own
risk, and your app will probably break again going forward beyond 
cupcake.

2) Your question is easily answered by looking at the source.

    /** Broadcast when the local Bluetooth device state changes, for 
example
     *  when Bluetooth is enabled. Will contain int extra's 
BLUETOOTH_STATE
and
     *  BLUETOOTH_PREVIOUS_STATE. */
    @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
    public static final String BLUETOOTH_STATE_CHANGED_ACTION =
        android.bluetooth.intent.action.BLUETOOTH_STATE_CHANGED;

 is available.

 How can I detect the specific state of Bluetooth in 1.5? With the
 settings I can only differentiate between BT on and off.

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



[android-developers] Media Player sound state problems in G1

2009-05-07 Thread Sudha

Hi I am using MediaPlayer to play my sounds below is my another post

http://groups.google.com/group/android-developers/browse_thread/thread/8d1c01b055873f39#

I tried all the possible ways stated in the above post but could not
play sounds accordingly so changed the sound code as below,

Now the sounds are working fine and no sound is getting skipped but am
getting some errors which i cannot figure why they are coming...?

Below are some errors:

1-  E/MediaPlayer( 2173): stop called in state 1

2-  E/MediaPlayer( 2173): stop called in state 2

the above errors i get frequently and i get the below one's randomly,
the game freezes and requires a force close when i encounter the below
errors

3-  E/MediaPlayer( 2173): setDataSource called in state 2
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)

4-  E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)

5-  E/MediaPlayer( 2173): prepareAsync called in state 128
 E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
android.media.MediaPlayer.setDataSource(Native Method)

6-  E/MediaPlayerService(   31): offset error
 E/MediaPlayer( 2173): Unable to to create media player

I have observed that all the sounds played atleast once in the game
without any error.

I want to know what are the states 1,2  128 and why are the errors
raised.

As per the 
http://developer.android.com/reference/android/media/MediaPlayer.html#Valid_and_Invalid_States
I suppose there is no problem in my code but y is that error shown...?

Plz check the below code:

public void stop() throws MediaException {
try
{
mp.stop();
mp.reset();
FileInputStream fIn = 
Utils.getContext().openFileInput(fileName);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}
}
catch(Exception e){e.printStackTrace();}
isPlayingSound = false;
}

public boolean isPlayingSound; //class member
MediaPlayer mp = null;
String last_req = ;
public void playSound(final String res) {
if (isPlayingSound){
return;
}
try {
if (!last_req.equals(res))
{
last_req = res;
mp = new MediaPlayer();

FileInputStream fIn = 
Utils.getContext().openFileInput(res);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
try
{
mp.stop();
mp.reset();
FileInputStream fIn = 
Utils.getContext().openFileInput(res);
if (fIn != null)
{

mp.setDataSource(fIn.getFD());
fIn.close();
}
isPlayingSound = false;
}
catch(Exception e){e.printStackTrace();}

}
});

mp.setOnErrorListener(new
MediaPlayer.OnErrorListener() {
public boolean onError(MediaPlayer mp, int 
what, int extra)
{
mp.release();
mp = null;
deleteSoundFile(res);
isPlayingSound = false;
last_req=;
System.gc();
new 
PlayerImpl(fileName,fileInputStream);
return false;
}
});

[android-developers] How to implement a link view

2009-05-07 Thread rain

Just like the html a tag, I want dispaly a link text, when user click
the linkView then trigger some evnet( link: open a new page).

for example:  display text is:

google

when user click the google text ,then open the google home page:
www.google.com.

I saw the TextView and the Linkify class, but is can only display the
url to a underline link 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] Re: How to implement a link view

2009-05-07 Thread rain

I find a way to display the link text:

TextView tv = new TextView(this);
SpannableString str = SpannableString.valueOf(google);
str.setSpan(new URLSpan(http://www.google.com;), 0, 6,
Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
tv.append(str);

but when i click the text, there will not trigger the open browser
action.

any help! 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 get the network camped event

2009-05-07 Thread Lawrence

Hi,
   i am wondering how to get noticed once the phone has been
successfully registered to a valid network. Anybody has a point on
this?
   Thanks,

Lawrrence
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: DTD file for syntax checking of layouts / manifest files

2009-05-07 Thread a druid

Thanks for your answer.

Is this the same for the Manifest file ?



On May 6, 5:39 pm, Romain Guy romain...@google.com wrote:
 There is no DTD for the layout files because they use dynamic tag
 names. A DTD cannot be written.



 On Wed, May 6, 2009 at 6:53 AM, a druid klausf...@gmail.com wrote:

  Hi,

  Some XML tools request DTD files in order to allow syntax checking.

  Is there any place for official Android DTD files for the Manifest /
  for the layout XML files?

  If yes, Where could I find them?

  If no: Wyy does Google / Android not provide them?

  Thanks in advance for any answer clarification.

 --
 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: SharedPreferences got deleted! - What could be the problem?

2009-05-07 Thread so_is

Thank you very much for your comment Mark.

Well at the moment I am prior to redo the whole preferences saving my
settings into a Sqlite database.

I can not find the bug in my code and my app relies on this settings
so I don't see any other chance to get rid of the lost settings bug.

On May 6, 12:56 pm, Mark Murphy mmur...@commonsware.com wrote:
 so_is wrote:
  Well Mark the problem is that I am using the suggested way to save the
  settings. I do commit every single edit() like suggested. But a lot of
  users are still reporting that they lose settings. I don't know why
  but it happens some times. :( (I have worked with my app for 2 months
  now and have never lost the settings)

 It will be difficult to fix the bug without a repeatable scenario.

  To sum up I don't like the suggestion using Sqlite because I would
  just ignore a bug which is obviously there but no one knows what it
  really is.

 If you can come up with a repeatable scenario for theSharedPreferences
 damage, post an issue tohttp://b.android.comwith a project and
 instructions for causing the problem.

 Otherwise, if I were in your shoes, I would switch to some other means
 (e.g., SQLite) of storing the data you are storing inSharedPreferences,
 simply to make your users happy.

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

 Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 Disable Onscreen Keyboard

2009-05-07 Thread a druid

Go to
settings - Locale  text
and uncheck Android keyboard

On May 6, 4:22 am, MikaSue mika...@mikasuedesigns.com wrote:
 I have downloaded SDK 1.5 and now when I enter a edittext field, this
 annoying onscreen keyboard pops up.  Is there a way to disable it in
 the emulator?  It's very annoying and slows my development down.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Task activity stack always reset when launched from Home

2009-05-07 Thread Tushar

I'm facing same issue. Did you got any fix or work around for this ?



On Mar 26, 6:55 pm, jseghers jsegh...@cequint.com wrote:
 The code that starts the .About activity is:
     protected void startAbout()
     {
         Intent aIntent = new Intent(this, About.class);
         startActivity(aIntent);
     }

 The Manifest entries for .UserLaunch and .About are in my original
 post.
 The intent that returns the task to the front is generated by the
 Launcher.

 What flags do I need to set (and where) to prevent this from
 happening? Is one of the default values causing it?

 My test case here is:
 1) launch .UserLaunch from the launcher
 2) start .About
 3) hit Home key
 4) launch .UserLuanch from the launcher

 There are no long delays in any of this, so the 30 minute auto-clear
 should not be invoked.

 - John

 On Mar 25, 12:15 pm, Dianne Hackborn hack...@android.com wrote:

  That means you are using some CLEAR_TOP or finish flag in an intent or in
  the manifest.  Or possibly it has been  30 minutes since the app was last
  launched, in which case the system will restart it automatically.

  On Wed, Mar 25, 2009 at 11:12 AM, jseghers jsegh...@cequint.com wrote:

   Thank you for your reply!

   I am seeing am_task_to_front followed by am_finish_activity.
   I found the event-log-tags file and apparently the reason is clear.
   What is not clear to me though is why the activity manager thinks it
   should clear the the task.

   The relevant lines of the log are:
   I/am_on_resume_called(   94): com.android.launcher.Launcher
   I/dvm_gc_info(   94):
   [7017575181485176104,-9053780441931634733,-4010030953047537782,8554533]
   I/force_gc(  209): bg
   I/dvm_gc_info(  209):
   [7163384747111232651,-9098816781953771608,-4017912252395432053,7919391]
   I/am_pause_activity(   52):
   [1128800640,com.android.launcher/.Launcher]
   I/am_task_to_front(   52): 3
   I/am_finish_activity(   52):
   [1129575992,3,com.cequint.cityid/.About,clear]
   I/am_destroy_activity(   52): [1129575992,3,com.cequint.cityid/.About]
   I/am_new_intent(   52):
   [112951,3,com.cequint.cityid/.UserLaunch,android.intent.action.MAIN,,,
   274726912]
   I/am_on_paused_called(   94): com.android.launcher.Launcher
   I/am_resume_activity(   52):
   [1129749080,3,com.cequint.cityid/.UserLaunch]
   I/am_on_resume_called(  209): com.cequint.cityid.UserLaunch
   I/dvm_gc_madvise_info(   94): [290816,245760]
   I/dvm_gc_madvise_info(  209): [352256,241664]
   I/force_gc(   94): bg

   - John
   On Mar 25, 10:16 am, Dianne Hackborn hack...@android.com wrote:
You can do adb logcat -b events to see the event log which will 
include
   a
line the activity manager prints when finishing an activity, with the
   reason
why it is doing it.

On Tue, Mar 24, 2009 at 7:24 PM, jseghers jsegh...@cequint.com wrote:

 I am just starting on an Android app and I am puzzled about why my
 Task activity stack is being reset any time the application is
 launched from the Home screen.

 I used the ADT tools to create the application in Eclipse.
 The main activity is .UserLaunch and it starts the activity .About
 when the user presses a button.
 If the user then presses HOME and then relaunches the app, .UserLaunch
 is displayed and is the only thing on the stack.

 .UserLaunch has the launchMode singleTask. .About is standard.
 According to the documentation at
http://developer.android.com/guide/topics/fundamentals.html#lmodes:

    However, a singleTask activity may or may not have other
 activities above it in the stack. If it does, it is not in position to
 handle the intent, and the intent is dropped. (Even though the intent
 is dropped, its arrival would have caused the task to come to the
 foreground, where it would remain.) 

 The Task stack should be brought to the foreground and .About should
 still be displayed.

 I added Logging to all of the lifecycle events (edited to remove
 timestamps and shorten DEBUG/ and INFO/ to D/ and I/) and you can see
 that when HOME is pressed, .About cycles through onPause and onStop
 (as expected).  Then when the app is again launched, .About is
 destroyed and .UserLaunch is restarted

 D/UserLaunch:(670): onCreate()
 D/UserLaunch:(670): onStart()
 D/UserLaunch:(670): onResume()
 I/ActivityManager(52): Displayed activity
 com.cequint.cityid/.UserLaunch: 4910 ms
 I/ActivityManager(52): Starting activity: Intent { comp=
 {com.cequint.cityid/com.cequint.cityid.About} }
 D/UserLaunch:(670): onPause()
 D/About(670): onCreate()
 D/About(670): onStart()
 D/About(670): onResume()
 I/ActivityManager(52): Displayed activity com.cequint.cityid/.About:
 1031 ms
 D/UserLaunch:(670): onStop()
 I/ActivityManager(52): Starting activity: Intent
 { action=android.intent.action.MAIN categories=
 {android.intent.category.HOME} flags=0x1020 comp=
 

[android-developers] Re: Soft keypad not appearing for edit text-Urgent

2009-05-07 Thread Android Users
Problem solved. It was because the view hierarchy was too deep.

On Tue, May 5, 2009 at 11:45 AM, Android Users androidmai...@gmail.comwrote:

 Hi,

 I have an application that has 2 AutoComplete TextViews on a single screen.
 I have just upgraded the application from 1.0 to 1.5 and I am facing 2
 issues here:
 1. I get soft keypad for only one of the text view. Wat could be the
 problem with the other one?
 2. For the text view that i get soft keypad,on entering data into the text
 view using soft key pad, i get the below exception

 *05-05 11:01:17.465: ERROR/AndroidRuntime(274): Uncaught handler: thread
 main exiting due to uncaught exception
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): java.lang.StackOverflowError
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.SpannableStringBuilder.getSpans(SpannableStringBuilder.java:783)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.Styled.each(Styled.java:43)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.Styled.foreach(Styled.java:249)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.Styled.drawText(Styled.java:302)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.Layout.drawText(Layout.java:1346)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.text.Layout.draw(Layout.java:339)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.widget.TextView.onDraw(TextView.java:3924)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.View.draw(View.java:5838)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1536)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.View.draw(View.java:5841)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1536)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.View.draw(View.java:5841)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.widget.FrameLayout.draw(FrameLayout.java:352)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1536)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.View.draw(View.java:5841)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.widget.FrameLayout.draw(FrameLayout.java:352)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1536)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1534)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.View.draw(View.java:5841)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.widget.FrameLayout.draw(FrameLayout.java:352)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.drawChild(ViewGroup.java:1536)
 05-05 11:01:17.645: ERROR/AndroidRuntime(274): at
 android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
 05-05 11:01:17.645: 

[android-developers] Re: problem when simulating GPS on SDK1.5

2009-05-07 Thread David Turner
Yes, it's a known bug that is being investigated.

On Thu, May 7, 2009 at 10:13 AM, npak...@gmail.com npak...@gmail.comwrote:


 Hi all,

 Now I'm writing a software and using GPS simulator on SDK1.5
 I use an AVD device by command : android create avd --target 2 --name
 AVD_15
 My problem is when i change location up to the third times, my program
 can not receive this change. I do not understand but I can be sure
 that my program worked well on SDK 1.1
 Do you know what happens in SDK1.5?
 Please help me to solve that problem.

 Thanks,
 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: Update widget from code

2009-05-07 Thread Carlos

Ok.
But how to find the id to join it in the intent?


When i update my widget, i do :
updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);
the pendingintent has an extra value with the widget id. How to get
the widget id?

Charles




On May 7, 12:25 am, Jeff Sharkey jshar...@android.com wrote:
 When building the widget update, you can pack the appWidgetId into the
 PendingIntent.  Through the setData() Uri usually works best.

 j



 On Wed, May 6, 2009 at 12:18 PM, Carlos canss...@gmail.com wrote:

  Hello,

  I have a widget like the jeff's example.
  And i don't understand how to identify each widget (same type).
  getAppWidgetIds() returns a tab, how to catch the good id when i touch
  mywidget 1 or mywidget 2?
  Do you know a solution?

  Charles

  On Apr 23, 12:05 am, Al alcapw...@googlemail.com wrote:
  That worked, thanks.

  On Apr 22, 7:36 pm, Tom Gibara m...@tomgibara.com wrote:

   That's true, but notice that his service has no dependency on the class
   implementing the onUpdate method, in principal anything in the 
   application
   could invoke that service. You'll find the appwidgetids available via the
   getAppWidgetIds() on AppWidgetManager.
   Tom.

   2009/4/22 Al alcapw...@googlemail.com

In Jeff's example, the service is started from his onUpdate method,
which is called by AppWidgetProvider. This is different from what I'd
like to do, I'd like to push an update to thewidgetfrom inside my
activity, but with the correct int[] values.

On Apr 22, 7:16 pm, Tom Gibara m...@tomgibara.com wrote:
 Yes, you can push updates to your widgets any time by obtaining an
 AppWidgetManager.
 Jeff Sharkey posted an example that performs an update within a 
 Service.
It
 includes this code that might help.

             // Push update for thiswidgetto the home screen
             ComponentName thisWidget = new ComponentName(this,
 WordWidget.class);
             AppWidgetManager manager =
AppWidgetManager.getInstance(this);
             manager.updateAppWidget(thisWidget, updateViews);

 The relevant methods you are looking for are on the AppWidgetManager
class.
 In this case everywidgetis being updated in the same way so this code
 takes advantage of the updateAppWidget method (which doesn't take an
array
 of ids, but updates allwidgetinstances identically).

 Jeff's blog post is at:

http://android-developers.blogspot.com/2009/04/introducing-home-scree...

 Tom.

 2009/4/22 Al alcapw...@googlemail.com

  Depending on what I do in my application, I might want to force an
  update on mywidget. I've have had a poke around and can't seem to
  find any API for doing a manual update. At the moment, I have a
  function that sends a broadcast and my onReceive does this:

        �...@override
         public void onReceive(Context context, Intent intent) {

                 String action = intent.getAction();

                 if (action != null  action.equals(UPDATE_ACTION)) 
  {
  //internal
  static string
                         onUpdate(context,
  AppWidgetManager.getInstance(context), new int[]
  { 0 });
                 }

                 else {
                         super.onReceive(context, intent);
                 }
         }

  Is there a proper way to do this, which sents the int array to the
  correct values? Or do I have to do it like this instead?

 --
 Jeff Sharkey
 jshar...@google.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: Creating window on Android using C++

2009-05-07 Thread David Turner
On Thu, May 7, 2009 at 9:45 AM, Maha maha2...@gmail.com wrote:


 Hi,

  Is there any way to create window on Android using C++.


No, there isn't and probably never will.


 My ultimate aim is to draw bitmap image on android but using C++


You could try drawing into a buffer provided by the Java side of your
application to native code,
(which would also deal with window creation, buffer locking, etc...)



 Thanks
 Maha
 


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

2009-05-07 Thread David Turner
On Thu, May 7, 2009 at 7:34 AM, Sachin pandhare sachinpandh...@gmail.comwrote:


 Hello Dianne,
 Which functionality may break in future releases?
 Is it executing the command using runtime?
 String cmd = top -n 1;
 process = runtime.exec(cmd);


the format, or even the availability of top is very likely to change in
future updates.



 or something else in this code segment?
 thanks,
 Sachin

 On May 5, 9:44 pm, Dianne Hackborn hack...@android.com wrote:
  This is very likely to break in future platform updates.
 
 
 
  On Tue, May 5, 2009 at 7:53 AM, rezar rraw...@gmail.com wrote:
 
   You can use output of the top command, for your process
   Here is what I did:
 
  Runtime runtime = Runtime.getRuntime();
  Process process;
  String res = -0-;
  try {
  String cmd = top -n 1;
  process = runtime.exec(cmd);
  InputStream is = process.getInputStream();
  InputStreamReader isr = new
 InputStreamReader(is);
  BufferedReader br = new BufferedReader(isr);
  String line ;
  while ((line = br.readLine()) != null) {
  String segs[] = line.trim().split([
 ]+);
  if (segs[0].equalsIgnoreCase([Your
 Process
   ID])) {
  res = segs[1];
  break;
  }
  }
  } catch (Exception e) {
  e.fillInStackTrace();
  Log.e(Process Manager, Unable to execute top
   command);
   }
 
   On May 4, 4:02 pm, Donald_W wojcik.to...@gmail.com wrote:
Hello,
 
How can I get/calculate current process CPU usage? ActivityManager
provides method that returns a list of all active processes (list of
RunningAppProcessInfo), but that class doesn't provide any CPU usage
information.
 
Thanks in advance,
Tomek
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 


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



[android-developers] Re: problem when simulating GPS on SDK1.5

2009-05-07 Thread Anh Khoa Nguyen Pham
Thanks

On Thu, May 7, 2009 at 4:57 PM, David Turner di...@android.com wrote:

 Yes, it's a known bug that is being investigated.


 On Thu, May 7, 2009 at 10:13 AM, npak...@gmail.com npak...@gmail.comwrote:


 Hi all,

 Now I'm writing a software and using GPS simulator on SDK1.5
 I use an AVD device by command : android create avd --target 2 --name
 AVD_15
 My problem is when i change location up to the third times, my program
 can not receive this change. I do not understand but I can be sure
 that my program worked well on SDK 1.1
 Do you know what happens in SDK1.5?
 Please help me to solve that problem.

 Thanks,
 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] Maps behind proxy in 1.5

2009-05-07 Thread Android Users
Hi,

I was not able to access maps behind proxy with SDK 1.0.(inspite of adding
proxy to system database or give command line option of -http -proxy)
Does the problem still persist with SDK1.5 or is there a work around?

Thanks in advance.

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



[android-developers] Re: SlidingDrawer issue #1?

2009-05-07 Thread cannehal

As I said before I have the same issue as Sheepz. It works fine in
runtime, but in layout editor in eclipse there is Exception. For me it
looks like a bug in plugin.
And for forthcoming questions: I am using latest SDK (1.5) and proper
eclipse plugin.


On May 6, 1:34 am, Sheepz eladk...@gmail.com wrote:
 if you mean 1.5, yes i am, i have also updated the editors for eclipse
 as described in the upgrade sdk page.

 On May 5, 7:06 pm, dan raaka danra...@gmail.com wrote:

  are you using the latest version of SDK ?

  On Tue, May 5, 2009 at 4:04 PM, Sheepz eladk...@gmail.com wrote:

   I took a look at the api
  http://developer.android.com/reference/android/widget/SlidingDrawer.html
   and copied their example to a clean sandbox project
   this is the code:
   [beginquote]

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

    SlidingDrawer
       android:id=@+id/drawer
       android:layout_width=fill_parent
       android:layout_height=fill_parent

       android:handle=@+id/handle
       android:content=@+id/content

       ImageView
           android:id=@id/handle
           android:layout_width=88dip
           android:layout_height=44dip
           android:src=@drawable/icon /

       GridView
           android:id=@id/content
           android:layout_width=fill_parent
           android:layout_height=fill_parent 
           /GridView

    /SlidingDrawer

   /LinearLayout

   [endquote]

   this gives out the exception in eclipse, but it does run well...
   does anybody know why this is happening? can anyone else confirm this
   is happening on their environment?
   Thanks,
   Sh

   On May 1, 11:29 pm, Sheepz eladk...@gmail.com wrote:
anyone found a solution?

On May 1, 10:03 am, cannehal tomasz.l...@gmail.com wrote:

 I tkink I have the same issue. For handle I have ImageView and for
 content I am using LinearLayout with some views inside of it.
 There is probably problem with eclipse plugin because in runtime it
 works fine.

 On May 1, 7:01 am, Sheepz eladk...@gmail.com wrote:

  anyone else found something here?

  On Apr 30, 5:43 pm, Sheepz eladk...@gmail.com wrote:

   okay, that didnt work :(
   SlidingDrawerandroid:id=@+id/SlidingDrawer01
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:handle=@+id/ImageView01
   android:content=@+id/ImageView02
   ImageView android:id=@id/ImageView01
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:src=@drawable/back2/
   ImageView
   ImageView android:id=@id/ImageView02
   android:layout_width=wrap_content
   android:layout_height=wrap_content 
   android:src=@drawable/ahh/
   ImageView
   /SlidingDrawer

   still getting the same message in the ADT only now when launching
   the
   app, it simply stalls half drawn instead of giving an error 
   message
   saying the application threw an exception...

   On Apr 30, 5:40 pm, Romain Guy romain...@google.com wrote:

You must use different views, it doesn't make sense to have the
   same
view, it's going to confuseSlidingDrawer:)

On Thu, Apr 30, 2009 at 2:38 PM, Sheepz eladk...@gmail.com
   wrote:

 yeah, i figured that might be it, but even after this fix:
 SlidingDrawerandroid:id=@+id/SlidingDrawer01
 android:layout_width=wrap_content
 android:layout_height=wrap_content
   android:handle=@+id/ImageView01
 android:content=@+id/ImageView01
 ImageView android:id=@id/ImageView01
 android:layout_width=wrap_content
 android:layout_height=wrap_content
   android:src=@drawable/ahh/
 ImageView
 /SlidingDrawer
 i still get the same error - i'm gonna try using diffrent 
 views
   for
 the content and the handle
 brb :)

 On Apr 30, 5:32 pm, Romain Guy romain...@google.com wrote:
 There is a bug indeed, the exception message says the 
 handle
   is
 missing, but the content is missing. Check out the javadoc.
   I'll fix
 the exception message.

 On Thu, Apr 30, 2009 at 2:26 PM, Sheepz eladk...@gmail.com
   wrote:

  okay, i might be missing something, the reason i think that
   this is a
  bug is that if you use the supplied tool, and cannot avoid
   getting an
  exception - it's a bug...
  i don't see any way around it - the way to create this
   widget is:
  a) create widget
  b) get exception
  c) fix error
  d) populate it with the values you want

  by the way, i still havent gotten it to work on my app -
   here's the
  code:
  TableLayout
  LinearLayout
  ...
   

[android-developers] Re: Video with MediaRecorder

2009-05-07 Thread Anders

Hi,

Thanks, I got it to work.

I have one problem though. When I rotate the phone, using automatic
Orientation the onDestroy() method of my activity is called, which
effectively also stops capturing. When the activity is recreated, a
new capture starts. This means I will now have two files for the same
capture since the user didnt choose to stop the capture. (And I need
to merge these files).

Does anyone know of a way to keep the capture running when rotating
the phone?

Thanks,
Anders

On May 6, 8:11 pm, Jason Proctor ja...@particularplace.com wrote:
 just a tiny fyi here is that i did manage to get video recording
 working fine in my app.

 there is however a problem if the surface view fills its parent and
 the parent is the entire screen. if that happens, then the camera's
 view of things gets resized but nobody tells the codec, and hence the
 movie is messed up. it's encoded for one size but the movie metainfo
 says something else.

 making the size something smaller than the screen made it work, but
 it *is* a bug IMHO.

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

2009-05-07 Thread l hx
can we using channels 2 when recording audio?

On Sat, May 2, 2009 at 12:54 AM, Jean-Michel jmtr...@gmail.com wrote:


 Hi there,
 Looks like sipdroid (www.sipdroid.org) is using AudioTrack and
 AudioRecord for their SIP client. Go to the Browse source page and
 look at trunk  src  org  sipdroid  media  RtpStreamReceiver.java
 and RtpStreamSender.java, and search respectively for track and
 record.

 On Apr 30, 7:07 am, Thomson thomsont...@gmail.com wrote:
  Hi,
 I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in
  my program.
  Where can I find how to use it. Is there any API demo program for
  this?.
  If not it is greatly appreciated if someone can post a sample code in
  this forum
 
  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: Creating window on Android using C++

2009-05-07 Thread maha lakshmi
Hi David,

 Thanks for your reply. Let me tell clearly about my requirement. I am
developing flash plugin for webkit browser. When I click on youtube video,
my plugin will process the flash content and display it onto the browser.

 I have implemented the same using X11 as UI. There are some api's for
creating image in Linux X. The same thing I want to acheive it using
android.

 Please tell me is it possible to do or not.



On 5/7/09, David Turner di...@android.com wrote:



 On Thu, May 7, 2009 at 9:45 AM, Maha maha2...@gmail.com wrote:


 Hi,

  Is there any way to create window on Android using C++.


 No, there isn't and probably never will.


 My ultimate aim is to draw bitmap image on android but using C++


 You could try drawing into a buffer provided by the Java side of your
 application to native code,
 (which would also deal with window creation, buffer locking, etc...)



 Thanks
 Maha



 


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

2009-05-07 Thread Filipe Abrantes

Hi all,

whenever I call the play() method of MediaPlayer, the UI suffers heavy 
glitches (very noticeable if some animation is running for example) even 
if it is called from a service or other thread. My question if there is 
a way to lower the processing priority of the MediaPlayer call, or if I 
just need to avoid any UI related stuff when calling play().

Cheers,
Filipe



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: R.drawable.list_selector_background doesn't yield in orange

2009-05-07 Thread alex

Dianne, thanks for the details.
Seems like the only option I've got is finding
list_selector_background in the sources and seeing if I can create a
similar drawable that won't depend on focus state.

On May 7, 12:47 am, Dianne Hackborn hack...@android.com wrote:
 View takes care of updating the drawable state as appropriate.  There are
 methods on view you can override what it sets, but I don't think there is
 any API you can call to just force it to something.



 On Wed, May 6, 2009 at 2:04 PM, alex gsm...@gmail.com wrote:

  Ok, from pure conceptual point that IS selection. Anyways, don't think
  it's related to my initial question here.

  On May 6, 11:33 pm, Romain Guy romain...@google.com wrote:
   If you are using this drawable for something else than indicating a
   selection, I totally disagree.

   On Wed, May 6, 2009 at 1:30 PM, alex gsm...@gmail.com wrote:

Sure. But in my particular case I think setting the background to
standard orange is better than introducing a custom color/drawable.

On May 6, 9:53 pm, Romain Guy romain...@google.com wrote:
Taps should always cause focus and selection to disappear,.

On Wed, May 6, 2009 at 11:49 AM, Jeff Sharkey jshar...@android.com
  wrote:

 When user selects a TextView it 'slips' (which is indicated by
 background color change) and the user is expected to select(tap)
 another view then. Not every tap should lead to the first view
  losing
 'focus'. That's the motivation behind setting background drawable
 programmatically.

 Ouch, this is actually more of a touch mode question.  When the
  device
 goes into touch mode, there isn't a visible concept of focus in
 ListViews (when you scroll the list, any highlighted item reverts
 back).

 You might be looking for android:focusableInTouchMode, but this
  isn't
 used many places on the platform.

 --
 Jeff Sharkey
 jshar...@google.com

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

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

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

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



[android-developers] Re: amr codec only output zero data.

2009-05-07 Thread dycl3

Now, i use the sdk download from google, it play amr file good,
But when i use the sdk, build by myself, it 't could'nt play amr file.
any one now that's why, tell me,
thanks.

On 4月27日, 下午3时52分, dycl3 dy...@126.com wrote:
 dear:
  I am trying play an amr file on android emulate, but
 nothing here, only see the progressbar froward.
 so farther, I fond the amr codec only out all zero data.
 I also gowww.3gpp.orgdondord the amr code 26073-800.zip,
 and user it doecde the same amr file, it works good.
 now, what coule do, to make amr file play good.
 i am sorry for my bad english.
 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: Creating window on Android using C++

2009-05-07 Thread David Turner
On Thu, May 7, 2009 at 12:55 PM, maha lakshmi maha2...@gmail.com wrote:

 Hi David,

  Thanks for your reply. Let me tell clearly about my requirement. I am
 developing flash plugin for webkit browser. When I click on youtube video,
 my plugin will process the flash content and display it onto the browser.

  I have implemented the same using X11 as UI. There are some api's for
 creating image in Linux X. The same thing I want to acheive it using
 android.

  Please tell me is it possible to do or not.

 ok, this is clearly not possible at the moment. There may be an API to do
that in the future, but I'll let the browser team answer this one since I
don't know what's the current plan for plugin support is (apart that it
probably involves running the plugin in a different process)




 On 5/7/09, David Turner di...@android.com wrote:



 On Thu, May 7, 2009 at 9:45 AM, Maha maha2...@gmail.com wrote:


 Hi,

  Is there any way to create window on Android using C++.


 No, there isn't and probably never will.


 My ultimate aim is to draw bitmap image on android but using C++


 You could try drawing into a buffer provided by the Java side of your
 application to native code,
 (which would also deal with window creation, buffer locking, etc...)



 Thanks
 Maha






 


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



[android-developers] Problems creating a Custom Dialog

2009-05-07 Thread L'\tty

Hi guys,

I tried to create a custom about dialog using the source code of

http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

with the result that I get a BadTokenException and the message that
the view cannot be null. If I understood it correctly, the
custom_dialog.xml is a new layout file containing just the information
for the dialog and the layout_root id is not needed for the first
solution.

The code from step 2 should be in the class where I want to display
the dialog right? At least I put it in the onCreateDialog(int id)
method.

I also tried to implement a custom alert dialog that actually lead to
the same problem. However, the system did not know the
LAYOUT_INFLATER, is this a self defined variable or where do I get
this attribute from?

Anyhow it seems that the dialogs have problems setting a view. Does
anybody know this error and how to avoid it?

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

2009-05-07 Thread Omer Saatcioglu
http://code.google.com/p/android/issues/detail?id=857

This problem is because of a bug in the super class Dialog. Once I called
removeDialog before I call showDialog in my code. The problem is completely
solved. So, I am creating the dialog like this from now on:
removeDialog(R.id.display_success);
showDialog(R.id.display_success);


On Thu, May 7, 2009 at 11:16 AM, Omer Saatcioglu osaatcio...@gmail.comwrote:

 Hello,

 Today I faced a very weird problem. In my game I create AlertDialog to
 show the user next level challenges when one is succeeded. So, the
 corresponding code is like this. when the game is succeeded showDialog
 (R.id.display_success) is called and the following code is executed.
 So, I am expecting to execute this code in every call. However; the
 game is executing only once and showing the same AlertDialog in every
 other execution. I mean, like the instance is not created after the
 first one is created and the first instance is used all the time. I
 hope I could describe my problem. Thank you.

case R.id.display_success:
Log.d(GfxMasterShot::onCreateDialog, Succcess  +
 Integer.toString(SMBGuesstheNumber.nCurrentLevel));
updateGameSettings();
message = formatLevel()
+ formatMission();
return new AlertDialog.Builder(this)
.setIcon(R.drawable.smiley_happy)
.setTitle(R.string.dialog_success)
.setMessage(message)
.setPositiveButton(R.string.alert_dialog_newgame,
 new
 DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
 int whichButton) {
StartaNewGame();
}
})
.setNegativeButton(R.string.exit, new
 DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
 int whichButton) {

  CtrlMaintanence.getInstance().setCurrentLevel
 (SMBGuesstheNumber.nCurrentLevel + 1);
finish();
}
})
.create();




-- 
Omer

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

2009-05-07 Thread N V

Hi to all...

 I tried for video streaming in sdk 1.5... The video
format .mp4... But it gives error
like This video is not valid for streaming to this video. But in
http://developer.android.com/sdk/android-1.5-highlights.html .mp4 is
supported for streaming

Thank You
Nithin N V

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: R.drawable.list_selector_background doesn't yield in orange

2009-05-07 Thread alex

Ended up grabbing the nine-patch image (which is
list_selector_background_focus.9.png) and adding it to my own
drawables. Not the approach I'd be proud of, but it works.

On May 7, 2:07 pm, alex gsm...@gmail.com wrote:
 Dianne, thanks for the details.
 Seems like the only option I've got is finding
 list_selector_background in the sources and seeing if I can create a
 similar drawable that won't depend on focus state.

 On May 7, 12:47 am, Dianne Hackborn hack...@android.com wrote:

  View takes care of updating the drawable state as appropriate.  There are
  methods on view you can override what it sets, but I don't think there is
  any API you can call to just force it to something.

  On Wed, May 6, 2009 at 2:04 PM, alex gsm...@gmail.com wrote:

   Ok, from pure conceptual point that IS selection. Anyways, don't think
   it's related to my initial question here.

   On May 6, 11:33 pm, Romain Guy romain...@google.com wrote:
If you are using this drawable for something else than indicating a
selection, I totally disagree.

On Wed, May 6, 2009 at 1:30 PM, alex gsm...@gmail.com wrote:

 Sure. But in my particular case I think setting the background to
 standard orange is better than introducing a custom color/drawable.

 On May 6, 9:53 pm, Romain Guy romain...@google.com wrote:
 Taps should always cause focus and selection to disappear,.

 On Wed, May 6, 2009 at 11:49 AM, Jeff Sharkey jshar...@android.com
   wrote:

  When user selects a TextView it 'slips' (which is indicated by
  background color change) and the user is expected to select(tap)
  another view then. Not every tap should lead to the first view
   losing
  'focus'. That's the motivation behind setting background drawable
  programmatically.

  Ouch, this is actually more of a touch mode question.  When the
   device
  goes into touch mode, there isn't a visible concept of focus in
  ListViews (when you scroll the list, any highlighted item reverts
  back).

  You might be looking for android:focusableInTouchMode, but this
   isn't
  used many places on the platform.

  --
  Jeff Sharkey
  jshar...@google.com

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

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

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

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


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



[android-developers] Re: List All files in the directory

2009-05-07 Thread Muthu Kumar K.

Hi,
Thanks for your timely help. It is working fine. :)
Thanks,
Muthu Kumar K.

On May 7, 12:54 pm, matthias m.kaepp...@googlemail.com wrote:
 Hi,

 not sure about the app dir, but for accessing e.g. the shared_prefs
 directory, you would do something
 like this (in an Activity or Service):

         PackageManager pm = getPackageManager();
         ApplicationInfo appInfo = pm.getApplicationInfo(getPackageName
 (), 0);

         File sharedPrefsDir = new File(appInfo.dataDir + /
 shared_prefs);

         FileFilter filter = new FileFilter() {
             public boolean accept(File pathname) {
                // in case you must filter files...
                [...]
             }
         };
         File[] prefFiles = sharedPrefsDir.listFiles(filter);
         for (File f : prefFiles) {
             [...]
         }
     }

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



[android-developers] Is a NetworkInterface mapped to a NetworkInfo (type)?

2009-05-07 Thread Taísa Cristina
Hi all,

Is there any mapping among Network Types and Network Interfaces?
I mean, is it possible to found out whether a Network Interface is related
to MOBILE or WIFI network type, for example?

Thanks,
Taísa

Taísa Cristina Costa dos Santos
Computer Engineer
Brazil, SP
55 19 8152-7453

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

2009-05-07 Thread l hx
Do you using alsa_sound for recording  playback?

On Fri, May 1, 2009 at 11:00 PM, Scott Slaugh xsla...@gmail.com wrote:


 Hi,

 I have an application that I developed using the Android 1.1 SDK that
 I am trying to port to Android 1.5.  In my application, I record a
 sound through the microphone and then do various things with it,
 including playing it back using a MediaPlayer object.  My code works
 fine when I use the 1.1 target, but when I use a 1.5 target I get this
 error when setting up the player:

 Command PLAYER_SET_DATA_SOURCE completed with an error or info
 PVMFErrNotSupported
 error (1, -4)
 Couldn't setup MediaPlayer
 java.io.IOException: Prepare failed.: status=0x1
   at android.media.MediaPlayer.prepare(Native Method)
   at org.byu.chum.AudioUtils.AudioRecording.stopRecording
 (AudioRecording.java:92)
   at org.byu.chum.SoundRecorder.Recorder$StopListener.onClick
 (Recorder.java:198)
   ...

 It seems like Android isn't liking the format of my media, but I don't
 know why, since I just recorded that very format on the Android
 device.  Here's the code that is throwing the error:

  player = new MediaPlayer();
 try {
 player.setDataSource(recordFile.toString());
 player.prepare();
 }
 catch (IOException e) {
 Log.e(playRecording, Couldn't setup
 MediaPlayer, e);
 }

 Has anyone seen this or does anybody have any ideas on what might be
 causing this problem?

 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: youtube on android

2009-05-07 Thread brian.schimmel

Hi Ebin,

this is actually very easy. Real phones (developer and user phones)
come with a preinstalled youtube application that performs very well.
On the emulator, it is not present as far as I remember.

If you want to lauch youtube from within your application, maybe this
thread helps you: 
http://groups.google.com/group/android-developers/browse_thread/thread/27f9cc80512a52cd/29a524182b4f3c8d

On 4 Mai, 06:51, ebinjose...@gmail.com ebinjose...@gmail.com
wrote:
 Hi All,

 I want to playbackyoutubevideos on android. I came to know (from the
 below mentioned link) that adobe demostrated flash player for android,
 but they haven't released the code yet.

 http://www.androidauthority.com/index.php/2008/11/17/flash-player-on-...

 Is there an alternative way to playbackyoutubevideo's on android ?
 Is there an application that supports flash content playback on
 android already (though I couldn't find any on android market or
 related sites) or any development work is underway ?

 Thanks in advance,

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

2009-05-07 Thread iloveblue

Thanks for all you guys. I've got it and I will check the music player
code. Thanks for the sharing.

On 5月6日, 上午9时58分, Jonathan Alonso - Softdinet Ltda
jalo...@softdinet.com wrote:
 Hi,

 I need send mail with format html used intent.EXTRA_TEXT

 Intent intent = new Intent(Intent.ACTION_SEND);
 intent.putExtra(Intent.EXTRA_EMAIL, to.getText().toString());
 intent.putExtra(Intent.EXTRA_SUBJECT, subject.getText().toString());
 intent.putExtra(Intent.EXTRA_TEXT, htmlbodytabletrtd img
 src=\http://www.gp-imports.com/emoticons/1053_winking.gif\;/img
 /td/tr/table/body/html;

 the message is only text, no format html, help,

 Thanks

 Cordialmente

 Jonathan Alonso
 Tel: 8008035
 Softdinet Ltda
 Skype: softdinet
 E-mail: jalo...@softdinet.com
 Web:www.softdinet.com

 -Mensaje original-
 De: android-developers@googlegroups.com
 [mailto:android-develop...@googlegroups.com] En nombre de Mark Murphy
 Enviado el: martes, 05 de mayo de 2009 07:36 p.m.
 Para: android-developers@googlegroups.com
 Asunto: [android-developers] Re: Anyone who knows the details of operate a
 service?

 iloveblue wrote:
  While I am playing the music in background as a service. And then a
  phone call happens, what should the service do? Will the OS (android)
  pause the service

 No, there is no pause with services.

  or will the developer who develop the service write
  code to detect things like this and define the operations?

 That certainly is a possibility, perhaps using a PhoneStateListener.

 I have not written a music-playing service, or any form of background
 audio. It is possible that such playback is automatically muted by the
 system, via some sort of audio stream prioritization.

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

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



[android-developers] Is it possible to have, horizontal listview, scrolling horizontally?

2009-05-07 Thread jagtap.jj

Hello everybody

Is it possible to have, horizontal listview?
normally the listview scrolls vertically having horizontally rows .

is reverse case possible, listview scrolling horizontally and having
vertical  rows.


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: Is it possible to have, horizontal listview, scrolling horizontally?

2009-05-07 Thread Mark Murphy

 Is it possible to have, horizontal listview?
 normally the listview scrolls vertically having horizontally rows .

 is reverse case possible, listview scrolling horizontally and having
 vertical  rows.

There is no built-in widget that supports horizontal scrolling. There is
nothing to prevent you from writing one, and there may be third-party
widgets available that offer this.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: SharedPreferences got deleted! - What could be the problem?

2009-05-07 Thread dar

Try putting in xml special characters into the strings you are saving
directly with the editor without xml-escaping them, e.g. ' and see
if this reproduces the problem when you try to read in the saved
preferences after your app has been killed (after a reboot, for
example).

On May 7, 5:24 am, so_is festival.s...@googlemail.com wrote:
 Thank you very much for your comment Mark.

 Well at the moment I am prior to redo the whole preferences saving my
 settings into a Sqlite database.

 I can not find the bug in my code and my app relies on this settings
 so I don't see any other chance to get rid of the lost settings bug.

 On May 6, 12:56 pm, Mark Murphy mmur...@commonsware.com wrote:

  so_is wrote:
   Well Mark the problem is that I am using the suggested way to save the
   settings. I do commit every single edit() like suggested. But a lot of
   users are still reporting that they lose settings. I don't know why
   but it happens some times. :( (I have worked with my app for 2 months
   now and have never lost the settings)

  It will be difficult to fix the bug without a repeatable scenario.

   To sum up I don't like the suggestion using Sqlite because I would
   just ignore a bug which is obviously there but no one knows what it
   really is.

  If you can come up with a repeatable scenario for theSharedPreferences
  damage, post an issue tohttp://b.android.comwitha project and
  instructions for causing the problem.

  Otherwise, if I were in your shoes, I would switch to some other means
  (e.g., SQLite) of storing the data you are storing inSharedPreferences,
  simply to make your users happy.

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

  Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Transport Data between Android and PC application

2009-05-07 Thread Tom

Ok thanks,

I'm going to do some searches on these protocols.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Transport Data between Android and PC application

2009-05-07 Thread Tom

Question :

Which of these protocols RPC-XML, REST even SOAP are the best for
transport data between android and PC?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Child TextView in ScrollView with large amount of text pushes other views off the screen

2009-05-07 Thread Mike

This words, thanks.  However, it appears to me the value you specify
for the height is an arbitrary one.  For example, it doesn't seem to
matter if specify 1dip or 100dip, it still sizes the same.

I assume what's going on is that the layout_weight=1.0 tells the
layout manager to give as much real estate as possible to the
ScrollView and as little possible to it's sibling Views and you just
need to specify SOMETHING for the height.

Regards,

- Mike

On May 6, 4:35 pm, Romain Guy romain...@google.com wrote:
 You set thescrollviewto have a height of wrap_content, which means
 be as big as you need to be to show your children. What you want
 instead is a height of 1.0 and android:layout_weight=1.0



 On Wed, May 6, 2009 at 4:02 PM, Mike michaeldouglaskra...@gmail.com wrote:

  OK, I give up.  I am trying to create an activity layout that has a
  top level vertical linear layout like so:

  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
         android:id=@+id/mainLayout
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:padding=4dp

         TextViewandroid:id=@+id/word android:layout_width=fill_parent
                               android:layout_height=wrap_content
                               android:textSize=32dp
                               android:textColor=#ff
                               android:textStyle=bold
                               android:text=Word/

         ScrollViewandroid:layout_width=fill_parent
                                 android:layout_height=wrap_content
                                 android:padding=4dp

                 TextViewandroid:id=@+id/wordDefinition
                                         android:layout_width=fill_parent
  android:layout_height=wrap_content
                             android:textColor=#ff
                             android:text=A definition./
         /ScrollView

         Button android:id=@+id/backButton
                         android:layout_width=fill_parent
                         android:layout_height=wrap_content
                         android:text=Back /

  /LinearLayout

  This works ok as long as the wordDefinition text isn't very long.
  But, when I set the text to something very long, it pushes the back
  button off the bottom of the screen.  Why???  Isn't theScrollView
  supposed to scroll the text in the childTextView?

  I've tried playing with weights (e.g., giving the top text view a
  weight of .2, the scroll view a weight of .7 and the button a weight
  of .1, but to no avail.

  What am I doing wrong?

  Regards,

  - Mike

 --
 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: establishing two connection( 3G Wifi )at the same time

2009-05-07 Thread Breno

  I'm facing tha same problem, but with Edge, instead of 3G.
Everytime that wifi get connected to a network, down the edge/gprs/3g
network. This really needs to be optional, not a default. But this is
not the worst: there is no broadcast message that inform that GPRS/
Edge/3G is disconnected, just the messages: Wifi Connected, Wifi
Disconnected and GPRS/Edge/3G Connected. Is missing one.
  Anyone from Google could say something about it, and why this is
implemented in this maner?

Thanks a lot

Breno

On Apr 22, 8:16 am, Mouna mhalla...@yahoo.com wrote:
 We are doing some research using android handset , G1 and i don not
 find any clear information in order to manage the connection, as i
 note all classes allow us for only accessing the information about a
 connection,

 i would like to ask if  there is really  such solution already
 avaliable in order to  opens two connections for two different network
 ( 3G Wifi) at the same time and use them to exchange data
 establishing two connection at the same time.

 i look in the source code of the Mms app to see how it as you
 recommend but no related information

 pls if there is no avaliable code or solution for our problem, kindly
 if you let me know if there is clear steps to follow

  We appreciate your help in providing us with any useful information
 about this subject

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

2009-05-07 Thread Jeff Sharkey

First, remember that PendingIntents may not be unique w.r.t extra
bundles, which is why you want to use the setData() Uri.

In the Activity or Service that you trigger with the PendingIntent,
you can use getIntent().getData() to read back the Uri used to launch
it, which includes any data you set when building the widget update.

Here's an example where I used the setData() approach to sharing the
appWidgetId.  When opening the forecast details page, you need to know
the source widget the user clicked on:

http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/MedAppWidget.java#166

http://code.google.com/p/android-sky/source/browse/trunk/Sky/src/org/jsharkey/sky/DetailsActivity.java#98

j

On Thu, May 7, 2009 at 2:58 AM, Carlos canss...@gmail.com wrote:

 Ok.
 But how to find the id to join it in the intent?


 When i update my widget, i do :
 updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);
 the pendingintent has an extra value with the widget id. How to get
 the widget id?

 Charles




 On May 7, 12:25 am, Jeff Sharkey jshar...@android.com wrote:
 When building the widget update, you can pack the appWidgetId into the
 PendingIntent.  Through the setData() Uri usually works best.

 j



 On Wed, May 6, 2009 at 12:18 PM, Carlos canss...@gmail.com wrote:

  Hello,

  I have a widget like the jeff's example.
  And i don't understand how to identify each widget (same type).
  getAppWidgetIds() returns a tab, how to catch the good id when i touch
  mywidget 1 or mywidget 2?
  Do you know a solution?

  Charles

  On Apr 23, 12:05 am, Al alcapw...@googlemail.com wrote:
  That worked, thanks.

  On Apr 22, 7:36 pm, Tom Gibara m...@tomgibara.com wrote:

   That's true, but notice that his service has no dependency on the class
   implementing the onUpdate method, in principal anything in the 
   application
   could invoke that service. You'll find the appwidgetids available via 
   the
   getAppWidgetIds() on AppWidgetManager.
   Tom.

   2009/4/22 Al alcapw...@googlemail.com

In Jeff's example, the service is started from his onUpdate method,
which is called by AppWidgetProvider. This is different from what I'd
like to do, I'd like to push an update to thewidgetfrom inside my
activity, but with the correct int[] values.

On Apr 22, 7:16 pm, Tom Gibara m...@tomgibara.com wrote:
 Yes, you can push updates to your widgets any time by obtaining an
 AppWidgetManager.
 Jeff Sharkey posted an example that performs an update within a 
 Service.
It
 includes this code that might help.

             // Push update for thiswidgetto the home screen
             ComponentName thisWidget = new ComponentName(this,
 WordWidget.class);
             AppWidgetManager manager =
AppWidgetManager.getInstance(this);
             manager.updateAppWidget(thisWidget, updateViews);

 The relevant methods you are looking for are on the AppWidgetManager
class.
 In this case everywidgetis being updated in the same way so this 
 code
 takes advantage of the updateAppWidget method (which doesn't take an
array
 of ids, but updates allwidgetinstances identically).

 Jeff's blog post is at:

http://android-developers.blogspot.com/2009/04/introducing-home-scree...

 Tom.

 2009/4/22 Al alcapw...@googlemail.com

  Depending on what I do in my application, I might want to force an
  update on mywidget. I've have had a poke around and can't seem to
  find any API for doing a manual update. At the moment, I have a
  function that sends a broadcast and my onReceive does this:

        �...@override
         public void onReceive(Context context, Intent intent) {

                 String action = intent.getAction();

                 if (action != null  
  action.equals(UPDATE_ACTION)) {
  //internal
  static string
                         onUpdate(context,
  AppWidgetManager.getInstance(context), new int[]
  { 0 });
                 }

                 else {
                         super.onReceive(context, intent);
                 }
         }

  Is there a proper way to do this, which sents the int array to the
  correct values? Or do I have to do it like this instead?

 --
 Jeff Sharkey
 jshar...@google.com
 




-- 
Jeff Sharkey
jshar...@google.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: Get image URI from camera?

2009-05-07 Thread Anna PS

Hi Mark,

I've used the camera code from the Advanced Android book and it's
working nicely. Thank you.

Just a couple of basic questions (for Mark, or anyone else) about the
retrieval/URI issue, both assuming the photo is saved on the SD card
as photo.jpg.

1. Thumbnail display. When I go back to the first screen of the
application, I want to show an ImageView of the jpeg that the user has
just taken. Current code, which doesn't work because it's not looking
in the SD card:

bmp = BitmapFactory.decodeStream(openFileInput(photo.jpg));
iv.setImageBitmap(bmp);

This gives the error: java.IO.FileNotFoundException: /data/data/
com.android.filename/files/photo.jpg. How can I ask BitmapFactory to
look in the SD card for the jpeg?

2. Uploading the jpeg - I would like to convert the jpeg to a byte[]
array, to upload it as part of a FilePart. Again, how can I retrieve
the jpeg from the SD card to do this?

My previous code used a media URI to retrieve a bitmap, compress it
into a jpeg and write it to a byte array. This worked, but now I need
to replace this with a reference to photo.jpg:

Bitmap bitmap;
ByteArrayOutputStream imageByteStream;
byte[] imageByteArray = null;
bitmap = android.provider.MediaStore.Images.Media.getBitmap
(getContentResolver(), uri);
imageByteStream = new ByteArrayOutputStream();
if (bitmap == null) {
Log.d(LOG_TAG, No bitmap);
}
// Compress bmp to jpg, write to the byte output stream
bitmap.compress(Bitmap.CompressFormat.JPEG, 80, imageByteStream);
// Turn the byte stream into a byte array
imageByteArray = imageByteStream.toByteArray();

Thanks again,

Anna

On May 7, 1:14 am, Mark Murphy mmur...@commonsware.com wrote:
 Anna PS wrote:
  What I don't know is what
  to launch when the user clicks on it. A modified version of the Camera
  class, or something like MediaStore.ACTION_IMAGE_CAPTURE?

 I haven't used the latter, so I can't comment on it.

  I need to (a) display the photo as a thumbnail on the activity's home
  screen, and (b) upload the photo as part of a multipart message.

  In both cases I need some way to refer back to the photo that the user
  has taken. I'm assuming the only way is via aURI? Is there another
  way?

 In terms of the thumbnail, you can either let Android scale it
 automatically from a file or use Bitmap to scale it under your control
 and hand the Bitmap to the ImageView. Neither of those requires aURI.

 I don't know how you intend to send the email and therefore what might
 be required for it.

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

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



[android-developers] Invoking one apk from another

2009-05-07 Thread Asif k

Hi all,

   I want to invoke musicplayer.apk(this .apk I have already created
and working fine) application from my current application
programmatically. Can anyone please suggest me how to export
musicplayer.apk and the steps to accomplish this task?

   Please 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] Re: SW (2D API) vs. HW (openGL) rendering

2009-05-07 Thread mcmc

Thanks a lot. :) Very helpful.

On Apr 28, 4:05 am, Alistair. alistair.rutherf...@googlemail.com
wrote:
 Take a look at SpriteMethodTest here

 http://code.google.com/p/apps-for-android/

 Al.

 On Apr 27, 9:51 pm, mcmc manni...@gmail.com wrote:

  I'm trying to compare the difference in speed between software and
  hardware graphics rendering, but I'm a little confused...

  Can someone please give me a starter?

  I have 2 apps right now - one written with only java/android 2D APIs,
  and one written with openGL calls...

  Thanks a bunch.


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



[android-developers] Re: Get image URI from camera?

2009-05-07 Thread Mark Murphy

 1. Thumbnail display. When I go back to the first screen of the
 application, I want to show an ImageView of the jpeg that the user has
 just taken. Current code, which doesn't work because it's not looking
 in the SD card:

   bmp = BitmapFactory.decodeStream(openFileInput(photo.jpg));
   iv.setImageBitmap(bmp);

 This gives the error: java.IO.FileNotFoundException: /data/data/
 com.android.filename/files/photo.jpg. How can I ask BitmapFactory to
 look in the SD card for the jpeg?

Use regular Java I/O to open the stream, rather than openFileInput().
Environment.getExternalStorageDirectory() will return you a File pointing
to the SD card, which you can use as the basis for building your path.

 2. Uploading the jpeg - I would like to convert the jpeg to a byte[]
 array, to upload it as part of a FilePart. Again, how can I retrieve
 the jpeg from the SD card to do this?

Use the same stream as above, and read it in:

http://www.exampledepot.com/egs/java.io/File2ByteArray.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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

2009-05-07 Thread Marco Nelissen
Based on the code you posted, the stop called in state 2 is because you
call stop() in your OnCompletionListener, which isn't necessary (it's
already stopped at that point).
I don't see how the other problems could happen with the code you posted,
unless you have multiple threads accidentally using the same MediaPlayer, or
there is some other code involved that you didn't post.


On Thu, May 7, 2009 at 1:36 AM, Sudha sudhaker...@gmail.com wrote:


 Hi I am using MediaPlayer to play my sounds below is my another post


 http://groups.google.com/group/android-developers/browse_thread/thread/8d1c01b055873f39#

 I tried all the possible ways stated in the above post but could not
 play sounds accordingly so changed the sound code as below,

 Now the sounds are working fine and no sound is getting skipped but am
 getting some errors which i cannot figure why they are coming...?

 Below are some errors:

 1-  E/MediaPlayer( 2173): stop called in state 1

 2-  E/MediaPlayer( 2173): stop called in state 2

 the above errors i get frequently and i get the below one's randomly,
 the game freezes and requires a force close when i encounter the below
 errors

 3-  E/MediaPlayer( 2173): setDataSource called in state 2
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
 android.media.MediaPlayer.setDataSource(Native Method)

 4-  E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
 android.media.MediaPlayer.setDataSource(Native Method)
 W/System.err( 2173):at
 android.media.MediaPlayer.setDataSource(MediaPlayer.java:247)

 5-  E/MediaPlayer( 2173): prepareAsync called in state 128
 E/MediaPlayer( 2173): setDataSource called in state 128
 W/System.err( 2173): java.lang.IllegalStateException
 W/System.err( 2173):at
 android.media.MediaPlayer.setDataSource(Native Method)

 6-  E/MediaPlayerService(   31): offset error
 E/MediaPlayer( 2173): Unable to to create media player

 I have observed that all the sounds played atleast once in the game
 without any error.

 I want to know what are the states 1,2  128 and why are the errors
 raised.

 As per the
 http://developer.android.com/reference/android/media/MediaPlayer.html#Valid_and_Invalid_States
 I suppose there is no problem in my code but y is that error shown...?

 Plz check the below code:

 public void stop() throws MediaException {
try
{
mp.stop();
mp.reset();
FileInputStream fIn =
 Utils.getContext().openFileInput(fileName);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}
}
catch(Exception e){e.printStackTrace();}
isPlayingSound = false;
 }

 public boolean isPlayingSound; //class member
 MediaPlayer mp = null;
 String last_req = ;
 public void playSound(final String res) {
if (isPlayingSound){
return;
}
try {
if (!last_req.equals(res))
{
last_req = res;
mp = new MediaPlayer();

FileInputStream fIn =
 Utils.getContext().openFileInput(res);
if (fIn != null)
{
mp.setDataSource(fIn.getFD());
fIn.close();
}

mp.setOnCompletionListener(new
MediaPlayer.OnCompletionListener() {
public void onCompletion(MediaPlayer mp)
{
try
{
mp.stop();
mp.reset();
FileInputStream fIn =
 Utils.getContext().openFileInput(res);
if (fIn != null)
{

  mp.setDataSource(fIn.getFD());
fIn.close();
}
isPlayingSound = false;
}
catch(Exception
 e){e.printStackTrace();}

}
});

mp.setOnErrorListener(new
MediaPlayer.OnErrorListener() {
public boolean onError(MediaPlayer mp, int
 what, int extra)
{
mp.release();
mp = 

[android-developers] Problem with SDK 1.5

2009-05-07 Thread doubleslash

I recently installed SDK 1.5 and updated the Eclipse adt to 0.9. I
tried using the accelerometer sensor but kept getting an error when
registerring the listener. My code is as follows:

class myActivity extends Activity{

SensorManager sm  = (SensorManager)getSystemService
(Context.SENSOR_SERVICE);
sm.registerListener(new MyListener(), Sensor.TYPE_ACCELEROMETER,
SensorManager.SENSOR_DELAY_UI);

class MyListener implements SensorEventListener{
// implementation is irrelevant
}

}
I keep getting the error that I should change MyListener to type
SensorListener, which has  been replaced by SensorEventListener in the
new SDK.

I chose to compile my code against Android 1.5. It seems that I have
successfully set up the new SDK as it can find the new interface
SensorEventListener. Why does registerListener require an interface
that has been deprecated?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] ListAdapter issue related to ListView selection

2009-05-07 Thread LD

Hello,

I have following problem:

I am creating ListAdapter that is used by my ListView.
Task (that I am solving using ListView) relates to displaying files on
SD card. When specific directory is opened, list highlights the first
item in it and selects the item (using setSelection(position) method
of ListView ).

Problem appears only at following case:
1. Initial directory contains about 25 files (displayed on screen only
1-5), the first item is selected (0 position)
2. Second directory contains only 1 file.
3. Now we go back to initial directory (don't know why, but ListView
displays 21-25), the first item is selected (0 position), but it is
not visible (but highlighted, according to logs and what I see after
scrolling). Scroll bar in this case is set to the max position.

To update list content I use method
mListAdapter.notifyDataSetChanged();

It works fine, but with some issues concerning item selection if
list's item count is bigger than item's count possible for displaying
on the screen.

I can resolve this trouble using following set of operations:

getListView().setAdapter(null);
updateFileList();
mListAdapter.notifyDataSetChanged();
getListView().setAdapter(mListAdapter);

Can anybody advice me how to do the right way in this case?

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



[android-developers] App-independent Storage of Shared Resources/Media

2009-05-07 Thread Arne Handt

Hello,

I'm in a situation where I have to share some resources (i.e. images)
between several of my apps and I'd like to know if there's a
standardized and convenient way to do this besides the system-wide
Media Store. The reason I don't want to use the MediaStore is that the
resources are rather low-level (e.g. icons) and thus the user wouldn't
be interested in them cluttering the MediaStore.

As I see it there are three ways to share the resources:

1) Store them in the global MediaStore.
2) Put them on the SD card.
3) Implement a custom ContentProvider for this kind of shared
resources.

I like how a custom ContentProvider would encapsulate the way the data
is stored, but it seems to be a bit of unnecessary overhead to achieve
this. Writing to the SD card is convenient, but rather low-level. Are
there any other options suited for this problem?

Thanks in advance and best regards,
Arne
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 1.5 - crash during drawing of multiline TextView

2009-05-07 Thread Mike

Thank you very much for answers!

I've seen discussions about view hierarchy depth, but after finding
out that StackOverflow pops-up exclusively at the moment of text
wrapping I didn't believed this is the case.

Hierarchyviewer revealed that my hierarchy is really deep (14), but
it's not as messy - the biggest portion of this depth is added by
TabActivity. As I found out, similar problem is being solved here:
http://groups.google.com/group/android-developers/browse_thread/thread/277e81c07591219f/f3f0b6f6ac529bcb

I did some hotfix to prevent text wrapping and now I can think about
reducing the depth (I don't see a way to do it right now, without
rewriting whole UI, but hopefully I'll find something ;).

Thanks again,
  Mike


On May 6, 5:38 pm, Romain Guy romain...@google.com wrote:
  How deep and complicated is your view hierarchy? With Android 1.5, I get
  the sense that StackOverflowError will be triggered by a too-complex set
  of views, particularly in terms of depth. You can use hierarchyviewer
  (in the tools/ of your SDK) to see how many layers you have -- if you're
  in double digits on the deepest branch, you might need to find ways to
  simplify the UI.

 It was already the case in 1.0 and 1.1 but because of new features
 added in Cupcake, StackOverflowException now happen a bit earlier.
 This means that the app was almost overflowing anyway.

 --
 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: Invoking one apk from another

2009-05-07 Thread Yusuf T. Mobile

I would recommend using Binder:
http://developer.android.com/reference/android/os/IBinder.html
http://mylifewithandroid.blogspot.com/2008/01/about-binders.html


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On May 7, 7:37 am, Asif k asifk1...@gmail.com wrote:
 Hi all,

    I want to invoke musicplayer.apk(this .apk I have already created
 and working fine) application from my current application
 programmatically. Can anyone please suggest me how to export
 musicplayer.apk and the steps to accomplish this task?

    Please 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] Re: Android 1.5 - crash during drawing of multiline TextView

2009-05-07 Thread Romain Guy

14 levels is what we consider a very deep hierarchy :)

On Thu, May 7, 2009 at 9:26 AM, Mike sra...@gmail.com wrote:

 Thank you very much for answers!

 I've seen discussions about view hierarchy depth, but after finding
 out that StackOverflow pops-up exclusively at the moment of text
 wrapping I didn't believed this is the case.

 Hierarchyviewer revealed that my hierarchy is really deep (14), but
 it's not as messy - the biggest portion of this depth is added by
 TabActivity. As I found out, similar problem is being solved here:
 http://groups.google.com/group/android-developers/browse_thread/thread/277e81c07591219f/f3f0b6f6ac529bcb

 I did some hotfix to prevent text wrapping and now I can think about
 reducing the depth (I don't see a way to do it right now, without
 rewriting whole UI, but hopefully I'll find something ;).

 Thanks again,
  Mike


 On May 6, 5:38 pm, Romain Guy romain...@google.com wrote:
  How deep and complicated is your view hierarchy? With Android 1.5, I get
  the sense that StackOverflowError will be triggered by a too-complex set
  of views, particularly in terms of depth. You can use hierarchyviewer
  (in the tools/ of your SDK) to see how many layers you have -- if you're
  in double digits on the deepest branch, you might need to find ways to
  simplify the UI.

 It was already the case in 1.0 and 1.1 but because of new features
 added in Cupcake, StackOverflowException now happen a bit earlier.
 This means that the app was almost overflowing anyway.

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




-- 
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: Apps built with 1.5 get a black-backgound icon in the Market

2009-05-07 Thread Sander

I have the same problem. They even look a bit funky. Did you happen to
find a solution for it?

Sander

On May 1, 3:21 pm, jarkman jark...@gmail.com wrote:
 We've rebuilt a couple of our apps with the 1.5 SDK (but targeting
 1.1).

 The Market seems to have a bit of trouble with the background of the
 icons. They appear correctly (with transparent backgrounds) on the
 desktop, and they appear correctly when the app is downloaded from the
 Market and installed on the device.

 However, they appear on black (not transparent) backgrounds in the
 Market uploader web page, and in the Market application on the device.

 It looks to me as though the Market has a problem when it extracts the
 icon from the .apk at upload time, with .apks built by the 1.5 SDK.

 Has anyone else seen this ? Any workarounds ?

 Thanks,

 Richard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Child TextView in ScrollView with large amount of text pushes other views off the screen

2009-05-07 Thread Romain Guy

It does matter, 0dip is an optimization. If you use something  0 then
that space will be taken away from other widgets. In this case there's
no reason not to use 0dip.

On Thu, May 7, 2009 at 7:01 AM, Mike michaeldouglaskra...@gmail.com wrote:

 This words, thanks.  However, it appears to me the value you specify
 for the height is an arbitrary one.  For example, it doesn't seem to
 matter if specify 1dip or 100dip, it still sizes the same.

 I assume what's going on is that the layout_weight=1.0 tells the
 layout manager to give as much real estate as possible to the
 ScrollView and as little possible to it's sibling Views and you just
 need to specify SOMETHING for the height.

 Regards,

 - Mike

 On May 6, 4:35 pm, Romain Guy romain...@google.com wrote:
 You set thescrollviewto have a height of wrap_content, which means
 be as big as you need to be to show your children. What you want
 instead is a height of 1.0 and android:layout_weight=1.0



 On Wed, May 6, 2009 at 4:02 PM, Mike michaeldouglaskra...@gmail.com wrote:

  OK, I give up.  I am trying to create an activity layout that has a
  top level vertical linear layout like so:

  ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
         android:id=@+id/mainLayout
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:padding=4dp

         TextViewandroid:id=@+id/word android:layout_width=fill_parent
                               android:layout_height=wrap_content
                               android:textSize=32dp
                               android:textColor=#ff
                               android:textStyle=bold
                               android:text=Word/

         ScrollViewandroid:layout_width=fill_parent
                                 android:layout_height=wrap_content
                                 android:padding=4dp

                 TextViewandroid:id=@+id/wordDefinition
                                         android:layout_width=fill_parent
  android:layout_height=wrap_content
                             android:textColor=#ff
                             android:text=A definition./
         /ScrollView

         Button android:id=@+id/backButton
                         android:layout_width=fill_parent
                         android:layout_height=wrap_content
                         android:text=Back /

  /LinearLayout

  This works ok as long as the wordDefinition text isn't very long.
  But, when I set the text to something very long, it pushes the back
  button off the bottom of the screen.  Why???  Isn't theScrollView
  supposed to scroll the text in the childTextView?

  I've tried playing with weights (e.g., giving the top text view a
  weight of .2, the scroll view a weight of .7 and the button a weight
  of .1, but to no avail.

  What am I doing wrong?

  Regards,

  - Mike

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




-- 
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: Is it possible to have, horizontal listview, scrolling horizontally?

2009-05-07 Thread Romain Guy

Yes there is, it's called a Gallery.

On Thu, May 7, 2009 at 6:16 AM, Mark Murphy mmur...@commonsware.com wrote:

 Is it possible to have, horizontal listview?
 normally the listview scrolls vertically having horizontally rows .

 is reverse case possible, listview scrolling horizontally and having
 vertical  rows.

 There is no built-in widget that supports horizontal scrolling. There is
 nothing to prevent you from writing one, and there may be third-party
 widgets available that offer this.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Available!



 




-- 
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: Invoking one apk from another

2009-05-07 Thread Marco Nelissen
What do you mean by invoking an apk? An APK file is essentially a zip
file, normally used to package android applications, and contains the code
and resources for any number of activities, services, broadcastreceivers,
etcetera.
Do you want to run an activity from that other apk? Run a service? Trigger a
broadcastreceiver?
In any case, you're going to have to install that apk on the system first,
just like you would install any other application. Once that is done, you
can run the activity/service/etc the same way you would normally do, e.g. by
calling startActivity, bindService, sendBroadcast, etc.



On Thu, May 7, 2009 at 7:37 AM, Asif k asifk1...@gmail.com wrote:


 Hi all,

   I want to invoke musicplayer.apk(this .apk I have already created
 and working fine) application from my current application
 programmatically. Can anyone please suggest me how to export
 musicplayer.apk and the steps to accomplish this task?

   Please 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] Re: Is it possible to have, horizontal listview, scrolling horizontally?

2009-05-07 Thread Mark Murphy

 Yes there is, it's called a Gallery.

You are correct, my apologies. Whether the Gallery meets the OP's needs is
another matter.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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

2009-05-07 Thread Dave Sparks

You need to format the mp4 file for streaming. This means that the
moov atom must precede the mdat atom in the file.

On May 7, 5:05 am, N V nithi...@gmail.com wrote:
 Hi to all...

          I tried for video streaming in sdk 1.5... The video
 format .mp4... But it gives error
 like This video is not valid for streaming to this video. But 
 inhttp://developer.android.com/sdk/android-1.5-highlights.html.mp4 is
 supported for streaming

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

2009-05-07 Thread Dave Sparks

The mic on all current Android devices, why would you want to record
stereo?

On May 7, 3:43 am, l hx lihongxia8...@gmail.com wrote:
 can we using channels 2 when recording audio?

 On Sat, May 2, 2009 at 12:54 AM, Jean-Michel jmtr...@gmail.com wrote:

  Hi there,
  Looks like sipdroid (www.sipdroid.org) is using AudioTrack and
  AudioRecord for their SIP client. Go to the Browse source page and
  look at trunk  src  org  sipdroid  media  RtpStreamReceiver.java
  and RtpStreamSender.java, and search respectively for track and
  record.

  On Apr 30, 7:07 am, Thomson thomsont...@gmail.com wrote:
   Hi,
          I want to use AudioRecord and AudioTrack classes(in SDK 1.5) in
   my program.
   Where can I find how to use it. Is there any API demo program for
   this?.
   If not it is greatly appreciated if someone can post a sample code in
   this forum

   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] Video with MediaRecorder

2009-05-07 Thread Jason Proctor

i set orientation=landscape for my capture activity, which seems to 
do the right thing most of the time.

every now and then however, the phone ignores it and restarts my 
activity if the user rotates the phone. which they have to do, 
because the camera only works in landscape.

not sure why this would be an intermittent type thing.


Hi,

Thanks, I got it to work.

I have one problem though. When I rotate the phone, using automatic
Orientation the onDestroy() method of my activity is called, which
effectively also stops capturing. When the activity is recreated, a
new capture starts. This means I will now have two files for the same
capture since the user didnt choose to stop the capture. (And I need
to merge these files).

Does anyone know of a way to keep the capture running when rotating
the phone?

Thanks,
Anders

On May 6, 8:11 pm, Jason Proctor ja...@particularplace.com wrote:
  just a tiny fyi here is that i did manage to get video recording
  working fine in my app.

  there is however a problem if the surface view fills its parent and
  the parent is the entire screen. if that happens, then the camera's
  view of things gets resized but nobody tells the codec, and hence the
  movie is messed up. it's encoded for one size but the movie metainfo
  says something else.

  making the size something smaller than the screen made it work, but
  it *is* a bug IMHO.

  --
  jason.software.particle


-- 
jason.software.particle

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

2009-05-07 Thread Dave Sparks

This is a limitation of the hardware, the preview size and encoded
size must be the same.

I'm not sure how you were able to change the preview size though. I'd
like to know the code sequence you used, because it's not supposed to
be possible.

On May 6, 11:11 am, Jason Proctor ja...@particularplace.com wrote:
 just a tiny fyi here is that i did manage to get video recording
 working fine in my app.

 there is however a problem if the surface view fills its parent and
 the parent is the entire screen. if that happens, then the camera's
 view of things gets resized but nobody tells the codec, and hence the
 movie is messed up. it's encoded for one size but the movie metainfo
 says something else.

 making the size something smaller than the screen made it work, but
 it *is* a bug IMHO.

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



[android-developers] Show dialog on exit

2009-05-07 Thread rbd


Hello,

I'm trying to show an alert dialog when the user exists my application
but it seems that although
i successfully build the Dialog nothing happens and the app. simply
closes.
Is there a way to implement it?
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 use getRotationMatrix to 3D Transformations

2009-05-07 Thread toogle

hi
I am a newbie.
currently I am trying to make a program using android sensors .

I hope to get accelerations of 3 axis in earth coordinate system.
It is easy to get  3 accelerations and orientation angles in phone
coordinate system.
So I made 3d transformation using equations as
http://planning.cs.uiuc.edu/node102.html

However it seems that it's not accurate and android provides easier
and more accurate way.
from android dev doc
It is preferable to use getRotationMatrix() in conjunction with
remapCoordinateSystem() and getOrientation()  to compute these values;
while it may be more expensive, it is usually more accurate. 

But I don't know how to using them. Can any one give me some more
detailed guidance or sample code using these methods?

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] An Android SQLite framework based on Enum

2009-05-07 Thread negentropicco...@gmail.com


Check out this post here http://negentropiccoder.blogspot.com/

And the code source here  http://code.google.com/p/androsql/downloads/list



In this post, I want to expose you AndroSQL, a SQLite framework based
on Enum that I builded to help me in my Android applications
developpement.

I created an example application with a multiple selections dialog,
where
you can create time schedules, edit and list them.

Click here to dowload the example and source code :
http://code.google.com/p/androsql/downloads/list

This example implement a tipical many-to-many relations.

Also, this application use the Enum capabilities to print out the
database content in your LogCat console.

The following sections will decribe my SQLite framework through the
explanation of my multiple selections dialog example.

Contents
The problem with the NotePad android tutorial
The Multiple choise dialog example
Define database with enum
The SCHEMA
The Tables
The DAO
The Debugger


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



[android-developers] Anyway to bypass permission checking

2009-05-07 Thread Kai Hu

Hi there,

I am doing an experimental project and want to send key events from
one application to another. I know android doesn't allow applications
to interfere each other in this way due to security concern. Is there
any way i could bypass the security check? I've looked into the
WindowManagerService class and made some modifications but it seems
not working for me. Anybody could help me?

Thanks for your time.

- Kai

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



[android-developers] Android Application with Google App Engine

2009-05-07 Thread radarcg

Is it possible to have an android application (NOT mobile website)
sign-in as a user to a web application hosted on the Google App
Engine?

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



[android-developers] Differentiating between Simulator v/s. Real device

2009-05-07 Thread aa

Hi All,
Do anyone know if there a way to differentiate between the Android
Simulator and the real device (like iphone sdk has #define etc..)?

Thanks,
Ashish

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



[android-developers] Urgent! can't update apps in market. No error message

2009-05-07 Thread android app

I uploaded the new updates to the application in the market.  There
was no error message shown. It seemed that the uploading was
successful.  However, the version name and the app itself were still
the old version. Please help!!!

FYI:  I lost the original private key or the keystore file.  I
generated a new keystore file to sign the app.  I also met the minSDK
problem and solved it by set the minSDKversion in the manifest file.

There must be a way to update the app.   I don't want to upload the
app as an new application since there is a large base of existing
customers.

Please 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: OnfocusChangeListener question

2009-05-07 Thread felix...@googlemail.com


Hi Andre!

Could you pleasee share the code of your implementation of your
ItemizedOverlay.OnfocusChangeListener? This would be great

Regards
Felix

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

2009-05-07 Thread Bullo#88

This could help you

http://androidguys.com/?p=650


On May 7, 5:37 am, Prajkti prajakta.kha...@gmail.com wrote:
 Hi all,
 In my application, i want to create multiple tabs.
 For example, i have a button on clicking which should create one more
 tab,(just like Mozilla browser).
 I searched on Internet as well as Android Documentation.. but did not
 get any clue...

 Can anybody please help me..??

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



[android-developers] Re: android system make. error 45

2009-05-07 Thread Lawrence Wu

Hi Andrew,
Not only lack # symbole but also lack parameter type.
So need to modified it to be following:

 * further and longer, when used with {...@link #setFinalX(int)} or
{...@link #setFinalY(int)}.


Following is the function definction of setFinalX in Scroller.java:

public void setFinalX(int newX) {

}



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



[android-developers] Job Description

2009-05-07 Thread craig_webs...@oxfordcorp.com

Hello all,

I have a position open in Redwood Shores, California, as an Android
Developer.  Please review this job description:

Title:  Android Developer

Project:  Developing an Android application from scratch

Duties:  Develop an application in Android which siphons information
from internet based web services such as Facebook, Twitter, MySpace,
HiFive and others, aggregate the information and push it on to one,
easy to read platform.  The option is still open as to whether they
are going to use the architecture already in place, or start from
scratch.  This application must be formatted to support millions of
users without crashing the users phone.  Candidates need to be able to
work on site in order to work on the server directly.

Necessary Skills:
  - Android development
  - Consumer applications
  - Server/Client interaction experience.
  - Experience writing user friendly, stylish user interfaces

Duration:
  - 3-6 months

Interviews for this position are tomorrow so I am trying to move
quickly.  Please email me at craig_webs...@oxfordcorp.com or call me
(408) 369-8054 ex18.  If you are interested, please contact me by this
afternoon, or pass this job description off to any colleagues who may
fit this position.  Thank you!

Regards,
Craig Webster

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



[android-developers] screen orientation crash

2009-05-07 Thread youssef henry
I have developed an Android application it is a game using opengl. when i
change the screen orientation the application crash.
Any one can 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] protobuf on Android

2009-05-07 Thread Dalvik

I see some protobuf files on Android. I want to know if that is
compatiable in format with implementation generated through protoc?

thanks,
Dalvik

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

2009-05-07 Thread ZeroCool

i would suggest using JSON instead of XML if you only want to
transport data on the internet
And JSON is natively supported by android, which is much lighter
weight
take a look:
www.json.org

On May 7, 9:51 pm, Tom thomas.coz...@gmail.com wrote:
 Question :

 Which of these protocols RPC-XML, REST even SOAP are the best for
 transport data between android and PC?

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



[android-developers] setContentView and destroying Events (handled automatically?)

2009-05-07 Thread matt

I am curious about memory leaks with Android, and whether I am doing
things correctly (I am fairly new to all of this).

Here is my scenario:

1 Activity called Main.

onCreate calls setContentView with an xml layout.  Various events are
setup (mainly buttons).

One of the button events calls setContentView to load another xml
layout.  Various events are then setup for this view.

This can go back and forth between 3 different views.

My question, are there any destroy events that I need to call, or is
all of this handled automatically?

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

2009-05-07 Thread Rob

Hi,

How can you detect when the soft keyboard is enabled and the layout
resized?

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] Appwidget update on phone power on

2009-05-07 Thread pboyd04

I've written an appwidget to display some basic weather data on the
home screen. The only real issue that I have is that the appwidget
doesn't get updated on startup. It just displays the default layout
and never seems to update. Is there some way to force an update on
startup, preferably after a data connection is available?

Thanks,
Patrick

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



[android-developers] Re: Emulator Camera Issues in 1.5

2009-05-07 Thread Kevin

I have also run into this issue.  I didn't have any problems using the
camera under 1.1 and couldn't find an existing bug report, so I
created one.

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


On May 5, 6:40 pm, Chih-Wei chihwei0...@gmail.com wrote:
 I have the same issue with 1.5 SDK. Screen goes blak and camera app
 times out.
 I traced into the code onCreate at Camera.java

 try {
             openCameraThread.join();
             loadServiceThread.join();
         } catch (InterruptedException ex) {
         }

 It seems that loadServiceThread.join() doesn't return.
 The loadServiceThread just blocks.
 Any idea?
 (P.S. It's ok in 1.1 SDK)

 On May 2, 5:05 am, spamular...@gmail.com spamular...@gmail.com
 wrote:

  Running into the same issue with the emulator.   Screen goes black 
  andcameraapp times out.
  I get these four errors

  05-01 20:06:40.593: ERROR/MediaPlayer(556): Unable to to create media
  player
  05-01 20:06:40.593: ERROR/CameraService(556): Failed to load
  CameraService sounds.
  05-01 20:06:40.593: ERROR/MediaPlayer(556): Unable to to create media
  player
  05-01 20:06:40.593: ERROR/CameraService(556): Failed to load
  CameraService sounds.

  Tried this on two different computers in windows and Linux with same
  result.

  my suggestion is to avoid using thecamera;)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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-SDK-1.5-Win-32: network connection beyond firewall

2009-05-07 Thread stevensli

Changing APN only works for the browser, but not for google map.

On 4月30日, 下午8时24分, Xeros zerosuni.sams...@gmail.com wrote:
 Hello, Mallikarjuna

 There's many of solution. (insert http_proxy into settings.db, use -
 http-proxyoption etc...)
 But change the APN is the best practice I've tested.

 1. run emulator (either v1.1 or v1.5 OK)
 2. go to Settings - Wireless controls - Mobile networks - Access Point
 Names
 3. Choose any APN on list
 4. change the APN value as below

 - Name : Android
 - APN : Internet
 -Proxy: yourproxyaddress
 - Port : yourproxyport
 - Username : Not set
 - Password : Not set
 - MCC : 310
 - MNC : 260

 5. Save the APN and run browser

 Plz try this way and let me know it works or not.

 Thanks and regards,
 Xeros

 On 4월21일, 오전12시56분, Mallikarjuna Prasanna KG kgmprasa...@gmail.com
 wrote:

  HelloAndroidDevelopers,

  I am not able to connect to internet inSDK1.5win 32.

  I am using  browser and it always shows web page not available.

  I tried setting
  =
   ./adb shell sqlite3
  /data/data/com.google.android.providers.settings/databases/settings.db
  \INSERT INTO system VALUES(99,'http_proxy',' [host_or_IP]:[port]');

  ==
  didn't work

  Bellow is  some some log cat output while fetching.

  04-20 21:04:06.240: ERROR/ActivityThread(610): Failed to find provider
  info forandroid.server.checkin
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610): Error recording stats
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):
  java.lang.IllegalArgumentException: Unknown URL
  content://android.server.checkin/stats
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     
  atandroid.content.ContentResolver.insert(ContentResolver.java:473)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     at
  com.google.android.net.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:192)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     at
  com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:212)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     at
  com.google.android.net.GoogleHttpClient.execute(GoogleHttpClient.java:282)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     at
  com.android.googlesearch.SuggestionProvider.query(SuggestionProvider.java:134)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     
  atandroid.content.ContentProvider$Transport.bulkQuery(ContentProvider.java:112)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     
  atandroid.content.ContentProviderNative.onTransact(ContentProviderNative.java:97)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     
  atandroid.os.Binder.execTransact(Binder.java:287)
  04-20 21:04:06.250: ERROR/GoogleHttpClient(610):     at
  dalvik.system.NativeStart.run(Native Method)
  04-20 21:04:07.510: INFO/ActivityManager(568): Starting activity:
  Intent { action=android.intent.action.SEARCH
  comp={com.android.browser/com.android.browser.BrowserActivity} (has
  extras) }
  04-20 21:04:07.620: VERBOSE/webkit(697): guessURL before queueRequest: 
  yahoo.com
  04-20 21:04:08.479: INFO/InetAddress(697): Unknown host yahoo.com,
  throwing UnknownHostException
  04-20 21:04:08.500: ERROR/browser(697): onReceivedError 
  -2http://yahoo.com/TheURL could not be found.
  04-20 21:04:13.169: DEBUG/dalvikvm(610): GC freed 6273 objects /
  561480 bytes in 135ms

  

  Also I tried with http_proxy environmental variable but it didn't work 
  for me
  I set   something like this bellow
  ===
  http_proxy=http://usrname:pas...@proxy.name.com:
  =

  Any body tried and succeeded  networkconnection withproxyinSDK1.5

  Thanks and regards,
  Mallikarjuna

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



[android-developers] How can i count number of files in a directory?

2009-05-07 Thread i12b

Hello.

I want to count the number of files in a specified directory
recursively.

I used to use some apis for windows mobile but can't find for Android
system.


framework C code or any of Java code, welcome!

plz give me advices!

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



[android-developers] Android, Google Accounts, and Google App Engine

2009-05-07 Thread radarcg

 Is it possible for an android application (NOT mobile website) to
access the authentication token that already exists, and pass it do a
web application that is hosted on the Google App Engine?

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



[android-developers] Urgent! can't update apps in market. No error message

2009-05-07 Thread android app

I uploaded the new updates to the application in the market.  There
was no error message shown. It seemed that the uploading was
successful.  However, the version name and the app itself were still
the old version. Please help!!!

FYI:  I lost the original private key or the keystore file.  I
generated a new keystore file to sign the app.  I also met the minSDK
problem and solved it by set the minSDKversion in the manifest file.

There must be a way to update the app.   I don't want to upload the
app as an new application since there is a large base of existing
customers.

Please 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] Could I remove android LOGO when the system boot up ?

2009-05-07 Thread vingo

Porting to the android system to a new product, could I remove the
android LOGO when boot up ?
Is there any related license material about 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
-~--~~~~--~~--~--~---



  1   2   >