[android-developers] Re: Animate Overlays on MapView

2008-04-02 Thread squix

Does this silence mean there is no answer to my questions, or the
answer is so simple that no one feels like giving it:-)?

On Mar 28, 2:47 pm, Dani Eichhorn [EMAIL PROTECTED] wrote:
 Hi,

 In my MapView based application I need to animate specific overlays,
 whereas others are relatively static.
 Currently I call invalidate on the mapview, which causes all overlays to
 be redrawn, whenever I need to animate just one of them.
 Is there a more efficient way to animate objects on the map? Is there a
 way to cache the static overlays and reuse them as long as the content
 doesn't change (would that even increase performance)? How do I use
 invalidate(Rect) to make my overlay only redraw the dirty rectangle?

 Thanks,
 Dani
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: android.app.ServiceConnectionLeaked

2008-04-02 Thread hackbod

Yes, the local and remote service binding demos are artificial in this
way, in that they provide a UI for you to control when it binds and
unbinds, so that you can see what is happening when those functions
are called.  You will notice that if you don't unbind before closing
the activity, you get this warning message.

On Apr 1, 8:25 pm, j [EMAIL PROTECTED] wrote:
 Hi hackbod,

 I am very confused about your comment.  In the APIDemo,
 LocalServiceBinding.java calls bindService method but nowhere in the
 entire demo source code base does it call unbindService method.

 Please clarify. Thanks!

 On Mar 13, 10:04 am, hackbod [EMAIL PROTECTED] wrote:

  No, you just need to make sure to unbind (and unregister) by the time
  you return on onDestroy().

  As the Activity doc tries to explain, there are three main bind/unbind
  groupings you will use: onCreate() and onDestroy(), onStart() and
  onStop(), and onResume() and onPause().

  On Mar 13, 6:06 am, jim.renkel [EMAIL PROTECTED] wrote:

   I had the same problem until I noticed that the M5 SDK said to unbind
   services in activities' onPause() methods, not onFreeze methods as
   previous SDKs had said to do. I have tried unsuccessfully to find this
   reference in the M5 SDK documentation (Sorry :-( ), but moving the
   unbinds did solve this problem for me.

   Hope this helps.

   Jim Renkel

   On Mar 13, 5:31 am, David Welton [EMAIL PROTECTED] wrote:

This isn't in the docs, and Googling it isn't successful, so I thought
I'd ask here.

E/ActivityThread(  595): Activity foo.bar.Bop hasleaked
ServiceConnection [EMAIL PROTECTED] that
was originally bound here
E/ActivityThread(  595): android.app.ServiceConnectionLeaked: Activity
foo.bar.Bop hasleakedServiceConnection
[EMAIL PROTECTED] that was originally
bound here

What's that mean exactly?  How do I avoid leaking it?

--
David N. Welton

   http://www.welton.it/davidw/

   http://www.dedasys.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new 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] Determining active application

2008-04-02 Thread Adam P

Hi, is there a method for determining which application is currently
focused?  I have a service that constantly polls a web-service.  I
would like the service to display an icon in the statusbar if a new
msg is found, but ONLY if the corresponding application is not the
active app.

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] Audio formats in MediaPlayer

2008-04-02 Thread Mi

Hi,

I have implemented a mediaplayer and it works fine with MP3 files.
Trying some other format does not work. Has any one tried and
succeeded to play another format then MP3?

Tanks for helping!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: CursorTreeAdapter ?

2008-04-02 Thread Andy Bryant

Hi Mihai,

I get the same stack trace intermittently when deleting a group in
ExpandableListView. I think it's to do with whether your groups are
expanded. There's a bug raise on this issue here...
http://code.google.com/p/android/issues/detail?id=553

-Andy

On Feb 18, 2:34 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello
 I have created an ExpandableListView with a CursorThreeAdapter.
 Everything works fine until i want to modify some data in the cursor :
 cursor.updateInt();
 cursor.commitUpdates(); - at this moment i get this errors :

 What do you think ? Is this a bug or just my problem ?

 DEBUG/dalvikvm(1610): Exception Ljava/lang/NullPointerException; 
 fromCursorTreeAdapter.java:383 not caught locally
 DEBUG/dalvikvm(1610): Exception Ljava/lang/NullPointerException; from
 ZygoteInit.java:1553 not caught locally
 DEBUG/AndroidRuntime(1610): Shutting down VM
 WARN/dalvikvm(1610): threadid=3: thread exiting with uncaught
 exception (group=0x4000fdf8)

 ERROR/AndroidRuntime(1610): Uncaught handler: thread Main exiting due
 to uncaught exception
 ERROR/AndroidRuntime(1610): java.lang.NullPointerException
 ERROR/AndroidRuntime(1610):     at android.widget.CursorTreeAdapter
 $MyCursorHelper$MyContentObserver.onChange(CursorTreeAdapter.java:383)
 ERROR/AndroidRuntime(1610):     at android.database.ContentObserver
 $NotificationRunnable.run(ContentObserver.java:40)
 ERROR/AndroidRuntime(1610):     at
 android.os.Handler.handleCallback(Handler.java:455)
 ERROR/AndroidRuntime(1610):     at
 android.os.Handler.dispatchMessage(Handler.java:78)
 ERROR/AndroidRuntime(1610):     at android.os.Looper.loop(Looper.java:
 91)
 ERROR/AndroidRuntime(1610):     at
 android.app.ActivityThread.main(ActivityThread.java:3052)
 ERROR/AndroidRuntime(1610):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 ERROR/AndroidRuntime(1610):     at
 java.lang.reflect.Method.invoke(Method.java:356)
 ERROR/AndroidRuntime(1610):     at android.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:1547)
 ERROR/AndroidRuntime(1610):     at
 android.os.ZygoteInit.main(ZygoteInit.java:1445)
 ERROR/AndroidRuntime(1610):     at
 android.dalvik.NativeStart.main(Native Method)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Real Device in market with google Android

2008-04-02 Thread Vipin Kumar
Hi Guys,

Is this news true or an April fool joke?

http://blog.tmcnet.com/blog/tom-keating/google/d2-technologies-releases-mobile-handset-solution-powered-by-google-and.asp
http://www.d2tech.com/
http://www.d2tech.com/4-news/2008/08-04-01a.htm

Best Regards
Vipin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread E.D.I

How to connect to a server that runs on a localhost with the same
eclipse program as the emulator?

i need the emulator to connect to a server
both of them are in the building process so they both
are running on the same eclipse for check
but the emulator for some reason cant connect to the localhost
so can someone plase tell me how can it be done:)
thnx in advance..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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 connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread Dan U.

Right, the emulator thinks localhost is itself. You should be able to
specify the actual ip address of your computer when you make a
connection.

On Apr 2, 1:43 am, E.D.I [EMAIL PROTECTED] wrote:
 How to connect to a server that runs on a localhost with the same
 eclipse program as the emulator?

 i need the emulator to connect to a server
 both of them are in the building process so they both
 are running on the same eclipse for check
 but the emulator for some reason cant connect to the localhost
 so can someone plase tell me how can it be done:)
 thnx in advance..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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] web browser and dialog theme

2008-04-02 Thread dr123

Hi,

I have an acivity which opens another floating activity which opens a
web browser intent.
After the back button from the webbrowser there is the floating
activity and beneath it there are the checkered squares and not the
first activity.

Any thoughts as why this is happening? can i do something not very
complex?

thanks,
aris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TimePicker in a dialog?

2008-04-02 Thread ivan

Thanks for your reply. I don´t know why the code not runs, I decided
use the TimePickerDialog.
However I put the full xml layout:

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical
LinearLayout android:layout_width=fill_parent
android:layout_height=fill_parent 
android:orientation=vertical
android:layout_weight=1
TextView
android:text=Date
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textStyle=bold/
 TimePicker android:id=@+id/timePicker
android:layout_height=wrap_content
android:layout_width=wrap_content
android:showSetButton=true/
TextView
android:text=Time
android:layout_width=wrap_content
android:layout_height=wrap_content
android:textStyle=bold/
/LinearLayout
!-- If this element is erased, the dialog runs --
LinearLayout android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal
Button android:id=@+id_medications/start_cancel
android:minWidth=80dip 
android:layout_width=fill_parent
android:layout_height=wrap_content 
android:layout_weight=1
android:text=@string/cancel /

Button android:id=@+id_medications/start_ok
android:minWidth=80dip 
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignParentRight=true 
android:layout_weight=1
android:text=@string/done /
/LinearLayout

/LinearLayout


On 1 abr, 21:00, Megha Joshi [EMAIL PROTECTED] wrote:
 Hi,

 Your code seems to have the layout_width attribute, and your xml file seems
 to be correct because you said removing the TimePicker makes everything else
 work.
 But again, your code here is incomplete so I am not sure if its an error in
 your code or in the API.
 You may want to paste a more complete version of your code here, or you
 might just try using the TimePickerDialog, as shown in ApiDemosviewDate
 WidgetsDialog.

 Thanks,
 Megha

 On Tue, Apr 1, 2008 at 3:32 AM, ivan [EMAIL PROTECTED] wrote:

  It is possible show a TimePicker view in a custom dialog? I have the
  below code and crash with the next error: You must supply a
  layout_width attribute. The code which generate the error:
  XML
  [.]
  TimePicker android:id=@+id/timePicker
 android:layout_height=wrap_content
 android:layout_width=wrap_content
 android:showSetButton=true/
  []

  JAVA
  Dialog d = new Dialog(this);
  d.setContentView(R.layout.time);
  d.show();

  If I delete the TimePicker element from the layout, the activity runs
  correctly.
  Thanks

  PD: TimerPickerDialog is not valid for me ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new 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 can I play the remote media files in M5 sdk?if there is differences between audio and video ?

2008-04-02 Thread Vampire

Hi everybody,
 I have tried to play the local media files using the code below.
mMediaplayer =
(VideoView)findViewById(R.id.video_view);
   // mMediaplayer.setVideoURI( Uri.parse( http://
daily3gp.com/vids/747.3gp ) );
mMediaplayer.setVideoURI(path );

 But when I use the setVideoURI function to play the remote files,
only can see the black screen and nothing happens. Anyone can tell me
why the process is not successful.
 Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: different layout XML files in one application

2008-04-02 Thread vitali

Hello,

bacause if i just use R.layout.other_layout without to initialize it
( what normally happens by setContentView with R.layout.man ),
the trys to access layout components will fails.

Thx to xingye, it is neccessary to inflate the other layout
before use it:

 ViewInflate viewInflate = (ViewInflate) getSystemService(inflate);
 LinearLayout other_layout = (LinearLayout)
viewInflate.inflate( R.layout.other_layout, null, null );

cheers,
   vitali

On 2 Apr., 02:19, xingye [EMAIL PROTECTED] wrote:
 Maybe ViewInflate can help you.

 On Apr 2, 3:46 am, Dan U. [EMAIL PROTECTED] wrote:



  I don't understand quite what you are asking. Why not just have
  R.layout.main, R.layout.other_layout, R.layout.another_layout and just
  select the one you want?

  On Apr 1, 8:23 am,vitali[EMAIL PROTECTED] wrote:

   Hello,

   how to use ( or just is it possible at all ) to use
   layout definitions in separate XML files in one application ?

   i.e = dynamicly create Views from different XML files as
   R.layout.main

   Thx,
      -vitali- Hide quoted text -

  - Show quoted text -- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Eclipse hangs when launching program file.. AGAIN !

2008-04-02 Thread AMGG

I have almost the same problem with Windows 2000.
But as I have noticed, it only happens some times and when debugging.

