[android-beginners] Two Problems with ExpandableListView

2009-08-03 Thread Steve Hall
Very pleased :) with the way ExpandableListView works but am unclear how to set the clicked view as invalid in OnDismiss. Problem One --- In the onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) { I call the Dialog Enter and wait for

[android-beginners] SimpleAdapter onClick event catching. How to?

2009-08-03 Thread Zied Hamdi
Hi, Maide! Maide! I'm in trouble with selecting an item in a ListView when I use a SimpleAdapter with my own Item display: here's my code setListAdapter(categoriesAdapter); categoriesAdapter.notifyDataSetChanged(); int count =

[android-beginners] Re: SimpleAdapter onClick event catching. How to?

2009-08-03 Thread Zied Hamdi
I found a way but i don't know if it's the one thought by the design: override SimpleAdapter.getView() then call the super class implementation to get the view, then do your specific stuff on it before returning it. Best Regards, Zied Hamdi On Aug 3, 12:07 pm, Zied Hamdi zhamdi.i...@gmail.com

[android-beginners]

2009-08-03 Thread saurabh sinha
I need networking example in android --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group,

[android-beginners] Re: Android and webservices

2009-08-03 Thread Grubber
Thanks Holden, some good info there. I'll report back when I have got somewhere with it. On Aug 3, 10:32 am, Holden Karau holden.ka...@gmail.com wrote: This threadhttp://groups.google.com/group/android-developers/browse_thread/threa... seems like it might be of use to you (they are

[android-beginners] Re: camera preview problem

2009-08-03 Thread chuu
It works! Thanks, Jack. On Aug 2, 4:12 pm, Jack Ha jack...@t-mobile.com wrote: Remove the 'android:permission=android.permission.CAMERA' attribute from the application tag and add the following line in your manifest file:     uses-permission android:name=android.permission.CAMERA/uses-

[android-beginners] Re: Follow up on my Acitivty Lifecycle Question

2009-08-03 Thread Evan Ruff
So I think I have a related question about the Lifecycle, but this is more having to do with the application itself. While I think I understand how the whole Tasks/Stack paradigm is supposed to work, I'm not really seeing that sort of behavior with my application when someone exits then comes

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-03 Thread Tikoze
Ok, when I said replacement I really meant alternative... I don't think my expectations were unrealistic, though I can see how you can think they were when I said replacement. I was expecting to be able to long press the home key and have the activity chooser dialog (or whatever its official

[android-beginners] Re: Change an app

2009-08-03 Thread Yusuf T. Mobile
You are right, activity takes more resources than view. But the difference between them is not significant enough for it to be your primary concern. If you only have two screens, then rather than focusing on optimizing memory and CPU, I suggest you make the code as simple as possible. So instead

[android-beginners] Hello every body, I'm new here.

2009-08-03 Thread whitech
Hi all! I'm new here. Now I've met a problem: when my program using too much memory, it die. Is there an exception or something else? And how to get it? Thank you very much! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-beginners] Development Phone

2009-08-03 Thread Greg
I'm nearing completion of an app and need to begin testing on a real device. G1s are going for quite a bit less than the official development phone on ebay. I'm wondering if its possible to use the G1 without a sim card? Can you still use the WIFI and the rest of the phone functionality?

[android-beginners] Re: [android-beginners]

2009-08-03 Thread Abhiram Alamuru
I think that would be the notepad tutorial on the android website: http://developer.android.com/guide/tutorials/notepad/index.html On Sun, Aug 2, 2009 at 8:45 PM, saurabh sinha saurso...@gmail.com wrote: I need a example which is used to insert,update,delete in database sqlitedatabase in

[android-beginners] Adding objects to a canvas

2009-08-03 Thread Graham
Hi, I am new to the android developing world and have what I think is a very simple question. I have created a circle on a canvas and drawn it successfully. I now wish to add another circle to this already existing canvas in a different position. I have defined my x and y as arguments I pass to

[android-beginners] Custom View blocking other views in layout

2009-08-03 Thread doubleslash
I have my own custom view and a few buttons/textviews in a single relativetlayout as follows: /relativelayout textview / customView / /relativelayout The custom view's width and height are set to wrap_content, and I draw my image onto the canvas returned by onDraw. The problem is I see only the

