[android-developers] Creating events

2008-04-03 Thread dimenwarper

hey all!

Does anyone know if there is any way to create and launch events (such
as click and key events) via software (e.g. createClickEvent(float x,
float y))?

Rgrds,
dw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread Dan U.

You mean to make your app interact with another app? I don't think
that's possible.

On Apr 2, 11:13 pm, dimenwarper [EMAIL PROTECTED] wrote:
 hey all!

 Does anyone know if there is any way to create and launch events (such
 as click and key events) via software (e.g. createClickEvent(float x,
 float y))?

 Rgrds,
 dw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] DatePicker Refresh initialized date problem

2008-04-03 Thread kdavis95139

I have created an activity page where I programmatically display two
different dates (at different times) using a single XML define
DataPicker Calendar.  My problem is, when I init() the date on the
DatePicker Calendar the second time, the calendar reflects the correct
date but does not redraw the highlighted date from the previous call
to calendar.init. So I end up with two days highlighted with a blue
square. Does anyone know how I can refresh the display after a second
init() is called?

DatePicker
android:id=@+id/calendar
android:layout_width=170px
android:layout_height=200px
android:layout_x=74px
android:layout_y=125px

/DatePicker

Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);

calendar.init(mYear, mMonth, mDay, Calendar.SUNDAY,
mDateSetListener);

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] WebView very weird behavior loading http://google.com

2008-04-03 Thread Diego Torres Milano

This is really weird !
WebView can load and display any web page but http://google.com !
I've tried this:


public class WebActivity extends Activity {

private WebView webView;

@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);

webView = new WebView(this);
//webView.loadUrl(http://google.com;);
webView.loadUrl(http://google.com/ig;);

setContentView(webView);
}

}

http://google.com/ig or any other web page is displayed but loading
http://google.com I (you?) only get an empty page.
Could this be possible ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: dlopen() behaving weird

2008-04-03 Thread David Given

Digit wrote:
[...]
 ok, I had the time to look at the dynamic linker's sources, and clearly 
 it doesn't implement R_ARM_ABS32 properly.
 I guess we never encountered this in the system because these relocs are 
 (correctly) removed by our prelinker system.

Ah --- excellent --- will do. Thanks.

-- 
David Given
[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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Finish Activity(Urgent)

2008-04-03 Thread Greg

I have three activies

A  B  C

i start sub activity from A then i startsubactivity from B

i just want to do like when i finish C ..it finish all activies and
show me the A activity

please help me out

i tried to do that but ..when i press back button it again shows B
activity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] copyWindowBitmap() help needed

2008-04-03 Thread noha mansour
hi all,
copyWindowBitmap() does not work any solutions?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How can I determine if app is running on the emulator or a device.

2008-04-03 Thread Digit
the ro.qemu properly is defined when running in the emulator, and not the
device.

however, be *very* cautious about making different code path for emulator
and device cases. this is generally not a good idea (and since no devices
are available, you device-specific code is never going to run as you may
expect it, and not get tested properly)

On Wed, Apr 2, 2008 at 5:27 PM, Brendan [EMAIL PROTECTED] wrote:



 Is there someway in code to tell if an application is running on the
 emulator, on the device. I can't see how it coul dbe checked. Maybe
 there is something in SystemProperties? If not, it would be a useful
 extra flag to have available in a future version of the SDK.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Starting my application from browser using MIME Type Intent

2008-04-03 Thread baldmountain

I managed to get a bit farther. My intent filter looks like:

!-- intent-filter
  action android:name=android.intent.action.VIEW /
  category android:name=android.intent.category.DEFAULT /
  data android:mimeType=text/plain /
/intent-filter  --

You can see it is commented out. It causes the browser to crash. I
submitted a bug for this.  See issue 341 in the issue tracker. It was
marked Future Release.

Oh, you'll also need to create an sdcard for downloads and the sdcard
should have a directory named download. But until this is implemented
your activity isn't going to get launched.

On Apr 2, 2:37 pm, Amos [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to make the browser start my application after a file with
 a specific MIME content type is downloaded.
 I've followed some hints and tips from the forum - but have not
 succeeded so far.

 From the errors I'm getting I'm not sure if I'm doing something wrong
 - or if this feature is fully supported already.

 My Intent Filter is:
             intent-filter
                 action android:name=android.intent.action.VIEW /
                 category
 android:name=android.intent.category.DEFAULT /
                 category
 android:name=android.intent.category.BROWSABLE /
                 data android:mimeType=myapp/zzz /
             /intent-filter

 Has anyone managed to do something similar in m5-rc15?

 Thanks!

 Amos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Custom listview

2008-04-03 Thread David Given

dreamer wrote:
[...]
 How can I make a custom list view, such that each item has for e.g a
 scroll text, image and a label.
 
 Ive checked it several times but to no success. Also how to do this
 thru layout XML only( without coding) if its possible.

The easiest way I found to do that is to produce an XML fragment 
describing a single item, then use a SimpleCursorAdapter to replicate 
and populate the fragment for each line:

SimpleCursorAdapter adapter =
   new SimpleCursorAdapter(this, R.layout.list_item_layout,
_cursor, FromColumns, ToColumns);
   adapter.setViewBinder(this);

This will require you to access your list data via a cursor, but that's 
probably a good idea anyway.

I have found, though, that I couldn't make ImageView.setImageURI() work 
properly, so none of my images in the list view are getting populated. 
Don't know what's going on there.

-- 
David Given
[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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Dynamic UI-Processing - without XML files.

2008-04-03 Thread simon

Hi.
I want to make an app that displays a List (or Table) with a dynamic
number of columns. I want to be able to assign data via a Cursor to a
dynamic number of TextViews (or whatever) which represent a table row.
For example:
I can't use a SimpleCursorAdapter like this:

 new SimpleCursorAdapter(this, R.layout.table_row, dataCursor,
from, to);

because at build time, i do not know how much TextViews will be in a
table row. i don't know how large from and to will be. i can't use XML
files. it should be dynamic.

Is there a possibility, to build a UI-Layout dynamically in java? The
old fashioned way like Swing or AWT?
What am i supposed to pass to the constructor of an Adapter instead of
R.layout.table_row then? How do i handle other parameters like that?
Is there another possibility?

Thanx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Long list of LogCat error messages from DeviceMonitor

2008-04-03 Thread [EMAIL PROTECTED]

I see the same messages, usually when the buildin gooogle service
crashed.

On Apr 3, 6:47 am, jalopy [EMAIL PROTECTED] wrote:
 I have seen these error messages all the time. I normally needed to
 restart my
 emulator with -wipe-data to get back to normal. I noticed that those
 error
 messages began to appear after my program crashed a few times or
 some other programs were not responding such as gtalkservice.

 Yes, it is very annoying as it normally took over the entire CPU cycle
 whenever
 that happened.

 On Apr 2, 7:48 pm, Peli [EMAIL PROTECTED] wrote:

  The following slows my system down: From time to time there is a long
  list of error messages apparently from the DeviceMonitor. These error
  messages stop after some time, and I can continue working. Still, they
  slow down my work, and I wonder if anybody else has seen them or has a
  hint what could cause them.

  Peli

  D/( 1663):  unable to unlink '/1207175722301' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175722301.
  D/( 1663): removing file '/1207175726154'
  D/( 1663):  unable to unlink '/1207175726154' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175726154.
  D/( 1663): removing file '/1207175728084'
  D/( 1663):  unable to unlink '/1207175728084' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175728084.
  D/( 1663): removing file '/1207175730041'
  D/( 1663):  unable to unlink '/1207175730041' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175730041.
  D/( 1663): removing file '/1207175732044'
  D/( 1663):  unable to unlink '/1207175732044' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175732044.
  D/( 1663): removing file '/1207175734108'
  D/( 1663):  unable to unlink '/1207175734108' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175734108.
  D/( 1663): removing file '/1207175736225'
  D/( 1663):  unable to unlink '/1207175736225' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175736225.
  D/( 1663): removing file '/1207175738331'
  D/( 1663):  unable to unlink '/1207175738331' (errno=2)
  W/android.server.am.DeviceMonitor( 1663): Couldn't delete
  1207175738331.
  D/( 1663): removing file '/1207175741504'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: send attachment to gmail

2008-04-03 Thread Vincent BARAT

Hello,

I get the same error (see below).
Have you found a fix for that? I really cannot figure out how to fix this!

ERROR/SendMail(5424): IOException while sending message
ERROR/SendMail(5424): javax.mail.MessagingException: IOException while sending 
message;
ERROR/SendMail(5424):   nested exception is:
ERROR/SendMail(5424): javax.activation.UnsupportedDataTypeException: no 
object DCH for MIME type multipart/mixed; 
ERROR/SendMail(5424): boundary==_Part_0_1075087160.1207214436435
ERROR/SendMail(5424): at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
ERROR/SendMail(5424): at javax.mail.Transport.send0(Transport.java:189)
ERROR/SendMail(5424): at javax.mail.Transport.send(Transport.java:118)
ERROR/SendMail(5424): at 
com.vbarat.tests.sendmail.SMTPSender.sendMail(SMTPSender.java:91)
ERROR/SendMail(5424): at 
com.vbarat.tests.sendmail.SendMail$1.onClick(SendMail.java:43)
ERROR/SendMail(5424): at android.view.View.performClick(View.java:1857)
ERROR/SendMail(5424): at android.view.View.onKeyUp(View.java:2872)
ERROR/SendMail(5424): at android.widget.TextView.onKeyUp(TextView.java:1989)
ERROR/SendMail(5424): at android.view.KeyEvent.dispatch(KeyEvent.java:495)
ERROR/SendMail(5424): at android.view.View.dispatchKeyEvent(View.java:2689)
ERROR/SendMail(5424): at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424): at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424): at 
android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:85)
ERROR/SendMail(5424): at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424): at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424): at 
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:531)
ERROR/SendMail(5424): at 
android.policy.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1189)
ERROR/SendMail(5424): at 
android.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:871)
ERROR/SendMail(5424): at 
android.app.Activity.dispatchKeyEvent(Activity.java:1503)
ERROR/SendMail(5424): at 
android.policy.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1164)
ERROR/SendMail(5424): at 
android.view.ViewRoot.deliverKeyEvent(ViewRoot.java:926)
ERROR/SendMail(5424): at 
android.view.ViewRoot.handleMessage(ViewRoot.java:595)
ERROR/SendMail(5424): at android.os.Handler.dispatchMessage(Handler.java:80)
ERROR/SendMail(5424): at android.os.Looper.loop(Looper.java:91)
ERROR/SendMail(5424): at 
android.app.ActivityThread.main(ActivityThread.java:3052)
ERROR/SendMail(5424): at java.lang.reflect.Method.invokeNative(Native 
Method)
ERROR/SendMail(5424): at java.lang.reflect.Method.invoke(Method.java:356)
ERROR/SendMail(5424): at 
android.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1547)
ERROR/SendMail(5424): at android.os.ZygoteInit.main(ZygoteInit.java:1445)
ERROR/SendMail(5424): at android.dalvik.NativeStart.main(Native Method)
ERROR/SendMail(5424): Caused by: javax.activation.UnsupportedDataTypeException: 
no object DCH for MIME type multipart/mixed; 
ERROR/SendMail(5424): boundary==_Part_0_1075087160.1207214436435
ERROR/SendMail(5424): at 
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:905)
ERROR/SendMail(5424): at 
javax.activation.DataHandler.writeTo(DataHandler.java:330)
ERROR/SendMail(5424): at 
javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
ERROR/SendMail(5424): at 
javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
ERROR/SendMail(5424): at 
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
ERROR/SendMail(5424): ... 29 more