By the way, some times these messages are shown and eclipse don't
launch the app in the emulator, so I have to kill the eclipse process
and launch it again. May be it's related with the posted problem?

[2008-03-25 12:01:09 - ddms] Exception during activity from Selector.
[2008-03-25 12:01:09 - ddms] null
java.lang.NullPointerException
at com.android.ddmlib.Debugger.accept(Debugger.java:139)
at com.android.ddmlib.Debugger.accept(Debugger.java:122)
at
com.android.ddmlib.MonitorThread.acceptNewDebugger(MonitorThread.java:
468)
at
com.android.ddmlib.MonitorThread.processDebuggerActivity(MonitorThread.java:
442)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:
262)

Really annoying :(



On 2 abr, 02:46, Steve Oldmeadow [EMAIL PROTECTED] wrote:
 On Mar 26, 3:48 pm, wonderoid [EMAIL PROTECTED] wrote:

  Anyone found a fix for this yet?

 I noticed that it only happened for me when my application was in the
 foreground on the emulator.  Now I always make sure I press the home
 key before rerunning my application.  Haven't had this problem since
 I've been doing that but I may just be lucky.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Failed to open database file

2008-04-02 Thread goro

Hi All,
I know that it is a pretty old topic, but I am facing the same problem
 unable to open database file  and I don't have img file in Settings
\me\Local Settings\Application Data\, have you solved the problem? I
use version m5 under XP.

On 22 Feb., 19:58, Jose María González [EMAIL PROTECTED]
wrote:
 I am using windows and nothing appears under
 C:\Documents and Settings\me\Local Settings\Application Data\

 In fact I have search for the Android directory under Documents and
 Settings and does not appear.
 I am using the spanish windows version.

 I can find the userdata.img under the emulator directory, but if I
 delete it the emulator cannot start.

 On 9 Gen, 18:48, JuhaK [EMAIL PROTECTED] wrote:

  Hi,

  For me this happened when I upgraded the version of the SDK.

  Deleting the files userdata.img.lock and userdata.img and emulator.cfg
  from under .android in $HOME helped for me. Delete these files first
  and then restart the IDE and emulator. This is under Ubuntu Linux.

  BR,

  JuhaK

  On 19 marras 2007, 03:49, Kunee [EMAIL PROTECTED] wrote:

   hi

   i am so confused that the location where thedatabasestore?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Cant created non-interactive ListView

2008-04-02 Thread Harsh Jain
Hi,
 I need to create a list view, which doesnt response to user interactions,
it should be non-clickable, and user should not be able to scroll through
it.
I tried the following
ListView lv = getListView();
lv.setClickable(false);
lv.setFocusable(false);
lv.setDividerHeight(0);
lv.setItemsCanFocus(false);

But I am still able to navigate the list using key pad and am also able to
click through it. I even tried lv.setEnabled(false), which only makes it
grey but i am still able to scroll through it. Please advice.

Regards,
harsh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Expanded and Icon Menu styling

2008-04-02 Thread bloodcarter

+1

On Mar 6, 5:48 pm, Littleman [EMAIL PROTECTED] wrote:
 Hi, can anyone answer the questions in the first post? I'm interested
 in text size in icon menus.
 I also have a weird problem: I have 6 items in mymenu. Upon the first
 click on themenubutton, all is fine, but a second press and my
 bottom right icon is replaced by the more icon...what am I doing
 wrong?
 Thanks

 On Mar 4, 1:46 am, Dale Gillespie [EMAIL PROTECTED] wrote:

  In trying to work with this newmenuscheme from m5 I'm having some
  difficulties in styling both the iconmenuand the expandedmenu.

  Can anyone point me to examples of styling for these elements?  I can
  set android:itemBackground but that only seems to style thebackground
  in the expandedmenuand android:itemTextAppearance doesn't seem to
  style the expandedmenutext.  I would like to modify thebackground,
  selector, border, seperator and text size in both menus.

  Thanks,
  - Dale

  

  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Megha Joshi
  Sent: Monday, March 03, 2008 2:10 PM
  To: [EMAIL PROTECTED]
  Subject: [android-beginners] Re: ExpandedMenu

  Hi,

  Android does not provide settings to change standardmenubehavior. If
  yourmenuhas more than sixmenuitems, the rest of themenuitems are
  just hidden in the beginning , using the concept of expandedmenu.
  This is to save your screen from becoming too cluttered up.You see a
  more icon in the end, instead of all themenuitems, when the count of
  items is more then 6. Expandedmenuis same as the iconmenu, except
  that it appears on clicking the more icon in themenu. More
  information is at the link 
  below:http://code.google.com/android/migrating/m3-to-m5/m5-api-changes.html#me
  nus

  Thanks,
  Megha

  On Sun, Mar 2, 2008 at 8:38 PM, Esteem [EMAIL PROTECTED] wrote:

  Is it possible to use an expandedmenuas the defaultmenu
  displaying
  mode for an activity rather than the iconmenu?

  
  This email is intended only for the person or entity to which it is 
  addressed and may contain information that is privileged, confidential or 
  otherwise protected from disclosure. Dissemination, distribution or copying 
  of this email or the information herein by anyone other than the intended 
  recipient, or an employee or agent responsible for delivering the message 
  to the intended recipient, is prohibited.  If you have received this email 
  in error, please immediately notify us by calling our Help Desk at (415) 
  581-5552 or by e-mailing us at [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] A

2008-04-02 Thread Bar

object width=450 height=385param name=movie value=http://
backend.deviantart.com/embed/view.swf /param name=flashvars
value=id=29389490width=1337 /param name=allowScriptAccess
value=always /embed src=http://backend.deviantart.com/embed/
view.swf type=application/x-shockwave-flash width=450
flashvars=id=29389490width=1337 height=385
allowscriptaccess=always/embed/objectbr /a href=http://
www.deviantart.com/deviation/29389490/AeroXp/a by ~a class=u
href=http://blinkybill.deviantart.com/;blinkybill/a on a
href=http://www.deviantart.com;deviant/aa href=http://
www.deviantart.comART/a
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Customize look of Menus

2008-04-02 Thread bloodcarter

+1

On Feb 21, 3:08 am, conlan [EMAIL PROTECTED] wrote:
 Just bumping this as it's a question I'd like answered as well...

 On Feb 14, 2:53 pm, hitsu_g [EMAIL PROTECTED] wrote:

  Can we customize the look of the menus (other than adding icons) - for
  example, change the graphic of the checkbox, change themenu
  backgroundcolorfrom white to another (maybe translucentcolor), or
  change the (lime green?!) border around the menus?
  Adding icons to menus is nice for helping to make our apps look the
  way we want them to, but the rest of themenuappearance is kind of a
  sore thumb...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Resources in the base system theme

2008-04-02 Thread David Given

I'm trying to make some custom user interface elements that mimic the 
look of the standard user interface elements with some additional 
features --- for example, I want to make a list that looks like the menu 
you get with 'API Demos' or 'Dev Tools'.

The documentation suggests that I refer to resources in the base system 
theme, and there's a ?... syntax for looking up resources in the current 
theme, which extends this. But I can't find any documentation anywhere 
of what resources there are available that I can use.

I'd very much like to be able to just say 
android:textSize=?launcherMenuTextSize and have it all just work. This 
would mean that my UI would change if the user changed the theme, which 
is a Good Thing.

Can I do this?

-- 
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] OpenGL ES Frame Buffers

2008-04-02 Thread [EMAIL PROTECTED]

In the Android implementation of the OpenGL ES API, what is the
difference between the glBindBuffer and glBindRenderBuffer commands?
Also, after rendering to a buffer, how does one move its contents to
the display buffer?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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-02 Thread Sebi

its simpler to use a and build-script. I have generated my build.xml
with this tool: http://code.google.com/android/intro/installing.html#otherides
and then added this target http://retrotranslator.sourceforge.net/#android
and it worked fine. Also with eclipse

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Unable to set the image on an ImageView in code

2008-04-02 Thread David Given

I'm trying to programmatically set the image on an ImageView. (Part of a 
SimpleCursorAdapter binding function.) I'm finding that the image never 
appears to show up.

While this behaviour appears if I call setImageURI(), I also see it if I 
break things down as follows:

ImageView iv = (ImageView) view;
String path = getApplication().getFilesDir().getAbsolutePath();
InputStream is = new FileInputStream(path + /icon.png);
Drawable icon = new BitmapDrawable(is);
Log.i(Fnord, width=+icon.getIntrinsicWidth()+
  height=+icon.getIntrinsicHeight());
iv.setImageDrawable(icon);

I'm getting sensible tracing, indicating that the image has loaded 
correctly, and iv.setImageDrawable() appears to succeed --- but nothing 
happens. The ImageView doesn't even change size.

Any suggestions?

-- 
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] How to get pictures files?

2008-04-02 Thread arthur
Hi,

I am developing the application in which I need access to the picture files
that were shot in camera device by user. 

But as far as I know there is not camera device on Android yet.

I don't know if I will have read access to a folder where the pictures from
camera will be placed? 

How can I get be notified about camera events and where the pictures will be
placed?

 

Best regards, 

Arthur.

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: different layout XML files in one application

2008-04-02 Thread vitvikt

Hellow,
Thanks for example with ViewInflate.
In this post I got annswer my question about combination xml layouts
and layouts, which was created programmly.
Now I can create my view programmly and add anything (in my cace-
ProgressBar) from xml.

Regards,
vitvikt


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Cant created non-interactive ListView

2008-04-02 Thread xingye

If you don't need a list, why not draw the items on a simple view?

On 4月2日, 下午6时33分, Harsh Jain [EMAIL PROTECTED] wrote:
 Hi,
  I need to create a list view, which doesnt response to user interactions,
 it should be non-clickable, and user should not be able to scroll through
 it.
 I tried the following
 ListView lv = getListView();
 lv.setClickable(false);
 lv.setFocusable(false);
 lv.setDividerHeight(0);
 lv.setItemsCanFocus(false);

 But I am still able to navigate the list using key pad and am also able to
 click through it. I even tried lv.setEnabled(false), which only makes it
 grey but i am still able to scroll through it. Please advice.

 Regards,
 harsh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Unable to set the image on an ImageView in code

2008-04-02 Thread xingye

My code

ImageView iv =
(ImageView)convertView.findViewById(R.id.image);
//  iv.setImageResource(R.drawable.badge);
Uri uri = Uri.parse(http://www.yexing.org/
image.axd?
picture=browse.png);


//  iv.setImageURI(uri);
//  Drawable drawable =
Drawable.createFromPath(uri.getPath());
try {
URL url = new URL(http://
www.yexing.org/image.axd?
picture=browse.png);
InputStream is = url.openStream();
Drawable drawable =
Drawable.createFromStream(is, none);
iv.setImageDrawable(drawable);
} catch(Exception e) {
Log.e(LOG_TAG, load image error! \n
+ e.toString());
}


On 4月2日, 上午9时19分, David Given [EMAIL PROTECTED] wrote:
 I'm trying to programmatically set the image on an ImageView. (Part of a
 SimpleCursorAdapter binding function.) I'm finding that the image never
 appears to show up.

 While this behaviour appears if I call setImageURI(), I also see it if I
 break things down as follows:

 ImageView iv = (ImageView) view;
 String path = getApplication().getFilesDir().getAbsolutePath();
 InputStream is = new FileInputStream(path + /icon.png);
 Drawable icon = new BitmapDrawable(is);
 Log.i(Fnord, width=+icon.getIntrinsicWidth()+
   height=+icon.getIntrinsicHeight());
 iv.setImageDrawable(icon);

 I'm getting sensible tracing, indicating that the image has loaded
 correctly, and iv.setImageDrawable() appears to succeed --- but nothing
 happens. The ImageView doesn't even change size.

 Any suggestions?

 --
 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] Re: Android Developers Challenge!