[android-beginners] Re: Start Activity With Long Press of Home Key

2009-08-03 Thread Mark Murphy
Tikoze wrote: I was expecting to be able to long press the home key and have the activity chooser dialog (or whatever its official name is) ask me whether I wanted to use the alternative application or the default one. That's certainly a fine concept; it's just not implemented that way at

[android-beginners] Re: Accessing images using content provider

2009-08-03 Thread Yusuf T. Mobile
The MediaStore content provider might be what your looking for. There are a number of tutorials that use it, for example this one: http://androidsamples.blogspot.com/2009/06/how-to-display-thumbnails-of-images.html Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and

[android-beginners] Re: Development Phone

2009-08-03 Thread Oliver Rennfort
Yes you can use the dev phone without a sim but you need to hack it. But its simple comand line hack. Android Apps Developer On Aug 3, 2009 1:34 PM, Greg ghoo...@barereef.com wrote: I'm nearing completion of an app and need to begin testing on a real device. G1s are going for quite a bit less

[android-beginners] Re: Writing specific apps for clients

2009-08-03 Thread Yusuf T. Mobile
1. Yes. 2. You can consume web services with Android, which has built-in webkit, JSON, XML, etc., and for which you can get third-party libraries for protocols like SOAP. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author

[android-beginners] Re: Adding objects to a canvas

2009-08-03 Thread Yusuf T. Mobile
The onDraw() function is the phone's way of asking you so how do you want me to draw this canvas, from scratch? If you say draw a circle there!, you get one circle. If you want it to draw two circles, your CustomDrawableView needs to tell it to draw two different circles every time onDraw() is

[android-beginners] Re: Android and webservices

2009-08-03 Thread Roman
Find a pretty good blog about this topic at http://www.anddev.org/web_services_-_an_xml-rpc_client_for_android-t646.html -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual

[android-beginners] Re: Porting A Game from Java2d...

2009-08-03 Thread Yusuf T. Mobile
I recommend you look at the Canvas class, and port your calls to Java2D to use Canvas on Android. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent

[android-beginners] Re: text colour

2009-08-03 Thread Yusuf T. Mobile
Do you want to change the color of the TextView items in the list view? In that case use: http://developer.android.com/reference/android/widget/TextView.html#attr_android:textColor To change the divider color use

[android-beginners] Using Intent on default Google Map

2009-08-03 Thread guna
I launch the default google map apk from my application, by starting the intent new Intent(Intent.ACTION_VIEW, Uri.parse(geo:+lon+,+lat)), 3); What I want is to start the map with menu option my location clicked and the current address displayed on the sign (user normally can bring up the sign

[android-beginners] Re: Development Phone

2009-08-03 Thread Abhiram Alamuru
I've got an unlocked t-mobile g1 and it works fine without the sim. I can use wifi, browse, play games, download from market etc. I haven't tried installing apps on it but I don't see why it won't work. I got it unlocked directly from t-mobile (a friend sold it to me since he was getting the new

[android-beginners] Re: Hello every body, I'm new here.

2009-08-03 Thread whitech
Thank, I think that's an java.lang.OutOfMemoryError, but when I use try-catch statement at the new statement, I can't catch anything. Is there another way to catch the error? On 8月4日, 上午2时15分, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: Hello, to see the exception, look at logcat. You can do

[android-beginners] Re: Android and webservices

2009-08-03 Thread stoney
Hi I would suggest using the Hessian protocol, if you have the choice. it is a very light-weight binary web service protocol, optimized for mobile clients - see http://hessian.caucho.com/. I am currently testing an Android port of Coucho's open-source Java library - going to put it on google

[android-beginners] Re: Android and webservices

2009-08-03 Thread stoney
or you could take a look at http://code.google.com/apis/protocolbuffers/ - as far as i have seen similiar to Hessian. On Aug 1, 7:03 pm, Grubber gra...@onemansweightloss.co.uk wrote: Hi All, Sorry if this appears twice, but my messages from yesterday didn't get posted? A couple