GeorgeS a écrit :
 I been working on an application that does that and attachments won't
 go through using the code referenced. I get a error saying that
 'multipart/mixed' isn't supported. The same code works like a champ in
 a non-Android app. Sounds like something is implemented yet.
 
 
 On Feb 21, 7:12 am, Aditya [EMAIL PROTECTED] wrote:
 On Feb 21, 11:07 am, noha mansour [EMAIL PROTECTED] wrote: how can i 
 send attachment to gmail via android???
 thanks
 tryhttp://davanum.wordpress.com/2007/12/22/android-send-email-via-gmail-...
 and 
 thishttp://wiki.ittoolbox.com/index.php/Send_Email_with_Attachments_Using...

 mix up the code n u r done :)
  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] android app communicating with a database server

2008-04-03 Thread scimitar

Hi,

I'm very new to Android, so I'm still trying to figure out the basics.
I want to write an application that needs to communicate with a
database server, and upload it's contact list to the server. In this
regard I have the following questions:

1). Is there a way to associate a phone number to an Android
application?

2) How does my app communicate with the server? It needs to host a web
address I guess. What's the way to do this?

I'll really appreciate if somebody could help me.

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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-03 Thread xingye

override B.onActivityResult and call finish()


On 4月3日, 下午5时23分, Greg [EMAIL PROTECTED] wrote:
 I have three activies

 A  B  C

 i start sub activity from A then i startsubactivity from B

 i just want to do like when i finish C ..it finish all activies and
 show me the A activity

 please help me out

 i tried to do that but ..when i press back button it again shows B
 activity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to getTable list from SQLiteDatabase

2008-04-03 Thread Android-Berry

Hi All,

As title, if App has dynmatically created some table within database.

How to get table list from database?

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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to getTable list from SQLiteDatabase

2008-04-03 Thread Android-Berry

I have got it,

Use SQLiteData SQLITE_MASTER table,

Thanks.

On Apr 3, 9:44 am, Android-Berry [EMAIL PROTECTED] wrote:
 Hi All,

 As title, if App has dynmatically created some table within database.

 How to get table list from database?

 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dynamic UI-Processing - without XML files.

2008-04-03 Thread simon

Thanx for the fast answer. i also managed to build a dynamic UI in the
mean time. But i still don't see a possibility to completly do it
without XML files. Even in the example you mentioned, there is still
the R class involved to get the main layout where the widgets will be
put.

and the question is still, what the constructor of a cursor-adapter
(or alike constructors/methods) wants to have, if there is nothing in
the R class...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: suggestion: the *relevant* context should be automatically accessible from any method

2008-04-03 Thread Anil

ok, thanks!

On Apr 2, 11:24 pm, Joe Onorato [EMAIL PROTECTED] wrote:
 Hi Anil,

 This is not correct.  Here are a few examples:  If your app has two
 services, there will be two different contexts running at the same time.  If
 your app has two activities, one will still have methods running after
 onPause.  Messages sent may be handled while another activity is still
 running, depending on timing.  It would not be correct for one activity to
 use another's Context.

 -joe

 On Wed, Apr 2, 2008 at 8:47 PM, Anil [EMAIL PROTECTED] wrote:

  Again, please correct me:
  But unlike J2SE, here in Android, zero or one contexts are 'active' or
  relevant in a thread.
  The thread started life and meandered along touching different
  contexts along the way.
  In other words, it is possible to state which was the last context
  touched, and will be relevant
  to the getContext() call. Will a thread of execution ever need
  anything other than the last context touched?
  thanks,
  Anil

  On Mar 31, 11:25 am, hackbod [EMAIL PROTECTED] wrote:
   That is not true, all of the activities (and intent receivers and
   services) are called in the main thread of the process they are
   running in.  Also, calls to service interfaces and content providers
   are executed in the calling thread, not their own thread.

   On Mar 31, 8:51 am, Anil [EMAIL PROTECTED] wrote:

NOTE: I could be mistaken in my facts below. Please correct me if I am
wrong.

As per my understanding, a running thread exists in only one Activity
at a
time. In other words, it is not shared by activities. Hence only one
context applies, even if the method is in some other class. However it
is
convoluted to access the context - it has to be passed into each
constructor of each class. There have been several gripes about this
in the
newsgroup.
Suggestion: have a getContext() call, that at runtime senses which is
the
applicable context for that thread, and returns it to that thread.
And more than one thread being spawned off should still map to one
activity context.
So depending on the thread (Activity) in which the method executes, a
different context could be returned.
thanks,
Anil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Conversion to Dalvik format failed with error 2

2008-04-03 Thread Taras Puchko

If your application does not declare or use annotations itself you may
translate the dependency before adding it to the Eclipse project:

java -jar retrotranslator-transformer-1.2.6.jar -target 1.5 -embed
support -reflection safe -stripannot -srcjar gdata-media-1.0.jar

Regards,
Taras.

On 28 Бер, 17:18, nwmotogeek [EMAIL PROTECTED] wrote:
 That link describes how to add a target to the build.xml but I don't know
 how to do that with Eclipse can some one point me to instructions on this?

 Thanks,
 -Dave

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread dimenwarper

