[android-developers] Album Art

2008-12-27 Thread Protocol-X

Does anyone have a working Example of ALBUM_ART,  I have tried every
example out there and cannot find any that actually retreive the art.
the Lack of support on googles behalf on issues seems to be getting
greater as well
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Context menu can't be create on MapView.

2008-12-27 Thread honglian...@gmail.com

hi Guillaume
I got it. Thanks for your valuable response. I also implemented it
in overlay.

On 12月27日, 上午12时06分, Guillaume Perrot guillaume.p...@gmail.com
wrote:
 I realized I was calling myself openContextMenu in my code, for tap events
 on overlays...
 I don't know how to handle long clicks on the map, sorry.

 2008/12/26 honglian...@gmail.com honglian...@gmail.com







  hi Guillaume
 it seems I can't still work it out. log click got no response as
  before. below is the code and xml files.
  package android.demo;
  import com.google.android.maps.MapActivity;
  import android.os.Bundle;
  import com.google.android.maps.MapView;
  import android.view.ContextMenu;
  import android.view.KeyEvent;
  import android.view.View;
  import android.util.*;
  public class demo extends MapActivity {
 /** Called when the activity is first created. */
 MapView mapView;
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 mapView = (MapView) findViewById(R.id.mapview1);
 // We also want to show context menu for longpressed items in
  the gallery
   //init the map view
  mapView.setLongClickable(true);
  registerForContextMenu(mapView);

 }

 public void onCreateContextMenu(ContextMenu menu, View v,
  ContextMenu.ContextMenuInfo menuInfo) {
   menu.setHeaderTitle(Menu);
   menu.add(0, 1, 0, Add);
   menu.add(0, 2, 0, Delete);
   menu.add(0, 3, 0, Edit);
}
 public boolean onKeyDown(int keyCode, KeyEvent event) {
 if (keyCode == KeyEvent.KEYCODE_Z) {
 mapView.getController().zoomIn();
 return true;
 } else if (keyCode == KeyEvent.KEYCODE_X) {
 mapView.getController().zoomOut();
 return true;
 }

 return super.onKeyDown(keyCode, event);
  }

 @Override
 protected boolean isRouteDisplayed() {
 // TODO Auto-generated method stub
 return false;
 }
  }

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

 com.google.android.maps.MapView
  android:id=@+id/mapview1
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:enabled=true
 android:longClickable=true
 android:clickable=true
 android:apiKey=0xliHXBcaVPd0uSCbaQpTRJRFCgsjKu7z0Gsjsw /

  /LinearLayout

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
   package=android.demo
   android:versionCode=1
   android:versionName=1.0.0
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION/uses-
  permission

   uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
  permission
   uses-permission android:name=android.permission.INTERNET/
  uses-permission

 application android:icon=@drawable/icon android:label=@string/
  app_name
   uses-library android:name=com.google.android.maps /

 activity android:name=.demo
   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

  On 12月26日, 下午9时56分, Guillaume Perrot guillaume.p...@gmail.com
  wrote:
   I have the same kind of code, which is working though.
   The key difference may be that I call mapView.setLongClickable(true); you
   should try it.

   2008/12/26 honglian...@gmail.com honglian...@gmail.com

hi Guillaume
   Thanks for your response. I tried to override the
onCreateContextMenu directly in MapActivity. The result is the same as
the above. Below is the source code.
package android.demo;
import com.google.android.maps.MapActivity;
import android.os.Bundle;
import com.google.android.maps.MapView;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.View;
import android.util.*;
public class demo extends MapActivity {
   /** Called when the activity is first created. */
   MapView mapView;
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   mapView = (MapView) findViewById(R.id.mapview1);
   // We also want to show context menu for longpressed items in
the gallery
 //init the map view
   registerForContextMenu(mapView);

   }
   public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenu.ContextMenuInfo menuInfo) 

[android-developers] Get Email log

2008-12-27 Thread ena


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



[android-developers] Re: Charge for Apps (What will Happen?)

2008-12-27 Thread Al Sutton

No plans on the implementation of charging have been released.

The Marketplace TCs state you can't charge for content users have 
obtained for free, so the user who have the free apps will still have 
the free apps and any attempt to charge for them will probably see your 
Market account suspended.