2008-04-02 Thread [EMAIL PROTECTED]

Hi,

Thanks for putting this forward. One question our team is having,
based on limited resources, is: In what context are the judges going
to view the products? Much of our application does not require GPS, or
a 320 x 480 screen, specifically with the idea of keeping handset cost
low. But we are a bit conerned that a useful application that helps
people in less developed countries become more effecient and manage
resouces better may get lost in sea of products with impressive use of
graphics. The context for evaluation for most judges is modern
society, maybe even cutting edge modern society.

We have some marketing material that sort of references The Grapes of
Wrath as a picture of economic refugees that judges may understand...
but we don't know how well it connects to actual judges... or even how
we include in our application.

We are driving for a ubiquitous audio device to create a large enough
population of devices to recognize and share network benefits.

Is there a way to identify an entry as specifically targeted toward
folks who can't spend $33 on a big screen?

Thanks,

Ed







On Mar 31, 7:27 pm, swati [EMAIL PROTECTED] wrote:
 Hi all -

 We wanted to bring your attention to a particular component of the
 Android Developer Challenge. Part of the Challenge encourages useful
 apps in service of global economic development specifically. These
 include those apps that:

     * Support humanitarian benefits such as vastly improved monitoring
 and/or response efforts for diseases, climate change and/or natural
 disasters, or
     * Significantly benefit the ~3 billion people living on less than
 $2.00 per day.

 If you have a great idea for an app within one of these subject areas,
 we hope you'll enter the Challenge. The submission deadline is coming
 up fast, so please enter soon.

 How to get started:
 Download the SDK, build your applications, and submit your
 applications by April 14th, 2008.

 Here are some other resources to help you:
     * Android Developer Challenge FAQ.
     * Subscribe to the Android Developer Blog for the latest news on
 Android and any updates on the Android Developer Challenge.
     * Discuss the challenge with others via our Google Group.
     * Post to this Developers Forum thread with additional questions.

 Remember, the 50 most promising entries received for the Challenge by
 April 14 will each receive a $25,000 award to fund further
 development. Those selected will then be eligible for even greater
 recognition via ten $275,000 awards and ten $100,000 awards.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] commitUpdates with ContentProvider.update / ContentProvider.delete issue/misunderstanding?

2008-04-02 Thread Carl H.

Hello,

I am trying to write logs for ContentProvided data is created, updated
and deleted. Thus I added Log.i(MYLOG, update) in my ContentProvider
class as follow:


@Override
public int update(Uri url, ContentValues values, String where,
String[] whereArgs)
{
Log.i(MyLog, update);
...
}

The above does not seem to be called... Ever... I tryed to debug as
well. Same result the update method seems to never be called

Anybody else experiencing the same problem?
I take it that Cursor.commitUpdates() should call
ContentProvider.update()?

Thanks,
Carl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 can I determine if app is running on the emulator or a device.

2008-04-02 Thread Brendan


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] JPEG Byte Array in a WebView

2008-04-02 Thread [EMAIL PROTECTED]

I have a byte array storing a JPEG that I'm trying to display in a
WebView using WebView.loadData(String, mime, encoding), but I can't
seem to get it to work properly.  I've tried reading it in as a basic
string in ISO-8859-1, and in Base64 (using
org.apache.commons.codec.binary.Base64, since there doesn't seem to be
a Base64 encoder in android although they claim there's one in the
android.util package).  My code:

byte[] imagedata = new byte[jpeg_size];
System.arraycopy(binary_file, offset, imagedata, 0, jpeg_size);
try
{
  byte[] encodedData = Base64.encodeBase64(imagedata);
  String imageString = new String(encodedData);
  wv.loadData(imageString, image/jpeg, base64);
}
catch (Exception e)
{
  Log.e(error, e.toString());
}

I've analyzed the byte array that imagedata contains, and it's
starting with the standard jpeg start (FF D8 FF E0 00 10), followed by
'JFIF', so I'm pretty sure it's not an error in the binary_file or in
the imagedata.  However, my webview is only displaying a blue X (a
broken image).

Anyone have any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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: JPEG Byte Array in a WebView

2008-04-02 Thread [EMAIL PROTECTED]

After hacking around a bit, I found out what the issue is.  My base64
string being sent is correct; I test this by directly encoding the
base64 string into html using img src=data:image/jpeg;base64,/9j/
4AAQ./ where the complete jpeg is embedded in base64.  I tested
the Base64 string I'm sending to the webview in firefox and it worked.

The WebView isn't loading base64 image/jpeg's properly, but if I embed
the base64 string into the html, it will show up properly.

Hacky, but it works for now.

On Apr 2, 11:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have a byte array storing a JPEG that I'm trying to display in a
 WebView using WebView.loadData(String, mime, encoding), but I can't
 seem to get it to work properly.  I've tried reading it in as a basic
 string in ISO-8859-1, and in Base64 (using
 org.apache.commons.codec.binary.Base64, since there doesn't seem to be
 a Base64 encoder in android although they claim there's one in the
 android.util package).  My code:

 byte[] imagedata = new byte[jpeg_size];
 System.arraycopy(binary_file, offset, imagedata, 0, jpeg_size);
 try
 {
   byte[] encodedData = Base64.encodeBase64(imagedata);
   String imageString = new String(encodedData);
   wv.loadData(imageString, image/jpeg, base64);}

 catch (Exception e)
 {
   Log.e(error, e.toString());

 }

 I've analyzed the byte array that imagedata contains, and it's
 starting with the standard jpeg start (FF D8 FF E0 00 10), followed by
 'JFIF', so I'm pretty sure it's not an error in the binary_file or in
 the imagedata.  However, my webview is only displaying a blue X (a
 broken image).

 Anyone have any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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-02 Thread Agus

from the dalvik debug monitor
run ddms.exe in android_home/lib/tools directory


On Wed, Apr 2, 2008 at 11:27 AM, 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: stand-alone notepad content provider insert error

2008-04-02 Thread logisic

i appreciate your reply. i did what you suggested but somehow i'm
still getting the same error. any other ideas?

On Mar 31, 11:23 pm, haitian [EMAIL PROTECTED] wrote:
 Maybe you database is collision or error. you can try to wipe all the
 emulator data.

 In DOS command, change the current path to \Your_Android_SDK_Path\tools
 \

 run emulator -wipe-data to wipe all the emulator data.

 On 3月26日, 下午6时00分, logisic [EMAIL PROTECTED] wrote:

  played around with the original notepad example. split the code into 2
  apps as follows: app NotePad(com.google.android.notepad) contains
  NoteEditor.java, NotesList.java and TitleEditor.java. app
  NoteProvider(com.google.provider) contains NotePad.java and
  NotePadProvider.java.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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-02 Thread Agus

correction:
android_home/lib/ddms.bat

On Wed, Apr 2, 2008 at 12:49 PM, Agus [EMAIL PROTECTED] wrote:
 from the dalvik debug monitor
  run ddms.exe in android_home/lib/tools directory




  On Wed, Apr 2, 2008 at 11:27 AM, 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: Cant created non-interactive ListView

2008-04-02 Thread Joe Onorato
Hi,

If you don't need all of the features that ListView provides, you should use
LinearLayout instead.

-joe


On Wed, Apr 2, 2008 at 3:33 AM, Harsh Jain [EMAIL PROTECTED] wrote:

 Hi,
  I need to create a list view, which doesnt response to user interactions,
 it should be non-clickable, and user should not be able to scroll through
 it.
 I tried the following
 ListView lv = getListView();
 lv.setClickable(false);
 lv.setFocusable(false);
 lv.setDividerHeight(0);
 lv.setItemsCanFocus(false);

 But I am still able to navigate the list using key pad and am also able to
 click through it. I even tried lv.setEnabled(false), which only makes it
 grey but i am still able to scroll through it. Please advice.

 Regards,
 harsh

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get pictures files?

2008-04-02 Thread Dan U.

I believe where/how they are stored is really up to the person writing
the app that uses the camera. My guess is that apps will (hopefully)
provide content providers to access them.

On Apr 2, 6:38 am, arthur [EMAIL PROTECTED] wrote:
 Hi,

 I am developing the application in which I need access to the picture files
 that were shot in camera device by user.

 But as far as I know there is not camera device on Android yet.

 I don't know if I will have read access to a folder where the pictures from
 camera will be placed?

 How can I get be notified about camera events and where the pictures will be
 placed?

 Best regards,

 Arthur.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] efficiency question: ViewInflate used for rows of a listview

2008-04-02 Thread Craig

Is there a more efficient way to create rows for a listview other than
to use ViewInflate over and over?  Is there much of a performance gain
by creating the views programmatically rather than in xml (although I
do perfer the maintainability of the xml approach)?  Since I am
inflating the same definision over and over again can I do the inflate
once and somehow clone the result?  Or is this not practical since the
xml definision is already optimized for inflation during compile
time?  NOTE: I am already skipping the inflate if an old row's view is
passed in to the getview method.

I am looking into this because the screens that take long to bring up
(with there lists filled) spend 95% of their time inflating the views
for these rows (4.5 seconds for approx 20 rows according to the
profiler)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] ListView - make no item focused on startup?

2008-04-02 Thread Mark Wyszomierski

Hi,

In my ListView, the first list item always gets selected. Is there a
way to just have NO item in the listview selected at startup?
Something like setSelection(-1)?

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: OpenGL ES Frame Buffers

2008-04-02 Thread [EMAIL PROTECTED]

Thank you for your prompt reply.

The refine my question, I'm trying what I read about in may other
posts: 2D image processing.  I've been using the code sample you
mentioned to try to render to a SurfaceView but have had some
difficulty.  The gl method I'm used to using is DrawPixels and
ReadPixels, but I have not been able to located these in the API.
Instead it appears that I should either 1) render to a texture and
then apply the texture to a square object displayed orthogonally or 2)
render to a frame object or render buffer.  I would think the latter
would provide more flexibility so I have been trying to determine how
to use the glBindBuffer and glBindRenderBuffer methods.  My question
is, once I render to a buffer other than the front buffer, how do I
transfer the color information to the front buffer to display?

Thanks

On Apr 2, 8:29 am, David Given [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:

 [...]

  Also, after rendering to a buffer, how does one move its contents to
  the display buffer?

 Call post() on your OpenGLContext object.

 See this file:

 http://code.google.com/android/samples/ApiDemos/src/com/google/androi...

 Currently render-to-screen seems to be unsupported, so you have to
 render into a SurfaceView which gets composited as part of your UI ---
 but it still seems to work reasonably efficiently.

 --
 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] Line separator (between views/controls on activity page)

2008-04-02 Thread Ram

Hi, I have a somewhat simple UI question.

I'd like to draw a clear separator (a single line or double-edged
line) between a button and a listview.

One way to draw the separator might be to place a custom view
inbetween the two controls (and implement the custom view to draw a
line).
However, I'm guessing that the Android apis might offer a better way
to draw a separator on the page.

Does any have comments on alternatives to implementing a simple custom
LineView to separate the controls.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Line separator (between views/controls on activity page)

2008-04-02 Thread Romain Guy

It's actually pretty easy. Just use a View and give it a small height.
For instance:

View
  android:layout_width=fill_parent
  android:layout_height=2dip
  android:background=# /