Yea, more or less I want one app of mine to serve as a proxy actor to
another app. I don't see any of these in the docs or anywhere else so
I'll probably have to implement a mini layer based on intents to do
the job =|

chrs,
dw

On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote:
 You mean to make your app interact with another app? I don't think
 that's possible.

 On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote:

  hey all!

  Does anyone know if there is any way to create and launch events (such
  as click and key events) via software (e.g. createClickEvent(float x,
  float y))?

  Rgrds,
  dw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView.toggleShowMyLocation and MapController.setFollowMyLocation

2008-04-03 Thread Roland

Hi,

I did not try Mark's suggestion, but I was able to get the map to
behave as I expect it will when setFollowMyLocation is set to true by
using a Handler with a call back to a Runnable that updates the map
position to the current location.  I was already using a similar
technique to update the overlays I'm showing on the map as the trip
progresses so it's not too much extra code, but I am always afraid I'm
stepping on a landmine when I implement something that handles a task
that the system will handle in the future.

I can post details if you're interested.

Best,
Roland

On Feb 15, 12:40 am, Bob Pesner [EMAIL PROTECTED] wrote:
 Hi,

   These methods do not seem to work. I'm getting this log message from
 MapActivity:

   No provider found: 1

 which I assume means that the location following logic can't use the
 'gps' provider that comes with the SDK.

 Any info on how to get these functions working?

 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] gtalk - error 503 while sending message

2008-04-03 Thread nirdroid

ERROR/gtalkSrv(1639):
ERROR Message:
message id=8fmxs-5 to=[EMAIL PROTECTED]/androidwCxwXphYj3JM
from=[EMAIL PROTECTED]/androidwCxwXphYj3JM type=error
error code=503/error
x xmlns=google:data-msg token=1yAeH-1
intent_action=com.test.app.msg
app-data type=MeetingCodeZq4Wny45BAXKJMz5/app-data
app-data type=UserCodeqAksVBKOVUcySJRO/app-data
/x
/message


any idea what's wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Conversion to Dalvik format failed with error 2

2008-04-03 Thread Taras Puchko

I've made a mistake in my previous post, the correct command is the
following:

java -jar retrotranslator-transformer-1.2.6.jar -target 1.5 -
stripannot -embed support -reflection safe -classpath retrotranslator-
android-1.2.6.jar -srcjar gdata-media-1.0.jar

To use annotations in your code extract classes that contain or
manipulate annotations into a separate library, translate it with
Retrotranslator and add it as a dependency to the main project.

Regards,
Taras.

On 3 Кві, 09:42, Taras Puchko [EMAIL PROTECTED] wrote:
 If your application does not declare or use annotations itself you may
 translate the dependency before adding it to the Eclipse project:

 java -jar retrotranslator-transformer-1.2.6.jar -target 1.5 -embed
 support -reflection safe -stripannot -srcjar gdata-media-1.0.jar

 Regards,
 Taras.

 On 28 Бер, 17:18, nwmotogeek [EMAIL PROTECTED] wrote:

  That link describes how to add a target to the build.xml but I don't know
  how to do that with Eclipse can some one point me to instructions on this?

  Thanks,
  -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Smack

2008-04-03 Thread CochiVgr

Hello everybody.

I'm trying to extend several messages using smack library and I have
got a problem.

I can perfectly add an extension for a packet:




Message my_message = new Message();

my_message.setTo([EMAIL PROTECTED]);

PacketExtension my_extension = new PacketExtension(my_element, my
namespace);

my_message.addextension(my_extension);

SparkManager.getConnection().sendPacket();



JID receive this message and is able to show the XML text of this
message:




String xmlText = packet.toXML();


message 

my_element xmlns=my namespace/

/message

But, how can I add attributes inside extension?. I mean, I want to
send this xml text after adding the extension:

message 

my_element xmlns=my namespace

 header my_header=/
 body..body

/my_element

/message

Furthermore, how can I extend IQ messages and send them?.

Thank you, very much.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread hackbod

No, we don't allow an application to inject key events that drive
another app.  Too big of a security hole. :)

On Apr 3, 7:45 am, dimenwarper [EMAIL PROTECTED] wrote:
 Yea, more or less I want one app of mine to serve as a proxy actor to
 another app. I don't see any of these in the docs or anywhere else so
 I'll probably have to implement a mini layer based on intents to do
 the job =|

 chrs,
 dw

 On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote:

  You mean to make your app interact with another app? I don't think
  that's possible.

  On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote:

   hey all!

   Does anyone know if there is any way to create and launch events (such
   as click and key events) via software (e.g. createClickEvent(float x,
   float y))?

   Rgrds,
   dw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Finish Activity(Urgent)

2008-04-03 Thread hackbod

Fwiw, there will be a better way to accomplish this in an upcoming
SDK.

On Apr 3, 6:13 am, xingye [EMAIL PROTECTED] wrote:
 override B.onActivityResult and call finish()

 On 4月3日, 下午5时23分, Greg [EMAIL PROTECTED] wrote:

  I have three activies

  A  B  C

  i start sub activity from A then i startsubactivity from B

  i just want to do like when i finish C ..it finish all activies and
  show me the A activity

  please help me out

  i tried to do that but ..when i press back button it again shows B
  activity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Progmatic Selection of List Item

2008-04-03 Thread Raja Nagendra Kumar

Hi,

in ListActivity UI, how to pre select an item in the list, so that as
soon as the list gets displayed, that item would be selected.

Regards,
Nagendra
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: adb logcat -f out.log doesn't work?

2008-04-03 Thread Raja Nagendra Kumar

Not sure if this the way filters should behave. By default only the
those which match filter should be displayed. In you approach two
filters are used one to completely stop all the message and other for
application logs.

I think by default *:s should have been applied when a filter spec is
provided!!

Digit, thank you for the solution.. my logs are neat and helathy now..

Regards,
Nagendra

On Mar 28, 11:43 pm, Digit [EMAIL PROTECTED] wrote:
 the syntax is   tag:level or *:level, where level is a single letter
 describing the logging level (s=silent, e=error, w=warnings, i=informative,
 d=debug, v=verbose)
 the syntax tag:* is not supported.

 try doing the following:

 adb logcat '*:s APP_TAG:v'

 this should ensure that only traces from your apps are displayed

 On Fri, Mar 28, 2008 at 3:36 AM, Raja Nagendra Kumar 



 [EMAIL PROTECTED] wrote:

  I have stated both emulator and attached to loc console using the
  following

  emulator -logcat APP_TAG:*

  and

  adb logcat APP_TAG:*

  However I am seeing apptag logs and also system logs such as the
  below..

  Regards,
  Nagendra

  lgConsole
  exec
  D/        (  519): zip_openZipFile(/system/app/GTalkSettings.apk)
  D/        (  519): zip_openZipFile(/system/app/Home.apk)
  D/        (  519): zip_openZipFile(/system/app/GoogleApps.apk)
  D/        (  519): zip_openZipFile(/system/app/Maps.apk)
  D/        (  519): zip_openZipFile(/system/app/Phone.apk)
  D/        (  519): zip_openZipFile(/system/app/ImProvider.apk)
  D/        (  519): zip_openZipFile(/system/app/gtalkservice.apk)
  D/PackageManager(  519): Scanning app dir /data/app
  D/        (  519): zip_openZipFile(/data/app/ApiDemos.apk)
  W/PackageManager(  519): Not granting permission
  android.permission.RUN_INSTRUMENTATION to package
  com.google.android.samples
  W/PackageManager(  519): Granting new permission
  android.permission.WRITE_CONTACTS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.READ_CONTACTS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.ADD_SYSTEM_SERVICE to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.SYSTEM_ALERT_WINDOW to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.WRITE_CONTACTS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.WRITE_SETTINGS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.BROADCAST_STICKY to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.READ_CONTACTS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.CALL_PHONE to android.server.PackageManagerService
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.INTERNAL_SYSTEM_WINDOW to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.WRITE_SETTINGS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.BROADCAST_STICKY to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.RECEIVE_BOOT_COMPLETED to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  com.google.android.gtalkservice.permission.GTALK_SERVICE to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.CALL_PHONE to android.server.PackageManagerService
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.ACCESS_LOCATION to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  com.google.android.maps.permission.READ_MY_MAPS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  com.google.android.maps.permission.WRITE_MY_MAPS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.ACCESS_CELL_ID to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.ACCESS_ASSISTED_GPS to
  [EMAIL PROTECTED]
  W/PackageManager(  519): Granting new permission
  android.permission.ACCESS_GPS to android.server.PackageManagerService
  [EMAIL PROTECTED]
  D/        (  519): removing file '/data/system/packages-backup.xml'
  D/        (  519):  unable to unlink '/data/system/packages-
  backup.xml' (errno=2)
  I/dalvikvm-heap(  519): GC! (4302ms since last GC)
  I/dalvikvm-heap(  519): GC old usage 59.0%; now 0.881MB used / 1.763MB
  soft max (2.062MB real max)
  I/dalvikvm-heap(  519): GC freed 11180 objects / 634488 bytes in 101ms
  I/ServiceManager(  502): ServiceManager: addService(package, 0x138b0)

  On Mar 27, 10:33 pm, Megha Joshi [EMAIL PROTECTED] wrote:
     Hi,

    The filters do work as expected. Could you please give an example of
  the
   logcat command that you used, expected output and the actual output that
  you
 