If you're looking to use a 3rd party payment system with Market you'll 
most likley see your application suspended 
(http://groups.google.com/group/android-developers/browse_thread/thread/1f163a6a4c244c01/c62e169758fed43f)

As for other sites, AndAppStore will let you pick whichever payment 
system you'd like to use (e.g. Mogees, link to PayPal, etc.) and list 
your app, I can't speak for the others though.

Al.
http://andappstore.com/

thedailyb...@gmail.com wrote:
 What happens to free apps when Android opens up the paying
 marketplace?  In other words, if my app is free and I want to change
 it to charge , what will happen?

 Will all users who have the free app be able to use it still?

 Also, has anyone tried the current 3rd party pay sites that let you
 charge for your Android Apps?

 Do they work well?

 Thanks

 
   


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

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


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



[android-developers] Re: Charging for Apps

2008-12-27 Thread Al Sutton

If you're planning to use a 3rd Party system and distribute your app 
through Market you'll probably want to read;

http://groups.google.com/group/android-developers/browse_thread/thread/1f163a6a4c244c01/c62e169758fed43f

AndAppStore will let you list your app with a 3rd Party payment system, 
as for other sites (SlideME, Handango, etc.), you'd need to read their 
TCs to see what their view is.

Al.
http://andappstore.com/

tspree15 wrote:
 How are the 3rd party companies that let you charge for your apps.

 Do they work well?  Is it a pain for the users to pay?

 Any comments would be appreciated,

 Thanks

 
   


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

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


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



[android-developers] Re: Taking payments (google checkout)

2008-12-27 Thread Al Sutton

Early Q1 is the most accurate estimate that has been confirmed, beyond 
that it's just rumours.

Al.
http://andappstore.com/

tspree15 wrote:
 Does anyone have any updated info on when the paid marketplace will be
 active?
 I know it says Q1, but I was hoping someone had a more exact time
 frame.

 I'm waiting to release my app until we can charge.

 Thanks

 On Dec 24, 3:04 pm, Kevin kgalli...@gmail.com wrote:
   
 Its not really paying for the app itself.  The payment is for
 something you order through the app.

 You can't put that in the marketplace?  that's rough.

 On Dec 24, 11:01 am, Al Sutton a...@funkyandroid.com wrote:

 
 The rules seem to that if you list on Marketplace you can't put a
 payment system into your app (this may change when Market takes paid
 apps, but how is still unknown).
   
 There is nothing stopping you writing an app that integrates Google
 Checkout, Mogees, PayPal, or something else and distributing it through
 your website, AndAppStore, and any other distribution channel that will
 take it.
   
 Hope this is useful,
   
 Al.
   
 Kevin wrote:
   
 I don't think there is a direct tie in to google checkout on the
 platform yet.  True?  Any word on that, outside of the market place?
 I have an app that would allow the user to place an order oneline, and
 I'd rather avoid the browser if possible.  I guess I could forward the
 user to a page based on an id returned from the server, but still.
 The less typing and whatnot, the better.
 
 --
 ==
 Funky Android Limited is registered in England  Wales with the
 company number  6741909. The registered head office is Kemp House,
 152-160 City Road, London,  EC1V 2NX, UK.
   
 The views expressed in this email are those of the author and not
 necessarily those of Funky Android Limited, it's associates, or it's
 subsidiaries.
   

 
   


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

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


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



[android-developers] Re: Usability question: How is user supposed to discover the menu shortcut keys?

2008-12-27 Thread Romain Guy

Keep the menu key pressed once the menu is open.

On Sat, Dec 27, 2008 at 12:52 AM, j jac...@gmail.com wrote:

 If there are more than 6 commands, there is a More menu item added.
 Once opened, the menu list does show the key shortcuts.  But if I have
 less than 6 commands, the key shortcuts are not displayed.  How is
 user supposed to find out the menu shortcut keys?
 




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

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

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



[android-developers] Re: Having trouble getting ListView to show selected item as highlighted

2008-12-27 Thread Romain Guy

In short: you don't, you can't, you won't :)

Explanations here:
http://android-developers.blogspot.com/2008/12/touch-mode.html

On Fri, Dec 26, 2008 at 3:26 PM, Timothy DeWees whtdrgn...@gmail.com wrote:

 Hello,

 I've seen a few post on this but have never seen or understood the
 solution.  I have an application that is showing a list of items from
 a database.  I extended the CursorAdapter and added an icon in front
 of the item to easily show type.

 When I navigate the items using the track-pad, it shows the selected
 item; however, when I click the item, the selection goes away.  It's
 still there and when I use the track-pad again, it seems to be getting
 the focus back and then I can scroll.

 What I want to happen is for the list item to appear highlighted when
 I click it just like when I navigate to it with the trackpad.

 Any suggestions?

 Here are my onClick and onItemSelected:

@Override
protected void onListItemClick(ListView l, View v, int position,
 long id) {
super.onListItemClick(l, v, position, id);
setSelection(position);
movieId = id;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mDbHelper = new MoviesDbAdapter(this);
mDbHelper.open();
Button filterButton = (Button)findViewById
 (R.id.filter_button);
filterButton.setOnClickListener( new View.OnClickListener() {
public void onClick(View v){
EditText filter = 
 (EditText)findViewById(R.id.filter_text);
filterExpr = filter.getText().toString();
fillData();
}
});
getListView().setAddStatesFromChildren(false);
getListView().setItemsCanFocus(true);
getListView().setOnItemSelectedListener( new
 OnItemSelectedListener() {
public void onItemSelected(AdapterView? parent, View v, int
 possition, long id) {
v.setSelected(true);
movieId = id;
}
public void onNothingSelected(AdapterView? parent) {
parent.setSelection(-1);
}
});
fillData();
}

 




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

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

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



[android-developers] using an intent to react when an sms is sent?

2008-12-27 Thread phlogi phlog
Hi there

I'm planning to write some code that allows to send sms over a http service.

So basically I need to achieve that the current messaging application calls
a
function from my class of my appliction. Then I need to get the text and
establish a connection and so on. Furthermore I need to be able to exit my
app
if there is no internet connection - in such a case the sms should be sent
using the normal method.

For me developing on android is totally new. (I'm now at ex2 of the notepad
tutorial, and read the basic docs).

So how can I do what I would like to? Maybe someone can help me with the
basics: Lets say that a popUp is generated when an sms is sent. Will I use
an
Indent on the method of sendTextMessage ?

Thanks a lot for your help.

Cyrill Helg

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



[android-developers] Re: Context menu can't be create on MapView.

2008-12-27 Thread honglian...@gmail.com

Would you like to answer me one more question? It seems the context
menu is too broad. Would you like to let me know how to set it
wrap_content? Thank you very much.

On 12月27日, 下午4时31分, honglian...@gmail.com honglian...@gmail.com
wrote:
 hi Guillaume
 I got it. Thanks for your valuable response. I also implemented it
 in overlay.

 On 12月27日, 上午12时06分, Guillaume Perrot guillaume.p...@gmail.com
 wrote:



  I realized I was calling myself openContextMenu in my code, for tap events
  on overlays...
  I don't know how to handle long clicks on the map, sorry.

  2008/12/26 honglian...@gmail.com honglian...@gmail.com

   hi Guillaume
  it seems I can't still work it out. log click got no response as
   before. below is the code and xml files.
   package android.demo;
   import com.google.android.maps.MapActivity;
   import android.os.Bundle;
   import com.google.android.maps.MapView;
   import android.view.ContextMenu;
   import android.view.KeyEvent;
   import android.view.View;
   import android.util.*;
   public class demo extends MapActivity {
  /** Called when the activity is first created. */
  MapView mapView;
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  mapView = (MapView) findViewById(R.id.mapview1);
  // We also want to show context menu for longpressed items in
   the gallery
//init the map view
   mapView.setLongClickable(true);
   registerForContextMenu(mapView);

  }

  public void onCreateContextMenu(ContextMenu menu, View v,
   ContextMenu.ContextMenuInfo menuInfo) {
menu.setHeaderTitle(Menu);
menu.add(0, 1, 0, Add);
menu.add(0, 2, 0, Delete);
menu.add(0, 3, 0, Edit);
 }
  public boolean onKeyDown(int keyCode, KeyEvent event) {
  if (keyCode == KeyEvent.KEYCODE_Z) {
  mapView.getController().zoomIn();
  return true;
  } else if (keyCode == KeyEvent.KEYCODE_X) {
  mapView.getController().zoomOut();
  return true;
  }

  return super.onKeyDown(keyCode, event);
   }

  @Override
  protected boolean isRouteDisplayed() {
  // TODO Auto-generated method stub
  return false;
  }
   }

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

  com.google.android.maps.MapView
   android:id=@+id/mapview1
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:enabled=true
  android:longClickable=true
  android:clickable=true
  android:apiKey=0xliHXBcaVPd0uSCbaQpTRJRFCgsjKu7z0Gsjsw /

   /LinearLayout

   ?xml version=1.0 encoding=utf-8?
   manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=android.demo
