[android-developers] Re: Nokia inviting Developers to become an Ovi store publisher.
I don't think Nokia is interested in Android. all they want you to come in for is Meego. On Sep 21, 2:25 pm, Kumar Bibek coomar@gmail.com wrote: Definitely a SPAM... On Sep 20, 8:23 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 20, 2010 at 2:27 AM, James Baker james.baker...@gmail.comwrote: If u are a developer nd dream it big then grab this opportunity today. I think this says it all. If u try it out post back nd let us know how it goes. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Video Streaming in Android Emulator Possible ?.
It is possible to stream videos through media player, but that requires you to have the absolute URI to the video file on the network. when this URI is provided to the player, it streams it, and plays it. however, in the case of You Tube, you don't have the URL pointing directly to a media file. i doubt this case. maybe you'll have to anyhow extract the URL then give it to the media player. On Sep 21, 1:46 pm, Ajmer singh ajmer.si...@evontech.com wrote: I want to stream a video from Network Like From youtube.com. Is that possible in android emulator?. On Tue, Sep 21, 2010 at 1:34 PM, Ramaraju naga v.nagaramar...@gmail.comwrote: It is possible...using Mediaplayer classs. see this code MediaPlayer video; setContentView(R.layout.main); VideoView video = (VideoView) findViewById(R.id.video); // Load and start the movie video.setVideoPath(/data/samplevideo.3gp ); video.start(); main layout file ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent VideoView android:id=@+id/video android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center / /FrameLayout On Tue, Sep 21, 2010 at 1:07 PM, Ajmer Singh ajmersing...@gmail.comwrote: Hi All I am new to android, I have a simple question *Is Video Streaming possible in Android Emulator*,I am using the example in Android SDK but it give me message *Sorry Can't play this Video*.I am using Youtube Video to stream in android Emulator. Pls respond. -- Thanks and Regards Ajmer Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Thanks and Regards Ajmer Singh* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Video Streaming in Android Emulator Possible ?.
and regarding android emulator, If your system specs are quite hi-fi, then the video will be played on emulator, else it will be played on device, as video streaming and playing are memory eating processes. On Sep 21, 1:46 pm, Ajmer singh ajmer.si...@evontech.com wrote: I want to stream a video from Network Like From youtube.com. Is that possible in android emulator?. On Tue, Sep 21, 2010 at 1:34 PM, Ramaraju naga v.nagaramar...@gmail.comwrote: It is possible...using Mediaplayer classs. see this code MediaPlayer video; setContentView(R.layout.main); VideoView video = (VideoView) findViewById(R.id.video); // Load and start the movie video.setVideoPath(/data/samplevideo.3gp ); video.start(); main layout file ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent VideoView android:id=@+id/video android:layout_height=wrap_content android:layout_width=wrap_content android:layout_gravity=center / /FrameLayout On Tue, Sep 21, 2010 at 1:07 PM, Ajmer Singh ajmersing...@gmail.comwrote: Hi All I am new to android, I have a simple question *Is Video Streaming possible in Android Emulator*,I am using the example in Android SDK but it give me message *Sorry Can't play this Video*.I am using Youtube Video to stream in android Emulator. Pls respond. -- Thanks and Regards Ajmer Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Thanks and Regards Ajmer Singh* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to install the .apk file into blackberry
Hahaha.. well, jokes apart, I really think you're on the wrong forum. As far as I know, BlackBerry supports .cod files and it won't understand what an APK file is. secondly, if it the code inside the APK file uses the SDK made for android and BlackBerry won't know anything about it. so it won't work. On Sep 16, 12:47 pm, bharani kumar bharanikumariyer...@gmail.com wrote: Hi , How to install the .apk file into blackberry , -- Regards B.S.Bharanikumarhttp://php-mysql-jquery.blogspot.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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to drag any particular view
You will have to listen for touch event and will have to work on ACTION_DOWN, ACTION_MOVE and ACTION_UP event types. in ACTION_MOVE, you can keep setting co-ordinates of you view according to the changing touch position's co-ordinates. this was concept, for a coding example, check the post at this good site: http://www.anddev.org/basic_drag_and_drop-t3095.html It uses code to drag images, you can use the logic to get the same functionality on any view. I haven't checked it though. On Aug 5, 2:24 pm, awesomeandroid priyaranjan@gmail.com wrote: hi all, i am making an user interface and i want to drag any one of them.how can i with ontouchevent. plzz reply soon -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Loading random image when activity is brought up...Not working any ideas?
If you could send the src project, it would be wonderful. Still, i feel setTag isn't a good option, you should use setImageDrawable with drawable object. I would have used setImageResource(q) to change the image inside the onClick function of the button. for that, the ImageView needs to be accessible inside onClick too. I don't think there's a need to refresh the activity, you can change the image without restarting the whole activity Also, just try to see what random number or Random() class's object is giving. I have seen many times that it generates same integer every time if the limit (0-max) is short. check this too. for LogCat, what i do is i print messages from my code using System.out.println() and have created a filter in LogCat which separates all the output tagged with System.out it helps me, maybe it can help you too, to find out what ur code is doing at times. Enjoy. On Jun 25, 9:14 am, BryBam bry...@gmail.com wrote: Maybe I don't completely understand logcat. as of now it's been useful to see what line is causing my app to crash. But in this case it's not crashing and I dont see anything out of the ordinary in my logcat. Anyone able to see what I'm doing wrong? On Jun 21, 3:59 pm, BryBam bry...@gmail.com wrote: Well I appreciate the thought on another way I could go about doing this. However I have a very similar approach on another activity with text and it works great. I probably will want to look into your suggestion later on. But for now im simply looking to see what i'm doing wrong with my current code. At least for now, so i can get some peace of mind. Looking at it I see nothing wrong. Neither does eclipse. Lets just forget about the button, say i literally did just want a different image to come up whenever the page was visited. Anyone see the error? This has been bugging me for days. On Jun 21, 3:09 am, jamesc jame...@gmail.com wrote: I've only scanned your code and note that you're using an Intent on the same class to essentially get the 'redraw/reload of a random image' to occur. I'm not sure that this would be the best way of going about what you want to achieve. (As an aside try using logcat to see what's happening; is all OK with your AndroidManifest.xml, as there may be an issue with the resolution of the Intent?). Perhaps you should just look at finding (findViewById()) the ImageView and assigning it to a member field (you're currently finding it and assigning it on the stack), then in your onClick() override just do mMyImageView.setImageDrawable() (or whatever) to re-set what the rendered image should be? On Jun 20, 11:00 pm,BryBambry...@gmail.com wrote: I would also like to point out that I've tried all three of these private Integer [] mImageIds = { R.drawable.icon, R.drawable.shoticon, R.drawable.mixicon, }; private static final Integer [] mImageIds = { R.drawable.icon, R.drawable.shoticon, R.drawable.mixicon, }; private static Integer [] mImageIds = { R.drawable.icon, R.drawable.shoticon, R.drawable.mixicon, }; NONE OF THOSE HAVE MADE A DIFFERENCE. On Jun 20, 5:48 pm,BryBambry...@gmail.com wrote: I've been staring at this for hours. It compiles fine with no errors and loads the activity on my nexus. The button and the menu items load fine with no issues at all. It's simply not loading any of the drawables i'm specifying :/ any ideas what I did wrong? All I want is whenever this activity is brought up it randomly chooses an image from the drawables i specify. HERE'S MY CODE FOR THE JAVA package com.package.name; import java.util.Random; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.View.OnClickListener; public class RandomImage extends Activity implements OnClickListener{ private static final Random rgenerator = new Random(); Integer [] mImageIds = { R.drawable.icon, R.drawable.shoticon, R.drawable.mixicon, }; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.randomimage); Integer q = mImageIds[rgenerator.nextInt(mImageIds.length)];
[android-developers] Any alternative of iphone's searchable list in Android?
hi. in iPhone, they have got an option of creating such a list which gives them ability to jump to a particular character. see the pic attached http://www.phonemag.com/blog/wp-content/uploads/2008/03/iphone_search_icon.jpg Do we have any such thing in Android? i can setTextFilterEnabled(true) but that requires the keyboard to be present, while perhaps there now way to implicitly show keyboard on the device as we have in the emulator. i have tried setFastScrollEnabled(true) it is good, but doesn't let you jump to a particular character. any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Refreshing ListView each time the tab get clicked
Hi. I am in a situation, where i have four tabs, first of them has some list, and user can select an item from them and it is added to favorites. I am doing it with SharedPreferences. It works fine. But my favorites tab has one List View, which is creating some problems. It access the SharedPreferences file and gets info from it, creates an array, and displays the values in the List View. I want this ListView to be updated every time the user visits this Favorite tab, since user will be adding favorites randomly and it should reflect in Favorite without application restart. Please assist guys. How to refresh the List View? Is there any other method of ListActivity which is called every time the list is focused? then i can override it and add refresh the list. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] VideoView path problem
I am using a VideoView to play videos. it works smoothly. with only one problem. i am able to provide path of video with this way- Uri uri = Uri.parse(android.resource://com.abc.def/+ R.raw.vid); video.setVideoURI(uri); video.start(); but this is not what i want. i want it to take the path dynamically, so that i can tell it the path according to the user selection. any suggestions?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: VideoView path problem
I didnt get you completely. I have this activity called VideoPlayer.java, which receives the video name from the user through a listview selection. and this activity has some other controls as well like buttons and more. Inside this activity, i have setup a video view which plays the videos, and have made it to react to button events too. this video view gets the video source as the path as shown above. however i can't always provide path like that, since there are 300 videos to choose from. what i wanted to know is, is there some way by which i can provide it with a name of the video selected. I know the video path in my project, its inside res/raw/video.mp4 so if there's anyway i can provide path like that, it would be extremely helpful if you could suggest me, how to refer to resources which i have bundled with my app in res/ forlder, that would also help. Thanks On May 4, 10:44 pm, Abhi abhishek.r.sha...@gmail.com wrote: Aman, Do this to let user pick a video Intent i = new Intent(Intent.ACTION_PICK); i.setType(video/*); startActivityForResult(i, PICK_VIDEO); and in onActivityResult look for the request code 'PICK_VIDEO' and pass along the URI of the selected video to another activity this way: Uri data = intent.getData(); if (data != null) { Intent i = new Intent(this, YourVideoPlayer.class); i.setData(data); startActivity(i); } Hope that helps Abhi On May 4, 8:27 am, SheikhAman shekh.a...@gmail.com wrote: I am using aVideoViewto play videos. it works smoothly. with only one problem. i am able to provide path of video with this way- Uri uri = Uri.parse(android.resource://com.abc.def/+ R.raw.vid); video.setVideoURI(uri); video.start(); but this is not what i want. i want it to take the path dynamically, so that i can tell it the path according to the user selection. any suggestions?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to achieve mixed layout with ListView
Ohk, Things go fine, and i am able to design a layout like this- ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget101 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout android:id=@+id/widget110 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true TextView android:id=@+id/widget112 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_centerVertical=true android:layout_centerHorizontal=true /TextView Button android:id=@+id/widget111 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentLeft=true /Button Button android:id=@+id/widget113 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/widget114 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@+id/tweetList android:layout_alignParentLeft=true /ListView /RelativeLayout Things stay fine until i assign the adapter to the list i have created- public class MainActivity extends Activity { /** Called when the activity is first created. */ String[] data={1,2,3}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ListView tweetList = (ListView) findViewById(R.id.tweetList); tweetList.setAdapter(new ArrayAdapterString(this,R.id.tweetList,data)); } } as soon as i add the last line, problems start. whats wrong? here is the structure which i want- http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88/desired%20layout.jpg Please assist! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can i get this layout with List view??
Sorry. my fault. the emulator says- The application has stopped unexpectedly LogCat says- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.MyApp/com.abc.MyApp.MainActivity}: java.lang.NullPointerException at com.abc.MyApp.MainActivity.onCreate(MainActivity.java:16) [16 is the line where i am setting the listAdapter] On Apr 19, 9:51 pm, ~ TreKing treking...@gmail.com wrote: On Sun, Apr 18, 2010 at 9:35 PM, SheikhAman shekh.a...@gmail.com wrote: Things stay fine until i assign the adapter to the list i have created- as soon as i add the last line, problems start. whats wrong? Mainly, the fact that you haven't shown what problems start means or what error you're actually getting. How is anyone supposed to tell you what's wrong with your own program? - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to achieve mixed layout with ListView
Yaa.. ur ryt. it wasn't copied correctly. I tried another work around, and its now working :-) On Apr 19, 10:26 pm, social hub shubem...@gmail.com wrote: on Ctrl + F i dont see any widget with id tweetList Have u copied it right here. if you can loojk at logcat trace then you can trouleshoot more or ask for help with tha ttrace On Mon, Apr 19, 2010 at 11:58 AM, SheikhAman shekh.a...@gmail.com wrote: Ohk, Things go fine, and i am able to design a layout like this- ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget101 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout android:id=@+id/widget110 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true TextView android:id=@+id/widget112 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_centerVertical=true android:layout_centerHorizontal=true /TextView Button android:id=@+id/widget111 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentLeft=true /Button Button android:id=@+id/widget113 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/widget114 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@+id/tweetList android:layout_alignParentLeft=true /ListView /RelativeLayout Things stay fine until i assign the adapter to the list i have created- public class MainActivity extends Activity { /** Called when the activity is first created. */ String[] data={1,2,3}; �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ListView tweetList = (ListView) findViewById(R.id.tweetList); tweetList.setAdapter(new ArrayAdapterString(this,R.id.tweetList,data)); } } as soon as i add the last line, problems start. whats wrong? here is the structure which i want- http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88... Please assist! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can i get this layout with List view??
Hi. please find the link to attached file, i need to have this kinda layout. is it possible?? well perhaps it is, but im not getting it how to do it. i want to specify the whole layout in the xml, but it gives runtime error here's the link to the blue print of desired layout: http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88/desired%20layout.jpg here's my main.xml- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout is anything wrong?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can i get this layout with List view??
Oops! Sorry.. here is the correct one- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true /TextView Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout Please tell. On Apr 18, 11:11 pm, Anurag Singh anusingh...@gmail.com wrote: I think, it's not right way. TextView android:id=@+id/widget39 android:layout_width=wrap_ content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView You have mention Button in a TextView. - Anurag Singh Hi. please find the link to attached file, i need to have this kinda layout. is it possible?? well perhaps it is, but im not getting it how to do it. i want to specify the whole layout in the xml, but it gives runtime error here's the link to the blue print of desired layout: http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88... here's my main.xml- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout is anything wrong?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can i get this layout with List view??
ohh, all of the tags didnt have '' with them. I have already added them but they weren't copied dont know why, so thats not a problem. On Apr 19, 6:12 am, SheikhAman shekh.a...@gmail.com wrote: Oops! Sorry.. here is the correct one- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true /TextView Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout Please tell. On Apr 18, 11:11 pm, Anurag Singh anusingh...@gmail.com wrote: I think, it's not right way. TextView android:id=@+id/widget39 android:layout_width=wrap_ content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView You have mention Button in a TextView. - Anurag Singh Hi. please find the link to attached file, i need to have this kinda layout. is it possible?? well perhaps it is, but im not getting it how to do it. i want to specify the whole layout in the xml, but it gives runtime error here's the link to the blue print of desired layout: http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88... here's my main.xml- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout is anything wrong?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you
[android-developers] Re: Can i get this layout with List view??
Ohk, Things went fine, and i was able to design a new layout like this- ?xml version=1.0 encoding=utf-8? RelativeLayout android:id=@+id/widget101 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; RelativeLayout android:id=@+id/widget110 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_alignParentTop=true android:layout_alignParentLeft=true TextView android:id=@+id/widget112 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_centerVertical=true android:layout_centerHorizontal=true /TextView Button android:id=@+id/widget111 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentLeft=true /Button Button android:id=@+id/widget113 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/widget114 android:layout_width=fill_parent android:layout_height=wrap_content android:layout_below=@+id/tweetList android:layout_alignParentLeft=true /ListView /RelativeLayout Things stay fine until i assign the adapter to the list i have created- public class MainActivity extends Activity { /** Called when the activity is first created. */ String[] data={1,2,3}; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ListView tweetList = (ListView) findViewById(R.id.tweetList); tweetList.setAdapter(new ArrayAdapterString(this,R.id.tweetList,data)); } } as soon as i add the last line, problems start. whats wrong? On Apr 19, 6:24 am, SheikhAman shekh.a...@gmail.com wrote: ohh, all of the tags didnt have '' with them. I have already added them but they weren't copied dont know why, so thats not a problem. On Apr 19, 6:12 am, SheikhAman shekh.a...@gmail.com wrote: Oops! Sorry.. here is the correct one- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignTop=@+id/widget39 android:layout_toRightOf=@+id/widget38 /Button TextView android:id=@+id/widget39 android:layout_width=wrap_content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true /TextView Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /RelativeLayout ListView android:id=@+id/tweetList android:layout_width=wrap_content android:layout_height=wrap_content / /LinearLayout Please tell. On Apr 18, 11:11 pm, Anurag Singh anusingh...@gmail.com wrote: I think, it's not right way. TextView android:id=@+id/widget39 android:layout_width=wrap_ content android:layout_height=wrap_content android:text=TextView android:layout_alignParentBottom=true android:layout_alignParentLeft=true Button android:id=@+id/widget38 android:layout_width=wrap_content android:layout_height=wrap_content android:text=Button android:layout_alignParentTop=true android:layout_alignParentRight=true /Button /TextView You have mention Button in a TextView. - Anurag Singh Hi. please find the link to attached file, i need to have this kinda layout. is it possible?? well perhaps it is, but im not getting it how to do it. i want to specify the whole layout in the xml, but it gives runtime error here's the link to the blue print of desired layout: http://lh6.ggpht.com/_o9EYB0b5APY/S8s-coQE-KI/CrA/KJUl5ANBi88... here's my main.xml- ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent RelativeLayout android:id=@+id/widget28 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=17px android:layout_y=10px Button android:id=@+id/widget40 android:layout_width=wrap_content android:layout_height=wrap_content
[android-developers] Re: Question about the Lsit View
Google for Droiddraw first. it will give you a nice toll to draw all ur layouts in android. secondly, use an vertical linear layout, in it, add a text view, then add a list view, then add a linear layout, inside linear layout, add button1 and button2. so the text view, list view and linear layout will appear vertically stacked. later in the second linear layout, add ur buttons. hows this? On Apr 16, 7:23 pm, desgraci care.n...@gmail.com wrote: Hi i'm new on this forum, i searched for a way to make divs in my android apps but i cant find any post of this theme, so i post what i want to do here: | Text View | not scrollbable | List | Scrollbable | Button1Button2| not scrollbable - Also when i try to make a 1.6 android application, whit this code: HelloList.java package com.examples; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; import android.widget.AdapterView.OnItemClickListener; public class HelloList extends ListActivity { private String[] COUNTRIES=getResources().getStringArray(R.array.countries_array);; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.setListAdapter(new ArrayAdapterString(this, R.layout.list_item, COUNTRIES)); ListView lv = getListView(); lv.setTextFilterEnabled(true); lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View view, int position, long id) { // When clicked, show a toast with the TextView text Toast.makeText(getApplicationContext(), ((TextView) view).getText(), Toast.LENGTH_SHORT).show(); } }); } } res/values/valores.xml ?xml version=1.0 encoding=utf-8? resources string-array name=countries_array itemBahrain/item itemBangladesh/item itemBarbados/item itemBelarus/item itemBelgium/item itemBelize/item itemBenin/item /string-array /resources res/values/string.xml ?xml version=1.0 encoding=utf-8? resources string name=helloHello World, HelloList!/string string name=app_nameHola Lista/string /resources res/values/list_item.xml ?xml version=1.0 encoding=utf-8? TextView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:padding=10dp android:textSize=16sp /TextView res/values/main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? On Mar 16, 10:15 pm, Kumar Bibek coomar@gmail.com wrote: Yes, theListViewis fully customisable. Look forsomeexamples on the net. http://tech-droid.blogspot.com/2009/07/custom-listview-for-android.html Thanks and Regards, Kumar Bibek On Mar 16, 2:14 pm, SheikhAman shekh.a...@gmail.com wrote: Hello all. I am very new to Android, but I love it because it has given me back what i was longing for : Java. but I am facingsomedoubts and confusions about is, since I am totally new to Mobile App Development. :-| I am listing myquerieshere- 1.) I wish to put various items in a single element of aListView. Like one image in the left, so many TextViews in a single element, and more things. Is it possible? 2.) I wish to give my text different colors, different sizes, and different fonts. how to do this? 3.) I wish to insert or delete elements from a List inListView. How to do that? 4.) I wish to change the background color of my list. how to do this? Please reply so that i can advance with my programming. Thanks in advance guys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
I want this thing from my list view- http://lh3.ggpht.com/_o9EYB0b5APY/S6IYbRBvOcI/CoA/Kv94dWitZXY/custom%20listview.PNG On Mar 18, 4:44 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? http://commonsware.com/Android/excerpt.pdf This is an excerpt from one of my books that discusses some of the techniques. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
thanks for the resource. how much the book costs? is it the famous USD$40 subscription every developer keeps talking about?? :-) On Mar 18, 4:44 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: Well, your example is quite good. but i need to be more aware of android to fully understand it LoL still im unclear about how to add images to the row,and feed them with image data, and add text views to a row, and feed them with data. any examples? http://commonsware.com/Android/excerpt.pdf This is an excerpt from one of my books that discusses some of the techniques. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
ohh thanks!! What is a warescription? a subscription to an ebook? will it be getting updates? how long this subscription will last for? On Mar 18, 5:23 pm, Mark Murphy mmur...@commonsware.com wrote: SheikhAman wrote: thanks for the resource. how much the book costs? is it the famous USD$40 subscription every developer keeps talking about?? :-) That book is available in print as _Beginning Android 2_ from Apress, or as _The Busy Coder's Guide to Android Development_ under the 40 USD Warescription. If you have questions about the books, head over to the [cw-android] Google Group, and we can answer them there: http://groups.google.com/group/cw-android -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Android Consulting/App Development:http://commonsware.com/consulting -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Some Queries about ListView
Hello all. I am very new to Android, but I love it because it has given me back what i was longing for : Java. but I am facing some doubts and confusions about is, since I am totally new to Mobile App Development. :-| I am listing my queries here- 1.) I wish to put various items in a single element of a ListView. Like one image in the left, so many TextViews in a single element, and more things. Is it possible? 2.) I wish to give my text different colors, different sizes, and different fonts. how to do this? 3.) I wish to insert or delete elements from a List in ListView. How to do that? 4.) I wish to change the background color of my list. how to do this? Please reply so that i can advance with my programming. Thanks in advance guys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Some Queries about ListView
Thanks! I just check it out. On Mar 16, 10:15 pm, Kumar Bibek coomar@gmail.com wrote: Yes, the ListView is fully customisable. Look for some examples on the net. http://tech-droid.blogspot.com/2009/07/custom-listview-for-android.html Thanks and Regards, Kumar Bibek On Mar 16, 2:14 pm, SheikhAman shekh.a...@gmail.com wrote: Hello all. I am very new to Android, but I love it because it has given me back what i was longing for : Java. but I am facing some doubts and confusions about is, since I am totally new to Mobile App Development. :-| I am listing my queries here- 1.) I wish to put various items in a single element of a ListView. Like one image in the left, so many TextViews in a single element, and more things. Is it possible? 2.) I wish to give my text different colors, different sizes, and different fonts. how to do this? 3.) I wish to insert or delete elements from a List in ListView. How to do that? 4.) I wish to change the background color of my list. how to do this? Please reply so that i can advance with my programming. Thanks in advance guys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en