[android-developers] Re: Developing a 2D game on Android

2008-08-29 Thread Steve Oldmeadow

What is happening with the FEATURE_OPENGL flag?  The docs still
indicate it will allow 2D APIs to be hardware accelerated.  Is this
being dropped for 1.0?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: pop up menu

2008-08-29 Thread jalandar

plz give me code , to create popup menu
eg. when I create on Options there should be list of menu Items
Options--1.New note--a.send ,b.delete,c.exit
   2.help
   3.exit
Again when I Click on New Note ,there should be list of sub_items
send , delete and exit
is this possible in android

jagtap jalandar
e-mail:   [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Developing a 2D game on Android

2008-08-29 Thread Romain Guy

Yes, it will be dropped for 1.0. We didn't have enough time to make
this feature rock solid, so there are some important problems left.
The mapping is also incomplete between the 2D API and the OpenGL
pipeline. Because of this, we decided to disable this feature in 1.0.

On Thu, Aug 28, 2008 at 11:00 PM, Steve Oldmeadow [EMAIL PROTECTED] wrote:

 What is happening with the FEATURE_OPENGL flag?  The docs still
 indicate it will allow 2D APIs to be hardware accelerated.  Is this
 being dropped for 1.0?

 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Developing a 2D game on Android

2008-08-29 Thread Steve Oldmeadow

Thanks Romain.  I must admit to thinking that is some damn tricky
stuff to pull off, I look forward to seeing it eventually.

Back to the drawing board for 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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SharedPreferences not stored betweed 2 emulator launch

2008-08-29 Thread CG

I just up the subject because it seems to be a bug or a mess in the
documentation.

Before trying to use the new preference mechanism I try my previous
preference storage (that worked perfectly under m5).
This mechanism worked before like that :

Restore :

   public static void restoreConfig(Activity act) {
//--- OLD
SharedPreferences settings =
act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
Context.MODE_PRIVATE);
.

Save :
 public static void saveConfig(Context act) {
//--- OLD
SharedPreferences settings =
act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = settings.edit();
editor.clear();

editor.putInt(Constant.CONFIG_KEY_STATION_RETURNED,
getMaxStationReturned());

editor.commit();

}

I saw no changes in the documentation regardding this point and the
code still compiles, even after the 0.9 migration.
So my other question is : why does this mechanism does not work after
the 0.9 migration ?
Do we have to put specific permission ?

Then I still don't understand the new mechanism does not save
persistent data.

Thx for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SharedPreferences not stored betweed 2 emulator launch

2008-08-29 Thread hackbod

It does work, it is used in many of the apps, and the ApiDemos example
shows it too.  Have you looked at the log to see any error messages
reported?  You also might want to try wiping data to make sure you
data partition is all in good shape.

On Aug 29, 1:10 am, CG [EMAIL PROTECTED] wrote:
 I just up the subject because it seems to be a bug or a mess in the
 documentation.

 Before trying to use the new preference mechanism I try my previous
 preference storage (that worked perfectly under m5).
 This mechanism worked before like that :

 Restore :

    public static void restoreConfig(Activity act) {
         //--- OLD
         SharedPreferences settings =
 act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
 Context.MODE_PRIVATE);
 .

 Save :
  public static void saveConfig(Context act) {
 //--- OLD
         SharedPreferences settings =
 act.getSharedPreferences(Constant.CONFIG_FILE_NAME,
 Context.MODE_PRIVATE);
         SharedPreferences.Editor editor = settings.edit();
         editor.clear();

         editor.putInt(Constant.CONFIG_KEY_STATION_RETURNED,
 getMaxStationReturned());
 
         editor.commit();

     }

 I saw no changes in the documentation regardding this point and the
 code still compiles, even after the 0.9 migration.
 So my other question is : why does this mechanism does not work after
 the 0.9 migration ?
 Do we have to put specific permission ?

 Then I still don't understand the new mechanism does not save
 persistent data.

 Thx for your help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Problems with mocked GPS in Android 0.9 beta

2008-08-29 Thread Guillaume Perrot

http://groups.google.com/group/android-developers/browse_thread/thread/32c0e799290b4854/44b72dd05fdedd52

On 29 août, 10:54, Semeria Stefano
[EMAIL PROTECTED] wrote:
 Hi all,

 I am trying to port an location aware chat application from m5-rc15 to 
 Android 0.9 beta.
 In the last version my application was using the mocked gps in the following 
 way:

 *         I upload the kml file with the mocked track in 
 /data/misc/location/providerName

 *          I pass the providerName in LocationManager.requestUpdates()
 In this way my IntentReceiver continuously receives updates.

 In Android 0.9 things seems to have changed quite a lot. I found the mocked 
 provider gps files in /etc/location, a folder where I am no more able to 
 write data. Anyway If I simply call LocationManager.requestUpdates() passing 
 the gps provider, nothing seems to happen and my LocationListener code is not 
 executed.
 I found out that using ddms tool, mocked tracks can be loaded and fired to 
 emulator, but I am not able to successfully use the same kml files I used 
 before (ddms shows only location  (0,0,0),  may be something is wrong in my 
 files).

 Can anybody please explain how I could be able to reproduce something similar 
 to the old behaviour?
 How can I use the gps provider for example?

 Thanks a lot for your time.

 My best regards,

 Stefano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: onNewIntent in v0.9

2008-08-29 Thread Guillaume Perrot

about onRestoreSavedInstanceState: I misunderstood the doc, I now
understand why it was not called in my case. Sorry.

about onNewIntent:
In fact there is a very strange problem: if I launch my application
from Eclipse, the mechanism will not work, but if I shutdown my
emulator then relauch emulator then my application it works...
Here is a simplified test app which illustrates the mechanism of
relaunching my app with a command from the notification bar. This
application always works, strangely, the mechanism is exactly the same
in my real application...

public class Test extends Activity
{
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
Log.d(test, onCreate(savedInstanceState= + savedInstanceState
+ ));
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

displayIntentExtras();

Intent intent = new Intent(this, Test.class);
//intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.putExtra(dummy, dummy);
Notification notification = new Notification(R.drawable.icon,
  relaunch with dummy extra, System.currentTimeMillis());
notification.setLatestEventInfo(this, relaunch app,
  relaunch with dummy extra, PendingIntent
.getActivity(this, 0, intent, 0));

NotificationManager notificationManager = (NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(1, notification);
  }

  private void displayIntentExtras()
  {
Log.d(test, dummy= + getIntent().getStringExtra(dummy));
  }

  @Override
  protected void onStart()
  {
Log.d(test, onStart());
super.onStart();
  }

  @Override
  protected void onRestart()
  {
Log.d(test, onRestart());
super.onRestart();
  }

  @Override
  protected void onNewIntent(Intent intent)
  {
Log.d(test, onNewIntent(intent= + intent + ));
setIntent(intent);
displayIntentExtras();
super.onNewIntent(intent);
  }
}

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=test.test
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.Test android:label=@string/
app_name android:launchMode=singleTop
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
/manifest

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: onNewIntent in v0.9

2008-08-29 Thread Yalcin

Look at the discussion under the topic Activity Question couple days
ago

webmonkey wrote:  27. August 2008 20:25
---

there is no need to use singleTask, singleTop or any
other special flags. It has something to do with the way Eclipse re-
installs your application. If you run without using Eclipse everything
should work fine. I do the following to get the correct behaviour:

1. I run my app in Eclipse using Run  Run History  myApp. The app
opens up with the home activity
2. I hit the Back button. The Android home screen with the app menu is
displayed
3. I start my app from the Android app menu. The app opens up with the
home activity
4. From now on, it will work as expected so when I press Home in a
'secondary' activity and then restart my App again from the Android
app menu it will go back to the  'secondary' activity.

---

On Aug 29, 12:09 pm, Guillaume Perrot [EMAIL PROTECTED]
wrote:
 about onRestoreSavedInstanceState: I misunderstood the doc, I now
 understand why it was not called in my case. Sorry.

 about onNewIntent:
 In fact there is a very strange problem: if I launch my application
 from Eclipse, the mechanism will not work, but if I shutdown my
 emulator then relauch emulator then my application it works...
 Here is a simplified test app which illustrates the mechanism of
 relaunching my app with a command from the notification bar. This
 application always works, strangely, the mechanism is exactly the same
 in my real application...

 public class Test extends Activity
 {
   @Override
   public void onCreate(Bundle savedInstanceState)
   {
 Log.d(test, onCreate(savedInstanceState= + savedInstanceState
 + ));
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);

 displayIntentExtras();

 Intent intent = new Intent(this, Test.class);
 //intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
 intent.putExtra(dummy, dummy);
 Notification notification = new Notification(R.drawable.icon,
   relaunch with dummy extra, System.currentTimeMillis());
 notification.setLatestEventInfo(this, relaunch app,
   relaunch with dummy extra, PendingIntent
 .getActivity(this, 0, intent, 0));

 NotificationManager notificationManager = (NotificationManager)
 getSystemService(Context.NOTIFICATION_SERVICE);
 notificationManager.notify(1, notification);
   }

   private void displayIntentExtras()
   {
 Log.d(test, dummy= + getIntent().getStringExtra(dummy));
   }

   @Override
   protected void onStart()
   {
 Log.d(test, onStart());
 super.onStart();
   }

   @Override
   protected void onRestart()
   {
 Log.d(test, onRestart());
 super.onRestart();
   }

   @Override
   protected void onNewIntent(Intent intent)
   {
 Log.d(test, onNewIntent(intent= + intent + ));
 setIntent(intent);
 displayIntentExtras();
 super.onNewIntent(intent);
   }

 }

 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=test.test
 application android:icon=@drawable/icon android:label=@string/
 app_name
 activity android:name=.Test android:label=@string/
 app_name android:launchMode=singleTop
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /
 /intent-filter
 /activity
 /application
 /manifest
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] To make Database Synchable ?