On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:

  Hi, I have a somewhat simple UI question.

  I'd like to draw a clear separator (a single line or double-edged
  line) between a button and a listview.

  One way to draw the separator might be to place a custom view
  inbetween the two controls (and implement the custom view to draw a
  line).
  However, I'm guessing that the Android apis might offer a better way
  to draw a separator on the page.

  Does any have comments on alternatives to implementing a simple custom
  LineView to separate the controls.
  




-- 
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] MapActivity onTouchEvent

2008-04-02 Thread Alex B

Hi,

Has anyone managed to override onTouchEvent within MapActivity?  I
know that overriding onTouchEvent in MapView is possible, and I have
done that, but I need to do it in MapActivity.  I see it in the API in
the section Methods inherited from class android.app.Activity.  I
have written the code, and it complies, but the event is not
honoured.  Please let advise me if you have succeeded in this.

Thank you.

@Override
public boolean onTouchEvent(MotionEvent me)
{
// do stuff
return true;
}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Display Context menu

2008-04-02 Thread Android-Berry

Hi There,

If there is particular view with some specifical menu,

When pushing menu, if focus is on that view, it will display
specifical menu, if not, it will not show up.

How to implement this function?

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] Monitor live objects in android app !!!

2008-04-02 Thread Niket Anand

Hello,

I have been facing one problem while running the android app for
sometime. After playing with app for sometime, I usually see
application not responding messages, eventhough I am taking care of
not creating large number of objects.

Can anyone suggest what is the exact problem which led to this not
responding message everytime? how to deal this? how to take care in
app?

Can anyone tell me how to monitor the total live object in memory as
right now I am seeing some info related to GC freeing number of
objects etc but not telling the current number of live objects, free
memory etc...


Thanks for your help.
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: Cant created non-interactive ListView

2008-04-02 Thread Harsh Jain
I use the list view to display a constantly changing list of items from an
SQL table. Using ListView lets me use the cursor adapters which keep the
view in sync automatically. But I guess I will go with your suggestion as
using a simple view may be more efficient.

regards,
harsh

On Wed, Apr 2, 2008 at 7:27 PM, xingye [EMAIL PROTECTED] wrote:


 If you don't need a list, why not draw the items on a simple view?

 On 4月2日, 下午6时33分, Harsh Jain [EMAIL PROTECTED] wrote:
  Hi,
   I need to create a list view, which doesnt response to user
 interactions,
  it should be non-clickable, and user should not be able to scroll
 through
  it.
  I tried the following
  ListView lv = getListView();
  lv.setClickable(false);
  lv.setFocusable(false);
  lv.setDividerHeight(0);
  lv.setItemsCanFocus(false);
 
  But I am still able to navigate the list using key pad and am also able
 to
  click through it. I even tried lv.setEnabled(false), which only makes it
  grey but i am still able to scroll through it. Please advice.
 
  Regards,
  harsh
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Line separator (between views/controls on activity page)

2008-04-02 Thread Harsh Jain
You can do a ListView.setDivider(Drawable d). or ListView.setDividerHeight.

On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy [EMAIL PROTECTED] wrote:


 It's actually pretty easy. Just use a View and give it a small height.
 For instance:

 View
  android:layout_width=fill_parent
  android:layout_height=2dip
  android:background=# /

 On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:
 
   Hi, I have a somewhat simple UI question.
 
   I'd like to draw a clear separator (a single line or double-edged
   line) between a button and a listview.
 
   One way to draw the separator might be to place a custom view
   inbetween the two controls (and implement the custom view to draw a
   line).
   However, I'm guessing that the Android apis might offer a better way
   to draw a separator on the page.
 
   Does any have comments on alternatives to implementing a simple custom
   LineView to separate the controls.
   
 



 --
 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] how to make a View always display on Screen?

2008-04-02 Thread Android-Berry

Hi there,

I want to create a view stick with screen,
what I means is like status bar, but is always at the bottom of
screen,

for example, Create a view and it will show at the bottom of the
screen,

maybe the screen holds tabview or linearlayout view that holds lots of
view, which is needed to scroll up/down/right/left to browser all the
view,

No matter how to do, the Stick-view always is displayed on the bottom
of the screen.

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] SDK Bug - ViewAnimator Crash

2008-04-02 Thread peter

Hi,

I've noticed that the ViewAnimator class will often crash with the
message:

Application Error:
[application]

An error has occured in [application]. width and height must be  0.

I am fairly confident this is a problem with the SDK.  It appears to
me that the problem is easier to reproduce under load, which is
similar to this person's findings:
http://groups.google.com/group/android-developers/browse_thread/thread/f610c677f75429c7/92d0272270e1db99?#92d0272270e1db99

Can anybody from Google confirm this is an bug in the SDK?  I have
submitted a bug but have yet to hear a response and am a bit concerned
because my submission crashes from use of this class.

Thanks,
Peter


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get a GL11Ext instance to call OpenGL Extension functions?

2008-04-02 Thread Toothy Bunny

Hi Romain,
Thanks for your suggestion.
I'll need to use GL11Ext.drawTexiOES() to draw 2D image in OpenGL
context. I understand that we need to check the availablilty of GL
extension function before we use it. Do you know how to check the
ability? Using glGetString()?
Thanks,
hongkun
www.omnigsoft.com


On Mar 31, 4:12 pm, Romain Guy [EMAIL PROTECTED] wrote:
 Hi,

 Yes, a cast is all you need.





 On Mon, Mar 31, 2008 at 1:09 PM, Toothy Bunny [EMAIL PROTECTED] wrote:

   Hi Android Graphics Team,
   I would like to call OpenGL extension function:
   void glDrawTexiOES(int x, int y, int z, int width, int height)

   to render a 2D image directly in 3D scene without bothering to use
   OpenGL quad.

   The question is, how can I get aGL11Extinstance? I could not find
   any function to do this.
   Does this means I can simply cast the instance returned by
   OpenGLContext.getGL() into aGL11Ext?

   Thanks,
   Hongkun
   www.omnigsoft.com

 --
 Romain Guywww.curious-creature.org- 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: Can a GTalk message receiver know who sent the intent?

2008-04-02 Thread [EMAIL PROTECTED]

The intent does contain the sender of the intent. If you use
intent.getStringExtra(from) you will get the senders jid. If you
only want to process intent from a select group of people you will
need to add a check before processing it.

On Mar 31, 4:35 pm, Peli [EMAIL PROTECTED] wrote:
 I have the following conceptual question:

 If I look at the GTalkDataMessageReceiver example 
 (http://code.google.com/android/samples/ApiDemos/src/com/google/androi...
 ) the receiver receives an intent that the sender sent. Except for the
 name GTalk, there is nothing in that class that uses any GTalk
 related API. The intent could therefore either come from a local
 sender or from a remote sender.

 Of course, the sender has to be part of the buddy list of the receiver
 for this to work, but if this is the case, it seems the IntentReceiver
 will not obtain any information about who sent this intent (unless the
 sender is kind enough to put this information into the bundle).

 I have the following concerns:
 * Once I have rights to send intents to a phone, I could send
 arbitrary intents and trigger arbitrary events on anther person's
 phone.
 * The intent receivers do not know who sent the intent. If this
 information is passed in the bundle, a sender could pretend to be a
 different sender.

 There should probably be additional permission settings on the
 receiver's side which determine which intents can be received from
 which sender. So far, I don't see any permission that can handle this.

 Or am I missing something here?

 Peli
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Monitor live objects in android app !!!

2008-04-02 Thread [EMAIL PROTECTED]

The message of application not responding is not related to the memory
usage, but to the processor usage of you application. All processor
intensive tasks should be done in a seperate thread.

On Apr 2, 9:45 pm, Niket Anand [EMAIL PROTECTED] wrote:
 Hello,

 I have been facing one problem while running the android app for
 sometime. After playing with app for sometime, I usually see
 application not responding messages, eventhough I am taking care of
 not creating large number of objects.

 Can anyone suggest what is the exact problem which led to this not
 responding message everytime? how to deal this? how to take care in
 app?

 Can anyone tell me how to monitor the total live object in memory as
 right now I am seeing some info related to GC freeing number of
 objects etc but not telling the current number of live objects, free
 memory etc...

 Thanks for your help.
 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] Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread lee.t

Seems there have been a lot of questions regarding the selection model
for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
making it difficult to use callbacks which respond to 'final' item
selection and not every 'browsing' selection in between). Most
proposed solutions to this involve catching key events etc... has
anyone come up with anything better than this?