android:versionCode=1
android:versionName=1.0.0
uses-permission
   android:name=android.permission.ACCESS_FINE_LOCATION/uses-
   permission

uses-permission
   android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
   permission
uses-permission android:name=android.permission.INTERNET/
   uses-permission

  application android:icon=@drawable/icon android:label=@string/
   app_name
uses-library android:name=com.google.android.maps /

  activity android:name=.demo
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

   On 12月26日, 下午9时56分, Guillaume Perrot guillaume.p...@gmail.com
   wrote:
I have the same kind of code, which is working though.
The key difference may be that I call mapView.setLongClickable(true); 
you
should try it.

2008/12/26 honglian...@gmail.com honglian...@gmail.com

 hi Guillaume
Thanks for your response. I tried to override the
 onCreateContextMenu directly in MapActivity. The result is the same as
 the above. Below is the source code.
 package android.demo;
 import com.google.android.maps.MapActivity;
 import android.os.Bundle;
 import com.google.android.maps.MapView;
 import android.view.ContextMenu;
 import android.view.KeyEvent;
 import android.view.View;
 import android.util.*;
 public class demo extends MapActivity {
/** Called when the activity is first created. */
MapView mapView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

[android-developers] Undocumented Intents

2008-12-27 Thread Makeable

I download an app from the marketplace that provides notification of
recieved sms.

After some searching around in this group, I have found that it is
using the SMS_RECIEVED intent from the telephony provider - yet this
intent is not documented anywhere in the SDK documentation (that I
could find).

Are there many such undocumented intents - or am I simply looking in
the wrong place?
Must I trawl through the android source?

Kind Regaqrds,

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



[android-developers] Re: SHA1 Encryption

2008-12-27 Thread Maxence Warzecha

take a look at :
http://www.java2s.com/Code/Java/Security/MessageDigestwithSHA1.htm

On 22 déc, 13:22, flash bennyco...@gmail.com wrote:
 Hi,
 Is there anyway in android that you canSHA1encrypt a String?

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



[android-developers] Re: How to access internet in emulator v1.0

2008-12-27 Thread Tez

Hi,

To access internet from within an activity, you need to setup INTERNET
permissions in your manifest file. Then you can access the internet
either by launching your activity with a WebView or you can use some
code that utilizes Android's network layer.

Cheers,
Earlence

On Dec 26, 12:31 pm, sheik ahmed sheik...@gmail.com wrote:
 hi all,
  i have been looking to enable internet access in the emulator v1.0..

 Please guide me regarding this ...

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



[android-developers] Re: How to reference another GUI xml from within a GUI xml?

2008-12-27 Thread Mariano Kamp
Thank you Marc.

That was it. include worked fine.

Cheers,
Mariano

On Sat, Dec 27, 2008 at 12:25 AM, Mark Murphy mmur...@commonsware.comwrote:


 Mariano Kamp wrote:
 let's consider this: You have a list view that shows all emails in
  your mailbox, but just their subject and from information. When you
  click on a list item to launch an activity that shows the full mail.
  The latter view also contains the same subject and from information,
  rendered the same way as in the list view (e.g. the subject is bold
  when the mail is unread).
 
 How to do that in a sane way? Let's define a mail_row.xml with two
  TextViews that represent the subject and from. So far so good, but how
  can I re-use this description in the email_full.xml to prevent
  duplication?

 I think merge or include will work, though I haven't experimented
 with either as yet.

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

 


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



[android-developers] A question about camera of Android SDK 1.0 rc2

2008-12-27 Thread NY

I update from rc1 to rc2
And open default picture app, choose a image, open it
then will have a error
If back to install rc1, it work right
Is it a bug of rc2?

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



[android-developers] Re: AlertDialog OnKeyListener - How to get Focused Item?

2008-12-27 Thread coderiver

I figured this out so I thought I would share.  The handleKeyPress
method that is called from my OnKey handler is part of my Activity
object.  So this is an activity not a dialog.  So to get the focused
item is pretty simple, I needed to keep a reference to the AlertDialog
(mAlertDialog in the example):

public boolean handleKeyPress(DialogInterface dialog, int keyCode,
KeyEvent event) {

 ListView lv = mAlertDialog.getListView();
 if( lv != null ) {
 int selectedPos = lv.getSelectedItemPosition();
 Log.d(keyPress, handleKeyPress : selectedPos:  +
selectedPos);
 }

You also have to test for the right key and only choose the down
button action, but this is the part I had trouble with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to reference another GUI xml from within a GUI xml?

2008-12-27 Thread Mariano Kamp
Thank you Marc.

That was it. include worked fine.



On Sat, Dec 27, 2008 at 12:25 AM, Mark Murphy  
mmur...@commonsware.com wrote:

Mariano Kamp wrote:
 let's consider this: You have a list view that shows all emails in
  your mailbox, but just their subject and from information. When you
  click on a list item to launch an activity that shows the full mail.
  The latter view also contains the same subject and from information,
  rendered the same way as in the list view (e.g. the subject is bold
  when the mail is unread).
 
 How to do that in a sane way? Let's define a mail_row.xml with two
  TextViews that represent the subject and from. So far so good, but  
how
  can I re-use this description in the email_full.xml to prevent
  duplication?

I think merge or include will work, though I haven't experimented
with either as yet.

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




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



[android-developers] What is a good way to download a webpage for offline reading?

2008-12-27 Thread Mariano Kamp

Hi,

   I was wondering what would be a good way to download a webpage for  
offline reading?

   I first thought about downloading the html source, grep it for the  
image tag's soure attribute and download the image. After rewriting  
the image tag in a way that it reffers to the local file and storing  
the html and the image content locally it should be possible to  
display the webpage from the local filesystem.
But it could be a PITA to find all the image tags, would replicate  
browser functionality (parser) and wouldn't take care of images that  
are referenced in the css or set by Javascript.

   WebView offers a capturePicture() method. But even if I would find  
a way to easily store and retrieve the images, I can't use the zoom  
functionality of WebView anymore as well as the care for orientation  
changes and of course clicking on the links wouldn't be possible either.

   It seems that it could be possible to download the source, hand it  
to WebView and capture all requests for external resources, so that  
they can be downloaded and stored locally. So when later on loading  
the locally stored html the events could be overridden again and the  
images could be loaded locally.

   Does this make sense? Is that possible? Can WebView load/parse/ 
(render) a webpage when not displayed? Did anybody do this  
successfully or is this to much off the beaten (and tested) path?

Cheers,
Mariano

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



[android-developers] Re: When will we get root back?

2008-12-27 Thread Disconnect
Its not google. Its tmobile. They decide whether ro.secure is set or not
(adb shell as root) and what bins (ahem, su) are shipped. Call 611 and ask
(talk to g1/blackberry/smartphone support. not the main pool.) It is their
device, and their image, that you are objecting to. (And for fscks sake,
google first. This is the 304th identical thread in the past two weeks..)

I want a ♞.

On Wed, Dec 24, 2008 at 8:45 AM, coolbho3k mike.g.hu...@gmail.com wrote:


 I'm speaking for the early adopters who bought a T-Mobile G1
 directly from the carrier before the ADP1 was even announced.

 I paid full price ($400 USD) for my phone, the same price I would have
 paid for an ADP1. Yet, I have updated to an official version of the
 infamous RC30 update, thinking Google wouldn't let us developers down.
 This was a mistake. Now I'm stuck without RC30 and the ability to test
 my own builds of Android on real hardware, or even do simple things
 like clear the market's cache.

 Android was supposed to be open from the beginning, yet the most
 mainstream device using it is completely locked down. What's worse,
 all early adopters (developers who bought the G1 before the ADP1 was
 announced) are stuck...

 Please Google, give us back root.

 


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



[android-developers] When does one use a SurfaceView vs a View?

2008-12-27 Thread Satya Komatineni

What does SurfaceView abstraction stand for?

The documentation suggests that SurfaceView allows a secondary thread
to draw on it.

When would one specialize View vs SurfaceView?

Thanks for your help
Satya

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



[android-developers] Re: Where could I get an ADT 0.9.0?

2008-12-27 Thread Kenny Yu

I built cupcake, which has been merged to master HEAD. The ADT is
quite OK. Can you share more info?

Kenny

On Dec 26, 11:35 am, yukinoba ckmagic...@gmail.com wrote:
 To dear all,

 Does anyone have the cupcake? The SDK in there is not applicable to
 the ADT plugin (Android Development Tools plugin) of Eclipse any more,
 and Eclipse throws a message told me I should get an updated ADT with
 version 0.9.0. However, I tried to build one in the source, and found
 that the latest version in the cupcake source code is 0.8.1 rather
 than 0.9.0.

 So, is there anyone enjoyed their cupcakes with Eclipse? I need a ADT
 0.9.0 support...

 Thx for ur help

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



[android-developers] dealing with multiple activities

2008-12-27 Thread Sarath Kamisetty

Hi,

Is there any example out there where one activity creates another
activity and the new activity returns something to the old one ? In my
application, when user clicks on a button, I need to move to a new
activity where I display a list of items and once the user selects one
of them I have to pass that data value back to the first activity
where it is displayed in a text field. I see that the notepad v3
example comes close but not quite.

Thanks,
Sarath

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



[android-developers] Re: Media Player surprises me!

2008-12-27 Thread Ninad

well yes. I am using two seperate threads. One  for Media Player.
The code is pretty simple one to prepare and then start the Media
Player..

In the other thread, I am trying to read from the sdcard..

I start both thread one after the another. The media player plays for
about 2-3 sec. Then the file read starts. But even after that is
complete, the Media Player doesnt start again..

 but it was only a test , may be there is another way to manage
 threads.

Any idea on wht cud be other way to manage these two threads?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to add new font to android browse ?

2008-12-27 Thread Milad

about app's font :
see this photo http://i43.tinypic.com/jrrako.png

text should be like : من تست می کنم
but as you seen chars split in textview
have you any clue for me ?

On Dec 16, 4:31 am, Mike Reed r...@google.com wrote:
 Applications can add new fonts, but they are only visible within that  
 application. The ability to add system-wide fonts is not supported at  
 this time.

 On Dec 14, 2008, at 8:43 AM, Milad wrote:

 I can not seepersianfont's in my G1 browser,
 Is any way to add new set of font's to G1 ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: dealing with multiple activities

2008-12-27 Thread Mark Murphy

Sarath Kamisetty wrote:
 Is there any example out there where one activity creates another
 activity and the new activity returns something to the old one ? In my
 application, when user clicks on a button, I need to move to a new
 activity where I display a list of items and once the user selects one
 of them I have to pass that data value back to the first activity
 where it is displayed in a text field. I see that the notepad v3
 example comes close but not quite.

Search for startActivityForResult(). In your SDK samples/ directory, you
will find a few matches:

./ApiDemos/src/com/example/android/apis/app/ReceiveResult.java
./ApiDemos/src/com/example/android/apis/app/LaunchingPreferences.java
./ApiDemos/src/com/example/android/apis/app/RedirectMain.java

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

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



[android-developers] Re: How to add new font to android browse ?

2008-12-27 Thread Milad

I check and if I use ﻣ (char which connect to next char) and  ﻦ   , it
work but when I write in usual mode ( م  with  ن )  you saw on that
photo

On Dec 27, 9:37 pm, Milad miladmo...@gmail.com wrote:
 about app's font :
 see this photohttp://i43.tinypic.com/jrrako.png

 text should be like : من تست می کنم
 but as you seen chars split in textview
 have you any clue for me ?

 On Dec 16, 4:31 am, Mike Reed r...@google.com wrote:

  Applications can add new fonts, but they are only visible within that  
  application. The ability to add system-wide fonts is not supported at  
  this time.

  On Dec 14, 2008, at 8:43 AM, Milad wrote:

  I can not seepersianfont's in my G1 browser,
  Is any way to add new set of font's to G1 ?


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



[android-developers] Re: Student Developer Deals

2008-12-27 Thread Eric

Sorry, have not seen or heard of one yet.
because no one other than HTC have officially release a Android
device.

I maybe able to help in some ways if you don't need the device
urgently.

Cheers
Eric
Portable Electronics Ltd
www.hdmp4.com

On Dec 25, 6:31 am, JohnStJohn johnthesaintj...@gmail.com wrote:
 Does anyone know whether there are special deals on developer phones
 available for students interested in developing an Android app for a
 class project?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Just got a G1 HELP

2008-12-27 Thread Eric

Wong place to post, go and ask in T-mobiles' forum.
This have nothing to do with Android.

Cheers
Eric
Portable Electronics Ltd
www.hdmp4.com

On Dec 26, 1:31 am, lauren.coleman...@gmail.com
lauren.coleman...@gmail.com wrote:
 I put my old SIM card into my g1 phone and its saying that there is a
 problem, after trying to sign into the google network...I had a
 previous phone and this one was orderd off of T-MOBILE.COM under my
 account! I have tried it all...please help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: managedQuery() terminating the application.

2008-12-27 Thread Sarath Kamisetty

Hi,

I have one more question on this. The following query returns all the
contacts in the phone.

private String[] projection = new String[] {
   People._ID,
   People.NAME,
   People.NUMBER,
   };

   managedCursor = managedQuery(People.CONTENT_URI,
   projection,
   null,
   null,
   People.NAME +  ASC);

How do I modify this to get only the mobile numbers ? I am not
interested in the contacts that don't have mobile numbers. I am not
sure which column to project. I tried using TYPE and TYPE_MOBILEs but
no luck. Please let me know if you have any suggestions.

Thanks,
Sarath

On Fri, Dec 26, 2008 at 11:02 AM, prakarp prak...@gmail.com wrote:

 In your Android Manifest file, you need to configure explicit
 permissions for your application to read the Contacts database. In
 Eclipse, you can do this easily,, just click around with the
 AndroidManifest file.

 - p

 On Dec 26, 10:28 am, Sarath Kamisetty sarath.kamise...@gmail.com
 wrote:
 Hi,

 I am trying to write a simple application that displays the contents
 of Contacts content provider in the phone. So far, I have only one
 statement in this program (pasted below) and all it does is tries to
 get a cursor over the contacts list. However, when I run the
 application in the emulator, I see the following run time error on the
 emulator screen:

 Sorry! The application MyApp (process com.android.myapp) has stopped
 unexpectedly. Please try again.

 How do I start debugging this ? Is there any debugger that can help ?
 Any logs that I can look at ? Here is my test application.

 Thanks,
 Sarath

 import android.app.Activity;
 import android.database.Cursor;
 import android.os.Bundle;
 import android.provider.Contacts.People;

 public class MyApp extends Activity {
 // array specifying which columns to return.
 private String[] projection = new String[] {
 People._ID,
 People.NAME,
 People.NUMBER,
 };
 Cursor managedCursor;

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

 managedCursor = managedQuery(People.CONTENT_URI,
 projection,
 null,
 null,
 People.NAME +  ASC);
 }

 


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



[android-developers] How to post values using HttpURLConnection

2008-12-27 Thread Brad Gies
 

Sorry. I've been searching the web, but I can't seem to find a working
example.

 

I have a ListNameValuePair with about 4 NameValuePairs contained in it,
but I can't figure out how to get into the HttpURLConnection. I do know how
to do it using the DefaultHttpClient but I was hoping to try the
HtttURLConnection and see if it's any quicker. 

 

Does anyone have a working example they can point me to? 

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


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



[android-developers] Re: Eclipse Error while adding ddms

2008-12-27 Thread jeff

Hi,
what is the problem with the JDK if you dont mind sharing..I have the
same problem recently...

Thanks,

On Dec 7, 1:08 am, Anonymous Anonymous
firewallbr...@googlemail.com wrote:
 Hi Xav, Ralf,

 Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

 Thanks a lot for your help
 Steve

 On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous 

 firewallbr...@googlemail.com wrote:
  Hi Xav,
  in trouble :(
  *I am trying to debug existing application.

  Am usign the full source code downloaded from source.android.com ...(not
  this onehttp://code.google.com/android/download_list.html-Linux one).
  I assume ADT plugin is used in such case , where we debug as Android
  Application??
  Here i try to debug the full source tree running DDMS on another terminal
  (standalone!)
  So i assumed adding the com.**.ddms in workspace will solve the problem
  !!

  * If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700*

  On the other side i have tried this as well, but it needs to set SDKtools
  location and all 

  So am kinda lost now - (debugging IM application)..

  My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

  or me again wrong?

  Thanks and sorry for the trouble
  Steve

  On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet x...@google.com wrote:

   I want to debug an android application built with the SDK say (IM)..
   I think my understanding also wrong (sorry for being noobish),let me
   summarize the steps needed for debugging...

   1.Latest source code compiled succesfully with a working emulator.
   2.ddms plugin added in eclipse.
   3.lauch DDMS and emulator in separate terminals !! ?
   4.connect using 8700 port
   (*considering my break point is in ImApp.java !!!)

  There is a big confusion on what step 2 is.
  From the beginning we helped you open and compile the _source_code_
  for the adt/ddms plug-ins.
  What you needed was to _install_ the plugin (which is called ADT but
  includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700.

  Now, I do not know why you can't seem to run the standalone DDMS. It
  looks like your linux installation is weird.

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



[android-developers] Re: Synchronizing Maps and Map Overlays - ConcurrentModificationException

2008-12-27 Thread mscwd01

hmmm, bump. Still havent worked this out.

On Dec 26, 11:59 pm, mscwd01 mscw...@gmail.com wrote:
 Okay, hope everyone had a nice christmas and has had their fill of
 Turkey ;)
 Now can anyone help me with this?

 On Dec 24, 11:53 am,mscwd01mscw...@gmail.com wrote:

  Hello, anyone help me with this please...

  On Dec 24, 12:42 am,mscwd01mscw...@gmail.com wrote:

   I am getting the following exception:

   12-24 00:29:25.922: ERROR/AndroidRuntime(267): Uncaught handler:
   thread main exiting due to uncaught exception
   12-24 00:29:25.960: ERROR/AndroidRuntime(267):
   java.util.ConcurrentModificationException
   12-24 00:29:25.960: ERROR/AndroidRuntime(267):     at
   java.util.AbstractList$SimpleListIterator.next(AbstractList.java:59)
   12-24 00:29:25.960: ERROR/AndroidRuntime(267):     at
   com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:41)
   12-24 00:29:25.960: ERROR/AndroidRuntime(267):     at
   com.google.android.maps.MapView.onDraw(MapView.java:454)

   I believe this is whats happening:

   I have a MapView with a few Map Overlays (simple markers),
   occasionally the locations of the markers change so I clear the map
   overlays using: map.getOverlays().clear() and insert new marker
   overlays onto the map.

   However, if I happen to be moving the map, or zooming the map when the
   update occurs I get the above ConcurrentModificationException.

   I tried synchronizing on the map overlay list, like:
   synchronized (map.getOverlays()) {
     // clear and update overlays

   }

   However I still get the above exception.

   Can someone explain the correct way to clear overlays on a map and to
   repopulate them without encountering ConcurrentModification
   Exceptions.

   Oh and I am calling: map.postInvalidate() to refresh the map and
   display the changes made to the overlays. Is this the correct way to
   repaint a map?

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



[android-developers] Re: Why the webkit just send to plugin 20 bytes through NPP_Write

2008-12-27 Thread Tang Sam
Thanks. I have resolved it.

2008/12/27 Mark Murphy mmur...@commonsware.com


 Slacker wrote:
  I am developing a new plugin for web browser via NPAPI as google
  default android gears plugin.
  But I always get 20 bytes from browser.
  Every time browser call my plugin API NP_Write and then send 20
  bytes. I verified the 20 bytes is the beginning of the required
  embedded object. Why?
  Is it a bug of Android browser plugin framework?
  Also I tried the NPP_StreamAsFile, I got the file length is 20
  bytes. :-

 Questions related to firmware-level development are best asked on lists
 set up for firmware-level development:

 http://source.android.com/discuss

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

 


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



[android-developers] List and Expandable List Combo

2008-12-27 Thread mscwd01

Is there a way to have a list view which comprises both expandable
lists and normal rows?

I.e.

List
   - Row 1
   - Row 2
   - Row 3
  - Row 3 Child 1
   - Row 4
   - Row 4 Child 1
   - Row 4 Child 2
   - Row 5

E.g. Row 1, 2 and 5 are simple rows, maybe just TextViews, and Rows 3
and 4 are expandable lists which themselves comprises of simple rows.

I tried creating an expandable list where some parent rows are
assigned no children - but this generates exceptions...

Any ideas?


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



[android-developers] Re: dealing with multiple activities

2008-12-27 Thread Emmanuel

Call the second activity with startActivityForResult, add a SetResult
( ... ) with your result just before calling finish in your second
activity, then in your first activity, onActivityResult will be
called, where you can treat your results.

Hope it helps,

Emmanuel
http://androidblogger.blogspot.com/

On Dec 27, 7:30 pm, Sarath Kamisetty sarath.kamise...@gmail.com
wrote:
 Hi,

 Is there any example out there where one activity creates another
 activity and the new activity returns something to the old one ? In my
 application, when user clicks on a button, I need to move to a new
 activity where I display a list of items and once the user selects one
 of them I have to pass that data value back to the first activity
 where it is displayed in a text field. I see that the notepad v3
 example comes close but not quite.

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



[android-developers] How to post values using HttpURLConnection

2008-12-27 Thread Brad Gies
 

It's ok. I finally found a really good example. Thanks anyway.

 

http://www.java.happycodings.com/Other/code21.html

 

 

 

Sincerely,

 

Brad Gies

 

 

-

Brad Gies

27415 Greenfield Rd, # 2,

Southfield, MI, USA

48076

-

 

Moderation in everything, including abstinence

 


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



[android-developers] XMPP through Smack

2008-12-27 Thread jman

After reading many previous posts about XMPP, I am still not sure if
anyone actually got XMPP to work for the official SDK 1.0.

I had trouble receiving any message.   From the logs, I saw this:

12-27 19:43:14.866: WARN/System.err(225):
java.security.KeyStoreException: KeyStore jks implementation not found


This origin is from Smack's PacketReader and I read a post about
installing the cacerts fiel as follows:

String javaHome =  System.getProperty(java.home);
StringBuffer buffer = new StringBuffer();
buffer.append(javaHome).append(File.separator).append(lib);
buffer.append(File.separator).append(security);
buffer.append(File.separator).append(cacerts);
config.setTruststorePath(buffer.toString());
config.setTruststoreType(jks);
config.setTruststorePassword(changeit);


This didn't seem to solve the problem on Windows while it could help
those on Linux.Can anyone provide any ideas to proceed?

Thanks.





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



[android-developers] Re: dealing with multiple activities

2008-12-27 Thread Sarath Kamisetty

Hi,

Thanks for the tips. Is it possible to pass an arbitrary object to the
child activity and back ? The examples I saw were setting stuff inside
the intent itself. For example, from parent to child, I query a
content provider that returns a bunch or rows displayed by list
activity. Once user selects one of the items from the list, i want to
get the corresponding row from the list adapter and pass it to child
activity. So, I was hoping to do something like below:

protected void onListItemClick(ListView l, View v, int position, long id) {
...
...
Intent i = new Intent(this, ChildActivity.class);
i.putExtra(ChildActivity.KEY_ITEM, myAdapter.getItemId((int)id));
startActivityForResult(i, ENTRY_CREATE);
...
...
}

My child activity might not also need to send back an object to the
parent (i am not sure if it is needed at this point in my app. but ..)
but not sure if it can be done.

Thanks,
Sarath

On Sat, Dec 27, 2008 at 6:05 PM, Emmanuel emmanuel.ast...@gmail.com wrote:

 Call the second activity with startActivityForResult, add a SetResult
 ( ... ) with your result just before calling finish in your second
 activity, then in your first activity, onActivityResult will be
 called, where you can treat your results.

 Hope it helps,

 Emmanuel
 http://androidblogger.blogspot.com/

 On Dec 27, 7:30 pm, Sarath Kamisetty sarath.kamise...@gmail.com
 wrote:
 Hi,

 Is there any example out there where one activity creates another
 activity and the new activity returns something to the old one ? In my
 application, when user clicks on a button, I need to move to a new
 activity where I display a list of items and once the user selects one
 of them I have to pass that data value back to the first activity
 where it is displayed in a text field. I see that the notepad v3
 example comes close but not quite.

 Thanks,
 Sarath
 


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



[android-developers] Re: Undocumented Intents

2008-12-27 Thread Peli

Not only are basic intents sometimes difficult to find (as they are
spread across various packages), but 3rd party developers are free to
define their own intents as well.

That's why we try to collect intents here:
http://www.openintents.org/en/intentstable

Peli
www.openintents.org

On 27 Dez., 12:34, Makeable m...@makeable.co.uk wrote:
 I download an app from the marketplace that provides notification of
 recieved sms.

 After some searching around in this group, I have found that it is
 using the SMS_RECIEVED intent from the telephony provider - yet this
 intent is not documented anywhere in the SDK documentation (that I
 could find).

 Are there many such undocumented intents - or am I simply looking in
 the wrong place?
 Must I trawl through the android source?

 Kind Regaqrds,

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



[android-developers] Re: Android developer challenge II

2008-12-27 Thread C-LIS Keiji Ariyama

Hi BardieDahl,

I'm sorry. I don't know actually when ADC II is going to be launched.

However, I think Google have been thinking that Android Dev Phone 1 is 
the STANDARD Android phone. And I suppose that ADC II will be launched soon.

-- 
Keiji,
ml_andr...@c-lis.co.jp

BarbieDahl wrote:
 Has anyone heard any news about the second android developer
 challenge? It was suppose to be some information in the 4th quarter, I
 havent seen anything yet??
  
 


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