2008-08-29 Thread Yalcin

My application has a content provider, which operates on a database
with 4 tables. I want to make them synchable.

What are the steps? Is extending SyncableContentProvider instead of
ContentProvider the solution? Is there any code sample?

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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Will android provide Mail API??

2008-08-29 Thread elvisw

Hi...

It is too hard to arrange the required classes within apache-harmony-
src and jsse.jar (j2se lib - for SSL) that used at runtime...
The dependency is quite complicate.
I read the article already,
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/
,
but still cannot work well.
Could anyone provide the least extra classes as a package, it will
help those who work on this topic a lot
thanks

elvis.

On 8月29日, 上午12時36分, Mark Murphy [EMAIL PROTECTED] wrote:
  1. Will android provideMailAPI??

 There does not appear to be a public API formail, such as javax.mail, in
 the 0.9 SDK.

 That being said, JavaMail worked under M5, if you found the right JAR
 files. I haven't tried it yet under 0.9, but I should within a week.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.1 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Will android provide Mail API??

2008-08-29 Thread elvisw

Hi...

It is too hard to arrange the required classes within apache-harmony-
src and jsse.jar (j2se lib - for SSL) that used at runtime...
The dependency is quite complicate.
I read the article already,
http://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-actually-via-smtp/
,
but still cannot work well.
Could anyone provide the least extra classes as a package, it will
help those who work on this topic a lot
thanks

elvis.

On 8月29日, 上午12時36分, Mark Murphy [EMAIL PROTECTED] wrote:
  1. Will android provideMailAPI??

 There does not appear to be a public API formail, such as javax.mail, in
 the 0.9 SDK.

 That being said, JavaMail worked under M5, if you found the right JAR
 files. I haven't tried it yet under 0.9, but I should within a week.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.1 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-08-29 Thread Guillaume Perrot

I can't answer you about the current eclispe working directory but I
work with absolute paths in eclipse and my sdcard is loaded correctly.
Images are at sdcard's root and I see them in pictures application.

On 29 août, 15:32, Graeme [EMAIL PROTECTED] wrote:
 Hi

 I want to have Eclipse launch the emulator and set the -sdcard
 mysdcard.img
 option within  a Run Configuration. This is configured by Eclipse-Run-Open 
 Run Dialog

 and then setting -sdcard mysdcard.img within the Additional Emulator
 Command Line
 Options  text input box on the Target Tab.

 Thehttp://code.google.com/android/reference/emulator.html#sdcard
 entry says
 that

 To load FAT32 disk image in the emulator, start the emulator with the
 -sdcard flag and specify the name and path of your image (relative to
 the current working directory):

 emulator -sdcard filepath

 My question is :  When the emulator is launched via a Run Dialog in
 Eclipse, what
 is the current working directory used by the emulator ? Problem: Where
 do I place
 the sdcard image file and/ what relative path to current working
 directory do I need
 to use in the -sdcard option ?

 Can anyone clarify this please ?

 Thanks for any help
 Graeme
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Where does the emulator look for the SD Card Image File ?

2008-08-29 Thread Bertl

Hi Graeme,

you need absolute paths, where your sdcard image lays, i.e. if your
file sdcard.img is in C:\sdcard\sdcard.img, then you should input C:
\sdcard\sdcard.img, also, the absolute path where your file is.

Emulator path play no role.

I hope, that's you needed.

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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem with java.net

2008-08-29 Thread leafka

I want to test the following code, but the DDMS always display
Unknown socket error -1 , I think the code is correct, Must I set up
the emulator or soming? Thank you.

Source Code:

public class SocketApp extends Activity {

private Button ok;
private TextView tv1;
HttpURLConnection uc ;
URL url;
private static final String ip=code.google.com/android/images/
logo_android.gif;
private static final String host=;
private static final String path = http://; + ip +host ;

ImageView view1;
InputStream is;
BufferedInputStream bis;



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

ok = (Button)findViewById(R.id.Button01);

ok.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
openConn();
sendRequest();
getRespones();
closeConn();
}
});

}