[android-developers] Re: Progmatic Selection of List Item

2008-04-03 Thread Megha Joshi
Hi Nagendra,

You could use  getListView().setSelection(int position) in the
OnCreate()/OnResume() of your Activity.
Note that you will not see a highlighted selection initially when your List
is displayed, but if you try to navigate through the items in your list, the
navigation will start from the position selected in setSelection() method.

Thanks,
Megha

On Thu, Apr 3, 2008 at 9:58 AM, Raja Nagendra Kumar [EMAIL PROTECTED]
wrote:


 Hi,

 in ListActivity UI, how to pre select an item in the list, so that as
 soon as the list gets displayed, that item would be selected.

 Regards,
 Nagendra
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android EditText Bug?

2008-04-03 Thread Android-Berry

Hi All,

Is there anyone meets this issue?
When I extend EditText view, and call super, it always throws me and
exception like below:

DEBUG/dalvikvm(599): Exception Ljava/lang/ClassNotFoundException; from
PathClassLoader.java:205 not caught locally
DEBUG/dalvikvm(599): NOTE: loadClass
'org.apache.harmony.luni.internal.locale.ISO4Currencies_en_US'
0x40018950 threw an exception
DEBUG/dalvikvm(599): Exception Ljava/lang/ClassNotFoundException; from
PathClassLoader.java:205 not caught locally
DEBUG/dalvikvm(599): NOTE: loadClass
'org.apache.harmony.luni.internal.locale.ISO4Currencies_en' 0x40018950
threw an exception
DEBUG/dalvikvm(599): Exception Ljava/lang/ClassNotFoundException; from
PathClassLoader.java:205 not caught locally
DEBUG/dalvikvm(599): NOTE: loadClass
'org.apache.harmony.luni.internal.locale.ISO4CurrenciesToDigits_en_US'
0x40018950 threw an exception
DEBUG/dalvikvm(599): Exception Ljava/lang/ClassNotFoundException; from
PathClassLoader.java:205 not caught locally
DEBUG/dalvikvm(599): NOTE: loadClass
'org.apache.harmony.luni.internal.locale.ISO4CurrenciesToDigits_en'
0x40018950 threw an exception

what I am doing is:

1:public class EditTextView extends EditText{
2:   private Object obj;
3:   public ExitTextView(Context ctx, Object obj){
4:   super(ctx);
5:   this.obj = obj;
 
 
}
}

Issue happens at :   line 4.

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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dynamic UI-Processing - without XML files.

2008-04-03 Thread Dan U.

But if he's trying to use the CursorAdapter, is that even possible?
The constructor needs an id of a layout xml file.

I was going to say to create a layout xml that was basically just an
empty container (maybe a LinearLayout) and then add child views into
that programmatically, but it looks like the layout needs to have all
the views in it that are referenced by the to array. Perhaps there's
a way to extend SimpleCursorAdapter to dynamically add the views
before the to array is referenced.

On Apr 3, 9:39 am, hackbod [EMAIL PROTECTED] wrote:
 You don't need any layout files.  Just instantiate the view hierarchy
 you want and use it.

 On Apr 3, 7:12 am, simon [EMAIL PROTECTED] wrote:

  I also managed to build a dynamic GUI in the mean time. But I still
  see no possiblity to completely avoid XML files. Even in the example
  you mentioned, there is still the R class involved to get an initial
  layout component. So the question is still, what do constrcutors/
  methods (like CursorAdapter) want to have, if there is nothin in the R
  class...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread Dan U.

Yeah, I agree. Huge security problem there. I can see where it might
come in handy for automated GUI testing, but not much else.

On Apr 3, 9:35 am, hackbod [EMAIL PROTECTED] wrote:
 No, we don't allow an application to inject key events that drive
 another app.  Too big of a security hole. :)

 On Apr 3, 7:45 am, dimenwarper [EMAIL PROTECTED] wrote:

  Yea, more or less I want one app of mine to serve as a proxy actor to
  another app. I don't see any of these in the docs or anywhere else so
  I'll probably have to implement a mini layer based on intents to do
  the job =|

  chrs,
  dw

  On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote:

   You mean to make your app interact with another app? I don't think
   that's possible.

   On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote:

hey all!

Does anyone know if there is any way to create and launch events (such
as click and key events) via software (e.g. createClickEvent(float x,
float y))?

Rgrds,
dw
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How does a user input a text on HVGA portrait mode with no keyboard, in the actual device.

2008-04-03 Thread Agus

For the actual device, how does a user input a text on HVGA portrait
mode with no keyboard?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: LocationManager crashes app, every time

2008-04-03 Thread JoeB

No, only one emulator, but thanks for asking.  After wiping emulator
data and launching in debug mode from eclipse a few times, I was
finally able to see logcat output.  Ultimately it was a permission
typo causing the crash.  Still no idea why I couldn't get log info
before.

For anyone who is curious,
LocationMananger.requestUpdates(Criteria...) will die internally every
time.  You have to explicitly tell it the provider to use via the
other overloaded method.  This is pretty silly--it should just use
best/closest provider available to your criteria.  It actually dies
even if you just pass it a new empty Criteria object.  Bottom line:
this API is pretty flaky.



On Apr 2, 5:09 pm, Harsh Jain [EMAIL PROTECTED] wrote:
 are you running this in a second emulator by any chance ?

 On Thu, Apr 3, 2008 at 5:35 AM, JoeB [EMAIL PROTECTED] wrote:

  Hi,

  Any advice on this would help--I can never get a provider from
  LocationManager (there is supposed to be a mock one at least, and I
  can see the data for it by using adb shell).  I also can't get
  locations or anything else.  Any of the following statements crash the
  application, every time (take your pick, they all crash it).

 LocationProvider mockProvider = locMgr.getProvider(gps);
 locMgr.getBestProvider(CRITERIA);
 locMgr.requestUpdates(CRITERIA, LOCATION_PERIOD,
  LOCATION_ACCURACY, notifyIntent);

  Oh, and this
  List providers = locMgr.getProviders();
  ...doesn't crash, but returns an empty list.

  This is the Criteria setup btw:

 private static final Criteria CRITERIA;
 static{
 CRITERIA = new Criteria();
 CRITERIA.setSpeedRequired(false);
 CRITERIA.setAltitudeRequired(false);
 CRITERIA.setBearingRequired(false);
 CRITERIA.setCostAllowed(false);
 }

  I also have the following permissions defined in my manifest (I added
  all the location-related ones, just in case that was the issue):

  uses-permission android:name=android.permission.ACCESS_GPS /
  uses-permission
  android:name=android.permission.ACCESS_ASSISTED_GPS /
  uses-permission android:name=android.permission.CELL_ID /
  !-- Logically, this perm should be the set of the ones above, but
  declare everything just in case --
  uses-permission android:name=android.permission.LOCATION /

  I don't get any kind of error message in the console, but I also can't
  run adb debug from command line anymore since moving to m5-rc15 for
  unknown reason.  It always just displays error: closed, whether I
  run the emulator stand-alone or from eclipse.  I know the
  LocationManager calls are causing the crash by tracing w/ debugger.

  Any tips on why this is happening, or why I can no longer get any
  debug information, would be greatly appreciated.  By the way,
  everything described above behaves exactly the same way with either m5-
  rc14 or m5-rc15 (I tried switching back to no avail).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] bluetooth simulation?