As I sit here (without my eclipse IDE, so I can't try it myself :( )
I'm wondering if it isn't possible to detect the state of the spinner
(ie - expanded as drop-down, vs collapsed 'left-right/up-down'
selection). I'm assuming we can do this by taking advantage of the
'state' methods available for the View class and the
'state_dropdown_showing' constant mentioned in issue 330 (are these
applicable/supported in this instance?)

Presumably we might have something like this for a Spinner object
named 's':

// s.setOnItemSelectedListener(new
Spinner.OnItemSelectedListener(){
//public void onItemSelected(AdapterView parent, View
v,  int position, long id) {
//int[] state = v.getDrawableState();
// for(int i=0; istate.length; i++){
//if(state[i]==R.attr.stat_dropdown_showing){
//// just bail because we want to ignore
this 'browsing' selection...
//return;
//}
//}
//// assuming that we're not showing a dropdown,
do callback on fired selection
//// (presumably this is a 'left-right/keyup-
keydown' selection)
//doCallback();
// }
//
// public void onNothingSelected(AdapterView arg0) {
// // do nothing
// }
// });

Has anybody tried this? I'd be curious to know if it might work...
I'm assuming that there's a risk here of losing the selection we're
actually trying to get while the dropdown is open since presumably the
OnItemSelected event fires while the View's state has the drop-down
showing, even for the final selection... but I think that's wouldn't
be too difficult to overcome if the rest of it will work...

Any Android wizards out there who care to comment on the idea? Am I
out in left field or does this have a chance of working?
Suggestions welcome...

Thanks
Todd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: MapActivity onTouchEvent

2008-04-02 Thread wonderoid

You could try overriding the dispathTouchEvent method, i think it's
called before onTouchEvent

On 2 Nisan, 22:37, Alex B [EMAIL PROTECTED] wrote:
 Hi,

 Has anyone managed to override onTouchEvent within MapActivity?  I
 know that overriding onTouchEvent in MapView is possible, and I have
 done that, but I need to do it in MapActivity.  I see it in the API in
 the section Methods inherited from class android.app.Activity.  I
 have written the code, and it complies, but the event is not
 honoured.  Please let advise me if you have succeeded in this.

 Thank you.

 @Override
 public boolean onTouchEvent(MotionEvent me)
 {
 // do stuff
 return true;

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread Megha Joshi
Hi Todd,

Its not clear to me what you are trying to do, I read twice through your
post, but I couldn't figure it out.

Thanks,
Megha

On Wed, Apr 2, 2008 at 1:57 PM, lee.t [EMAIL PROTECTED] wrote:


 Seems there have been a lot of questions regarding the selection model
 for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
 making it difficult to use callbacks which respond to 'final' item
 selection and not every 'browsing' selection in between). Most
 proposed solutions to this involve catching key events etc... has
 anyone come up with anything better than this?

 As I sit here (without my eclipse IDE, so I can't try it myself :( )
 I'm wondering if it isn't possible to detect the state of the spinner
 (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
 selection). I'm assuming we can do this by taking advantage of the
 'state' methods available for the View class and the
 'state_dropdown_showing' constant mentioned in issue 330 (are these
 applicable/supported in this instance?)

 Presumably we might have something like this for a Spinner object
 named 's':

 // s.setOnItemSelectedListener(new
 Spinner.OnItemSelectedListener(){
 //public void onItemSelected(AdapterView parent, View
 v,  int position, long id) {
 //int[] state = v.getDrawableState();
 // for(int i=0; istate.length; i++){
 //if(state[i]==R.attr.stat_dropdown_showing){
 //// just bail because we want to ignore
 this 'browsing' selection...
 //return;
 //}
 //}
 //// assuming that we're not showing a dropdown,
 do callback on fired selection
 //// (presumably this is a 'left-right/keyup-
 keydown' selection)
 //doCallback();
 // }
 //
 // public void onNothingSelected(AdapterView arg0) {
 // // do nothing
 // }
 // });

 Has anybody tried this? I'd be curious to know if it might work...
 I'm assuming that there's a risk here of losing the selection we're
 actually trying to get while the dropdown is open since presumably the
 OnItemSelected event fires while the View's state has the drop-down
 showing, even for the final selection... but I think that's wouldn't
 be too difficult to overcome if the rest of it will work...

 Any Android wizards out there who care to comment on the idea? Am I
 out in left field or does this have a chance of working?
 Suggestions welcome...

 Thanks
 Todd
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ODBC Driver

2008-04-02 Thread Megha Joshi
Did you try the groups search that I mentioned earlier?
There are a couple of posts on the groups about ways of using external
databases.

On Wed, Apr 2, 2008 at 3:34 PM, ScottG [EMAIL PROTECTED] wrote:


 Thanks much, Mega.  I use the inbuilt SQLite DB extensively.  The hope
 was to contact a database outside of Android.

 But alas!

 Cheers, Scott

 On Apr 1, 2:38 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  Hi,
 
  The SDK does not support this, there is no JDBC driver code distributed
 with
  Android and there is no MySQL database server running in the system.
  Android SDK ships with a inbuilt SQLite DB, which will be easier to use.
  Else, you may want search for keyword jdbc on the groups, you will
 find a
  couple of threads with discussions on the different alternatives for
 using
  MySQL, Oracle, etc in your Android apps.
 
  Thanks,
  Megha
 
 
 
  On Tue, Apr 1, 2008 at 4:42 AM, ScottG [EMAIL PROTECTED] wrote:
 
   Anybody know how to load an ODBC driver into Android?  For example, a
   MySQL driver?  The usual drill doesn't seem to work.  Class.forName
   blows out.
 
   import com.mysql.jdbc.*;
 
class odbcConnection {
   public static Connection getConnection() throws Exception {
Driver d = (Driver)Class.forName
   (com.mysql.jdbc.Driver).newInstance ();
 
DriverManager.registerDriver(d);
 
String URL = jdbc:mysql:;
 
d = DriverManager.getDriver(URL);
 
Connection c = DriverManager.getConnection(URL, ,
   );
return c;
  }
   }- 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: Line separator (between views/controls on activity page)

2008-04-02 Thread Harsh Jain
my bad i didnt read ur posting properly.

On Thu, Apr 3, 2008 at 4:29 AM, Ram [EMAIL PROTECTED] wrote:


 Thanks Romain guy. I'll go with your suggestion

 Btw Harish, ListView.setDivider sets the divider between individual
 lines within the listview and wouldn't be applicable to a separator
 between a listview and other controls.

 On Apr 2, 12:52 pm, Harsh Jain [EMAIL PROTECTED] wrote:
  You can do a ListView.setDivider(Drawable d). or
 ListView.setDividerHeight.
 
 
 
  On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy [EMAIL PROTECTED] wrote:
 
   It's actually pretty easy. Just use a View and give it a small height.
   For instance:
 
   View
android:layout_width=fill_parent
android:layout_height=2dip
android:background=# /
 
   On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:
 
 Hi, I have a somewhat simple UI question.
 
 I'd like to draw a clear separator (a single line or double-edged
 line) between a button and a listview.
 
 One way to draw the separator might be to place a custom view
 inbetween the two controls (and implement the custom view to draw a
 line).
 However, I'm guessing that the Android apis might offer a better
 way
 to draw a separator on the page.
 
 Does any have comments on alternatives to implementing a simple
 custom
 LineView to separate the controls.
 
   --
   Romain Guy
  www.curious-creature.org- 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] LocationManager crashes app, every time

2008-04-02 Thread JoeB

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] extra libraries for android

2008-04-02 Thread Carl H.

Hello,

I have been reusing a lot of code across several sample applications
while developing android. I am trying to refactor most of my code so I
could package it into a general jar. I would like to share what I have
so far; in order for others to add their own code snippet into the
extra library. It would then be possible to add another layer on top
of android and have reusable components.

Installation:

Just add the following jar to your eclipse build path:
http://androforge.net/gf/download/frsrelease/103/47/androforge.jar

You might need the geoname packages for some functionalities (lat/long
to real address):
http://www.geonames.org/source-code/

Current components:

1. Simple Camera:
in your manifest:
activity android:name=net.androforge.media.SimpleCamera /

To call the camera:
Intent camera = new Intent(this, SimpleCamera.class);
startSubActivity(camera, CAMERA_REQUEST);

To take a picture, click on the middle button. To get the image in
your calling activity:
protected void onActivityResult(...){..  Bitmap pic = (Bitmap)
extras.getParcelable(bitmap);...}

2. Location Selector Dialog - select from a list of location provider
and get a location (non 0):

In your manifest you ll need all the permission for location
providers.

In your activity which requires a location:

Message message = Message.obtain(mHandler);
LocationDialog ld = new LocationDialog(SpotEdit.this, null,
message,cancel);
ld.show();
...
private Handler mHandler = new Handler(){
public void handleMessage(Message msg){
Location loc = (Location)
msg.getData().get(location);...}}

This is NOT reliable code. However I wanted to share my code so maybe
others would join the project and add their own code snippet,
following the structure set within the source. There are some bugs
most probably (I noticed a null pointer with the LocationDialog that I
need to fix).

I also intend to setup a wiki (not working at the moment) for
instructions similar to the above.

PS: please allow my very low budget VPS some time to load...

Thanks,
Carl

http://androforge.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: MapActivity onTouchEvent

2008-04-02 Thread Alex B

Indeed, you are right.  Using dispathTouchEvent worked.  Thank you
kindly!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: MapActivity onTouchEvent

2008-04-02 Thread Alex B

Sorry, I meant dispatchTouchEvent. I'm correcting it in case anyone
searches for that keyword.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 3:56 pm, Dan U. [EMAIL PROTECTED] wrote:
 Right, the emulator thinks localhost is itself. You should be able to
 specify the actual ip address of your computer when you make a
 connection.

 On Apr 2, 1:43 am, E.D.I [EMAIL PROTECTED] wrote:



  How to connect to a server that runs on a localhost with the same
  eclipse program as the emulator?

  i need the emulator to connect to a server
  both of them are in the building process so they both
  are running on the same eclipse for check
  but the emulator for some reason cant connect to the localhost
  so can someone plase tell me how can it be done:)
  thnx in advance..- 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: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 6:08 pm, Digit [EMAIL PROTECTED] wrote:
 within the emulator, address 10.0.2.2 is a special alias that connects
 directly to your development machine's localhost (i.e. you r own 127.0.0.1)



 On Wed, Apr 2, 2008 at 10:56 AM, Dan U. [EMAIL PROTECTED] wrote:

  Right, the emulator thinks localhost is itself. You should be able to
  specify the actual ip address of your computer when you make a
  connection.

  On Apr 2, 1:43 am, E.D.I [EMAIL PROTECTED] wrote:
   How to connect to a server that runs on a localhost with the same
   eclipse program as the emulator?

   i need the emulator to connect to a server
   both of them are in the building process so they both
   are running on the same eclipse for check
   but the emulator for some reason cant connect to the localhost
   so can someone plase tell me how can it be done:)
   thnx in advance..- 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: web browser and dialog theme

2008-04-02 Thread guzarva



On Apr 2, 3:58 pm, dr123 [EMAIL PROTECTED] wrote:
 Hi,

 I have an acivity which opens another floating activity which opens a
 web browser intent.
 After the back button from the webbrowser there is the floating
 activity and beneath it there are the checkered squares and not the
 first activity.

 Any thoughts as why this is happening? can i do something not very
 complex?

 thanks,
 aris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Can a GTalk message receiver know who sent the intent?

2008-04-02 Thread Peli

Thank you for this information. I had not found it in the
documentation.

Regarding the security issue, both, Juan and you, suggest to perform
whatever security checks are necessary for my needs. But let me ask
again:

I'm not worried about the intents that I have control about. I could
program them securely, maybe even exchanging public encryption keys
through the bundle.

I'm more worried about intents available on the phone that have never
been designed or have never been intended to be used through GTalk. As
an example, there could be a 3rd party intent that takes a picture
with the internal camera and sends it to a contact email address
automatically. It might have been meant as an internal thing within
another application that was never designed to work with GTalk, so no
special security checks were necessary.

But it seems to me that any person that is on my GTalk's friend's list
can launch that intent on my phone, without any restrictions, and send
random photos to their email address.

This model suggests, that each IntentReceiver should check whether its
bundle contains a from field, and if it does, it should be more
careful about processing things.

I (and I guess most developers) have written most intents so far
without this check. Have I introduced security holes? Or is it really
my (the programmer's) task to secure every intent against unwanted
launches by GTalk messages, even if the intents are never designed to
be launched by GTalk?

Peli

On Apr 2, 10:52 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 The intent does contain the sender of the intent. If you use
 intent.getStringExtra(from) you will get the senders jid. If you
 only want to process intent from a select group of people you will
 need to add a check before processing it.

 On Mar 31, 4:35 pm, Peli [EMAIL PROTECTED] wrote:



  I have the following conceptual question:

  If I look at the GTalkDataMessageReceiver example 
  (http://code.google.com/android/samples/ApiDemos/src/com/google/androi...
  ) the receiver receives an intent that the sender sent. Except for the
  name GTalk, there is nothing in that class that uses any GTalk
  related API. The intent could therefore either come from a local
  sender or from a remote sender.

  Of course, the sender has to be part of the buddy list of the receiver
  for this to work, but if this is the case, it seems the IntentReceiver
  will not obtain any information about who sent this intent (unless the
  sender is kind enough to put this information into the bundle).

  I have the following concerns:
  * Once I have rights to send intents to a phone, I could send
  arbitrary intents and trigger arbitrary events on anther person's
  phone.
  * The intent receivers do not know who sent the intent. If this
  information is passed in the bundle, a sender could pretend to be a
  different sender.

  There should probably be additional permission settings on the
  receiver's side which determine which intents can be received from
  which sender. So far, I don't see any permission that can handle this.

  Or am I missing something here?

  Peli- 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: Unable to set the image on an ImageView in code

2008-04-02 Thread guzarva



On Apr 2, 9:04 pm, xingye [EMAIL PROTECTED] wrote:
 My code

 ImageView iv =
 (ImageView)convertView.findViewById(R.id.image);
 //  iv.setImageResource(R.drawable.badge);
 Uri uri = Uri.parse(http://www.yexing.org/
 image.axd?
 picture=browse.png);

 //  iv.setImageURI(uri);
 //  Drawable drawable =
 Drawable.createFromPath(uri.getPath());
 try {
 URL url = new 
 URL(http://www.yexing.org/image.axd?
 picture=browse.png);
 InputStream is = url.openStream();
 Drawable drawable =
 Drawable.createFromStream(is, none);
 iv.setImageDrawable(drawable);
 } catch(Exception e) {
 Log.e(LOG_TAG, load image error! \n
 + e.toString());
 }

 On 4月2日, 上午9时19分, David Given [EMAIL PROTECTED] wrote:



  I'm trying to programmatically set the image on an ImageView. (Part of a
  SimpleCursorAdapter binding function.) I'm finding that the image never
  appears to show up.

  While this behaviour appears if I call setImageURI(), I also see it if I
  break things down as follows:

  ImageView iv = (ImageView) view;
  String path = getApplication().getFilesDir().getAbsolutePath();
  InputStream is = new FileInputStream(path + /icon.png);
  Drawable icon = new BitmapDrawable(is);
  Log.i(Fnord, width=+icon.getIntrinsicWidth()+
height=+icon.getIntrinsicHeight());
  iv.setImageDrawable(icon);

  I'm getting sensible tracing, indicating that the image has loaded
  correctly, and iv.setImageDrawable() appears to succeed --- but nothing
  happens. The ImageView doesn't even change size.

  Any suggestions?

  --
  David Given
  [EMAIL PROTECTED] 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: How to get pictures files?