private void openConn(){
try {
url=new URL(path);
uc = (HttpURLConnection)url.openConnection();
uc.setDoInput(true);
}catch (MalformedURLException e){
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

private void sendRequest(){
try {
Log.i([SocketApp], conn begin .);
uc.connect();
Log.i([SocketApp],conn end .);
} catch (IOException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
}
}

private void getRespones(){
try {
is = uc.getInputStream();
Log.d(lenght,+uc.getContentLength());
tv1.setText(uc.getContentLength()+);
bis = new BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(bis);
view1.setImageBitmap(bm);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}

private void closeConn(){
try {
uc.disconnect();
bis.close();
is.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

  }

AndroidManifest.xml:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.ltinc.cn
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.SocketApp android:label=@string/
app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
intent-filter

/intent-filter
/activity
/application
/manifest

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] getScale replacement for BaseAdapter in 0.9 beta?

2008-08-29 Thread blim

What should we use to replace getScale from BaseAdapter, which has
been deprecated in 0.9?  I'm trying to use this to scale images in a
Gallery view in relation to which item is currently in focus.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I'd like to modify the Dialer program

2008-08-29 Thread chokoreto

Hi,

Is there a way to extend the existing Contacts View (content://
contacts/people)
to show more information (such as presence, status) and also do more
actions on the contact? (e.g. set presence)

If there is not, what would you recommend to do?
Is there something planned for V1.0? or for V2.0?

Regards,
Reto





On Aug 23, 10:46 pm, Romain Guy [EMAIL PROTECTED] wrote:
 In the Contacts list you can type letters to search for contacts.



 On Sat, Aug 23, 2008 at 12:18 PM, MrSnowflake [EMAIL PROTECTED] wrote:

  I am interested in a dialer which finds contacts for me by their name
  by the number I enter (like the Windows Mobile 6 Dialer). I NEVER use
  the address book, I just type their names using the numbers which
  represent the letters in their name.

  On 21 aug, 21:55, towlie [EMAIL PROTECTED] wrote:
  What I'd like to do is give the user the option of how they want to
  dial someone.
  ex service provider, yahoo voice, skype, vonage.  Why stop there?  You
  could bind
  phone numbers from several service providers as well if you wanted
  to.  Also I want
  each protocol to play nice with each other when incoming calls come
  in.  I'd like the
  dialer to accept a plug-in for each service.

  I know the scope of this project would be pretty big.  Most protocols
  are not available
  to the public and I think most companies don't want users to have this
  kind of flexibility
  on a phone.  It would be nice to start off with maybe just one other
  option besides
  service provider.  Hopefully the most simple.  Any suggestions?

  I'd also be interested in knowing if the dialer source code is
  available.  I downloaded
  the SDK 0.9 code and did a grep for dialer but found nothing.  If it's
  not open then
  what kind of views were used to make the custom buttons and text
  boxes?

 --
 Romain Guywww.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Overriding Contacts View

2008-08-29 Thread chokoreto

Hi,

I am trying to replace the default contacts view, but I get a Security
Exception.

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.contacts/
com.android.contacts.DialtactsActivity}:
java.lang.SecurityException: Requesting code from
com.swisscom.addrbook.test (with uid 10017) to be run in process
android.process.shared (with uid 10004)

I guess, it has something to do that the Contacts Application uses the
TabActivity and each Activity in the tab runs in different processes.
Is there any way how to solve that?

I was using this intent-filter

intent-filter 
  action
android:name=com.android.contacts.action.LIST_DEFAULT /
 category android:name=android.intent.category.DEFAULT /
/intent-filter


Regards,
Reto


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Dynamic UI forms

2008-08-29 Thread Tadas Makčinskas

Hello,
   For few days I was trying to create a dynamic form but usuccsfully.

   My goal is to create a number of buttons on an app. view. The
number of those buttons depends on the given data and can vary from
user to user, and is determined only at runtime. I couldn't realy find
how this could be done.

   Any tips welcome and thanks,
   Tadas Makčinskas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: openOrCreateDatabase or what?

2008-08-29 Thread Megha Joshi
You should not use openOrCreateDatabase() directly, instead use
SqliteOpenHelper. For details see the docs below:
http://code.google.com/android/devel/data/databases.html

2008/8/29 munzelmann [EMAIL PROTECTED]


 Prior to release 0.9 one could do the following to open or create a
 SQLite database:

 try {
  db = context.openDatabase(DATABASE_NAME, null);
 } catch (FileNotFoundException e) {
  db = context.createDatabase(DATABASE_NAME, DATABASE_VERSION,
Context.MODE_PRIVATE, null);
  createTables();
  insertSampleData();
 }

 So if the application can't open the database it creates a new one and
 creates all tables and inserts test data.

 Now both methods are gone and there is a single method
 openOrCreateDatabase().

 This method doesn't allow the programmer to distinguish between
 opening an existing and creating a new database.
 To decide if it should call createTables() and insertSampleData()
 additional checks are necessary.

 Can someone explain the background why this change was introduced? I
 always prefer a clear contract of the API like different methods for
 open(), close(), create(). Or did I miss something?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Overriding Contacts View

2008-08-29 Thread hackbod

This isn't supported in 1.0.  You can only replace the entire
Dialtacts activity.

On Aug 29, 6:44 am, chokoreto [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to replace the default contacts view, but I get a Security
 Exception.

 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.android.contacts/
 com.android.contacts.DialtactsActivity}:
 java.lang.SecurityException: Requesting code from
 com.swisscom.addrbook.test (with uid 10017) to be run in process
 android.process.shared (with uid 10004)

 I guess, it has something to do that the Contacts Application uses the
 TabActivity and each Activity in the tab runs in different processes.
 Is there any way how to solve that?

 I was using this intent-filter

 intent-filter 
           action
 android:name=com.android.contacts.action.LIST_DEFAULT /
          category android:name=android.intent.category.DEFAULT /
 /intent-filter

 Regards,
 Reto
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Comunication Server-Phone: SMS directed to an application (0.9 SDK)

2008-08-29 Thread Cristina

Hi!

I am actually using the http client library in order to comunicate
from my app to the server.
The problem is that I want also the server to send some kind of
events to the phone..so I need also to open a comunication from the
central server to the phone... In this case, the phone will act as a
server receiving the events...

That is why I was thinking about sending the events from the central
server using SMS...but if I cannot avoid others to receive those SMS,
this option is not valid either... Gtalk was the other option, but
there is not GTalk in 0.9..

I do not want either to use polling (the phone asking the server for
events from time to time)

Any other option? wappush? sending SMS to a port associated to the app
like in J2ME?

On 28 ago, 20:16, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/8/26 Cristina [EMAIL PROTECTED]







  Hi!

  We are designing an application for android phones. In our application
  there is a central server, and this server must send some application
  information to the phone.
  So, we thought to use SMS in order to communicate with our application
  in the phone.
  Our application will look for messages with a particular prefix and
  consume it. Other applications (including messagig applications)
  should not get the application SMS messages.

  In order to do that, we have implemeted a Sms BroadcastReceiver, that
  get all SMS messages, but only processed the ones with the application
  prefix. After processing them, we do an abortBroadcast(), in order to
  stop the broadcast of the message to the Messaging application or
  other applications receiving the same intent.

  However, SMS Inbox is receiving the message, and is showing the
  message in the notification application.

  1.  Is there any way for an application to receive the SMS message,
  avoiding the rest of applications to receive it? Is abortBroadcast
  working for SMS broadcast intents? I understand that maybe the
  abortBroadcast is not working for SMS broadcast intents, because of
  security reasons (for example we could abort the broadcast of all SMS
  messages ). Is there another way for an application to to receive SMS
  messages in an exclusive way (the rest of applications do not
  receive it)?

 I don't think you can alter the behavior of inbuilt apps, Messaging(SMS) is
 an inbuilt app, so you cannot
 do anything, it will receive SMS and show the notification.

  2. Is there any other way to communicate information from a external
  server to the application in the phone?

  For example, In other projects with other phones we have  used
  transparent wappush to implement that communication..Does android
  support wappush protocol?

  We would not like to implement an always open connection in the phone
  application (where the phone acts like a server), because that implies
  that we must have a list with all the IPs of the phones in order to
  communicate with them..that complicates a lot the  implementation...

 You can use the inbuilt apache http client library in Android to communicate
 with your server 
 app..http://code.google.com/android/reference/org/apache/http/client/packa...





  Any other idea?- Ocultar texto de la cita -

 - Mostrar texto de la cita -- Ocultar texto de la cita -

 - Mostrar texto de la cita -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] PACKAGE_ADDED

2008-08-29 Thread viktor

Let's continue this discussion:

http://groups.google.com/group/android-developers/browse_thread/thread/697e7e7cc6dd3d1f/fdcf520cce83cf0b

The PACKAGE_ADDED broadcast is not received by the installed (added)
package anymore (SDK 0.9).

This was the only way to let an application to execute a piece of code
when it is installed on the phone.

This feature is especially important when an application is
reinstalled. Our app needs a service to be running. We use
BOOT_COMPLETED event to start the service when the device boots up.

As expected, Android kills the service before an app is reinstalled.
But in SDK 0.9, there is no way to start the service after the new
version of the app is installed. I hope this will be addressed in 1.0.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Story about Android

2008-08-29 Thread Vasanth Sridharan
Hi all,
My name is Vasanth Sridharan and I'm working on a story for Silicon Alley
Insider (www.alleyinsider.com) about Android Developers and what the general
feeling from the group is as we near the launch date.

There have been a lot of updates over the last week or so that have seemed
to address a lot of the concerns that developers have had with the platform
(the new SDK, the preview of Android Market, the announcement of the ADC I
winners). So my question is, are developers excited about Android again? Is
there still a lot of worry going into the first launch? Or, conversely, have
you never been been worried about the platform?

I know there are still some outstanding issues, like the Bluetooth API, so
how important are those?

Thanks,
Vasanth

-- 
Vasanth Sridharan
Reporter
Silicon Alley Insider
C: (408) 455-2254
http://www.alleyinsider.com
http://www.vasanthsridharan.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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Story about Android

2008-08-29 Thread Casey Borders

I was worried about the future of the platform and I still do worry
about the ultimate openness of it, but I must admit that I am
extremely excited about the direction it's taking and about the
impending release of the HTC Dream!  The new UI in the updated
emulator is very attractive and extremely responsive.  The addition of
things like StreetView to the maps in the new SDK are fantastic!  My
initial excitement in the platform is reborn!

On Fri, Aug 29, 2008 at 2:11 PM, Vasanth Sridharan
[EMAIL PROTECTED] wrote:
 Hi all,
 My name is Vasanth Sridharan and I'm working on a story for Silicon Alley
 Insider (www.alleyinsider.com) about Android Developers and what the general
 feeling from the group is as we near the launch date.

 There have been a lot of updates over the last week or so that have seemed
 to address a lot of the concerns that developers have had with the platform
 (the new SDK, the preview of Android Market, the announcement of the ADC I
 winners). So my question is, are developers excited about Android again? Is
 there still a lot of worry going into the first launch? Or, conversely, have
 you never been been worried about the platform?

 I know there are still some outstanding issues, like the Bluetooth API, so
 how important are those?

 Thanks,
 Vasanth

 --
 Vasanth Sridharan
 Reporter
 Silicon Alley Insider
 C: (408) 455-2254
 http://www.alleyinsider.com
 http://www.vasanthsridharan.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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: StackOverflowError when clearing and refocusing a ghosted text view

2008-08-29 Thread Cheryl Sedota

Oh!  Thanks, Romain :)