2008-04-03 Thread Jason Pyeron

Does the SDK simulator support running two phones and communicating via
Bluetooth?


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text input on HVGA mode with no physical keys?

2008-04-03 Thread Agus

bump.

On Thu, Apr 3, 2008 at 3:15 PM, Agus [EMAIL PROTECTED] wrote:
 How is it possible for users to input text when theres no physical
  keys on HVGA mode
  Maybe there exists a virtual keyboard for HVGA mode?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Text input on HVGA mode with no physical keys?

2008-04-03 Thread Agus

How is it possible for users to input text when theres no physical
keys on HVGA mode
Maybe there exists a virtual keyboard for HVGA mode?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: addRemoteChatListener in IGTalkSession

2008-04-03 Thread Bård Magnus

Same as Lev. I haven't been able to successfully register
IChatListener either.
Anyone out there have any insight or code samples to share on this?

On 2 Apr, 22:47, Lev [EMAIL PROTECTED] wrote:
 I haven't quite understood what to implement into the asBinder method.

 Could you help me out? Thanks a lot.

 On Mar 11, 4:22 am, Ed [EMAIL PROTECTED] wrote:



  The methods you declared should be methods on a new
  IChatListener.Stub(), not a IChatListener.  So if your
  IChatListener.Stub is called mChatListenStub you would then do this:

      mChatListen =
  IChatListener.Stub.asInterface(mChatListenStub.asBinder());
      mSession.addRemoteChatListener(mChatListen);

  Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to show application loading progress bar on click of application on main home menu?

2008-04-03 Thread Niket Anand

Hi All,

I am trying to show the progress bar when user clicks my app on
android home main menu.
I tried different options but failed to do so. Mainly I called
ProgressDialog.show in onCreate method but it is not showing as I am
looking for.

As one can see my app icon on main menu then on click of that, till my
app properly loads, I want to show the progress bar showing
application loading.

Can anyone help me out?

Thanks,
Niket
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Why bitmap cache was removed in mc5?

2008-04-03 Thread rostik slipetskyy

When I loaded images from the web, it was quite useful to use caching
of images; however, in mc5 this functionality was removed. What was
the reason for that? Is there any other way to cache images by means
of SDK?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Romain Guy

Hi,

You cannot do this. If you try to put the same View in different
layouts, an exception will be thrown anyway.

On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:

  I need to use the same buttons in several list items - each of which
  is a nested layout.
  Instead of creating a new button each time, to save time and space, I
  am going to reuse the same button, adding it to each layout. Of
  course, each OnClickListener will have to figure out which list item
  was clicked.
  Are there any unintended or harmful side effects to this?
  thanks,
  Anil

  




-- 
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Scrolling with internal focus problem

2008-04-03 Thread Ted Hopp

I'm trying to work out how to do this properly in Android: I have a
tall custom view embedded in a ScrollView. The custom view has a few
scattered hot spots that can receive focus. (So far, this is more or
less like the internal selection demo in ApiDemos.) I'd like the
following behavior: the view initially appears scrolled to the top. If
at least one hot spot is visible, the first one has focus. If the user
presses the down arrow and the next hot spot is also visible, transfer
focus without scrolling (or minor scrolling if partially visible);
otherwise, scroll in the ordinary manner of a ScrollView. If another
hot spot comes into view when scrolling, transfer focus to it.
Analogous behavior should happen with the up arrow.

The problem is that if I transfer focus in the manner of the internal
selection demo, scrolling will skip down the view until the next hot
spot is visible. I'd like it to scroll to intermediate positions where
there may be no hot spot visible.

I actually get more or less the behavior I want with a LinearLayout
inside a ScrollView when only some of the items are focusable.
(However, the LinearLayout comes up scrolled so the first focusable
child is visible.)

Thanks for any help with this!

Ted Hopp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread Peli

Another possible usage could be speech recognition (SR) - if this is
not covered by the Android framework itself: A SR application could
put text at the cursor position of another application, and thus
enable blind people to work with arbitrary applications - email, web
browser forms, proprietary forms, ... - not only those that have been
designed for the blind...

Of course, it would be better to have native support for those but
that is not in sight yet...

Peli

On Apr 3, 9:27 pm, hackbod [EMAIL PROTECTED] wrote:
 You are allowed to inject key events as long as the focus window they
 are going to is one that was created by a process with your own user
 ID.  This allows instrumentation tests to drive the UI of the app they
 are testing (since the instrumentation is built against the test app,
 so runs with its own uid).

 On Apr 3, 11:57 am, Dan U. [EMAIL PROTECTED] wrote:



  Yeah, I agree. Huge security problem there. I can see where it might
  come in handy for automated GUI testing, but not much else.

  On Apr 3, 9:35 am, hackbod [EMAIL PROTECTED] wrote:

   No, we don't allow an application to inject key events that drive
   another app.  Too big of a security hole. :)

   On Apr 3, 7:45 am, dimenwarper [EMAIL PROTECTED] wrote:

Yea, more or less I want one app of mine to serve as a proxy actor to
another app. I don't see any of these in the docs or anywhere else so
I'll probably have to implement a mini layer based on intents to do
the job =|

chrs,
dw

On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote:

 You mean to make your app interact with another app? I don't think
 that's possible.

 On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote:

  hey all!

  Does anyone know if there is any way to create and launch events 
  (such
  as click and key events) via software (e.g. createClickEvent(float 
  x,
  float y))?

  Rgrds,
  dw- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Anil

Thanks Romain for clarifying!

On Apr 3, 3:40 pm, Romain Guy [EMAIL PROTECTED] wrote:
 Hi,

 You cannot do this. If you try to put the same View in different
 layouts, an exception will be thrown anyway.

 On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:

   I need to use the same buttons in several list items - each of which
   is a nested layout.
   Instead of creating a new button each time, to save time and space, I
   am going to reuse the same button, adding it to each layout. Of
   course, each OnClickListener will have to figure out which list item
   was clicked.
   Are there any unintended or harmful side effects to this?
   thanks,
   Anil

 --
 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: GTalk subscription requests broken ..

2008-04-03 Thread Megha Joshi
Subscriptions are stored in the IM content provider, in
data/data/com.google.android.providers.im/databases/im.db. in the
subscriptions table.

On Tue, Apr 1, 2008 at 9:30 AM, writser [EMAIL PROTECTED] wrote:


 No, not yet. I just made a bug report although I guess that Google
 already knows about this issue.

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

 // Writser
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to show application loading progress bar on click of application on main home menu?

2008-04-03 Thread hackbod

If you are using M3, there is a bug where windows opened during
startup would get covered by the app window.  This was fixed in M5,
where it should work fine.  If ProgressDialog isn't being displayed,
you might want to try a simple AlertDialog -- I -know- those worked
when shown in onCreate() (as of M5).

On Apr 3, 1:35 pm, Niket Anand [EMAIL PROTECTED] wrote:
 Hi All,

 I am trying to show the progress bar when user clicks my app on
 android home main menu.
 I tried different options but failed to do so. Mainly I called
 ProgressDialog.show in onCreate method but it is not showing as I am
 looking for.

 As one can see my app icon on main menu then on click of that, till my
 app properly loads, I want to show the progress bar showing
 application loading.

 Can anyone help me out?

 Thanks,
 Niket
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Online streaming MP3 Media Player

2008-04-03 Thread jessealbini

I have choppy audio playback as well. It works smoothly on XP for some
reason though.

- Jesse
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: gtalk - error 503 while sending message

2008-04-03 Thread Megha Joshi
 I think the 503 generally means feature not supported. It looks like the
destination address is an Android device (by looking at the resource pard of
the JID). So is [EMAIL PROTECTED] a buddy of [EMAIL PROTECTED]? You need
to be a buddy in order to send data messages to each other. Or could it be
that [EMAIL PROTECTED] isn't connected to the GTalk server?

The thread below has some details on using the GTalkDemo in Apidemos:
http://groups.google.com/group/android-developers/msg/2d8ad5f1289e3968

Thanks,
Megha


On Thu, Apr 3, 2008 at 8:15 AM, nirdroid [EMAIL PROTECTED] wrote:


 ERROR/gtalkSrv(1639):
 ERROR Message:
 message id=8fmxs-5 to=[EMAIL PROTECTED]/androidwCxwXphYj3JM
 from=[EMAIL PROTECTED]/androidwCxwXphYj3JM type=error
 error code=503/error
