Re: [android-developers] Vertically Aligning the Image Buttons
Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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 -- 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 disable copy/paste in EditText
Hi, I have a EditText where i can enter some data. Here i should not select the entered data and copy it or i should not paste the data i copied from somewhere else. So for this i made android:longClickable as false. So on long press nothing will happen so that the user will not get the copy/paste option. But when the user selects the text and do the long press then copy/paste option is coming. Could some one knows how to handle this, please help. Thanks in advance Regards, Reddy -- 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
Re: [android-developers] LIstView not working
Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.comwrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Please send me the correct code.. Thanks KIRANKUMARKENDOLE -- 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 -- -- 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 -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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 -- 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
Re: [android-developers] Vertically Aligning the Image Buttons
AbsoluteLayout is deprecated. You can easily get the buttons to align to the right by using the RelativeLayout. Thanks On Mon, Nov 28, 2011 at 1:31 PM, jaggu mjagadeeshb...@gmail.com wrote: Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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 -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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
Re: [android-developers] Running the Android Application accessing /dev/node
Hi Mukesh, Thanks for the tip, I Will try it out soon and will post the results. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Nov 28, 2011 at 12:37 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Hi Saurab, You can run your script in the root directory of the device. you can acheive this by setting the Enviorment.getStoreage() method point to root. below is the example: new File(Environment.getExternalStorageDirectory(), , That is where i have dumped all my pic which were taken by the Camera application. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 12:30 PM, s.rawat imsaurabhra...@gmail.comwrote: Hi, I am trying to develop an application which has to access the device node.It could be anything a Printer micro-USB interface/an MHL - MDI interface .I want to know whether it is possible to achieve it without rooting the device or with rooting the device (with no user hassle to run some script/patch file - which does rooting and chmoding 777 the device node before running the application).Your advice will be greatly appreciated. Thanks in advance , Rgds, Saurabh -- 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 -- -- 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 -- 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] It is impossible to load videos from assets folder?
down vote favorite share [fb] share [tw] i'm trying to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works mVideoView.setVideoPath(file:///android_asset/videos.mp4); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = file:///android_asset/videos.mp4; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if i try to open the video from the SDCARD it works perfectly, then, the problem is when i'm trying to load the video from the assets folder. What i'm doing wrong? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] It is impossible to load videos from assets folder?
Hi, I'm trying to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works mVideoView.setVideoPath(file:///android_asset/videos.mp4); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = file:///android_asset/videos.mp4; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if i try to open the video from the SDCARD it works perfectly, then, the problem is when i'm trying to load the video from the assets folder. What i'm doing wrong? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] LIstView not working
check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.comwrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Please send me the correct code.. Thanks KIRANKUMARKENDOLE -- 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 -- -- 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 -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. -- 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 -- 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
[android-developers] Re: It is impossible to load videos from assets folder?
saex wrote: Hi, I'm trying to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works mVideoView.setVideoPath(file:///android_asset/videos.mp4); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = file:///android_asset/videos.mp4; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if i try to open the video from the SDCARD it works perfectly, then, the problem is when i'm trying to load the video from the assets folder. What i'm doing wrong? thanks you already asked the same question here (and got some answers): http://groups.google.com/group/fameisfame/browse_thread/thread/4957f51cc517ffcb/3e5ff2e9ef0054b4?q= pskink -- 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
Re: [android-developers] Re: It is impossible to load videos from assets folder?
Why dont you try using GetAssets() method which retursn and AssetManager and then try using FileDescriptor to read a video file and play it. AssetManager assetManager = getAssets(); though i havent tried it, but it is just a clue which might helps you. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:08 PM, skink psk...@gmail.com wrote: saex wrote: Hi, I'm trying to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works mVideoView.setVideoPath(file:///android_asset/videos.mp4); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = file:///android_asset/videos.mp4; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if i try to open the video from the SDCARD it works perfectly, then, the problem is when i'm trying to load the video from the assets folder. What i'm doing wrong? thanks you already asked the same question here (and got some answers): http://groups.google.com/group/fameisfame/browse_thread/thread/4957f51cc517ffcb/3e5ff2e9ef0054b4?q= pskink -- 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 -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] When using seek bar for large file then hang
Hello Developers, I am playing a .mp4 video file on android video view . I am using seek bar media controller for forward , backward , play and pause controller . It's works fine for small video file , when taking large size video then it's not work smoothly.. hangs with black screen... Please give me solution how to handle this cases. -- 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
Re: [android-developers] LIstView not working
Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.comwrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.comwrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Please send me the correct code.. Thanks KIRANKUMARKENDOLE -- 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 -- -- 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
Re: [android-developers] LIstView not working
Please uninstall the application from the emulator first. I am not sure, this is just an simple think to do. Android has lots more challenges my dear which you need to work on. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:44 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.comwrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.com wrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Please send me the correct code.. Thanks KIRANKUMARKENDOLE -- 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
Re: [android-developers] Vertically Aligning the Image Buttons
you can also use LinearLayout with vertical orientation .. Check the below link for more info regarding Layouts http://developer.android.com/guide/topics/ui/layout-objects.html On Mon, Nov 28, 2011 at 1:37 PM, Raghav Sood raghavs...@androidactivist.org wrote: AbsoluteLayout is deprecated. You can easily get the buttons to align to the right by using the RelativeLayout. Thanks On Mon, Nov 28, 2011 at 1:31 PM, jaggu mjagadeeshb...@gmail.com wrote: Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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 -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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
Re: [android-developers] LIstView not working
On Mon, Nov 28, 2011 at 2:50 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Please uninstall the application from the emulator first. Please confirm me one think You want select a particular item from a list.Please confirm me one think list item what data contains only string or any GUI attribute . I am not sure, this is just an simple think to do. Android has lots more challenges my dear which you need to work on. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:44 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.comwrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.com wrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Please send me the
Re: [android-developers] LIstView not working
Confirm me what you want with list items . On Mon, Nov 28, 2011 at 2:55 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Mon, Nov 28, 2011 at 2:50 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Please uninstall the application from the emulator first. Please confirm me one think You want select a particular item from a list.Please confirm me one think list item what data contains only string or any GUI attribute . I am not sure, this is just an simple think to do. Android has lots more challenges my dear which you need to work on. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:44 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.comwrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.com wrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list , lv_arr)); } } = XML File: ?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 ListView android:id=@+id/list
Re: [android-developers] Re: getting this error The apk must be signed with the same certificates as the previous version.
Actually I installed java 7 but the error was showing up with Java 6, so at this point I think is Java-independent.. -- 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 show PopupWindow in an Activity on some click event
// Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); Line 1 TextView textView = new TextView(context); Line 2 popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); // End of code for PopupWindow Thanks Mukesh and Jovish for your reply. finally got the solution to make above Popupwindow work. Line 1 constructs the PopupWindow (from API doc) public PopupWindow (Context context) Since: API Level 1 Create a new empty, non focusable popup window of dimension (0,0). The popup does provide a background. constructs a PopupWindow of dimension 0,0 ...so here we need to set the width and height as below popupWindow.setWidth(400); popupWindow.setHeight(180); On Nov 26, 12:39 am, Jovish P android.f...@gmail.com wrote: // Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); TextView textView = new TextView(context); popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); *popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); ? * * * * * *I think you have to give textView instead of v in this line of code.* // End of code for PopupWindow On Fri, Nov 25, 2011 at 5:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote: I am sure, the problem must with the context. Any ways, for the popupwindow, you could always go with the AlertDialog, it will also work as popup. On Fri, Nov 25, 2011 at 4:57 PM, Shajahan lovesa...@gmail.com wrote: its not working...:( looking for some help On Nov 25, 4:20 pm, Mukesh Srivastav mukicha...@gmail.com wrote: Let use know, if it works. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote: Hi Mukesh, Thanks for the reply. am doing the same Context context = this; On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote: Code looks fine but the problem would be with context. do the following. 1.create a context class variable. some thing like this. Context parentcontext; 2.Assign this in the onCreate Method. parentcontext = this; 3. then pass the parentcontext to the popupwindow or The another solution would be use getParentContext(), Might helps. On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote: I need to show the information about the field in an activity. For this i have created a buton and placed next to the field. Now when wants to know abt this field, he can click on that button and get the info. I am trying for PopupWindow. i have placed my code on the onClick event of the button // Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); TextView textView = new TextView(context); popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); // End of code for PopupWindow But the above doent help in showing the PopupWindow. -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad.- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-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
Re: [android-developers] Vertically Aligning the Image Buttons
did u got for that solution ? imagebutton On Mon, Nov 28, 2011 at 2:50 PM, Jovish P android.f...@gmail.com wrote: you can also use LinearLayout with vertical orientation .. Check the or below link for more info regarding Layouts http://developer.android.com/guide/topics/ui/layout-objects.html On Mon, Nov 28, 2011 at 1:37 PM, Raghav Sood raghavs...@androidactivist.org wrote: AbsoluteLayout is deprecated. You can easily get the buttons to align to the right by using the RelativeLayout. Thanks On Mon, Nov 28, 2011 at 1:31 PM, jaggu mjagadeeshb...@gmail.com wrote: Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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 -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to
Re: [android-developers] LIstView not working
HI , I need to show the List(ArrayList). with check boxes. And when we check a perticular item.. I am using Options Menu which have options like Edit, Delete etc. That functioanlity I am expecting.. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 4:26 AM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Confirm me what you want with list items . On Mon, Nov 28, 2011 at 2:55 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Mon, Nov 28, 2011 at 2:50 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Please uninstall the application from the emulator first. Please confirm me one think You want select a particular item from a list.Please confirm me one think list item what data contains only string or any GUI attribute . I am not sure, this is just an simple think to do. Android has lots more challenges my dear which you need to work on. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:44 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.com wrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.com wrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class DataListView extends ListActivity{ private ListView lv1; private String lv_arr[]= new String[]{Android,iPhone,BlackBerry,AndroidPeople}; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); lv1=(ListView)findViewById(R.id.list); // By using setAdpater method in listview we an add string array in list. lv1.setAdapter(new ArrayAdapterString(this,R.id.list ,
Re: [android-developers] LIstView not working
Good , You use efficient adapter then it's possible according to my solution read this http://www.androidpeople.com/android-custom-listview-tutorial-part-1 after that do with this one place custom button on list item for selection enjoy= http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html On Mon, Nov 28, 2011 at 2:59 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: HI , I need to show the List(ArrayList). with check boxes. And when we check a perticular item.. I am using Options Menu which have options like Edit, Delete etc. That functioanlity I am expecting.. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 4:26 AM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Confirm me what you want with list items . On Mon, Nov 28, 2011 at 2:55 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Mon, Nov 28, 2011 at 2:50 PM, Mukesh Srivastav mukicha...@gmail.comwrote: Please uninstall the application from the emulator first. Please confirm me one think You want select a particular item from a list.Please confirm me one think list item what data contains only string or any GUI attribute . I am not sure, this is just an simple think to do. Android has lots more challenges my dear which you need to work on. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:44 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , I did the same as shown in the example.. but its throwing exception saying.. 11-28 04:11:14.541: E/AndroidRuntime(594): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ta.coe/com.ta.coe.DataListView}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' JAVA Code: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.data_list_view); ListView lView = (ListView)findViewById(android.R.id.list); ArrayListString values=new DBOpenHelper(this).buildListForHeadingData(); lView.setAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, values)); //setListAdapter(adapter); lView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); } === XML FIle (data_list_view) ?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 ListView android:id=@+id/list android:orientation=vertical android:layout_width=fill_parent android:layout_height=0dip android:layout_weight=1.0 / /LinearLayout Can you tell me how to resolve this problem. Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 3:25 AM, Mukesh Srivastav mukicha...@gmail.com wrote: check this out. http://www.androidpeople.com/android-listview-multiple-choice-example Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 1:35 PM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Thanks a lot Mukhesh. Yes I can see boxes. But when we click on the checkboxes.. its not happening check/un check. Do we need to add any code for this? Thanks, KIRANKUMARKENDOLE On Mon, Nov 28, 2011 at 12:41 AM, Mukesh Srivastav mukicha...@gmail.com wrote: For CheckBox, Replace the simple_list_item_1.xml with the below one. android.R.layout.simple_list_item_multiple_choice Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 10:50 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Mukhesh , Thanks for your post. Its worked fine. But I have a small Q in addition with this. Because I have one user defined layout , so I used data_item_list XML file. In that I want to show a CheckBox for each List item and a ADD DATA button after the end of the List. Can you please let me know how to edit this XML file.. simple_list_item_1.xml file? Thanks, KIRANKUMARKENDOLE On Sun, Nov 27, 2011 at 11:59 PM, Mukesh Srivastav mukicha...@gmail.com wrote: Change this line in the adapter. Replace your code Adapet line with the below one. lv1.setAdapter(new ArrayAdapterString( android.R.layout.simple_list_item_1 , lv_arr)); Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 9:53 AM, Kiran Kumar Kendole k.kirankumar1...@gmail.com wrote: Hi Guys.. this is my code... I want to show a set of strings as List. But its not working for me.. and showing exceptions.. can anybody help me. JAVA file: package com.ta.coe; import android.app.Activity; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import
Re: [android-developers] Vertically Aligning the Image Buttons
Yes, Raghav and Jovish are correct, make a linear layout and try to edit the Layout using the Android Graphical Layout editor. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Nov 28, 2011 at 3:06 PM, jaggu mjagadeeshb...@gmail.com wrote: did u got for that solution ? imagebutton On Mon, Nov 28, 2011 at 2:50 PM, Jovish P android.f...@gmail.com wrote: you can also use LinearLayout with vertical orientation .. Check the or below link for more info regarding Layouts http://developer.android.com/guide/topics/ui/layout-objects.html On Mon, Nov 28, 2011 at 1:37 PM, Raghav Sood raghavs...@androidactivist.org wrote: AbsoluteLayout is deprecated. You can easily get the buttons to align to the right by using the RelativeLayout. Thanks On Mon, Nov 28, 2011 at 1:31 PM, jaggu mjagadeeshb...@gmail.com wrote: Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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 -- You received this message because you are subscribed to the Google Groups Android
Re: [android-developers] Building ndk liberary in android Failed
Hi, android-ndk list means.Actually where I have to post exactly. Thanks, On Mon, Nov 28, 2011 at 12:46 PM, Raghav Sood raghavs...@androidactivist.org wrote: It would be best if you asked this on the android-ndk list, but I'd imagine that the path should lead to wherever you have the library on your system. Thanks On Mon, Nov 28, 2011 at 11:39 AM, Deepak Kumar deepak.kumar...@gmail.comwrote: Hi All, I am trying to build a android project that uses ndk.And in Android.mk it loads the liberary that is writtern in C language(libdirectfb.c etc.) .But this project already builded by somebody else in the particular mentioned path - * /home/ferreira/android/JointSpace/DirectFB141_2k11R3/DirectFB_Voodoo/..* Now I am trying to build it after placing those files in one of the location.But it is not building and refers to the liberary. Actually what would be actual path I have to set instead of */home/ferreira/android/JointSpace/...* if I my files is present in location *D:\Projects\Android\Android\DirectFB_Voodoo\lib\..* in Windows. Actual file looks like this:- *Android.mk* . . . LOCAL_CFLAGS := \ -I/home/ferreira/android/JointSpace/DirectFB141_2k11R3/DirectFB_Voodoo/include \ -DHAVE_SIGNAL_H \ -DDIRECT_BUILD_NO_PTHREAD_CANCEL=1 \ -Wall LOCAL_LDLIBS := \ * /home/ferreira/android/JointSpace/DirectFB141_2k11R3/DirectFB_Voodoo/*lib/libdirectfb.o \ /home/ferreira/android/JointSpace/DirectFB141_2k11R3/DirectFB_Voodoo/lib/libjslibclient.o \ . . Thanks Regards, DEEPAK KUMAR, -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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] [Applications signed by manufacturer/Permissions not granted] Correct approach to develop appliations for device manufacturers
Hi! I was wondering what is the correct approach when developing applications with non-public functionality for Android device manufacturers. First of all, there are a lot of Android permissions that are not granted to 3rd party apps unless they are signed with manufacturer certificate, f.e. android.permission.READ_FRAME_BUFFER. http://developer.android.com/reference/android/Manifest.permission.html#READ_FRAME_BUFFER Android documentation says: Allows an application to take screen shots and more generally get access to the frame buffer data. Ok, so how can I take this screen shot? Is there some API? Or should I directly access framebuffer (like many applications that work on rooted devices do)? So, to make long story short: 1) Where can I find out how these permissions exactly work? 2) Should not there be some information if permissions are accessible by normal 3rd party applications or not? 3) Secondly, is there a way of testing an applications that uses these non-public permissions? I assume that you would have rooted device in order to do so. But can you switch something in the rooted Android operating system so that it would grant all permissions for all applications? I understand that this might be some low level question, but I wasn't able to find any documentation concerning this subject. I would be grateful for any reponse! Kacper86 -- 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] Disable long press on soft Keyboard in android
Hi All, If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Or how to disable long press on soft Keyboard? Thanks Regards, DEEPAK KUMAR -- 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
Re: [android-developers] Vertically Aligning the Image Buttons
yes Raghav thanks for i got On Mon, Nov 28, 2011 at 3:33 PM, s.rawat imsaurabhra...@gmail.com wrote: Yes, Raghav and Jovish are correct, make a linear layout and try to edit the Layout using the Android Graphical Layout editor. Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Nov 28, 2011 at 3:06 PM, jaggu mjagadeeshb...@gmail.com wrote: did u got for that solution ? imagebutton On Mon, Nov 28, 2011 at 2:50 PM, Jovish P android.f...@gmail.com wrote: you can also use LinearLayout with vertical orientation .. Check the or below link for more info regarding Layouts http://developer.android.com/guide/topics/ui/layout-objects.html On Mon, Nov 28, 2011 at 1:37 PM, Raghav Sood raghavs...@androidactivist.org wrote: AbsoluteLayout is deprecated. You can easily get the buttons to align to the right by using the RelativeLayout. Thanks On Mon, Nov 28, 2011 at 1:31 PM, jaggu mjagadeeshb...@gmail.com wrote: Hi same issue i'm also faceing below u given image like that i required the buttons On Mon, Nov 28, 2011 at 1:17 PM, s.rawat imsaurabhra...@gmail.com wrote: HI, My image buttons are coming horizontally across teh screen, I have tried enough but couldnt get it align vertically on the right or left side of the screen(see the last figure). Here is my main.xml and myUI is coming like this : __ | Button1 Button2 Button3 Button4 Button5 Button5 Button 6 Button7| |_| | | | | | | | | | | | | | | | | |_| Plz assit. Thanks in advance, ?xml version=1.0 encoding=utf-8? AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=horizontal FrameLayout android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:layout_x=6dp android:layout_y=83dp com.my.package android:id=@+id/surfaceview android:layout_width=fill_parent android:layout_height=wrap_content android:layout_x=-46dp android:layout_y=95dp / /FrameLayout ImageButton android:id=@+id/imageButton1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=438dp android:layout_y=6dp android:src=@drawable/ic_image0 / ImageButton android:id=@+id/imageButton5 android:layout_width=94dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=16dp android:layout_y=6dp android:paddingLeft=0dip android:src=@drawable/ic_image1 / ImageButton android:id=@+id/imageButton3 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_x=147dp android:layout_y=2dp android:src=@drawable/ic_image12 / ImageButton android:id=@+id/imageButton2 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 android:layout_x=292dp android:layout_y=1dp android:src=@drawable/ic_image2 / ImageButton android:id=@+id/imageButton4 android:layout_width=99dp android:layout_height=wrap_content android:layout_weight=1 android:layout_x=427dp android:layout_y=0dp android:src=@drawable/image1 / /AbsoluteLayout I am trying to get the output like this : __ | Button1 | | | | | | Button2 | | | | | | Button3 | | | | | | Button4 | | | | | | Button4 | | | | | |___ |_| Rgds, saurabh -- 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
Re: [android-developers] When using seek bar for large file then hang
Please help me it's issue only with large video file . On Mon, Nov 28, 2011 at 2:37 PM, Naveen kumarnaveen.si...@gmail.com wrote: Hello Developers, I am playing a .mp4 video file on android video view . I am using seek bar media controller for forward , backward , play and pause controller . It's works fine for small video file , when taking large size video then it's not work smoothly.. hangs with black screen... Please give me solution how to handle this cases. -- 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 -- 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
Re: [android-developers] When using seek bar for large file then hang
This issue occur with 400MB or more than 400MB large file... Please help me how to smoothly works with seek bar forward and backward On Mon, Nov 28, 2011 at 3:49 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Please help me it's issue only with large video file . On Mon, Nov 28, 2011 at 2:37 PM, Naveen kumarnaveen.si...@gmail.comwrote: Hello Developers, I am playing a .mp4 video file on android video view . I am using seek bar media controller for forward , backward , play and pause controller . It's works fine for small video file , when taking large size video then it's not work smoothly.. hangs with black screen... Please give me solution how to handle this cases. -- 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 -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
You cannot control the soft keyboard as it is not a part of your application. If you want an English only keyboard, write your own and bundle it with your app. On Mon, Nov 28, 2011 at 3:48 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: Hi All, If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Or how to disable long press on soft Keyboard? Thanks Regards, DEEPAK KUMAR -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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: It is impossible to load videos from assets folder?
videoview can't use file descrioptor to load a video On Nov 28, 9:49 am, Mukesh Srivastav mukicha...@gmail.com wrote: Why dont you try using GetAssets() method which retursn and AssetManager and then try using FileDescriptor to read a video file and play it. AssetManager assetManager = getAssets(); though i havent tried it, but it is just a clue which might helps you. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 2:08 PM, skink psk...@gmail.com wrote: saex wrote: Hi, I'm trying to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works mVideoView.setVideoPath(file:///android_asset/videos.mp4); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = file:///android_asset/videos.mp4; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if i try to open the video from the SDCARD it works perfectly, then, the problem is when i'm trying to load the video from the assets folder. What i'm doing wrong? thanks you already asked the same question here (and got some answers): http://groups.google.com/group/fameisfame/browse_thread/thread/4957f5... pskink -- 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 -- -- 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] Check for which orientations are available to the device.
I want my app to set the orientation to portrait on devices that can use the portrait orientation. To do this I use android:screenOrientation in the manifest. But there are some devices which do not support portrait orientation (some google tv's). On phones I want to set the orientation to portrait, but on tv's I'd like to set the orientation unspecified. Is there a way I can check for which orientations are available in the manifest (or maybe which device it's running on) before I set the orientation. Or could I set the orientation from the activity instead of from the manifest? Thanks! Note: I want to force the orientation to portrait if it's available, and I want to do it before the activity starts, like it does when you set it in the manifest. Also if you just set the orientation to portrait in the manifest and the device does not have a portrait orientation your app will crash. -- 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] df
Hello, everyone! I'm wondering if there is a Java way to check the storage capacity and percentage free. What I'm up to is to spawn a pipe and read the output of df unix command. Sadly I was unable to find a better way and that's why I'm asking for a such here. -- 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] Hardware Setup for Developing for Wifi Direct
HI, I am developing an application for wifi direct.Following is my plan : 1.Porting ICS(Ice Cream Sandwich) on the Board X having wlan chip Y 2.Running demo wifi direct application suing the sample code present in android API 14 for ICS 3.Developing my own application based on the sample. 4.Creating test suite (normal File(text,audio,video, media,Image, varied length, motion/static)File Transfer Transfer test cases, Retrieving and Validating them. 5.Releasing the App for review. I have chosen Following options for Boards X and Wlan Chip Y X- Panda Board, Beagle Board, Hawkboard Y- Atheros, I have following Questions : *Which board can have the inbuilt wlan support for wifi direct(Though I know that wifi direct is just the software implementation and everyhting which supports wlan must also support wifi dire*ct. *What are external accessory needed for Beagle Board and Hawkboard to get the wlan up for wifi direct development.* * * Thanks in Advance Rgds, Saurabh -- 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] tablet error
Been seeing this error a lot lately on my VIZIO tablet: http://i1190.photobucket.com/albums/z449/m75214/notcompat.jpg Any ideas why? Is there a way to get details about the issue? -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
On Mon, Nov 28, 2011 at 4:03 PM, Raghav Sood raghavs...@androidactivist.org wrote: You cannot control the soft keyboard as it is not a part of your application. If you want an English only keyboard, write your own and bundle it with your app. On Mon, Nov 28, 2011 at 3:48 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: Hi All, If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Or how to disable long press on soft Keyboard? Thanks Regards, DEEPAK KUMAR -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
Can I disable long press atleast? Thanks, On Mon, Nov 28, 2011 at 4:13 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: On Mon, Nov 28, 2011 at 4:03 PM, Raghav Sood raghavs...@androidactivist.org wrote: You cannot control the soft keyboard as it is not a part of your application. If you want an English only keyboard, write your own and bundle it with your app. On Mon, Nov 28, 2011 at 3:48 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: Hi All, If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Or how to disable long press on soft Keyboard? Thanks Regards, DEEPAK KUMAR -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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: It is impossible to load videos from assets folder?
saex wrote: videoview can't use file descrioptor to load a video of course it can't use file descriptor but it can use URI pointing to content provider did you try answers from: http://groups.google.com/group/fameisfame/browse_thread/thread/4957f51cc517ffcb/3e5ff2e9ef0054b4?q= pskink -- 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: getting this error The apk must be signed with the same certificates as the previous version.
Hello All, For what it's worth, I had a similar problem and it turned out I had upgraded Firefox. Someone mentioned I should use IE8 (I use winxp) and IE8 allowed the app to be updated thus correcting the problem. The next time I have to update/add an app to Android Market, I'll try Firefox just to see if it will work. Best, Tom B On Nov 14, 1:45 am, lakshman laksh...@hyperwebenable.com wrote: HI, getting this error The apk must be signed with the same certificates as the previous version. Please follow the steps 1. Made code changes to android app and changed the version from 1 to 2 2. Generated the signed application .apk from eclipse editor. 3. Tried to upload the apk file in the app store. 4. we have not used any certificate for the generating app in any version. 5. Can u tell me why is this error coming?. and how to fix this problem. -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
If you can't control it, how exactly do you plan to do that? Thanks On Mon, Nov 28, 2011 at 4:14 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: Can I disable long press atleast? Thanks, On Mon, Nov 28, 2011 at 4:13 PM, Deepak Kumar deepak.kumar...@gmail.comwrote: On Mon, Nov 28, 2011 at 4:03 PM, Raghav Sood raghavs...@androidactivist.org wrote: You cannot control the soft keyboard as it is not a part of your application. If you want an English only keyboard, write your own and bundle it with your app. On Mon, Nov 28, 2011 at 3:48 PM, Deepak Kumar deepak.kumar...@gmail.com wrote: Hi All, If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Or how to disable long press on soft Keyboard? Thanks Regards, DEEPAK KUMAR -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 do you load class from a sharedUser apk file?
Hello Everyone! I am trying to load a class from another .apk which uses the same sharedUser as my apk. No matter what I try, I always get just ClassNotFoundExeption. This is one thing I have tried: classLoader = context.createPackageContext(pInfo.packageName, 0).getClassLoader(); classLoader.loadClass(myClass); Is there any other way to make this work? -- 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] problem parsing the package
helo i developd a small application n started testing on LG 2.2 android device. but i am getting this error there is problem parsing the package when installing .apk file. i searched this group but i dint get any satisfactory answer. uses-sdk android:minSdkVersion=8 / i hope this is not causing erroras 2.2 device has same API level... please reply soon thnk u in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] problem parsing the package
Try installing it via ADB and post the LogCat. Thanks On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar rachana.govil...@gmail.com wrote: helo i developd a small application n started testing on LG 2.2 android device. but i am getting this error there is problem parsing the package when installing .apk file. i searched this group but i dint get any satisfactory answer. uses-sdk android:minSdkVersion=8 / i hope this is not causing erroras 2.2 device has same API level... please reply soon thnk u in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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: getting this error The apk must be signed with the same certificates as the previous version.
Tried with Chrome, Firefox and IE. Same issue for all of them. In fact, this can't be a browser-related issue. If I manually sign the apk using jarsigner and then zipalign it, I'm able to upgrade the app. So probably it's something related to ADT mis-signing the apks!! I opened a bug here: http://code.google.com/p/android/issues/detail?id=22278colspec=ID%20Type%20Status%20Owner%20Summary%20Stars -- 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: getting this error The apk must be signed with the same certificates as the previous version.
Hi, You *must* use Java 1.6 to sign, java 1.7 does not work jarsigner default algorithm has changed, as somebody already explained. Regards On Nov 28, 11:05 pm, Mariux mariu...@gmail.com wrote: Tried with Chrome, Firefox and IE. Same issue for all of them. In fact, this can't be a browser-related issue. If I manually sign the apk using jarsigner and then zipalign it, I'm able to upgrade the app. So probably it's something related to ADT mis-signing the apks!! I opened a bug here:http://code.google.com/p/android/issues/detail?id=22278colspec=ID%20... -- 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 implement rest webservice application in android?
Hi friends, How can I Implement in Rest service application in android..? Pls help 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Check for which orientations are available to the device.
We can set orientation in our activity onCreate() method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); On Nov 28, 5:36 am, XdebugX xdeb...@gmail.com wrote: I want my app to set the orientation to portrait on devices that can use the portrait orientation. To do this I use android:screenOrientation in the manifest. But there are some devices which do not support portrait orientation (some google tv's). On phones I want to set the orientation to portrait, but on tv's I'd like to set the orientation unspecified. Is there a way I can check for which orientations are available in the manifest (or maybe which device it's running on) before I set the orientation. Or could I set the orientation from the activity instead of from the manifest? Thanks! Note: I want to force the orientation to portrait if it's available, and I want to do it before the activity starts, like it does when you set it in the manifest. Also if you just set the orientation to portrait in the manifest and the device does not have a portrait orientation your app will crash. -- 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: problem parsing the package
when i test on emulator it gives me error as Your application has stopped unexpectedly. n LogCat is:- 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.privacygram.activity/ com.privacygram.activity.ImageCapture}: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invokeNative(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invoke(Method.java:521) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-28 18:10:06.265: E/AndroidRuntime(313): at dalvik.system.NativeStart.main(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): Caused by: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstanceImpl(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstance(Class.java:1429) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2577) 11-28 18:10:06.265: E/AndroidRuntime(313): ... 11 more On Nov 28, 4:45 pm, Raghav Sood raghavs...@androidactivist.org wrote: Try installing it via ADB and post the LogCat. Thanks On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar rachana.govil...@gmail.com wrote: helo i developd a small application n started testing on LG 2.2 android device. but i am getting this error there is problem parsing the package when installing .apk file. i searched this group but i dint get any satisfactory answer. uses-sdk android:minSdkVersion=8 / i hope this is not causing erroras 2.2 device has same API level... please reply soon thnk u in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.androidactivist.org/- Authorhttp://www.appaholics.in/- Founder -- 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
Go To ( http://adf.ly/20PrE )-)-) [android-developers] Re: getting this error The apk must be signed with the same certificates as the previous version.
Issue seems fixed, I cleaned Eclipse with -clean, overwrote the keystore with a previous version and now the exported apk can upgrade in Developer Console! -- 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 -- Go to Master Mind Home Base Income Website :- http://adf.ly/20PrE http://adf.ly/20PrE Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe http://q.gs/624707/unsubscribe Subscribe All Group Post :- http://j.gs/624707/subscribe http://q.gs/624707/subscribe Join Now Today (Paid Income) :- http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/?id=624707 http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE -- You received this message because you are subscribed to the Google Groups C-2-C-Corp-Usajobs group. To post to this group, send email to c-2-c-corp-usaj...@googlegroups.com. To unsubscribe from this group, send email to c-2-c-corp-usajobs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/c-2-c-corp-usajobs?hl=en.
Re: [android-developers] Re: getting this error The apk must be signed with the same certificates as the previous version.
Hi Mariux, I would suggest take the back up of the Android keystore that helps. Last time, when i was uploading it, accidental i deleted the keystores file, i had to change the package name again and generated the New keystore, It was a bad experience i had it. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Nov 28, 2011 at 6:17 PM, Mariux mariu...@gmail.com wrote: Issue seems fixed, I cleaned Eclipse with -clean, overwrote the keystore with a previous version and now the exported apk can upgrade in Developer Console! -- 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 -- -- 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
Re: [android-developers] Re: problem parsing the package
There is a problem in your instantiating your ImageCapture class. Post the first 30 lines or so, and you may get some help. Thanks On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar rachana.govil...@gmail.com wrote: when i test on emulator it gives me error as Your application has stopped unexpectedly. n LogCat is:- 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.privacygram.activity/ com.privacygram.activity.ImageCapture}: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invokeNative(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invoke(Method.java:521) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-28 18:10:06.265: E/AndroidRuntime(313): at dalvik.system.NativeStart.main(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): Caused by: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstanceImpl(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstance(Class.java:1429) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2577) 11-28 18:10:06.265: E/AndroidRuntime(313): ... 11 more On Nov 28, 4:45 pm, Raghav Sood raghavs...@androidactivist.org wrote: Try installing it via ADB and post the LogCat. Thanks On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar rachana.govil...@gmail.com wrote: helo i developd a small application n started testing on LG 2.2 android device. but i am getting this error there is problem parsing the package when installing .apk file. i searched this group but i dint get any satisfactory answer. uses-sdk android:minSdkVersion=8 / i hope this is not causing erroras 2.2 device has same API level... please reply soon thnk u in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.androidactivist.org/- Authorhttp:// www.appaholics.in/- Founder -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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
Re: [android-developers] Re: problem parsing the package
InstantiationException can mean that the activity class is not public or lacks a public constructor with the appropriate signature. On Mon, Nov 28, 2011 at 8:07 AM, Raghav Sood raghavs...@androidactivist.org wrote: There is a problem in your instantiating your ImageCapture class. Post the first 30 lines or so, and you may get some help. Thanks On Mon, Nov 28, 2011 at 6:13 PM, rachana govilkar rachana.govil...@gmail.com wrote: when i test on emulator it gives me error as Your application has stopped unexpectedly. n LogCat is:- 11-28 18:10:06.265: E/AndroidRuntime(313): FATAL EXCEPTION: main 11-28 18:10:06.265: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.privacygram.activity/ com.privacygram.activity.ImageCapture}: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2585) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4627) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invokeNative(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.reflect.Method.invoke(Method.java:521) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 11-28 18:10:06.265: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-28 18:10:06.265: E/AndroidRuntime(313): at dalvik.system.NativeStart.main(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): Caused by: java.lang.InstantiationException: com.privacygram.activity.ImageCapture 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstanceImpl(Native Method) 11-28 18:10:06.265: E/AndroidRuntime(313): at java.lang.Class.newInstance(Class.java:1429) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 11-28 18:10:06.265: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2577) 11-28 18:10:06.265: E/AndroidRuntime(313): ... 11 more On Nov 28, 4:45 pm, Raghav Sood raghavs...@androidactivist.org wrote: Try installing it via ADB and post the LogCat. Thanks On Mon, Nov 28, 2011 at 5:12 PM, rachana govilkar rachana.govil...@gmail.com wrote: helo i developd a small application n started testing on LG 2.2 android device. but i am getting this error there is problem parsing the package when installing .apk file. i searched this group but i dint get any satisfactory answer. uses-sdk android:minSdkVersion=8 / i hope this is not causing erroras 2.2 device has same API level... please reply soon thnk u in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.androidactivist.org/- Authorhttp://www.appaholics.in/- Founder -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog |
[android-developers] Is it possible to have a static view common to various activities in the application?
Hi, I just had a question if it is possible to have a static view across different layouts in activities defined? What I mean is that I have a number of activities in a project: 1.Activity A 2.Activity B 3.Activity C I need a view which appears in each of these activities but I don't want to define the view separately in all the 3 layout xml. How do I do it? Thank you, B.Arunkumar -- 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
Re: [android-developers] tablet error
On Mon, Nov 28, 2011 at 5:41 AM, bob b...@coolgroups.com wrote: Been seeing this error a lot lately on my VIZIO tablet: http://i1190.photobucket.com/albums/z449/m75214/notcompat.jpg Any ideas why? Their app requires something that your device does not have, either explicitly through something like a uses-feature element, or implicitly through a uses-permission element. Is there a way to get details about the issue? Not without the APK file. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Hardware Setup for Developing for Wifi Direct
For firmware-related questions, please visit http://source.android.com, click on the Community tab, find a relevant Google Group, and ask there. On Mon, Nov 28, 2011 at 5:40 AM, s.rawat imsaurabhra...@gmail.com wrote: HI, I am developing an application for wifi direct.Following is my plan : 1.Porting ICS(Ice Cream Sandwich) on the Board X having wlan chip Y 2.Running demo wifi direct application suing the sample code present in android API 14 for ICS 3.Developing my own application based on the sample. 4.Creating test suite (normal File(text,audio,video, media,Image, varied length, motion/static)File Transfer Transfer test cases, Retrieving and Validating them. 5.Releasing the App for review. I have chosen Following options for Boards X and Wlan Chip Y X- Panda Board, Beagle Board, Hawkboard Y- Atheros, I have following Questions : Which board can have the inbuilt wlan support for wifi direct(Though I know that wifi direct is just the software implementation and everyhting which supports wlan must also support wifi direct. What are external accessory needed for Beagle Board and Hawkboard to get the wlan up for wifi direct development. Thanks in Advance Rgds, Saurabh -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] df
http://developer.android.com/reference/android/os/StatFs.html On Mon, Nov 28, 2011 at 5:38 AM, ydm jordanmiladi...@gmail.com wrote: Hello, everyone! I'm wondering if there is a Java way to check the storage capacity and percentage free. What I'm up to is to spawn a pipe and read the output of df unix command. Sadly I was unable to find a better way and that's why I'm asking for a such here. -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] How to disable copy/paste in EditText
On Mon, Nov 28, 2011 at 2:57 AM, Reddy devireddy@gmail.com wrote: I have a EditText where i can enter some data. Here i should not select the entered data and copy it or i should not paste the data i copied from somewhere else. That seems user-hostile. So for this i made android:longClickable as false. So on long press nothing will happen so that the user will not get the copy/paste option. But when the user selects the text and do the long press then copy/paste option is coming. Could some one knows how to handle this, please help. I suspect that even if you come up with an answer, it will not work across devices. Device manufacturers have had a tendency to roll their own context menu for EditText, defeating developers' attempts to add items into that context menu. My guess is that trying to block that context menu will have similar results. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Is it possible to have a static view common to various activities in the application?
It's possible. Create a Layout you would like to have in A,B and C. Then use include in each of the layouts. Example: include android:id=@+id/header layout=@layout/header android:layout_height=wrap_content android:layout_width=fill_parent/ On Nov 28, 2011, at 2:26 PM, B.Arunkumar wrote: Hi, I just had a question if it is possible to have a static view across different layouts in activities defined? What I mean is that I have a number of activities in a project: 1.Activity A 2.Activity B 3.Activity C I need a view which appears in each of these activities but I don't want to define the view separately in all the 3 layout xml. How do I do it? Thank you, B.Arunkumar -- 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 -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
On Mon, Nov 28, 2011 at 03:48:49PM +0530, Deepak Kumar wrote: If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Ummm, that's incredibly obvious, now, isn't it? As you're writing your soft keyboard app, just don't include the support for long-press events. Or, if you plan to release this keyboard app, you should (obviously) make it a user setting. Do you need help in how *NOT* to add a feature in your app? Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into waveguide with remaining eye! Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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
Re: [android-developers] [Applications signed by manufacturer/Permissions not granted] Correct approach to develop appliations for device manufacturers
On Mon, Nov 28, 2011 at 5:15 AM, cpphool cpph...@gmail.com wrote: I was wondering what is the correct approach when developing applications with non-public functionality for Android device manufacturers. Just say no. First of all, there are a lot of Android permissions that are not granted to 3rd party apps unless they are signed with manufacturer certificate, f.e. android.permission.READ_FRAME_BUFFER. http://developer.android.com/reference/android/Manifest.permission.html#READ_FRAME_BUFFER Android documentation says: Allows an application to take screen shots and more generally get access to the frame buffer data. Ok, so how can I take this screen shot? Is there some API? No. Or should I directly access framebuffer (like many applications that work on rooted devices do)? Your guess is as good as mine. 1) Where can I find out how these permissions exactly work? Read through the source code on http://source.android.com. Searching on the name of the permission frequently comes up with interesting stuff. 2) Should not there be some information if permissions are accessible by normal 3rd party applications or not? There isn't in the documentation. However, in frameworks/base/core/res/AndroidManifest.xml in the source code, you will see declarations like: !-- Allows an application to take screen shots and more generally get access to the frame buffer data -- permission android:name=android.permission.READ_FRAME_BUFFER android:label=@string/permlab_readFrameBuffer android:description=@string/permdesc_readFrameBuffer android:protectionLevel=signature / The android:protectionLevel tells you what is required. In this case, signature means that it must be signed with the same signing key as is used with the firmware. You will also sometimes see signatureOrSystem, which (from what I can tell) allows both signature-based apps and ones that reside in /system/app. 3) Secondly, is there a way of testing an applications that uses these non-public permissions? I assume that you would have rooted device in order to do so. But can you switch something in the rooted Android operating system so that it would grant all permissions for all applications? Not that I am aware of, but that's a far better question for some firmware-related Google Group, hosted over on http://source.android.com. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 share image and text with SHARE INTENT on Facebook Twitter?
I want to give the user the possibility to share a Image and a Text with Twitter and Facebook. Actually my code can launch Android's share intent and if the user selects Facebook, all works fine, the Image is attached and the text is shown on the body of the new status. But something is wrong with Twitter, if i only put a Image all works fine, the image is detected by twitter and automatically uploaded to twipic, then twitter posts the link of the image on the tweet. But if i put a image and a text, then, twitter doesn't detect the image and it only puts the text on the tweet, the image is ignored. What is wrong? this is my code: Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/image.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, Body text of the new status); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); -- 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
{SAP-Jobs-SAP-FAQ} Go To ( http://adf.ly/20PrE )-)-) Re: [android-developers] How to share image and text with SHARE INTENT on Facebook Twitter?
You would have to ask the author of whatever Twitter client you are using (e.g., Twitter itself). There is nothing requiring any given Android application to simultaneously support text and streams with ACTION_SEND. BTW, never never never hardwire paths. Use Environment.getExternalStorageDirectory() to get the root of external storage. Also, I recommend using a real MIME type. You know the file is JPEG, so use image/jpeg. Otherwise, apps that can handle PNGs but not JPEGs might show up in the chooser. On Mon, Nov 28, 2011 at 8:41 AM, saex elpablos...@gmail.com wrote: I want to give the user the possibility to share a Image and a Text with Twitter and Facebook. Actually my code can launch Android's share intent and if the user selects Facebook, all works fine, the Image is attached and the text is shown on the body of the new status. But something is wrong with Twitter, if i only put a Image all works fine, the image is detected by twitter and automatically uploaded to twipic, then twitter posts the link of the image on the tweet. But if i put a image and a text, then, twitter doesn't detect the image and it only puts the text on the tweet, the image is ignored. What is wrong? this is my code: Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/image.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, Body text of the new status); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- Go to Master Mind Home Base Income Website :- http://adf.ly/20PrE http://adf.ly/20PrE Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe http://q.gs/624707/unsubscribe Subscribe All Group Post :- http://j.gs/624707/subscribe http://q.gs/624707/subscribe Join Now Today (Paid Income) :- http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/?id=624707 http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE http://adf.ly/20PrE -- You received this message because you are subscribed to the Google Groups SAP-Jobs-SAP-FAQ group. To post to this group, send email to sap-jobs-sap-...@googlegroups.com. To unsubscribe from this group, send email to sap-jobs-sap-faq+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sap-jobs-sap-faq?hl=en.
[android-developers] Re: How to share image and text with SHARE INTENT on Facebook Twitter?
Then it's impossible to achieve my needs with twitter? On Nov 28, 2:49 pm, Mark Murphy mmur...@commonsware.com wrote: You would have to ask the author of whatever Twitter client you are using (e.g., Twitter itself). There is nothing requiring any given Android application to simultaneously support text and streams with ACTION_SEND. BTW, never never never hardwire paths. Use Environment.getExternalStorageDirectory() to get the root of external storage. Also, I recommend using a real MIME type. You know the file is JPEG, so use image/jpeg. Otherwise, apps that can handle PNGs but not JPEGs might show up in the chooser. On Mon, Nov 28, 2011 at 8:41 AM, saex elpablos...@gmail.com wrote: I want to give the user the possibility to share a Image and a Text with Twitter and Facebook. Actually my code can launch Android's share intent and if the user selects Facebook, all works fine, the Image is attached and the text is shown on the body of the new status. But something is wrong with Twitter, if i only put a Image all works fine, the image is detected by twitter and automatically uploaded to twipic, then twitter posts the link of the image on the tweet. But if i put a image and a text, then, twitter doesn't detect the image and it only puts the text on the tweet, the image is ignored. What is wrong? this is my code: Intent sharingIntent = new Intent(Intent.ACTION_SEND); Uri screenshotUri = Uri.parse(file:///sdcard/image.jpg); sharingIntent.setType(image/*); sharingIntent.putExtra(Intent.EXTRA_TEXT, Body text of the new status); sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); startActivity(Intent.createChooser(sharingIntent, Share image using)); -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event
what was the actual problem ? On Mon, Nov 28, 2011 at 3:04 PM, Shajahan lovesa...@gmail.com wrote: // Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); Line 1 TextView textView = new TextView(context); Line 2 popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); // End of code for PopupWindow Thanks Mukesh and Jovish for your reply. finally got the solution to make above Popupwindow work. Line 1 constructs the PopupWindow (from API doc) public PopupWindow (Context context) Since: API Level 1 Create a new empty, non focusable popup window of dimension (0,0). The popup does provide a background. constructs a PopupWindow of dimension 0,0 ...so here we need to set the width and height as below popupWindow.setWidth(400); popupWindow.setHeight(180); On Nov 26, 12:39 am, Jovish P android.f...@gmail.com wrote: // Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); TextView textView = new TextView(context); popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); *popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); ? * * * * * *I think you have to give textView instead of v in this line of code.* // End of code for PopupWindow On Fri, Nov 25, 2011 at 5:01 PM, Mukesh Srivastav mukicha...@gmail.com wrote: I am sure, the problem must with the context. Any ways, for the popupwindow, you could always go with the AlertDialog, it will also work as popup. On Fri, Nov 25, 2011 at 4:57 PM, Shajahan lovesa...@gmail.com wrote: its not working...:( looking for some help On Nov 25, 4:20 pm, Mukesh Srivastav mukicha...@gmail.com wrote: Let use know, if it works. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote: Hi Mukesh, Thanks for the reply. am doing the same Context context = this; On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote: Code looks fine but the problem would be with context. do the following. 1.create a context class variable. some thing like this. Context parentcontext; 2.Assign this in the onCreate Method. parentcontext = this; 3. then pass the parentcontext to the popupwindow or The another solution would be use getParentContext(), Might helps. On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote: I need to show the information about the field in an activity. For this i have created a buton and placed next to the field. Now when wants to know abt this field, he can click on that button and get the info. I am trying for PopupWindow. i have placed my code on the onClick event of the button // Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); TextView textView = new TextView(context); popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutParams); textView.setText(My text goes here); popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); // End of code for PopupWindow But the above doent help in showing the PopupWindow. -- 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 -- Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad.- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hidequoted text - - Show quoted text - --
Re: [android-developers] Re: How to share image and text with SHARE INTENT on Facebook Twitter?
On Mon, Nov 28, 2011 at 8:54 AM, saex elpablos...@gmail.com wrote: Then it's impossible to achieve my needs with twitter? That is not what I wrote. I wrote: You would have to ask the author of whatever Twitter client you are using (e.g., Twitter itself). Bear in mind, of course, that users do not have to use any particular Twitter client, and the capabilities of these client apps with respect to ACTION_SEND will vary. If you want to know the behavior of any given Twitter client, contact the author of that Twitter client. You are, of course, welcome to bake in Twitter support into your app. Perhaps one of the Java libraries supports what you need -- I haven't tried uploading pictures to Twitter, so I can't say. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Multi-touch with multiple buttons
Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: df
Thank you! :) On Nov 28, 3:28 pm, Mark Murphy mmur...@commonsware.com wrote: http://developer.android.com/reference/android/os/StatFs.html On Mon, Nov 28, 2011 at 5:38 AM, ydm jordanmiladi...@gmail.com wrote: Hello, everyone! I'm wondering if there is a Java way to check the storage capacity and percentage free. What I'm up to is to spawn a pipe and read the output of df unix command. Sadly I was unable to find a better way and that's why I'm asking for a such here. -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event
Jovish P wrote: what was the actual problem ? 0x0 dimension pskink -- 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: Multi-touch with multiple buttons
Unfortunately Android's multitouch design is completely idiotic and does not allow multitouch events to go to two different views at the same time. You can only capture multitouch on *one* view. I guess in Android 3.2 they now allow multitouch to go the multiple views. But I have not tested it. Whoever thought of the one view thing is a moron, period. It should have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Multi-touch with multiple buttons
What about a transparent view that covers the entire activity? 28 ноября 2011 г. 18:21 пользователь niko20 nikolatesl...@yahoo.comнаписал: Unfortunately Android's multitouch design is completely idiotic and does not allow multitouch events to go to two different views at the same time. You can only capture multitouch on *one* view. I guess in Android 3.2 they now allow multitouch to go the multiple views. But I have not tested it. Whoever thought of the one view thing is a moron, period. It should have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 android-developers+unsubscr...@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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multi-touch with multiple buttons
Thanks Niko20 for your answer... Do you have any idea how game running Android 2.0+ do ? On 28 nov, 15:21, niko20 nikolatesl...@yahoo.com wrote: Unfortunately Android's multitouch design is completely idiotic and does not allow multitouch events to go to two different views at the same time. You can only capture multitouch on *one* view. I guess in Android 3.2 they now allow multitouch to go the multiple views. But I have not tested it. Whoever thought of the one view thing is a moron, period. It should have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 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 show PopupWindow in an Activity on some click event
try adding this: popupWindow.setWindowLayoutMode(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); -- 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
Re: [android-developers] df
For sample you can refer the below link http://www.41post.com/4374/programming/android-obtaining-sd-card-memory-information Thanks , Jovish P On Mon, Nov 28, 2011 at 6:58 PM, Mark Murphy mmur...@commonsware.comwrote: http://developer.android.com/reference/android/os/StatFs.html On Mon, Nov 28, 2011 at 5:38 AM, ydm jordanmiladi...@gmail.com wrote: Hello, everyone! I'm wondering if there is a Java way to check the storage capacity and percentage free. What I'm up to is to spawn a pipe and read the output of df unix command. Sadly I was unable to find a better way and that's why I'm asking for a such here. -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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] sound effects for android game application
Hello, I am making an android game. I wonder whether anyone can suggest how to go about producing the sound effects including sound track as well as other sounds for the game. Thank you for your feedback, John Goche -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
Hi, Is it possible without creating my own keyboard and disable long press on soft keyboard whichever currently in use? Or atleast can we disable for default soft keyboard that we get from google NOT third party soft keyboard app? Thanks, DEEPAK KUMAR On Mon, Nov 28, 2011 at 7:03 PM, Jim Graham spooky1...@gmail.com wrote: On Mon, Nov 28, 2011 at 03:48:49PM +0530, Deepak Kumar wrote: If we long press on any of the keys on soft-keyboard, we get other language characters options.But I want only English or particular set of languages.So how to do it? Ummm, that's incredibly obvious, now, isn't it? As you're writing your soft keyboard app, just don't include the support for long-press events. Or, if you plan to release this keyboard app, you should (obviously) make it a user setting. Do you need help in how *NOT* to add a feature in your app? Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into waveguide with remaining eye! Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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 -- 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
Re: [android-developers] Disable long press on soft Keyboard in android
On Mon, Nov 28, 2011 at 9:45 AM, Deepak Kumar deepak.kumar...@gmail.com wrote: Is it possible without creating my own keyboard and disable long press on soft keyboard whichever currently in use? No. For all you know, the input method editor that the user has chosen *requires* long-click operations to function. Or atleast can we disable for default soft keyboard that we get from google NOT third party soft keyboard app? No. I'm not aware that you can even tell what the input method editor is that the user has chosen for a given task. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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: Multi-touch with multiple buttons
could be an idea, I ve found on the web a tuto explaining how to manage multi-touch event with an image (in order to zoom it), but not with 2 or more sub-views... i would then have to calculate the place on the screen of both buttons and calculate if the pointer is in one of them. Is this a good approach ? On 28 nov, 15:28, Kostya Vasilyev kmans...@gmail.com wrote: What about a transparent view that covers the entire activity? 28 ноября 2011 г. 18:21 пользователь niko20 nikolatesl...@yahoo.comнаписал: Unfortunately Android's multitouch design is completely idiotic and does not allow multitouch events to go to two different views at the same time. You can only capture multitouch on *one* view. I guess in Android 3.2 they now allow multitouch to go the multiple views. But I have not tested it. Whoever thought of the one view thing is a moron, period. It should have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 android-developers+unsubscr...@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 at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Disable long press on soft Keyboard in android
Isn't filtering the input text inside your editText enough to get what you need? -- 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
Re: [android-developers] Re: Multi-touch with multiple buttons
You may want to look at the framework sources for this: http://www.grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.5_r1/android/view/ViewGroup.java#824 28 ноября 2011 г. 18:55 пользователь ColletJb collet...@gmail.com написал: could be an idea, I ve found on the web a tuto explaining how to manage multi-touch event with an image (in order to zoom it), but not with 2 or more sub-views... i would then have to calculate the place on the screen of both buttons and calculate if the pointer is in one of them. Is this a good approach ? On 28 nov, 15:28, Kostya Vasilyev kmans...@gmail.com wrote: What about a transparent view that covers the entire activity? 28 ноября 2011 г. 18:21 пользователь niko20 nikolatesl...@yahoo.com написал: Unfortunately Android's multitouch design is completely idiotic and does not allow multitouch events to go to two different views at the same time. You can only capture multitouch on *one* view. I guess in Android 3.2 they now allow multitouch to go the multiple views. But I have not tested it. Whoever thought of the one view thing is a moron, period. It should have just worked. But noo. We are Google we do everything the hard way. -niko On Nov 28, 8:13 am, ColletJb collet...@gmail.com wrote: Hi, I'm facing an very simple (and stupid) issue and I hope someone will be able to provide me an explanation... I'm trying to develop an Activity with 2 buttons (let's call them btnA and btnB), they are in my xml layout. My goal is to be able to handle click on both button (easy), even on the same time with multi-touch. First, I retrieve them on the onCreate method and I set them the OnTouchListener to this (my Activity implements OnTouchListener): @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.btnA = (ImageButton) this.findViewById(R.id.btnA); this.btnB = (ImageButton) this.findViewById(R.id.btnB); this.btnA.setOnTouchListener(this); this.btnB.setOnTouchListener(this); } I did override the onTouch method that way : @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction() MotionEvent.ACTION_MASK; if(v.equals((View)this.btnA)){ if(action == MotionEvent.ACTION_DOWN){ updateAState(true); }else if(action == MotionEvent.ACTION_UP){ updateAState(false); } }else if(v.equals((View)this.btnB)){ if(action == MotionEvent.ACTION_DOWN){ updateBState(true); }else if(action == MotionEvent.ACTION_UP){ updateBState(false); } } return true; } With this implementation, I can capture the DOWN and UP event on both buttons, but not with multi-touch (ex: btnA DOWN, btnB DOWN, btnB UP, btnB DOWN, btnB UP, btnA UP). Who can tell me how I can fix my onTouch method to support such feature ? 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 android-developers+unsubscr...@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 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 at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Disable long press on soft Keyboard in android
Filter in the input text means?Actually once I will long press on any of the key present on softKeyboard it will popup options and upon selection ,it will be displayed in Edittext. Thanks, DEEPAK KUMAR On Mon, Nov 28, 2011 at 8:26 PM, gil eichenbaum gileichenb...@gmail.comwrote: Isn't filtering the input text inside your editText enough to get what you need? -- 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 -- 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] Skip activity to maintain activity stack
Hi Guys, I am creating an app, where I am faced with the following dilemma: The app I am working on has a public and private view. To see the private view the user needs to log in. The way the workflow works is, that when the user opens the app, he first sees a SplashActivity, and then he sees the public view on the MainActivity, and then he presses a login button, to take him to the LoginActivity. On the LoginActivity the user can check a box allowing the app to save username and password to do an autologin the next time he starts the app. The autologin is handled by the SplashActivity. This works fine... but in certain cases the autologin fails. If the network connection times out or something else. In those cases, I don't want the user to just be sent to the MainActivity. I want to send him to the LoginActivity. But I also want to maintain an activity stack, where the user can press the back button and return from the LoginActivity to the MainActivity. Right now I handle that by sending a boolean in the Extra information of the Intent. If this boolean is true, I send the user to the LoginActivity right away after loading the MainActivity. That also works, and I maintain the Activity Stack. ... there is just one problem. I see the MainActivity screen flash on the screen before the user is sent to the LoginActivity. Am I going about this wrong, or is there some way I can prevent the MainActivity from flashing on the screen? Thanks, JP -- 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] Has Google developed FragmentLayoutSupport.java in a wrong way?
Hi everybody: I've just have developed something like the FragmentLayoutSupport example from Google, to show a ListView and Details from every element in the list. http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentLayoutSupport.html The point is, when you you get the list in PORTRAIT mode, and you select details (a TextView), you enter to the Fragment wanted (DetailsFragment). Once you are therem if you turn the phone to LAND mode, the element is well selected, but once we turn again the phone to PORTRAIT mode, tada! we are on the list screen instead the Details screen. Anybody knows how to solve that? Is the example 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
Re: [android-developers] Skip activity to maintain activity stack
Use Intents to send the user to whichever Activity you want, and put if or switch statements in onBackPressed() to fire Intents to take them to another activity when the back button is pressed: On Mon, Nov 28, 2011 at 9:04 PM, JP jetp...@yahoo.com wrote: Hi Guys, I am creating an app, where I am faced with the following dilemma: The app I am working on has a public and private view. To see the private view the user needs to log in. The way the workflow works is, that when the user opens the app, he first sees a SplashActivity, and then he sees the public view on the MainActivity, and then he presses a login button, to take him to the LoginActivity. On the LoginActivity the user can check a box allowing the app to save username and password to do an autologin the next time he starts the app. The autologin is handled by the SplashActivity. This works fine... but in certain cases the autologin fails. If the network connection times out or something else. In those cases, I don't want the user to just be sent to the MainActivity. I want to send him to the LoginActivity. But I also want to maintain an activity stack, where the user can press the back button and return from the LoginActivity to the MainActivity. Right now I handle that by sending a boolean in the Extra information of the Intent. If this boolean is true, I send the user to the LoginActivity right away after loading the MainActivity. That also works, and I maintain the Activity Stack. ... there is just one problem. I see the MainActivity screen flash on the screen before the user is sent to the LoginActivity. Am I going about this wrong, or is there some way I can prevent the MainActivity from flashing on the screen? Thanks, JP -- 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 -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- 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: Interfacing a touch screen and android phone
did you get anywhere on this? I'm about to do the same thing. -- 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: Disable long press on soft Keyboard in android
Are you trying to avoid getting specific characters inside your editText or you have another reason to disable popups? On 28 נובמבר, 17:09, Deepak Kumar deepak.kumar...@gmail.com wrote: Filter in the input text means?Actually once I will long press on any of the key present on softKeyboard it will popup options and upon selection ,it will be displayed in Edittext. Thanks, DEEPAK KUMAR On Mon, Nov 28, 2011 at 8:26 PM, gil eichenbaum gileichenb...@gmail.comwrote: Isn't filtering the input text inside your editText enough to get what you need? -- 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 -- 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
Re: [android-developers] Understanding the lifecycle of ViewPager
It seems like the Loader is now a replacement for AsyncTask, but does it also replace the use of a Runnable/Thread scenario? The AsyncTask is more difficult to set up, so I understand why a Loader makes sense there ( http://stackoverflow.com/questions/5603504/android-3-0-what-are-the-advantages-of-using-loadermanager-instances-exactly). In my scenarios, I have data being loaded from a web service but there's a progress dialog and action only needs to be taken after the process is completed. So for this I've always created a runnable, started a new thread from that, and have an on UI runnable that's called after the processing is completed. Should I instead be looking at using Loaders for this moving forward? -- Chris Stewart On Wed, Nov 9, 2011 at 7:03 AM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Nov 8, 2011 at 10:51 PM, Chris Stewart cstewart...@gmail.com wrote: Thanks for the reply Dianne. I'm not completely sure what you mean by custom loader, are you referring to what was introduced in 3.2? If so, is it available in the support library for pre-3.2? The Loader framework is in the Android support package / compatibility library / thingy. :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 -- 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: Skip activity to maintain activity stack
look into startActivityForResult and onActivityResult -- 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: Mysterious behavior of switch statement inside onActivityResult
On Mon, Nov 28, 2011 at 12:17 AM, Carlos A. M. dos Santos unixma...@gmail.com wrote: Hello, I have the following code in class MyActivity: public static final int REQ_CODE = 0x7fff; ... startActivityForResult(intent, REQ_CODE); ... @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { Log.d(TAG, onActivityResult: + Integer.toHexString(requestCode)); switch (requestCode) { case 0: case REQ_CODE: Log.d(TAG, REQ_CODE ); break; default: Log.d(TAG, Equals: + (requestCode == REQ_CODE)); } } When I run it I get the following log messages: D/MyActivity(11505): onActivityResult: 7fff D/MyActivity(11505): REQ_CODE Now for the mystery. If I comment-out the case 0 clause I get these log messages: D/MyActivity(11471): onActivityResult: 7fff D/MyActivity(11471): Equals: true If I comment-out the case 0 clause and change the value of REQ_CODE to 0x7ffe I get a correct result again. To make the case even more mysterious, a similar code works perfectly well in another class, inside a method overriding Handler.handleMessage(Message msg). My environment: - Ubuntu 11.10 x86 (32bit). - Android SDK Tools r15 - ADT Version: 15.0.1.v20031820-219398 - javac 1.6.0_26 - Project target API: 7 (Android 2.1) Additional information: - Building with ant does not make any difference. - Changing Java compliance to 1.5 does not make any difference. - The problem can reproduced 100% of the times, both on Nexus S with Android 2.6.3 and on emulator running Android 2.1. - No, I'm not drunk! Extra additional information: the problem also happens when I build on another machine, with SDK Tools r12 and Platform-tools r6. Can anybody help me to debug this? I'm whiling to fill a bug report, but I need additional information. I suspect that the problem is caused by the conversion to DEX code. -- The flames are all long gone, but the pain lingers on -- 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 create a exact copy of a File?
Official facebook App haves a bug, when you try to share a image with share intent, the image gets deleted from the sdcard. This is the way you have to pass the image to facebook app using the uri of the image: File myFile= new File(Environment.getExternalStorageDirectory(), car.jpg); Uri uri = Uri.fromFile(myFile); i.putExtra(Intent.EXTRA_STREAM, uri); Then, i supose that if i create a copy from the original myFile object, and i pass the uri of the copy to facebook app, then, my original image will not be deleted. Please, can someone tell me how to do a exact copy of a file? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create a exact copy of a File?
http://exampledepot.com/egs/java.io/CopyFile.html On Mon, Nov 28, 2011 at 11:42 AM, saex elpablos...@gmail.com wrote: Official facebook App haves a bug, when you try to share a image with share intent, the image gets deleted from the sdcard. This is the way you have to pass the image to facebook app using the uri of the image: File myFile= new File(Environment.getExternalStorageDirectory(), car.jpg); Uri uri = Uri.fromFile(myFile); i.putExtra(Intent.EXTRA_STREAM, uri); Then, i supose that if i create a copy from the original myFile object, and i pass the uri of the copy to facebook app, then, my original image will not be deleted. Please, can someone tell me how to do a exact copy of a file? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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
Re: [android-developers] Re: Mysterious behavior of switch statement inside onActivityResult
On Mon, Nov 28, 2011 at 11:37 AM, Carlos A. M. dos Santos unixma...@gmail.com wrote: Can anybody help me to debug this? I'm whiling to fill a bug report, but I need additional information. I suspect that the problem is caused by the conversion to DEX code. Tactically, unless you really have ~1 billion separate startActivityForResult() calls, switch REQ_CODE to be 1. Or 1337. Or something else small. It only has to be unique within your calling activity. Beyond that, post the source to a sample project that demonstrates this issue somewhere, and I'll take a peek at it. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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 create a exact copy of a File?
Thanks, but probably i didn't explain the question perfectly. I dont need a outputstream, and i dont have a input stream. I have a File object, and i need to create a independent copy of the object, another File object with the same content with no reference maintained. On Nov 28, 5:44 pm, Mark Murphy mmur...@commonsware.com wrote: http://exampledepot.com/egs/java.io/CopyFile.html On Mon, Nov 28, 2011 at 11:42 AM, saex elpablos...@gmail.com wrote: Official facebook App haves a bug, when you try to share a image with share intent, the image gets deleted from the sdcard. This is the way you have to pass the image to facebook app using the uri of the image: File myFile= new File(Environment.getExternalStorageDirectory(), car.jpg); Uri uri = Uri.fromFile(myFile); i.putExtra(Intent.EXTRA_STREAM, uri); Then, i supose that if i create a copy from the original myFile object, and i pass the uri of the copy to facebook app, then, my original image will not be deleted. Please, can someone tell me how to do a exact copy of a file? Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] MHL HDMI Supported Resolutions
Hi All, I've searched everywhere but I can't find this answer. I've even called Samsung. Basically I have an external display controller which accepts an HDMI signal, but only 480p. I need to pick an android phone with MHL/HDMI that will be able to support this resolution. All that I can find is that it supports up to 1080p. But what about the lowest resolution. The only hint I could find is from this site...http://www.microvision.com/showwx/hdmi/compatibility which shows like 720p might be the lowest? Thanks Aaron -- 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
Re: [android-developers] How to create a exact copy of a File?
On Mon, Nov 28, 2011 at 11:42 AM, saex elpablos...@gmail.com wrote: Official facebook App haves a bug, when you try to share a image with share intent, the image gets deleted from the sdcard. This is the way you have to pass the image to facebook app using the uri of the image: Is this a documented bug? Have you reported it? Or is it just the way it's designed, and not a bug but just a difference in the way you word things? File myFile= new File(Environment.getExternalStorageDirectory(), car.jpg); Uri uri = Uri.fromFile(myFile); i.putExtra(Intent.EXTRA_STREAM, uri); Then, i supose that if i create a copy from the original myFile object, and i pass the uri of the copy to facebook app, then, my original image will not be deleted. Please, can someone tell me how to do a exact copy of a file? Thanks It sounds like you *do* want a new file. Copy the file, right, into something like car_copy.jpg, and pass that. You can copy the file using the link example Mark provided. (Even if you don't *have* an InputStream, you can get one easily enough.) kris -- 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
Re: [android-developers] any link to browse ICS code online ?
On Sun, Nov 27, 2011 at 15:26, Mark Murphy mmur...@commonsware.com wrote: On Sun, Nov 27, 2011 at 8:54 AM, Carlos Silva r3...@r3pek.org wrote: it's not official, but you can browse it here: http://android.git.r3pek.org Cool! Though, out of curiosity, what does the Search field search? I tried searching for CalendarView and CalendarView.java and received no results for either. It's a GitWeb interface... It looks for commits, Authors and everything git related, not source AFAIK :/ -- 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] Bluetooth Low Energy (BLE) - bluetooth 4.0 support
Dear all, I am looking forward the time when we could connect our android devices towards devices supporting BLE. Obviously I expect that android devices will support Dual profile (capability to connect via bluetooth towards old devices and towards Bluetooth low energy devices). If I understood correctly Android 4.0 platform should be able to handle the Bluetooth Health Device Profile is that bluetooth 4.0? Does anyone know if there is any existing device supporting BLE? Motorola Razr seems to be supporting Bluetooth 4.0 according to theirs specs, but it runs Android 2.3 Did anyone had any experience with this technology? Any clarification to my confused mind is highly appreciated. Thanks, Mik -- 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] Share Image files between Applications.
Hello, I want to do something like in the app find differences https://market.android.com/details?id=com.pineconesoft.comparator in which is possible to install a image pack https://market.android.com/details?id=com.pineconesoft.comparatorpack3 How can I do it? I dont think this is done with content provider cause there is more than one pack, and to do this is need a individual authorities. I just want install my default aplication, then install the pack, and in the default application asset receive new images. Sorry about my poor english, I tried to be clear. -- 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: Share Image files between Applications.
can you use the SD card as a storage location for your images? -- 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
Re: [android-developers] Re: Share Image files between Applications.
I dont want use it, but I think I'll need use it :/ only if there's no alternative way. -- 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] I/O date change
In case somebody missed it from the world's social media outlets, Google has moved the I/O conference to June 27-29 -- now 3 days instead of the original 2 in April. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] callingweburl
Hi calling weburl from coming when coming back actvity iam pressing the backbutton 2 times why like that is there any way calling the weburl WebView mWebView; String Url = www.google.com; Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(Url)); startActivity(myIntent); -- 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