On Aug 28, 5:28 pm, Romain Guy [EMAIL PROTECTED] wrote:
 The ghost text you are talking about is called hint in TextView/EditText.



 On Thu, Aug 28, 2008 at 3:19 PM, Cheryl Sedota [EMAIL PROTECTED] wrote:

  I am getting a StackOverflowError when I try to clear a ghosted text
  view's focus - see below.  I have gotten this error in the past when
  my UI layout hierarchy was very deep but in this case it's not
  extremely deep.  Is there an alternate way I can clear focus from a
  field and update the ghost text of the newly focused view without
  incurring this large overhead?

  On a side note, do you plan on exposing the ghost text functionality
  that can be seen since m5 in the contact details screen?

  Thanks,
  Cheryl

  08-28 15:25:34.502: WARN/dalvikvm(450): threadid=3: thread exiting
  with uncaught exception (group=0x40010e28) 08-28 15:25:34.512: ERROR/
  AndroidRuntime(450): Uncaught handler: thread main exiting due to
  uncaught exception 08-28 15:25:34.562: ERROR/AndroidRuntime(450):
  java.lang.StackOverflowError08-28 15:25:34.562: ERROR/
  AndroidRuntime(450):     at
  java.lang.NullPointerException.init(NullPointerException.java:34)
  08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.os.MessageQueue.removeMessages(MessageQueue.java:279) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.os.Handler.removeCallbacks(Handler.java:299) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.widget.TextView.makeBlink(TextView.java:4261) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.widget.TextView.access$800(TextView.java:149) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at android.widget.TextView
  $ChangeWatcher.spanChange(TextView.java:4202) 08-28 15:25:34.562:
  ERROR/AndroidRuntime(450):     at android.widget.TextView
  $ChangeWatcher.onSpanAdded(TextView.java:4241) 08-28 15:25:34.562:
  ERROR/AndroidRuntime(450):     at
  android.text.SpannableStringBuilder.sendSpanAdded(SpannableStringBuilder.java:
  902) 08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:
  607) 08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:
  510) 08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.text.Selection.setSelection(Selection.java:76) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.text.Selection.setSelection(Selection.java:85) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.text.method.ArrowKeyMovementMethod.initialize(ArrowKeyMovementMethod.java:
  228) 08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.widget.TextView.setText(TextView.java:2221) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.widget.TextView.setText(TextView.java:2117) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.widget.EditText.setText(EditText.java:72) 08-28 15:25:34.562:
  ERROR/AndroidRuntime(450):     at
  android.widget.TextView.setText(TextView.java:2093) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  com.frogdesign.common.ui.text.GhostedEditText
  $OnFocusChangeListener.onFocusChange(GhostedEditText.java:230) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.View.onFocusChanged(View.java:2302) 08-28 15:25:34.562:
  ERROR/AndroidRuntime(450):     at
  android.widget.TextView.onFocusChanged(TextView.java:4323) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.View.handleFocusGainInternal(View.java:2144) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.View.requestFocus(View.java:3021) 08-28 15:25:34.562:
  ERROR/AndroidRuntime(450):     at
  android.widget.ScrollView.onRequestFocusInDescendants(ScrollView.java:
  1064) 08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.requestFocus(ViewGroup.java:937) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:978)
  08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.requestFocus(ViewGroup.java:934) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:978)
  08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.requestFocus(ViewGroup.java:934) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:978)
  08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.requestFocus(ViewGroup.java:934) 08-28
  15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:978)
  08-28 15:25:34.562: ERROR/AndroidRuntime(450):     at
  android.view.ViewGroup.requestFocus(ViewGroup.java:934) 08-28
  15:25:34.562: 

[android-developers] Send SMS from one emulator instance to another

2008-08-29 Thread Devesh

Hi,
I have read many posts on the Android developers forum, however, I am
not able to resolve the problem.

I am trying to send SMS text message from one emulator instance to
another emulator instance on the same machine, but the second emulator
instance does not display the text message. If however, I use the
telnet window and send sms from there, the second emulator instance
displays the text message.
In the first emulator instance, I am using this code:-

SmsManager sm = SmsManager.getDefault();
sm.sendTextMessage(, null, Hello world, null, null, null);