x xmlns=google:data-msg token=1yAeH-1
 intent_action=com.test.app.msg
app-data type=MeetingCodeZq4Wny45BAXKJMz5/app-data
app-data type=UserCodeqAksVBKOVUcySJRO/app-data
/x
 /message


 any idea what's wrong?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Anil

I have to say this - adding a button dynamically to a layout is
*extremely* slow.
It takes about 3 seconds for the button to be added!


On Apr 3, 3:40 pm, Romain Guy [EMAIL PROTECTED] wrote:
 Hi,

 You cannot do this. If you try to put the same View in different
 layouts, an exception will be thrown anyway.

 On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:

   I need to use the same buttons in several list items - each of which
   is a nested layout.
   Instead of creating a new button each time, to save time and space, I
   am going to reuse the same button, adding it to each layout. Of
   course, each OnClickListener will have to figure out which list item
   was clicked.
   Are there any unintended or harmful side effects to this?
   thanks,
   Anil

 --
 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] View Parents

2008-04-03 Thread [EMAIL PROTECTED]

when i triying to change from a subactivity to main activity then push
navigation keys and appear an exception what does mean?

parameter must be a descendant of this view
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread hackbod

On Apr 3, 2:50 pm, Anil [EMAIL PROTECTED] wrote:
 I have to say this - adding a button dynamically to a layout is
 *extremely* slow.
 It takes about 3 seconds for the button to be added!

Um.  I've never seen it take that long. :)  Note that inflating a view
hierarchy from a layout file is slower than creating and adding views
programmatically, because all that code does is parse the XML file and
call the same APIs to create and add views.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Quality of audio sound in MediaPlayer

2008-04-03 Thread acopernicus

I couldn't get a .ogg file to play, but from what I've heard, the
quality is fairly low.

Does anyone know how to setup a streaming server?  I've looked for
info on adding streaming functionality to my Tomcat server but can't
find any info

Anthony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to setup a server for streaming audio files

2008-04-03 Thread acopernicus

I've spent over an hour looking for a way to add an .mp4 streaming
web service to my Tomcat server but can't find any information.

Could someone explain to me how we're supposed to setup such a server
as streaming .mp4 files seems to be Android's only fully supported
audio function.

Also...has anyone successfully streamed .mp4 files to Android?  What
is the quality like?  If it's not better than playing my .mp3 files
off the local drive then I'll just wait until the performance
improves.

Nonetheless though, I would greatly appreciate ANY info on how to
setup a streaming web service for my Tomcat server?

Thanks,
Anthony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text input on HVGA mode with no physical keys?

2008-04-03 Thread Zach Hobbs

Please don't bump a message twice 15 mins after posting.

It's obvious that there will be some kind of on screen keyboard that users 
will use to input keys (like the iPhone), but it is not available with the 
currently SDK.

-- 

Zach Hobbs
HelloAndroid.com
Android OS news, tutorials, downloads 



On Thursday 03 April 2008 15:26:49 Agus wrote:
 bump.

 On Thu, Apr 3, 2008 at 3:15 PM, Agus [EMAIL PROTECTED] wrote:
  How is it possible for users to input text when theres no physical
   keys on HVGA mode
   Maybe there exists a virtual keyboard for HVGA mode?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Good .apk file size to shoot for?

2008-04-03 Thread conlan

thanks

On Mar 19, 11:30 pm, hackbod [EMAIL PROTECTED] wrote:
 50k-500k sounds fine. ;)  It really depends on your app.  For
 calibration, I believe our minimum spec is 128MB of FLASH, and you
 should figure half of that dedicated to the system, so 32-64MB for
 installing applications and their data.

 As always in the mobile world, smaller/faster is better.

 On Mar 19, 6:10 pm, conlan [EMAIL PROTECTED] wrote:

  *bump*

  On Mar 4, 12:23 pm, conlan [EMAIL PROTECTED] wrote:

   What's an ideal file size to for our applications .apk files? Just a
   ballpark, ie 50k - 500k, etc...?

   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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to setup a server for streaming audio files

2008-04-03 Thread David Given
acopernicus wrote:
[...]
 Also...has anyone successfully streamed .mp4 files to Android?  What
 is the quality like?  If it's not better than playing my .mp3 files
 off the local drive then I'll just wait until the performance
 improves.

Assuming you don't want *live* streaming, then surely all you would need
to do is to provide a way for accessing a URL to produce mp4 data...
i.e., put your mp4 file on a web server and access it normally.

As for quality, .mp4 usually refers to QuickTime multimedia capsules
which can theoretically hold a whole bunch of actual data formats. This
page:

http://en.wikipedia.org/wiki/Comparison_of_container_formats

...suggests that mp4 files can contain MP3, AAC or ALAC audio, but
elsewhere it says they can contain Vorbis and MPEG-1 layer I and II as
well. *shrug*

By repackaging your MP3 file into a .mp4 capsule you *should* get
exactly the same quality that the original MP3 was (since it's the same
data, just presented differently). Whether you *actually* do or not is
another matter...

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│ I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone. --- Bjarne Stroustrup



signature.asc
Description: OpenPGP digital signature


[android-developers] synching a mobile app with an external database server

2008-04-03 Thread scimitar

Hi,

I'm very new to Android, so I'm still trying to figure out the basics.
I want to write an application that needs to communicate with a
database server, and upload it's contact list to the server. In this
regard I have the following questions:

1). Is there a way to associate a phone number to an Android
application?

2) How does my app communicate with the server? It needs to host a web
address I guess. What's the way to do this?

I'll really appreciate if somebody could help me.

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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Creating events

2008-04-03 Thread hackbod

Being able to inject key events to any applications means you can
effectively do anything the user can do -- you can start phone calls
without them being involved, download and install applications without
them being involved, etc.

This is not something we plan to support.

On Apr 3, 5:03 pm, Peli [EMAIL PROTECTED] wrote:
 What could go wrong with granting permissions to selected trustful
 applications just like applications can be granted rights to
 ACCESS_GPS, READ_CONTACTS, or RECEIVE_BOOT_COMPLETED?  =
 INJECT_KEY_EVENTS?

 Not that I'm asking for it (since I know of the time-constraints the
 Android team has to deal with), but in principle, wouldn't it be a
 more open strategy to allow technically whatever is possible as long
 as access is controlled by permissions?

 Peli

 On Apr 3, 11:29 pm, hackbod [EMAIL PROTECTED] wrote:

  We aren't allowing injection of arbitrary key events from third party
  applications.  It's just too big a security hole.

  On Apr 3, 1:47 pm, Peli [EMAIL PROTECTED] wrote:

   Another possible usage could be speech recognition (SR) - if this is
   not covered by the Android framework itself: A SR application could
   put text at the cursor position of another application, and thus
   enable blind people to work with arbitrary applications - email, web
   browser forms, proprietary forms, ... - not only those that have been
   designed for the blind...

   Of course, it would be better to have native support for those but
   that is not in sight yet...

   Peli

   On Apr 3, 9:27 pm, hackbod [EMAIL PROTECTED] wrote:

You are allowed to inject key events as long as the focus window they
are going to is one that was created by a process with your own user
ID.  This allows instrumentation tests to drive the UI of the app they
are testing (since the instrumentation is built against the test app,
so runs with its own uid).

On Apr 3, 11:57 am, Dan U. [EMAIL PROTECTED] wrote:

 Yeah, I agree. Huge security problem there. I can see where it might
 come in handy for automated GUI testing, but not much else.

 On Apr 3, 9:35 am, hackbod [EMAIL PROTECTED] wrote:

  No, we don't allow an application to inject key events that drive
  another app.  Too big of a security hole. :)

  On Apr 3, 7:45 am, dimenwarper [EMAIL PROTECTED] wrote:

   Yea, more or less I want one app of mine to serve as a proxy 
   actor to
   another app. I don't see any of these in the docs or anywhere 
   else so
   I'll probably have to implement a mini layer based on intents to 
   do
   the job =|

   chrs,
   dw

   On Apr 3, 12:36 am, Dan U. [EMAIL PROTECTED] wrote:

You mean to make your app interact with another app? I don't 
think
that's possible.