2008-04-02 Thread guzarva



On Apr 3, 12:39 am, Dan U. [EMAIL PROTECTED] wrote:
 I believe where/how they are stored is really up to the person writing
 the app that uses the camera. My guess is that apps will (hopefully)
 provide content providers to access them.

 On Apr 2, 6:38 am, arthur [EMAIL PROTECTED] wrote:



  Hi,

  I am developing the application in which I need access to the picture files
  that were shot in camera device by user.

  But as far as I know there is not camera device on Android yet.

  I don't know if I will have read access to a folder where the pictures from
  camera will be placed?

  How can I get be notified about camera events and where the pictures will be
  placed?

  Best regards,

  Arthur.- 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: commitUpdates with ContentProvider.update / ContentProvider.delete issue/misunderstanding?

2008-04-02 Thread guzarva



On Apr 2, 10:26 pm, Carl H. [EMAIL PROTECTED] wrote:
 Hello,

 I am trying to write logs for ContentProvided data is created, updated
 and deleted. Thus I added Log.i(MYLOG, update) in my ContentProvider
 class as follow:

     @Override
     public int update(Uri url, ContentValues values, String where,
             String[] whereArgs)
     {
         Log.i(MyLog, update);
 ...

 }

 The above does not seem to be called... Ever... I tryed to debug as
 well. Same result the update method seems to never be called

 Anybody else experiencing the same problem?
 I take it that Cursor.commitUpdates() should call
 ContentProvider.update()?

 Thanks,
 Carl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: JPEG Byte Array in a WebView

2008-04-02 Thread guzarva



On Apr 2, 11:24 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 After hacking around a bit, I found out what the issue is.  My base64
 string being sent is correct; I test this by directly encoding the
 base64 string into html using img src=data:image/jpeg;base64,/9j/
 4AAQ./ where the complete jpeg is embedded in base64.  I tested
 the Base64 string I'm sending to the webview in firefox and it worked.

 The WebView isn't loading base64 image/jpeg's properly, but if I embed
 the base64 string into the html, it will show up properly.

 Hacky, but it works for now.

 On Apr 2, 11:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



  I have a byte array storing a JPEG that I'm trying to display in a
  WebView using WebView.loadData(String, mime, encoding), but I can't
  seem to get it to work properly.  I've tried reading it in as a basic
  string in ISO-8859-1, and in Base64 (using
  org.apache.commons.codec.binary.Base64, since there doesn't seem to be
  a Base64 encoder in android although they claim there's one in the
  android.util package).  My code:

  byte[] imagedata = new byte[jpeg_size];
  System.arraycopy(binary_file, offset, imagedata, 0, jpeg_size);
  try
  {
    byte[] encodedData = Base64.encodeBase64(imagedata);
    String imageString = new String(encodedData);
    wv.loadData(imageString, image/jpeg, base64);}

  catch (Exception e)
  {
    Log.e(error, e.toString());

  }

  I've analyzed the byte array that imagedata contains, and it's
  starting with the standard jpeg start (FF D8 FF E0 00 10), followed by
  'JFIF', so I'm pretty sure it's not an error in the binary_file or in
  the imagedata.  However, my webview is only displaying a blue X (a
  broken image).

  Anyone have any ideas?- 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: ListView - make no item focused on startup?

2008-04-02 Thread guzarva



On Apr 3, 1:40 am, Mark Wyszomierski [EMAIL PROTECTED] wrote:
 Hi,

 In my ListView, the first list item always gets selected. Is there a
 way to just have NO item in the listview selected at startup?
 Something like setSelection(-1)?

 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: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 6:06 am, Harsh Jain [EMAIL PROTECTED] wrote:
 my bad i didnt read ur posting properly.



 On Thu, Apr 3, 2008 at 4:29 AM, Ram [EMAIL PROTECTED] wrote:

  Thanks Romain guy. I'll go with your suggestion

  Btw Harish, ListView.setDivider sets the divider between individual
  lines within the listview and wouldn't be applicable to a separator
  between a listview and other controls.

  On Apr 2, 12:52 pm, Harsh Jain [EMAIL PROTECTED] wrote:
   You can do a ListView.setDivider(Drawable d). or
  ListView.setDividerHeight.

   On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy [EMAIL PROTECTED] wrote:

It's actually pretty easy. Just use a View and give it a small height.
For instance:

View
 android:layout_width=fill_parent
 android:layout_height=2dip
 android:background=# /

On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:

  Hi, I have a somewhat simple UI question.

  I'd like to draw a clear separator (a single line or double-edged
  line) between a button and a listview.

  One way to draw the separator might be to place a custom view
  inbetween the two controls (and implement the custom view to draw a
  line).
  However, I'm guessing that the Android apis might offer a better
  way
  to draw a separator on the page.

  Does any have comments on alternatives to implementing a simple
  custom
  LineView to separate the controls.

--
Romain Guy
   www.curious-creature.org-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] Re: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 2:52 am, Harsh Jain [EMAIL PROTECTED] wrote:
 You can do a ListView.setDivider(Drawable d). or ListView.setDividerHeight.



 On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy [EMAIL PROTECTED] wrote:

  It's actually pretty easy. Just use a View and give it a small height.
  For instance:

  View
   android:layout_width=fill_parent
   android:layout_height=2dip
   android:background=# /

  On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:

    Hi, I have a somewhat simple UI question.

    I'd like to draw a clear separator (a single line or double-edged
    line) between a button and a listview.

    One way to draw the separator might be to place a custom view
    inbetween the two controls (and implement the custom view to draw a
    line).
    However, I'm guessing that the Android apis might offer a better way
    to draw a separator on the page.

    Does any have comments on alternatives to implementing a simple custom
    LineView to separate the controls.

  --
  Romain Guy
 www.curious-creature.org- 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: Line separator (between views/controls on activity page)

2008-04-02 Thread guzarva



On Apr 3, 5:59 am, Ram [EMAIL PROTECTED] wrote:
 Thanks Romain guy. I'll go with your suggestion

 Btw Harish, ListView.setDivider sets the divider between individual
 lines within the listview and wouldn't be applicable to a separator
 between a listview and other controls.

 On Apr 2, 12:52 pm, Harsh Jain [EMAIL PROTECTED] wrote:



  You can do a ListView.setDivider(Drawable d). or ListView.setDividerHeight.

  On Thu, Apr 3, 2008 at 1:00 AM, Romain Guy [EMAIL PROTECTED] wrote:

   It's actually pretty easy. Just use a View and give it a small height.
   For instance:

   View
    android:layout_width=fill_parent
    android:layout_height=2dip
    android:background=# /

   On Wed, Apr 2, 2008 at 12:28 PM, Ram [EMAIL PROTECTED] wrote:

 Hi, I have a somewhat simple UI question.

 I'd like to draw a clear separator (a single line or double-edged
 line) between a button and a listview.

 One way to draw the separator might be to place a custom view
 inbetween the two controls (and implement the custom view to draw a
 line).
 However, I'm guessing that the Android apis might offer a better way
 to draw a separator on the page.

 Does any have comments on alternatives to implementing a simple custom
 LineView to separate the controls.

   --
   Romain Guy
  www.curious-creature.org-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] Re: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 4:20 am, wonderoid [EMAIL PROTECTED] wrote:
 You could try overriding the dispathTouchEvent method, i think it's
 called before onTouchEvent

 On 2 Nisan, 22:37, Alex B [EMAIL PROTECTED] wrote:



  Hi,

  Has anyone managed to override onTouchEvent within MapActivity?  I
  know that overriding onTouchEvent in MapView is possible, and I have
  done that, but I need to do it in MapActivity.  I see it in the API in
  the section Methods inherited from class android.app.Activity.  I
  have written the code, and it complies, but the event is not
  honoured.  Please let advise me if you have succeeded in this.

  Thank you.

  @Override
  public boolean onTouchEvent(MotionEvent me)
  {
      // do stuff
      return true;

  }- 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: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 7:58 am, Alex B [EMAIL PROTECTED] wrote:
 Sorry, I meant dispatchTouchEvent. I'm correcting it in case anyone
 searches for that keyword.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 2:37 am, Alex B [EMAIL PROTECTED] wrote:
 Hi,

 Has anyone managed to override onTouchEvent within MapActivity?  I
 know that overriding onTouchEvent in MapView is possible, and I have
 done that, but I need to do it in MapActivity.  I see it in the API in
 the section Methods inherited from class android.app.Activity.  I
 have written the code, and it complies, but the event is not
 honoured.  Please let advise me if you have succeeded in this.

 Thank you.

 @Override
 public boolean onTouchEvent(MotionEvent me)
 {
     // do stuff
     return true;



 }- 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: MapActivity onTouchEvent

2008-04-02 Thread guzarva



On Apr 3, 7:45 am, Alex B [EMAIL PROTECTED] wrote:
 Indeed, you are right.  Using dispathTouchEvent worked.  Thank you
 kindly!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Monitor live objects in android app !!!

2008-04-02 Thread guzarva



On Apr 3, 2:45 am, Niket Anand [EMAIL PROTECTED] wrote:
 Hello,

 I have been facing one problem while running the android app for
 sometime. After playing with app for sometime, I usually see
 application not responding messages, eventhough I am taking care of
 not creating large number of objects.

 Can anyone suggest what is the exact problem which led to this not
 responding message everytime? how to deal this? how to take care in
 app?

 Can anyone tell me how to monitor the total live object in memory as
 right now I am seeing some info related to GC freeing number of
 objects etc but not telling the current number of live objects, free
 memory etc...

 Thanks for your help.
 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: Monitor live objects in android app !!!

2008-04-02 Thread guzarva



On Apr 3, 3:56 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 The message of application not responding is not related to the memory
 usage, but to the processor usage of you application. All processor
 intensive tasks should be done in a seperate thread.

 On Apr 2, 9:45 pm, Niket Anand [EMAIL PROTECTED] wrote:



  Hello,

  I have been facing one problem while running the android app for
  sometime. After playing with app for sometime, I usually see
  application not responding messages, eventhough I am taking care of
  not creating large number of objects.

  Can anyone suggest what is the exact problem which led to this not
  responding message everytime? how to deal this? how to take care in
  app?

  Can anyone tell me how to monitor the total live object in memory as
  right now I am seeing some info related to GC freeing number of
  objects etc but not telling the current number of live objects, free
  memory etc...

  Thanks for your help.
  Niket- 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: how to make a View always display on Screen?

2008-04-02 Thread guzarva