where the first parameter is the sendTo address, which is actually the
port# on which the second emulator is running.
I have used several options on this parameter value, such as the
device name emulator-tcp- and even the telnet port#  5554.
However, the second emulator instance just does not display the text
message sent from the first emulator instance.

Following is the manifest of the sms sender activity:-
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.orange.mobicomm.sms
uses-permission android:name=android.permission.SEND_SMS /
uses-permission android:name=android.permission.WRITE_SMS /
application android:icon=@drawable/icon
activity android:name=.SMSSenderActivity
android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
/manifest

-Devesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] I2C Devices

2008-08-29 Thread Naitik

I am trying to write a driver for a I2C chip. I did insmod on my
driver from android shell, I can see the printk in the init getting
executed.

To my understanding...
What init does is, it calls i2c_add_driver(x); to register my
driver with i2c core.

Upon registration i2c core should find a i2c adapter, if it finds
adapter, it should invoke attach function that was part of the
i2c_driver struct.

attach function should look for the device(address) on the i2c but via
I2c Adapter, it finds a device at the address that its looking for, it
should then invoke the probe and let the fun begin...

But I dont see a printk inside my attach function getting executed,
which prompts to suspect that kernel is not detecting any simulated
i2c adapter...

Can you please comment.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Send SMS from one emulator instance to another

2008-08-29 Thread Megha Joshi
Please reference the SMSTest sample app uploaded in the Files section. It
shows how to send SMS between two emulators using SMSManager APIs:
http://groups.google.com/group/android-developers/files


2008/8/29 Devesh [EMAIL PROTECTED]


 Hi,
 I have read many posts on the Android developers forum, however, I am
 not able to resolve the problem.

 I am trying to send SMS text message from one emulator instance to
 another emulator instance on the same machine, but the second emulator
 instance does not display the text message. If however, I use the
 telnet window and send sms from there, the second emulator instance
 displays the text message.
 In the first emulator instance, I am using this code:-

 SmsManager sm = SmsManager.getDefault();
 sm.sendTextMessage(, null, Hello world, null, null, null);

 where the first parameter is the sendTo address, which is actually the
 port# on which the second emulator is running.
 I have used several options on this parameter value, such as the
 device name emulator-tcp- and even the telnet port#  5554.
 However, the second emulator instance just does not display the text
 message sent from the first emulator instance.

 Following is the manifest of the sms sender activity:-
 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.orange.mobicomm.sms
uses-permission android:name=android.permission.SEND_SMS /
uses-permission android:name=android.permission.WRITE_SMS /
application android:icon=@drawable/icon
activity android:name=.SMSSenderActivity
 android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
 /manifest

 -Devesh

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I2C Devices

2008-08-29 Thread Yalcin Akdogan
Hi Naitik,

device driver and low level stuff is discussed in Google-Android-Internals 
group. hier is the link:
http://groups.google.com/group/android-internals?hl=en

Regards, 
Yalcin
  - Original Message - 
  From: Naitik 
  To: Android Developers 
  Sent: Friday, August 29, 2008 6:47 PM
  Subject: [android-developers] I2C Devices



  I am trying to write a driver for a I2C chip. I did insmod on my
  driver from android shell, I can see the printk in the init getting
  executed.

  To my understanding...
  What init does is, it calls i2c_add_driver(x); to register my
  driver with i2c core.

  Upon registration i2c core should find a i2c adapter, if it finds
  adapter, it should invoke attach function that was part of the
  i2c_driver struct.

  attach function should look for the device(address) on the i2c but via
  I2c Adapter, it finds a device at the address that its looking for, it
  should then invoke the probe and let the fun begin...

  But I dont see a printk inside my attach function getting executed,
  which prompts to suspect that kernel is not detecting any simulated
  i2c adapter...

  Can you please comment.

  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] API Call Management: Issues 54 and 675

2008-08-29 Thread Raymond C. Rodgers

Hi folks,
 Has any one gotten an API solution to reject and/or terminate calls as 
described in issues #54 and 675? Both of these items have been reviewed 
and accepted, but it doesn't appear that an engineer has been assigned 
to either one.

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

 I suppose there might be security issues posed by these, after all a 
malicious application could then intercept calls and hold a phone 
hostage, but there are legitimate reasons for providing this 
functionality as well. Any comments from the Google folks?

Thanks,
Raymond

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to re-use the photo picker activity in my application

2008-08-29 Thread Cheryl Sedota

Hi, I have some code that attempts to invoke the photo picker activity
for result.  I can successfully launch the photo picker activity, but
my activity does not receive a result at all (onActivityResult() is
never called).  Can anyone help?  Thanks!!! - Cheryl

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

Button button = (Button) findViewById(R.id.pick_button);
button.setOnClickListener(new View.OnClickListener()
{

@Override
public void onClick(View view)
{
Log.i(TAG, Trying to start the photo picker
activity);

Intent photoPickerIntent = new
Intent(Intent.ACTION_PICK);
// Intent photoPickerIntent = new
// Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType(image/*);
startActivityForResult(photoPickerIntent, 1);

}
});
 }

@Override
protected void onActivityResult(int i, int j, Intent intent)
{
super.onActivityResult(i, j, intent);

// TODO: figure out why this method never gets invoked
Log.i(TAG, Got the result:  + intent.getDataString());
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Can bind service in a tabspec view activity?

2008-08-29 Thread marielisacr


Hi, I have the same problem, I didn't realize what was happen till I
read your post, so thanks so much.

How can I do to make it works even in a tabspec? Is there a way?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ddms Error

2008-08-29 Thread Megha Joshi
 When you post a problem/question, it is *very important* that you give a
detailed description of what the issue is. You should try to include details
like:

 Steps you followed
 Operating System
 Sdk version
 Logcat output
 Sample code ( preferably the code should compile and be executable as is)

 Posts with such detailed information will generally be reviewed quicker
than posts without it.


2008/8/29 Dipen [EMAIL PROTECTED]


 Group,

 I have not seen any reply regarding these error. I have seen entries
 in some of the blogs from Developers for months and no solution have
 been reported by Google Android Team.

 Finally,  I have solution with help of my very smart friend and Co-
 worker Enrique Sanchez.

 Here is how to solve the error:

 1. Download a file named 'swt-M20060629-1905-gtk-linux-x86_64'. I
 could not upload file to these blog. So the easiest way is to just
 Google it.
 2. Unzip it and replace it to your android's tools/lib folder.
 3. Done.

 Again many thanks to Enrique.

 Thanks,
 Dipen


 On Aug 28, 11:11 am, Dipen [EMAIL PROTECTED] wrote:
  Hi, Group !
 
  How do i resolve following ddms error?
 
  09:08 E/ddms: shutting down due to uncaught exception
  09:08 E/ddms: java.lang.UnsatisfiedLinkError: /home/fdd001/android/
  android-sdk-linux_x86-0.9_beta/tools/lib/libswt-pi-gtk-3232.so: /home/
  fdd001/android/android-sdk-linux_x86-0.9_beta/tools/lib/libswt-pi-
  gtk-3232.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture
  word width mismatch)
  at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660)
  at java.lang.Runtime.loadLibrary0(Runtime.java:823)
  at java.lang.System.loadLibrary(System.java:1030)
  at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
  at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
  at
 org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
  at
 org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
  at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
  at com.android.ddms.UIThread.runUI(UIThread.java:325)
  at com.android.ddms.Main.main(Main.java:97)
 
  Thanks,DipenDalal
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Create a tmp file