On Apr 2, 11:13 pm,dimenwarper[EMAIL PROTECTED] wrote:

 hey all!

 Does anyone know if there is any way to create and launch 
 events (such
 as click and key events) via software (e.g. 
 createClickEvent(float x,
 float y))?

 Rgrds,
 dw- Hide quoted text -

- Show quoted text -- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] RadioButton size

2008-04-03 Thread DotNetCode

I need to control the size of the RadioButtons inside a RadioGroup.
Can someone please tell which attribute should I look for??

Thanks,

PS: This is posted by someone else on developer group with no
response.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Anil

When user clicks a button, these 3 lines are executed:

button = new ImageButton(context);
button .setImageResource(R.drawable.buttonJPG);
layout.addView(button, new
LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));


I observe that during the first add, it takes about 3.5 seconds.
Subsequent adds are much quicker at about 0.5 sec.
On actual devices, it will be many times slower.
thanks,
Anil

On Apr 3, 6:29 pm, Romain Guy [EMAIL PROTECTED] wrote:
 I highly doubt this number since during a scroll, ListView basically
 adds and removes Views all the time. It certainly doesn't take 3
 seconds. There must be a bottleneck somewhere in your application.



 On Thu, Apr 3, 2008 at 2:50 PM, Anil [EMAIL PROTECTED] wrote:

   I have to say this - adding a button dynamically to a layout is
   *extremely* slow.
   It takes about 3 seconds for the button to be added!

   On Apr 3, 3:40 pm, Romain Guy [EMAIL PROTECTED] wrote:
Hi,

You cannot do this. If you try to put the same View in different
layouts, an exception will be thrown anyway.

On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:

  I need to use the same buttons in several list items - each of which
  is a nested layout.
  Instead of creating a new button each time, to save time and space, I
  am going to reuse the same button, adding it to each layout. Of
  course, each OnClickListener will have to figure out which list item
  was clicked.
  Are there any unintended or harmful side effects to this?
  thanks,
  Anil

--
Romain Guywww.curious-creature.org

 --
 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Romain Guy

It looks like its setImageResource() which is taking a lot of time.

On Thu, Apr 3, 2008 at 6:28 PM, Anil [EMAIL PROTECTED] wrote:

  When user clicks a button, these 3 lines are executed:

  button = new ImageButton(context);
  button .setImageResource(R.drawable.buttonJPG);
  layout.addView(button, new
  LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
  LayoutParams.WRAP_CONTENT));


  I observe that during the first add, it takes about 3.5 seconds.
  Subsequent adds are much quicker at about 0.5 sec.
  On actual devices, it will be many times slower.
  thanks,
  Anil

  On Apr 3, 6:29 pm, Romain Guy [EMAIL PROTECTED] wrote:
   I highly doubt this number since during a scroll, ListView basically
   adds and removes Views all the time. It certainly doesn't take 3
   seconds. There must be a bottleneck somewhere in your application.
  
  
  
   On Thu, Apr 3, 2008 at 2:50 PM, Anil [EMAIL PROTECTED] wrote:
  
 I have to say this - adding a button dynamically to a layout is
 *extremely* slow.
 It takes about 3 seconds for the button to be added!
  
 On Apr 3, 3:40 pm, Romain Guy [EMAIL PROTECTED] wrote:
  Hi,
  
  You cannot do this. If you try to put the same View in different
  layouts, an exception will be thrown anyway.
  
  On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:
  
I need to use the same buttons in several list items - each of 
 which
is a nested layout.
Instead of creating a new button each time, to save time and 
 space, I
am going to reuse the same button, adding it to each layout. Of
course, each OnClickListener will have to figure out which list 
 item
was clicked.
Are there any unintended or harmful side effects to this?
thanks,
Anil
  
  --
  Romain Guywww.curious-creature.org
  
   --
   Romain Guywww.curious-creature.org
  




-- 
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] MapView inside ScrollView doesn't move right

2008-04-03 Thread colintheprep

Hi - anybody know if it's possible to have a mapview inside a
scrollview, and have it take focus such that it can move without the
scrollview scrolling?

So I want:
scrollview
   some stuff
   mapview
   some more stuff

When I drag on empty space or tab between elements in stuff, the
scrollview scrolls correctly.  But when the mapview is visible, and I
click on it, and try to move it around with the 'touchscreen', the
scrollview takes over and scrolls instead of the mapview moving.  I'd
like to be able to 'focus' the mapview, such that it pans instead of
the scrollview scrolling, and then to restore focus to the scrollview
by clicking on empty space, or another item.

any ideas?

thanks!
Colin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-03 Thread Anil

Any way to speed it up? for example if there is a way that the image
can be read in and stored in an image/icon class and if buttons can
share that image/icon. Also do you have any idea why it is quicker on
subsequent adds?

On Apr 3, 8:29 pm, Romain Guy [EMAIL PROTECTED] wrote:
 It looks like its setImageResource() which is taking a lot of time.



 On Thu, Apr 3, 2008 at 6:28 PM, Anil [EMAIL PROTECTED] wrote:

   When user clicks a button, these 3 lines are executed:

   button = new ImageButton(context);
   button .setImageResource(R.drawable.buttonJPG);
   layout.addView(button, new
   LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
   LayoutParams.WRAP_CONTENT));

   I observe that during the first add, it takes about 3.5 seconds.
   Subsequent adds are much quicker at about 0.5 sec.
   On actual devices, it will be many times slower.
   thanks,
   Anil

   On Apr 3, 6:29 pm, Romain Guy [EMAIL PROTECTED] wrote:
I highly doubt this number since during a scroll, ListView basically
adds and removes Views all the time. It certainly doesn't take 3
seconds. There must be a bottleneck somewhere in your application.

On Thu, Apr 3, 2008 at 2:50 PM, Anil [EMAIL PROTECTED] wrote:

  I have to say this - adding a button dynamically to a layout is
  *extremely* slow.
  It takes about 3 seconds for the button to be added!

  On Apr 3, 3:40 pm, Romain Guy [EMAIL PROTECTED] wrote:
   Hi,

   You cannot do this. If you try to put the same View in different
   layouts, an exception will be thrown anyway.

   On Thu, Apr 3, 2008 at 1:34 PM, Anil [EMAIL PROTECTED] wrote:

 I need to use the same buttons in several list items - each of 
  which
 is a nested layout.
 Instead of creating a new button each time, to save time and 
  space, I
 am going to reuse the same button, adding it to each layout. Of
 course, each OnClickListener will have to figure out which list 
  item
 was clicked.
 Are there any unintended or harmful side effects to this?
 thanks,
 Anil

   --
   Romain Guywww.curious-creature.org

--
Romain Guywww.curious-creature.org

 --
 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] style and the color of the separator

2008-04-03 Thread Ken

1) How to change the color of the white separator in ListView?

2) For a more general question, where can I find the specification for
the things that I can change inside style tag?
Example:
style name=Theme.Transparent
  item name=android:windowBackground@drawable/
transparent_background/item
  item name=android:windowNoTitletrue/item
  item name=android:colorForeground#fff/item
/style

Thanks!

Ken


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to setup a server for streaming audio files

2008-04-03 Thread acopernicus

Thanks...I was able to access the .mp4 I created using IE  FireFox
but still cannot get the MediaPlayer to stream the .mp4 file.  I'm
even using the example MediaPlayer files provide by the Google team
but STILL NO LUCK.

Has anyone got the MediaPlayer examples to stream .mp4 files

I currently get this error:

ERROR/MediaPlayer(596): error: null
ERROR/MediaPlayer(596): java.io.IOException
ERROR/MediaPlayer(596): at
android.media.MediaPlayer.prepare(Native Method)
ERROR/MediaPlayer(596): at
com.google.android.samples.media.MediaPlayer_Video.playVideo(MediaPlayer_Video.java:
87)
ERROR/MediaPlayer(596): at
com.google.android.samples.media.MediaPlayer_Video.access
$1(MediaPlayer_Video.java:58)
ERROR/MediaPlayer(596): at
com.google.android.samples.media.MediaPlayer_Video
$1.onClick(MediaPlayer_Video.java:101)
ERROR/MediaPlayer(596): at
android.view.View.performClick(View.java:1857)
ERROR/MediaPlayer(596): at
android.view.View.onTouchEvent(View.java:2966)
ERROR/MediaPlayer(596): at
android.widget.TextView.onTouchEvent(TextView.java:2850)
ERROR/MediaPlayer(596): at
android.view.View.dispatchTouchEvent(View.java:2706)