On Apr 3, 3:28 am, Android-Berry [EMAIL PROTECTED] wrote:
 Hi there,

 I want to create a view stick with screen,
 what I means is like status bar, but is always at the bottom of
 screen,

 for example, Create a view and it will show at the bottom of the
 screen,

 maybe the screen holds tabview or linearlayout view that holds lots of
 view, which is needed to scroll up/down/right/left to browser all the
 view,

 No matter how to do, the Stick-view always is displayed on the bottom
 of the screen.

 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: SDK Bug - ViewAnimator Crash

2008-04-02 Thread guzarva



On Apr 3, 3:31 am, peter [EMAIL PROTECTED] wrote:
 Hi,

 I've noticed that the ViewAnimator class will often crash with the
 message:

 Application Error:
 [application]

 An error has occured in [application]. width and height must be  0.

 I am fairly confident this is a problem with the SDK.  It appears to
 me that the problem is easier to reproduce under load, which is
 similar to this person's 
 findings:http://groups.google.com/group/android-developers/browse_thread/threa...

 Can anybody from Google confirm this is an bug in the SDK?  I have
 submitted a bug but have yet to hear a response and am a bit concerned
 because my submission crashes from use of this class.

 Thanks,
 Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread guzarva



On Apr 3, 3:57 am, lee.t [EMAIL PROTECTED] wrote:
 Seems there have been a lot of questions regarding the selection model
 for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
 making it difficult to use callbacks which respond to 'final' item
 selection and not every 'browsing' selection in between). Most
 proposed solutions to this involve catching key events etc... has
 anyone come up with anything better than this?

 As I sit here (without my eclipse IDE, so I can't try it myself :( )
 I'm wondering if it isn't possible to detect the state of the spinner
 (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
 selection). I'm assuming we can do this by taking advantage of the
 'state' methods available for the View class and the
 'state_dropdown_showing' constant mentioned in issue 330 (are these
 applicable/supported in this instance?)

 Presumably we might have something like this for a Spinner object
 named 's':

 //         s.setOnItemSelectedListener(new
 Spinner.OnItemSelectedListener(){
 //                public void onItemSelected(AdapterView parent, View
 v,  int position, long id) {
 //                    int[] state = v.getDrawableState();
 //                     for(int i=0; istate.length; i++){
 //                        if(state[i]==R.attr.stat_dropdown_showing){
 //                            // just bail because we want to ignore
 this 'browsing' selection...
 //                            return;
 //                        }
 //                    }
 //                    // assuming that we're not showing a dropdown,
 do callback on fired selection
 //                    // (presumably this is a 'left-right/keyup-
 keydown' selection)
 //                    doCallback();
 //                 }
 //
 //                 public void onNothingSelected(AdapterView arg0) {
 //                     // do nothing
 //                     }
 //                 });

 Has anybody tried this? I'd be curious to know if it might work...
 I'm assuming that there's a risk here of losing the selection we're
 actually trying to get while the dropdown is open since presumably the
 OnItemSelected event fires while the View's state has the drop-down
 showing, even for the final selection... but I think that's wouldn't
 be too difficult to overcome if the rest of it will work...

 Any Android wizards out there who care to comment on the idea? Am I
 out in left field or does this have a chance of working?
 Suggestions welcome...

 Thanks
 Todd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread guzarva



On Apr 3, 5:33 am, Megha Joshi [EMAIL PROTECTED] wrote:
 Hi Todd,

 Its not clear to me what you are trying to do, I read twice through your
 post, but I couldn't figure it out.

 Thanks,
 Megha



 On Wed, Apr 2, 2008 at 1:57 PM, lee.t [EMAIL PROTECTED] wrote:

  Seems there have been a lot of questions regarding the selection model
  for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
  making it difficult to use callbacks which respond to 'final' item
  selection and not every 'browsing' selection in between). Most
  proposed solutions to this involve catching key events etc... has
  anyone come up with anything better than this?

  As I sit here (without my eclipse IDE, so I can't try it myself :( )
  I'm wondering if it isn't possible to detect the state of the spinner
  (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
  selection). I'm assuming we can do this by taking advantage of the
  'state' methods available for the View class and the
  'state_dropdown_showing' constant mentioned in issue 330 (are these
  applicable/supported in this instance?)

  Presumably we might have something like this for a Spinner object
  named 's':

  //         s.setOnItemSelectedListener(new
  Spinner.OnItemSelectedListener(){
  //                public void onItemSelected(AdapterView parent, View
  v,  int position, long id) {
  //                    int[] state = v.getDrawableState();
  //                     for(int i=0; istate.length; i++){
  //                        if(state[i]==R.attr.stat_dropdown_showing){
  //                            // just bail because we want to ignore
  this 'browsing' selection...
  //                            return;
  //                        }
  //                    }
  //                    // assuming that we're not showing a dropdown,
  do callback on fired selection
  //                    // (presumably this is a 'left-right/keyup-
  keydown' selection)
  //                    doCallback();
  //                 }
  //
  //                 public void onNothingSelected(AdapterView arg0) {
  //                     // do nothing
  //                     }
  //                 });

  Has anybody tried this? I'd be curious to know if it might work...
  I'm assuming that there's a risk here of losing the selection we're
  actually trying to get while the dropdown is open since presumably the
  OnItemSelected event fires while the View's state has the drop-down
  showing, even for the final selection... but I think that's wouldn't
  be too difficult to overcome if the rest of it will work...

  Any Android wizards out there who care to comment on the idea? Am I
  out in left field or does this have a chance of working?
  Suggestions welcome...

  Thanks
  Todd- 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: LocationManager crashes app, every time

2008-04-02 Thread guzarva



On Apr 3, 7:09 am, 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).- 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: How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

2008-04-02 Thread guzarva



On Apr 2, 3:43 pm, E.D.I [EMAIL PROTECTED] wrote:
 How to connect to a server that runs on a localhost with the same
 eclipse program as the emulator?

 i need the emulator to connect to a server
 both of them are in the building process so they both
 are running on the same eclipse for check
 but the emulator for some reason cant connect to the localhost
 so can someone plase tell me how can it be done:)
 thnx in advance..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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: Cant created non-interactive ListView

2008-04-02 Thread guzarva



On Apr 2, 5:33 pm, Harsh Jain [EMAIL PROTECTED] wrote:
 Hi,
  I need to create a list view, which doesnt response to user interactions,
 it should be non-clickable, and user should not be able to scroll through
 it.
 I tried the following
         ListView lv = getListView();
         lv.setClickable(false);
         lv.setFocusable(false);
         lv.setDividerHeight(0);
         lv.setItemsCanFocus(false);

 But I am still able to navigate the list using key pad and am also able to
 click through it. I even tried lv.setEnabled(false), which only makes it
 grey but i am still able to scroll through it. Please advice.

 Regards,
 harsh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 play the remote media files in M5 sdk?if there is differences between audio and video ?

2008-04-02 Thread guzarva



On Apr 2, 4:14 pm, Vampire [EMAIL PROTECTED] wrote:
 Hi everybody,
      I have tried to play the local media files using the code below.
                 mMediaplayer =
 (VideoView)findViewById(R.id.video_view);
                // mMediaplayer.setVideoURI( Uri.parse( http://
 daily3gp.com/vids/747.3gp ) );
                 mMediaplayer.setVideoURI(path );

      But when I use the setVideoURI function to play the remote files,
 only can see the black screen and nothing happens. Anyone can tell me
 why the process is not successful.
      Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

2008-04-02 Thread lee.t

Hey Megha,

Sorry if I wasn't clear - I know the concept might be a little muddied
in the example...
Basically the issue seems to be that since Spinner doesn't actually
support the 'OnItemClickListener' (fires an exception according to
docs) we're left to deal with the 'OnItemSelected' event. Since the
selection model for the spinner dictates that an item selection event
is fired every time it is selected (read - highlighted). This is
creating difficulties for anyone who uses a callback based on the
selection of an item in a dropdown list from a spinner. When the
dropdown is expanded, a user might run up and down through items in
the list - firing an event each time an item is highlighted what
we really want is just the final event selection. (equivalent to what
we would commonly think of as result from the 'OnClick' event).

Consider my app where I query a webservice based on a spinner
selection - I don't want to open a URL input stream and parse a JSON
object in my worker thread while a progress dialog spins for every
highlighted item in the list... I just want to capture the user's
final selection.

I'm wondering if we can use the 'state_dropdown_showing' on the
Spinner's View component to determine if it's expanded so that we can
ignore intermediate selection events...

Hopefully that's a little clearer?
Thanks
Todd