2008-08-29 Thread barbapapaz

Hello

in my application to download file I create a tmp file. Before sdk 0.9
used :

File temp = File.createTempFile(spherencyfile, );

now in sdk 0.9 this line caght an exception and I have this line in
logcat
08-29 18:43:49.018: ERROR/FileDownload(7040): error: Cannot create: /
sdcard/spherencyfile49726
08-29 18:43:49.018: ERROR/FileDownload(7040): java.io.IOException:
Cannot create: /data/local/tmp/spherencyfile49726
08-29 18:43:49.018: ERROR/FileDownload(7040): at
java.io.File.createNewFile(File.java:1133)
08-29 18:43:49.018: ERROR/FileDownload(7040): at
java.io.File.createTempFile(File.java:1189)
08-29 18:43:49.018: ERROR/FileDownload(7040): at
com.spherency.filetransfer.FileDownload.run(FileDownload.java:54)

I don't understand why he writes in sdcard. Before he writes in tmp
dir.

I have try another prototype of createTempFile to specify a base
directory, but i have same problem

Do you have an idea?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ddms Error

2008-08-29 Thread Dipen

Hi, Megha !

Thanks for the advice and I will sure keep that in mind.

I did not see those sort of information relevant since the issue was
regarding ddms only.

Once again thanks for the support and I apologize for
misunderstanding.

Dipen


On Aug 29, 5:31 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  When you post a problem/question, it is *very important* that you give a
 detailed description of what the issue is. You should try to include details
 like:

  Steps you followed
  Operating System
  Sdk version
  Logcat output
  Sample code ( preferably the code should compile and be executable as is)

  Posts with such detailed information will generally be reviewed quicker
 than posts without it.

 2008/8/29 Dipen [EMAIL PROTECTED]



  Group,

  I have not seen any reply regarding these error. I have seen entries
  in some of the blogs from Developers for months and no solution have
  been reported by Google Android Team.

  Finally,  I have solution with help of my very smart friend and Co-
  worker Enrique Sanchez.

  Here is how to solve the error:

  1. Download a file named 'swt-M20060629-1905-gtk-linux-x86_64'. I
  could not upload file to these blog. So the easiest way is to just
  Google it.
  2. Unzip it and replace it to your android's tools/lib folder.
  3. Done.

  Again many thanks to Enrique.

  Thanks,
  Dipen

  On Aug 28, 11:11 am, Dipen [EMAIL PROTECTED] wrote:
   Hi, Group !

   How do i resolve following ddms error?

   09:08 E/ddms: shutting down due to uncaught exception
   09:08 E/ddms: java.lang.UnsatisfiedLinkError: /home/fdd001/android/
   android-sdk-linux_x86-0.9_beta/tools/lib/libswt-pi-gtk-3232.so: /home/
   fdd001/android/android-sdk-linux_x86-0.9_beta/tools/lib/libswt-pi-
   gtk-3232.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture
   word width mismatch)
           at java.lang.ClassLoader$NativeLibrary.load(Native Method)
           at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
           at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1660)
           at java.lang.Runtime.loadLibrary0(Runtime.java:823)
           at java.lang.System.loadLibrary(System.java:1030)
           at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
           at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
           at
  org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
           at
  org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
           at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
           at com.android.ddms.UIThread.runUI(UIThread.java:325)
           at com.android.ddms.Main.main(Main.java:97)

   Thanks,DipenDalal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Create a tmp file

2008-08-29 Thread hackbod

We don't recommend using File.createTempFile().  It is preferred that
you use the Context APIs to create files in your local filesystem
sandbox.

Temp files are no longer created in /tmp because we only have a
limited amount of space, and want to be able to account and manager
for the storage used for each application, which is why you are only
allowed to write in your sandbox.  (In fact I think /tmp may have been
a RAM file system in M5, which obviously is not something we want
applications making use of like that.)

On Aug 29, 2:48 pm, barbapapaz [EMAIL PROTECTED] wrote:
 Hello

 in my application to download file I create a tmp file. Before sdk 0.9
 used :

 File temp = File.createTempFile(spherencyfile, );

 now in sdk 0.9 this line caght an exception and I have this line in
 logcat
 08-29 18:43:49.018: ERROR/FileDownload(7040): error: Cannot create: /
 sdcard/spherencyfile49726
 08-29 18:43:49.018: ERROR/FileDownload(7040): java.io.IOException:
 Cannot create: /data/local/tmp/spherencyfile49726
 08-29 18:43:49.018: ERROR/FileDownload(7040):     at
 java.io.File.createNewFile(File.java:1133)
 08-29 18:43:49.018: ERROR/FileDownload(7040):     at
 java.io.File.createTempFile(File.java:1189)
 08-29 18:43:49.018: ERROR/FileDownload(7040):     at
 com.spherency.filetransfer.FileDownload.run(FileDownload.java:54)

 I don't understand why he writes in sdcard. Before he writes in tmp
 dir.

 I have try another prototype of createTempFile to specify a base
 directory, but i have same problem

 Do you have an idea?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PACKAGE_ADDED

2008-08-29 Thread hackbod

This is the way it will behave for 1.0.  We deliberately don't allow
the application to be involved in installation, so the system can take
care of everything and be able to completely clean up after the app is
removed.  You can do your initialization the first time the user
starts the app.

For updating, this is effectively a complete uninstall and then
reinstall of the app, just leaving its previous data around.  As such,
updating is the same as installing.  The user needs to be involved in
the update process anyway, so we expect them to go through the same
steps of updating, and then running the app as desired, and you can re-
initialize there.

Anyway, as I say this is the way it is for 1.0.  We certainly may
tweak things in future releases as we see what apps want to do and
what makes sense (and as the marketplace app evolves), but have no
plans at this point.

On Aug 29, 10:36 am, viktor [EMAIL PROTECTED] wrote:
 Let's continue this discussion:

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

 The PACKAGE_ADDED broadcast is not received by the installed (added)
 package anymore (SDK 0.9).

 This was the only way to let an application to execute a piece of code
 when it is installed on the phone.

 This feature is especially important when an application is
 reinstalled. Our app needs a service to be running. We use
 BOOT_COMPLETED event to start the service when the device boots up.

 As expected, Android kills the service before an app is reinstalled.
 But in SDK 0.9, there is no way to start the service after the new
 version of the app is installed. I hope this will be addressed in 1.0.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Database - Content Provider - Syncable

2008-08-29 Thread Yalcin

My application has a content provider, which operates on a database
with 4 tables. I want to make them synchable.

What are the steps? any help or reference welcome !

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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to re-use the photo picker activity in my application

2008-08-29 Thread Megha Joshi
Did you launch this with sdcard installed? Are there any Pictures in your
Pictures app?

If not, you should install sdcard, take pictures from the Camera app and
then try app.
I tried executing your code and onActivityResult() is being called. I tested
it on Linux, but the OS shouldn't matter in this case.
When your app launches the Pictures application, pick a picture and you
should see the logcat output of Got the result...

2008/8/29 Cheryl Sedota [EMAIL PROTECTED]


 Hi, I have some code that attempts to invoke the photo picker activity
 for result.  I can successfully launch the photo picker activity, but
 my activity does not receive a result at all (onActivityResult() is
 never called).  Can anyone help?  Thanks!!! - Cheryl

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