Curiously, the MediaPlayer example doesn't even seem capable of
streaming an mp4 file out of the box as the url is sets for the
MediaPlayer is just :

path = http://;;

I updated it to point to my file here:

path = http://www.pocketjourney.com/audio.mp4;;

But still NO SUCCESSyes the capital letters indicate that this
lack of even basic audio support has been the biggest waste of my time
for my Android project.

Anthony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: NullPointerException Error (Very Easy)

2008-04-03 Thread Dan U.

It'd be helpful to see your code, but I'm guessing you have a
ListActivity and you haven't set a list adapter.

On Apr 3, 7:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hello everyone,
 When I want to start my activity in Run mode, all I get is a
 NullPointerException error. When I run it in debug mode, I can see the
 stack trace but it doesn't really help me..Can anyone decipher this
 stack trace?

 DalvikVM[localhost:8606]
 Thread [3 Main] (Suspended (exception NullPointerException))
 ArrayAdapter.createViewFromResource(int, View, ViewGroup, 
 int) line:
 243
 ArrayAdapter.getView(int, View, ViewGroup) line: 221
 ListView.measureHeightOfChildren(int, int, int, int, int) 
 line:
 1009
 ListView.onMeasure(int, int) line: 959
 ListView(View).measure(int, int) line: 5937
 LinearLayout(ViewGroup).measureChildWithMargins(View, int, 
 int, int,
 int) line: 2251
 LinearLayout.measureChildBeforeLayout(View, int, int, int, 
 int, int)
 line: 742
 LinearLayout.measureVertical(int, int) line: 289
 LinearLayout.onMeasure(int, int) line: 231
 LinearLayout(View).measure(int, int) line: 5937
 FrameLayout(ViewGroup).measureChild(View, int, int) line: 2219
 FrameLayout.onMeasure(int, int) line: 146
 FrameLayout(View).measure(int, int) line: 5937
 LinearLayout.measureVertical(int, int) line: 385
 LinearLayout.onMeasure(int, int) line: 231
 LinearLayout(View).measure(int, int) line: 5937
 PhoneWindow$DecorView(ViewGroup).measureChild(View, int, int) 
 line:
 2219
 PhoneWindow$DecorView(FrameLayout).onMeasure(int, int) line: 
 146
 PhoneWindow$DecorView.onMeasure(int, int) line: 1202
 PhoneWindow$DecorView(View).measure(int, int) line: 5937
 ViewRoot.performTraversals() line: 341
 ViewRoot.handleMessage(Message) line: 584
 ViewRoot(Handler).dispatchMessage(Message) line: 80
 Looper.loop() line: 91
 ActivityThread.main(String[]) line: 3052
 Method.invokeNative(Object, Object[], Class, Class[], Class, 
 int,
 boolean) line: not available [native method]
 Method.invoke(Object, Object...) line: 356
 ZygoteInit$MethodAndArgsCaller.run() line: 1547
 ZygoteInit.main(String[]) line: 1445
 NativeStart.main(String[]) line: not available [native method]
 Thread [13 Binder Thread #2] (Running)
 Thread [11 Binder Thread #1] (Running)
 Thread [15 Thread-7] (Running)

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



[android-developers] Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory

2008-04-03 Thread karna

Any one tried uisng mediaplayer example ,I ma unable to play video
file from local directory
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Progmatic Selection of List Item

2008-04-03 Thread Raja Nagendra Kumar

But why is such behavior, I would expect the display to be
highlighted.. is this a bug..

On Apr 3, 11:26 pm, Romain Guy [EMAIL PROTECTED] wrote:
 Note that you will not see a highlighted selection initially when

 your List is displayed

 You will if the activity is launched using the keyboard instead of the
 touch screen.

 --
 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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] is there any plans to release c++ version of andriod

2008-04-03 Thread karna

is there any plans to release c++ version of andriod
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView inside ScrollView doesn't move right

2008-04-03 Thread acopernicus

I don't use a MapView within a ScrollView.  My understanding is that
the MapView handles its own scrolling.

You can see working examples of MapViews in my tutorials here:
blog.pocketjourney.com

Anthony


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MediaPlayer example: Has anyone been able to stream an .mp4 file yet?

2008-04-03 Thread acopernicus

Please feel free to test your working code against my .mp4 file if
your code works.  It's possible there's something wrong with my .mp4
file, but I doubt it.

Thanks...again!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView inside ScrollView doesn't move right

2008-04-03 Thread xingye

Maybe you should override the scrollview's dispatchTouchEvent, and
detect if the touch event fired by the mapview, then decided who will
handle that event.

On 4月4日, 上午9时47分, colintheprep [EMAIL PROTECTED] wrote:
 Hi - anybody know if it's possible to have a mapview inside a
 scrollview, and have it take focus such that it can move without the
 scrollview scrolling?

 So I want:
 scrollview
some stuff
mapview
some more stuff

 When I drag on empty space or tab between elements in stuff, the
 scrollview scrolls correctly.  But when the mapview is visible, and I
 click on it, and try to move it around with the 'touchscreen', the
 scrollview takes over and scrolls instead of the mapview moving.  I'd
 like to be able to 'focus' the mapview, such that it pans instead of
 the scrollview scrolling, and then to restore focus to the scrollview
 by clicking on empty space, or another item.

 any ideas?

 thanks!
 Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: NullPointerException Error (Very Easy)

2008-04-03 Thread xingye

Is there a view with id list in your layout file?

On 4月4日, 下午12时46分, Dan U. [EMAIL PROTECTED] wrote:
 It'd be helpful to see your code, but I'm guessing you have a
 ListActivity and you haven't set a list adapter.

 On Apr 3, 7:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:



  Hello everyone,
  When I want to start my activity in Run mode, all I get is a
  NullPointerException error. When I run it in debug mode, I can see the
  stack trace but it doesn't really help me..Can anyone decipher this
  stack trace?

  DalvikVM[localhost:8606]
  Thread [3 Main] (Suspended (exception NullPointerException))
  ArrayAdapter.createViewFromResource(int, View, ViewGroup, 
  int) line:
  243
  ArrayAdapter.getView(int, View, ViewGroup) line: 221
  ListView.measureHeightOfChildren(int, int, int, int, int) 
  line:
  1009
  ListView.onMeasure(int, int) line: 959
  ListView(View).measure(int, int) line: 5937
  LinearLayout(ViewGroup).measureChildWithMargins(View, int, 
  int, int,
  int) line: 2251
  LinearLayout.measureChildBeforeLayout(View, int, int, int, 
  int, int)
  line: 742
  LinearLayout.measureVertical(int, int) line: 289
  LinearLayout.onMeasure(int, int) line: 231
  LinearLayout(View).measure(int, int) line: 5937
  FrameLayout(ViewGroup).measureChild(View, int, int) line: 
  2219
  FrameLayout.onMeasure(int, int) line: 146
  FrameLayout(View).measure(int, int) line: 5937
  LinearLayout.measureVertical(int, int) line: 385
  LinearLayout.onMeasure(int, int) line: 231
  LinearLayout(View).measure(int, int) line: 5937
  PhoneWindow$DecorView(ViewGroup).measureChild(View, int, 
  int) line:
  2219
  PhoneWindow$DecorView(FrameLayout).onMeasure(int, int) 
  line: 146
  PhoneWindow$DecorView.onMeasure(int, int) line: 1202
  PhoneWindow$DecorView(View).measure(int, int) line: 5937
  ViewRoot.performTraversals() line: 341
  ViewRoot.handleMessage(Message) line: 584
  ViewRoot(Handler).dispatchMessage(Message) line: 80
  Looper.loop() line: 91
  ActivityThread.main(String[]) line: 3052
  Method.invokeNative(Object, Object[], Class, Class[], 
  Class, int,
  boolean) line: not available [native method]
  Method.invoke(Object, Object...) line: 356
  ZygoteInit$MethodAndArgsCaller.run() line: 1547
  ZygoteInit.main(String[]) line: 1445
  NativeStart.main(String[]) line: not available [native 
  method]
  Thread [13 Binder Thread #2] (Running)
  Thread [11 Binder Thread #1] (Running)
  Thread [15 Thread-7] (Running)

  Thanks,
  Noam.- 隐藏被引用文字 -

 - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---