On Apr 2, 6:33 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 Hi Todd,

 Its not clear to me what you are trying to do, I read twice through your
 post, but I couldn't figure it out.

 Thanks,
 Megha

 On Wed, Apr 2, 2008 at 1:57 PM, lee.t [EMAIL PROTECTED] wrote:

  Seems there have been a lot of questions regarding the selection model
  for the spinner (ie - no OnItemClicked, only OnItemSelected listeners,
  making it difficult to use callbacks which respond to 'final' item
  selection and not every 'browsing' selection in between). Most
  proposed solutions to this involve catching key events etc... has
  anyone come up with anything better than this?

  As I sit here (without my eclipse IDE, so I can't try it myself :( )
  I'm wondering if it isn't possible to detect the state of the spinner
  (ie - expanded as drop-down, vs collapsed 'left-right/up-down'
  selection). I'm assuming we can do this by taking advantage of the
  'state' methods available for the View class and the
  'state_dropdown_showing' constant mentioned in issue 330 (are these
  applicable/supported in this instance?)

  Presumably we might have something like this for a Spinner object
  named 's':

  // s.setOnItemSelectedListener(new
  Spinner.OnItemSelectedListener(){
  //public void onItemSelected(AdapterView parent, View
  v,  int position, long id) {
  //int[] state = v.getDrawableState();
  // for(int i=0; istate.length; i++){
  //if(state[i]==R.attr.stat_dropdown_showing){
  //// just bail because we want to ignore
  this 'browsing' selection...
  //return;
  //}
  //}
  //// assuming that we're not showing a dropdown,
  do callback on fired selection
  //// (presumably this is a 'left-right/keyup-
  keydown' selection)
  //doCallback();
  // }
  //
  // public void onNothingSelected(AdapterView arg0) {
  // // do nothing
  // }
  // });

  Has anybody tried this? I'd be curious to know if it might work...
  I'm assuming that there's a risk here of losing the selection we're
  actually trying to get while the dropdown is open since presumably the
  OnItemSelected event fires while the View's state has the drop-down
  showing, even for the final selection... but I think that's wouldn't
  be too difficult to overcome if the rest of it will work...

  Any Android wizards out there who care to comment on the idea? Am I
  out in left field or does this have a chance of working?
  Suggestions welcome...

  Thanks
  Todd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Long list of LogCat error messages from DeviceMonitor

2008-04-02 Thread Peli

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: how to make a View always display on Screen?

2008-04-02 Thread xingye

Maybe you should use your owen home.apk instead of the one android
provided.

On Apr 3, 4:28 am, Android-Berry [EMAIL PROTECTED] wrote:
 Hi there,

 I want to create a view stick with screen,
 what I means is like status bar, but is always at the bottom of
 screen,

 for example, Create a view and it will show at the bottom of the
 screen,

 maybe the screen holds tabview or linearlayout view that holds lots of
 view, which is needed to scroll up/down/right/left to browser all the
 view,

 No matter how to do, the Stick-view always is displayed on the bottom
 of the screen.

 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: Long list of LogCat error messages from DeviceMonitor

2008-04-02 Thread jim.renkel

Yes, I get these also, on one of my development systems, the single
core, relatively slower one, 1.66 GHz. This does not happen on my
other development system which is a dual core, and relatively faster,
2.66 GHz each. That seems to be the only difference betwen them, they
both have gobs of memory, 2 Gbytes each.

I agree that it is a pain in the butt, as the slower machine that
experiences the problem is, for historical reasons, my primary
development machine. It has been fast enough for everything else I've
tried to do with it, but the Android emulator brings it to its knees.
Sigh. :-(

Jim Renkel

On Apr 2, 9: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: Can a GTalk message receiver know who sent the intent?

2008-04-02 Thread jtaylor

Peli,

My guess is that some kind of security layer will be added to the uses-
permission, etc. in the AndroidManifest.


- Juan

On Apr 2, 9:43 pm, Peli [EMAIL PROTECTED] wrote:
 Thank you for this information. I had not found it in the
 documentation.

 Regarding the security issue, both, Juan and you, suggest to perform
 whatever security checks are necessary for my needs. But let me ask
 again:

 I'm not worried about the intents that I have control about. I could
 program them securely, maybe even exchanging public encryption keys
 through the bundle.

 I'm more worried about intents available on the phone that have never
 been designed or have never been intended to be used through GTalk. As
 an example, there could be a 3rd party intent that takes a picture
 with the internal camera and sends it to a contact email address
 automatically. It might have been meant as an internal thing within
 another application that was never designed to work with GTalk, so no
 special security checks were necessary.

 But it seems to me that any person that is on my GTalk's friend's list
 can launch that intent on my phone, without any restrictions, and send
 random photos to their email address.

 This model suggests, that each IntentReceiver should check whether its
 bundle contains a from field, and if it does, it should be more
 careful about processing things.

 I (and I guess most developers) have written most intents so far
 without this check. Have I introduced security holes? Or is it really
 my (the programmer's) task to secure every intent against unwanted
 launches by GTalk messages, even if the intents are never designed to
 be launched by GTalk?

 Peli

 On Apr 2, 10:52 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:

  The intent does contain the sender of the intent. If you use
  intent.getStringExtra(from) you will get the senders jid. If you
  only want to process intent from a select group of people you will
  need to add a check before processing it.

  On Mar 31, 4:35 pm, Peli [EMAIL PROTECTED] wrote:

   I have the following conceptual question:

   If I look at the GTalkDataMessageReceiver example 
   (http://code.google.com/android/samples/ApiDemos/src/com/google/androi...
   ) the receiver receives an intent that the sender sent. Except for the
   name GTalk, there is nothing in that class that uses any GTalk
   related API. The intent could therefore either come from a local
   sender or from a remote sender.

   Of course, the sender has to be part of the buddy list of the receiver
   for this to work, but if this is the case, it seems the IntentReceiver
   will not obtain any information about who sent this intent (unless the
   sender is kind enough to put this information into the bundle).

   I have the following concerns:
   * Once I have rights to send intents to a phone, I could send
   arbitrary intents and trigger arbitrary events on anther person's
   phone.
   * The intent receivers do not know who sent the intent. If this
   information is passed in the bundle, a sender could pretend to be a
   different sender.

   There should probably be additional permission settings on the
   receiver's side which determine which intents can be received from
   which sender. So far, I don't see any permission that can handle this.

   Or am I missing something here?

   Peli- 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: extra libraries for android

2008-04-02 Thread Adriano Crestani

I haven't checked it yet, but it's a nice initiative. I expect others
can share their tools/libraries as well : )

Thanks

On Apr 2, 4:24 pm, Carl H. [EMAIL PROTECTED] wrote:
 Hello,

 I have been reusing a lot of code across several sample applications
 while developing android. I am trying to refactor most of my code so I
 could package it into a general jar. I would like to share what I have
 so far; in order for others to add their own code snippet into the
 extra library. It would then be possible to add another layer on top
 of android and have reusable components.

 Installation:

 Just add the following jar to your eclipse build 
 path:http://androforge.net/gf/download/frsrelease/103/47/androforge.jar

 You might need the geoname packages for some functionalities (lat/long
 to real address):http://www.geonames.org/source-code/

 Current components:

 1. Simple Camera:
 in your manifest:
 activity android:name=net.androforge.media.SimpleCamera /

 To call the camera:
 Intent camera = new Intent(this, SimpleCamera.class);
 startSubActivity(camera, CAMERA_REQUEST);

 To take a picture, click on the middle button. To get the image in
 your calling activity:
 protected void onActivityResult(...){..  Bitmap pic = (Bitmap)
 extras.getParcelable(bitmap);...}

 2. Location Selector Dialog - select from a list of location provider
 and get a location (non 0):

 In your manifest you ll need all the permission for location
 providers.

 In your activity which requires a location:

 Message message = Message.obtain(mHandler);
 LocationDialog ld = new LocationDialog(SpotEdit.this, null,
 message,cancel);
 ld.show();
 ...
 private Handler mHandler = new Handler(){
 public void handleMessage(Message msg){
 Location loc = (Location)
 msg.getData().get(location);...}}

 This is NOT reliable code. However I wanted to share my code so maybe
 others would join the project and add their own code snippet,
 following the structure set within the source. There are some bugs
 most probably (I noticed a null pointer with the LocationDialog that I
 need to fix).

 I also intend to setup a wiki (not working at the moment) for
 instructions similar to the above.

 PS: please allow my very low budget VPS some time to load...

 Thanks,
 Carl

 http://androforge.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Developer program with access to real test phones

2008-04-02 Thread jim.renkel

I too would like to hear about this. My application will require
significant real world testing on real devices before I can in good
conscience offer to users. Ya can only go so far on an emulator.

Jim Renkel

On Mar 31, 6:00 pm, Alex [EMAIL PROTECTED] wrote:
 Does Google or the open handset alliance have any plans of setting up
 a developer program where application developers can have access to a
 variety of real test phones? I haven't seen any information on that so
 far.

 Alex
 khyawl.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new 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-02 Thread Joe Onorato
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: efficiency question: ViewInflate used for rows of a listview

2008-04-02 Thread xingye

It's posiable to create a LinearLayout layout and put some controls in
it.
look at here (InternalSelectionFocus.java in ApiDemos):

final LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.HORIZONTAL);
layout.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT));

LinearLayout.LayoutParams params = new
LinearLayout.LayoutParams(0,
ViewGroup.LayoutParams.FILL_PARENT, 1);

final InternalSelectionView leftColumn = new
InternalSelectionView(this, 5, left column);
leftColumn.setLayoutParams(params);
leftColumn.setPadding(10, 10, 10, 10);
layout.addView(leftColumn);

final InternalSelectionView middleColumn = new
InternalSelectionView(this, 5, middle column);
middleColumn.setLayoutParams(params);
middleColumn.setPadding(10, 10, 10, 10);
layout.addView(middleColumn);

final InternalSelectionView rightColumn = new
InternalSelectionView(this, 5, right column);
rightColumn.setLayoutParams(params);
rightColumn.setPadding(10, 10, 10, 10);
layout.addView(rightColumn);

setContentView(layout);


On Apr 3, 2:35 am, Craig [EMAIL PROTECTED] wrote:
 Is there a more efficient way to create rows for a listview other than
 to use ViewInflate over and over?  Is there much of a performance gain
 by creating the views programmatically rather than in xml (although I
 do perfer the maintainability of the xml approach)?  Since I am
 inflating the same definision over and over again can I do the inflate
 once and somehow clone the result?  Or is this not practical since the
 xml definision is already optimized for inflation during compile
 time?  NOTE: I am already skipping the inflate if an old row's view is
 passed in to the getview method.

 I am looking into this because the screens that take long to bring up
 (with there lists filled) spend 95% of their time inflating the views
 for these rows (4.5 seconds for approx 20 rows according to the
 profiler)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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-02 Thread jalopy

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] 100 euros laptop

2008-04-02 Thread William Barneau
hi all,

we are developping a 100 euros public price laptop.

At this stage using the samsung arm 920 we are searchig for a solution small 
based on android that would only
start the device
and directly connect on internet via a firefox
it must have the necessary pilotes ( screen wifi kaboard mouse sound micro lan )

the actual product is under windows ce 5

if somebody can help

or is there anybody french speaking

thanks




  
_ 
Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. 
http://mail.yahoo.fr
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Real Device in market with google Android

2008-04-02 Thread JuhaK

...announced that its mCUE(tm) converged communications client for
mobile devices and handsets now supports Google's Android, one of the
industry's first open-source mobile platforms.

I would interpret client for mobile devices as a piece of software
(which now runs on Android), rather than a physical device.

Also, from their site: D2's mCUE(tm) mobile convergence software
solution combines an innovative, patent- pending communications user
interface with the company's vPort MP VoIP software platform to
address the needs of OEMs and service providers delivering integrated
Fixed Mobile Convergence (FMC) and Unified Communications (UC)
functionality.

Especially the patent-pending user interface doesn't sound too good.
Maybe One Click IP telephony, which is nothing new... Only now this
is on Android too.

BR,

JuhaK


On Apr 2, 11:26 am, Vipin Kumar [EMAIL PROTECTED] wrote:
 Hi Guys,

 Is this news true or an April fool joke?

 http://blog.tmcnet.com/blog/tom-keating/google/d2-technologies-releas...http://www.d2tech.com/http://www.d2tech.com/4-news/2008/08-04-01a.htm

 Best Regards
 Vipin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Failed to open database file

2008-04-02 Thread JuhaK

http://code.google.com/p/android/issues/detail?id=151colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary

Seems like the fix is a work in progress.

JuhaK

On Apr 2, 1:13 pm, goro [EMAIL PROTECTED] wrote:
 Hi All,
 I know that it is a pretty old topic, but I am facing the same problem
  unable to open database file  and I don't have img file in Settings
 \me\Local Settings\Application Data\, have you solved the problem? I
 use version m5 under XP.

 On 22 Feb., 19:58, Jose María González [EMAIL PROTECTED]
 wrote:

  I am using windows and nothing appears under
  C:\Documents and Settings\me\Local Settings\Application Data\

  In fact I have search for the Android directory under Documents and
  Settings and does not appear.
  I am using the spanish windows version.

  I can find the userdata.img under the emulator directory, but if I
  delete it the emulator cannot start.

  On 9 Gen, 18:48, JuhaK [EMAIL PROTECTED] wrote:

   Hi,

   For me this happened when I upgraded the version of the SDK.

   Deleting the files userdata.img.lock and userdata.img and emulator.cfg
   from under .android in $HOME helped for me. Delete these files first
   and then restart the IDE and emulator. This is under Ubuntu Linux.

   BR,

   JuhaK

   On 19 marras 2007, 03:49, Kunee [EMAIL PROTECTED] wrote:

hi

i am so confused that the location where thedatabasestore?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Autocomplete and filtering issue

2008-04-02 Thread AkaZn

Hi

I want to somehow emulate the idea T9 Text Input  (not it but similar
to it) and I want to use the AutoCompleteTextView to suggest the user
the word they can choose. But only overriding the performFiltering
function of the AutoCompleteTextView class is not enough to do the
work as use my customize function to do the filter process or at least
use regex.

So how can I customize the filtering process so that I can customize
the dropdown list of the AutoCompleteTextView?

I noticed that in the ArrayAdapter class, there is a getFilter()
function but I don't know if I can do anything with it.

Thank you very much.

---
For those who are not familiar with the T9:
http://www.t9.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new 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
-~--~~~~--~~--~--~---



  1   2   >