Button button = (Button) findViewById(R.id.pick_button);
button.setOnClickListener(new View.OnClickListener()
{

@Override
public void onClick(View view)
{
Log.i(TAG, Trying to start the photo picker
 activity);

Intent photoPickerIntent = new
 Intent(Intent.ACTION_PICK);
// Intent photoPickerIntent = new
// Intent(Intent.ACTION_GET_CONTENT);
photoPickerIntent.setType(image/*);
startActivityForResult(photoPickerIntent, 1);

}
});
 }

@Override
protected void onActivityResult(int i, int j, Intent intent)
{
super.onActivityResult(i, j, intent);

// TODO: figure out why this method never gets invoked
Log.i(TAG, Got the result:  + intent.getDataString());
}

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-08-29 Thread Megha Joshi
The getScale() API was removed from BaseAdapter, because now the Gallery
widget does not support scaling the focussed item in relation to the other
items.
No replacement was added. It is recommended that you don't alter the
standard behavior of the Gallery widget.
Is there any particular reason you want to do this?

2008/8/29 blim [EMAIL PROTECTED]


 What should we use to replace getScale from BaseAdapter, which has
 been deprecated in 0.9?  I'm trying to use this to scale images in a
 Gallery view in relation to which item is currently in focus.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Database - Content Provider - Syncable

2008-08-29 Thread Megha Joshi
2008/8/29 Yalcin [EMAIL PROTECTED]


 My application has a content provider, which operates on a database
 with 4 tables. I want to make them synchable.


Could you clarify this a bit more...an example of what your are trying to do
will be nice...
If  you meant synchable as in they should have the same data then thats
always the case, because your content provider is querying the underlying
database.


 What are the steps? any help or reference welcome !

 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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 'adb wait-for-device' does not work in beta SDK

2008-08-29 Thread Brett Chabot

Hi Cheryl:

I think  'wait-for-device' sort of works :). For instance, this
command works for me:

adb wait-for-device shell getprop

However, when I attempt to use 'adb wait-for-device install', I see
the same error as you. It seems wait-for-device only waits long enough
for device to come online, but not long enough for the whole system to
fully boot.

Thanks for the report, I've filed a bug on your behalf here:
http://code.google.com/p/android/issues/detail?id=842

Regards,
Brett.

On Aug 28, 4:04 pm, Cheryl Sedota [EMAIL PROTECTED] wrote:
 The 'wait-for-device' adb flag does not work in the beta SDK... I try
 executing this:

 adb wait-for-device shell am start -a android.intent.action.MAIN -n
 com.frogdesign.sampleapp/com.frogdesign.sampleapp.MyActivity

 ... and I get this:

 Error type 2
 Error: Unable to connect to activity manager; is the system running?

 usage: am [start|broadcast|instrument]
am start -D INTENT
am broadcast INTENT
am instrument [-r] [-e ARG_NAME ARG_VALUE] [-p PROF_FILE]
 [-w] COMPONENT

INTENT is described with:
 [-a ACTION] [-d DATA_URI] [-t MIME_TYPE]
 [-c CATEGORY [-c CATEGORY] ...]
 [-e|--es EXTRA_KEY EXTRA_STRING_VALUE ...]
 [--ez EXTRA_KEY EXTRA_BOOLEAN_VALUE ...]
 [-e|--ei EXTRA_KEY EXTRA_INT_VALUE ...]
 [-n COMPONENT] [URI]

 and also this when i try to wait before installing an app:

 adb wait-for-device install .\MyApp.apk
 1525 KB/s (0 bytes in 2071216.001s)
 Error Type 1: Could not access the Package Manager!
 usage: pm [list|path|install|uninstall]
pm list packages [-f]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm path PACKAGE
pm install [-l] [-r] PATH
pm uninstall [-k] PACKAGE

 Please advise.  I think this should work per the documentation 
 here:http://code.google.com/android/reference/adb.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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] 'Keytool error' when building

2008-08-29 Thread David Given
I have just upgraded from m5 to 0.9 on Linux using the ADT on Eclipse
3.4, and (after fixing my program) I am finding that it's refusing to
build anything. The project I'm using was created on m5 and I'm now
using it on 0.9.

I get the following in the Problem pane:

Type: Generic ADT Problem
Location: Unknown
Description: Error generating final archive: null

...and the following is appearing in the console:

Signing Key Creation: keytool error: java.lang.IllegalArgumentException:
java.io.IOException: Invalid char:

(There are two spaces after 'char:'.)

Once at this point, the ADT seems to think everything is fine; but my
.apk hasn't been created and attempting to run the program fails (of
course). I have to manually clean the project to make anything happen again.

I've deleted my ~/.android directory as per recommendations, but it has
no effect. I suspect Eclipse has something confused somewhere as part of
the upgrade process; the Build Configurations menu appears greyed out,
which disturbs me slightly (shouldn't I be able to select between
Release and Debug)?

Any suggestions?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ All power corrupts, but we need electricity. --- Diana Wynne Jones,
│ _Archer's Goon_



signature.asc
Description: OpenPGP digital signature


[android-developers] Re: Database - Content Provider - Syncable

2008-08-29 Thread Yalcin

Hi,
the idea is to have two databases, one on android device and another
on a server.
databases and there tables can be populated with new data either on
android device or on server.

Use case:
user can add through UI (email, sms, mms) new data to the tables and
populate them on android device.

Use case:
user has the intention to sync android device database with the Server
database.

Use case:
User has a similar application on Server and new added data on the
server database will be syncronized with android device database.

thanks.

On Aug 30, 12:59 am, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/8/29 Yalcin [EMAIL PROTECTED]



  My application has a content provider, which operates on a database
  with 4 tables. I want to make them synchable.

 Could you clarify this a bit more...an example of what your are trying to do
 will be nice...
 If  you meant synchable as in they should have the same data then thats
 always the case, because your content provider is querying the underlying
 database.

  What are the steps? any help or reference welcome !

  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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta?

2008-08-29 Thread Romain Guy

Note that you can build your own replacement by creating a subclass of
a ViewGroup and enabling support for children static transformations.

On Fri, Aug 29, 2008 at 3:50 PM, Megha Joshi [EMAIL PROTECTED] wrote:
 The getScale() API was removed from BaseAdapter, because now the Gallery
 widget does not support scaling the focussed item in relation to the other
 items.
 No replacement was added. It is recommended that you don't alter the
 standard behavior of the Gallery widget.
 Is there any particular reason you want to do this?

 2008/8/29 blim [EMAIL PROTECTED]

 What should we use to replace getScale from BaseAdapter, which has
 been deprecated in 0.9?  I'm trying to use this to scale images in a
 Gallery view in relation to which item is currently in focus.




 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Database - Content Provider - Syncable

2008-08-29 Thread Megha Joshi
Android framework does not provide any inbuilt service to sync your app's
database with with a network database.
You could use the the HttpClient library to communicate with the
Server...apart from the the sync logic is something you will have
to design ...sorry I can't help much there...

2008/8/29 Yalcin [EMAIL PROTECTED]


 Hi,
 the idea is to have two databases, one on android device and another
 on a server.
 databases and there tables can be populated with new data either on
 android device or on server.

 Use case:
 user can add through UI (email, sms, mms) new data to the tables and
 populate them on android device.

 Use case:
 user has the intention to sync android device database with the Server
 database.

 Use case:
 User has a similar application on Server and new added data on the
 server database will be syncronized with android device database.

 thanks.

 On Aug 30, 12:59 am, Megha Joshi [EMAIL PROTECTED] wrote:
  2008/8/29 Yalcin [EMAIL PROTECTED]
 
 
 
   My application has a content provider, which operates on a database
   with 4 tables. I want to make them synchable.
 
  Could you clarify this a bit more...an example of what your are trying to
 do
  will be nice...
  If  you meant synchable as in they should have the same data then thats
  always the case, because your content provider is querying the underlying
  database.
 
   What are the steps? any help or reference welcome !
 
   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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 'Keytool error' when building

2008-08-29 Thread Yalcin

I can remember similar problem on my installation.
did you get the newest ADT?
ADT-0.7.1.zip
hier ist the link:
http://code.google.com/android/adt_download.html

---

On Aug 30, 1:15 am, David Given [EMAIL PROTECTED] wrote:
 I have just upgraded from m5 to 0.9 on Linux using the ADT on Eclipse
 3.4, and (after fixing my program) I am finding that it's refusing to
 build anything. The project I'm using was created on m5 and I'm now
 using it on 0.9.

 I get the following in the Problem pane:

 Type: Generic ADT Problem
 Location: Unknown
 Description: Error generating final archive: null

 ...and the following is appearing in the console:

 Signing Key Creation: keytool error: java.lang.IllegalArgumentException:
 java.io.IOException: Invalid char:

 (There are two spaces after 'char:'.)

 Once at this point, the ADT seems to think everything is fine; but my
 .apk hasn't been created and attempting to run the program fails (of
 course). I have to manually clean the project to make anything happen again.

 I've deleted my ~/.android directory as per recommendations, but it has
 no effect. I suspect Eclipse has something confused somewhere as part of
 the upgrade process; the Build Configurations menu appears greyed out,
 which disturbs me slightly (shouldn't I be able to select between
 Release and Debug)?

 Any suggestions?

 --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ All power corrupts, but we need electricity. --- Diana Wynne Jones,
 │ _Archer's Goon_

  signature.asc
  1KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Where to download icons?

2008-08-29 Thread april

I am developing a multimedia application. I found the most difficult
things is to create nice icons for the application. It took me a lot
of time just for an ugly icon:)  I have to give up for create icon by
myself.

Can you give me some suggestion on where to download some nice icons?

Thanks!

April
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Top 10 Winner Looking to Build New Team for Challenge II

2008-08-29 Thread Chris

Our team, Life360, wants to get an early start on our entry for the
second competition.

We are in this to win it, so we are only interested in experienced
coders who can dedicate some real time to building our next app.

Email [EMAIL PROTECTED] if you are interested.  Please include a few
sentences on the depth and content of your Android experiences.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Custom Components in a different package?

2008-08-29 Thread Brad Larson

Hackbod, is there plans to add shared library features in the future?

On Aug 28, 5:39 pm, hackbod [EMAIL PROTECTED] wrote:
 Correct, we don't support shared libraries in 1.0.  If you want to
 directly link against a class, you'll need to build it directly in to
 each .apk that links with it.

 On Aug 28, 3:02 pm, Jey [EMAIL PROTECTED] wrote:

  Thanks Brad.  Thats my understanding, that we cannot share jar files.
  I thought you had(cked) a way to pass jar files to dx, which I could
  follow.
  Never mind.

  thanks for the response,
  -Jey

  On Aug 28, 10:58 am, Brad Larson [EMAIL PROTECTED] wrote:

   I was able to get it working in Eclipse by setting my project to
   include the source from the library project.  I was never able to get
   it to work if I used .jar files.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] inserting email address into ContactMethods table in 0.9 beta

2008-08-29 Thread kingkung

For whatever reason, I'm having trouble inserting email addresses into
the ContactMethods table in 0.9... the code worked perfectly fine in
m5.

The insert() call is successful (no exception), but it consistently
says that 0 rows have been inserted.  These are the values that I set
in my ContentValues object:

cv = new ContentValues();
cv.put(ContactMethods.KIND,KIND_EMAIL); //KIND_EMAIL is an integer (1)
cv.put(ContactMethods.PERSON_ID, ac.mobileID); //long
cv.put(ContactMethods.DATA, email.value); //string
cv.put(ContactMethods.TYPE, email.type); //integer btwn 0-3
int rows =
context.getContentResolver().bulkInsert(getMethodUri(personUri),generateAddressCVarray(ac));
Logger.log(rows);

private static Uri getMethodUri(Uri contactUri)
{
return
contactUri.buildUpon().appendPath(ContactMethods.CONTENT_URI.getLastPathSegment()).build();
}

Is there something I'm missing or something else that I need to set?
As I said before, this worked perfectly fine in m5.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: inserting email address into ContactMethods table in 0.9 beta

2008-08-29 Thread kingkung

Slightly confusing code... the ContentValues properties (below) are
set in the method generateAddressCVarray(), which generates an array
of CVs for each email address...

cv = new ContentValues();
cv.put(ContactMethods.KIND,KIND_EMAIL); //KIND_EMAIL is an integer (1)
cv.put(ContactMethods.PERSON_ID, ac.mobileID); //long
cv.put(ContactMethods.DATA, email.value); //string
cv.put(ContactMethods.TYPE, email.type); //integer btwn 0-3

...

The following line is then called for a bulkInsert... and the rows
always come out as 0.  Even if I insert them one at a time, I get the
same result.

int rows =
context.getContentResolver().bulkInsert(getMethodUri(personUri),generateAddressCVarray(ac));
Logger.log(rows);

private static Uri getMethodUri(Uri contactUri)
{
  return
contactUri.buildUpon().appendPath(ContactMethods.CONTENT_URI.getLastPathSegment()).build();
}

Can anyone 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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: inserting email address into ContactMethods table in 0.9 beta

2008-08-29 Thread Jeff Hamilton

Does anything show up in the log when you see the failure?

-Jeff

On Fri, Aug 29, 2008 at 6:50 PM, kingkung [EMAIL PROTECTED] wrote:

 Slightly confusing code... the ContentValues properties (below) are
 set in the method generateAddressCVarray(), which generates an array
 of CVs for each email address...

 cv = new ContentValues();
 cv.put(ContactMethods.KIND,KIND_EMAIL); //KIND_EMAIL is an integer (1)
 cv.put(ContactMethods.PERSON_ID, ac.mobileID); //long
 cv.put(ContactMethods.DATA, email.value); //string
 cv.put(ContactMethods.TYPE, email.type); //integer btwn 0-3

 ...

 The following line is then called for a bulkInsert... and the rows
 always come out as 0.  Even if I insert them one at a time, I get the
 same result.

 int rows =
 context.getContentResolver().bulkInsert(getMethodUri(personUri),generateAddressCVarray(ac));
 Logger.log(rows);

 private static Uri getMethodUri(Uri contactUri)
 {
   return
 contactUri.buildUpon().appendPath(ContactMethods.CONTENT_URI.getLastPathSegment()).build();
 }

 Can anyone 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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Top 10 Winner Looking to Build New Team for Challenge II

2008-08-29 Thread Chris

Here is a good overview of our Round I entry:

http://venturebeat.com/2008/08/29/life360-wins-the-android-challenge-has-big-aspirations-but-has-yet-to-see-an-android-phone/

On Aug 29, 5:50 pm, Chris [EMAIL PROTECTED] wrote:
 Our team, Life360, wants to get an early start on our entry for the
 second competition.

 We are in this to win it, so we are only interested in experienced
 coders who can dedicate some real time to building our next app.

 Email [EMAIL PROTECTED] if you are interested.  Please include a few
 sentences on the depth and content of your Android experiences.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---