Access pictures from Pictures app in my android app
Hi Just like the iPhone has a UIImagePickerController to let the user access pictures stored on the device, do we have a similar control in the Android SDK? Thanks. ...
Hi Just like the iPhone has a UIImagePickerController to let the user access pictures stored on the device, do we have a similar control in the Android SDK? Thanks. ...
Hi, I am trying to setup a selector drawable in my asset file like this: * 2 different images for 'on'/'off' mode in rest mode (i.e. it does not has focus) * another 2 different images for 'on'/'off' mode in focus mode (i.e. it has the focus). In my case, the 'rest' mode works, but the 'focus' mode does not. Can you please tell me wha...
I have an Android application in which I have my preferences in a xml file, which works fine. I've now want to set one of the preferences using code instead of displaying the entire preference screen, how would I go about doing this? ...
I am so confused when my list view using a BaseAdapter goes off the screen, each row no longer maintains a consecutive position. I don't know how else to explain it other than this. If my BA/LV shows 4 items on the screen, and I add a view that displays a TextView of each row, it shows 0,1,2,3 for the row numbers (which is correct). But...
When you long press on something in Android, a context menu comes up. I want to add something to this context menu for all TextViews in the system. For example, the system does this with Copy and Paste. I would want to add my own, and have it appear in every application. ...
Thanks for any help. I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This is the android URI returned by android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI content://media/external/images/media/3 When I try to construct a java URI object from this object, I get an Ille...
I want to run the code for contacts as a separate application from eclipse(and modify).... Is there any way to download the source code? I've read that u can download it locally by using git clone git://android.git.kernel.org/platform/packages/apps/Contacts.git but i use windows xp... i've tried creating the folders in the exact way as...
The documentation at http://code.google.com/android/reference/android/widget/AbsoluteLayout.html says: onLayout(boolean changed, int l, int t, int r, int b) //Called from layout when this view should assign a size and position to each of its children. So I overrode it like this: @Override protected void onLayout(boolean changed, int ...
Hello, In my Android application, I want a setting to be toggleable in it's menu like the Dialer app does for speaker and mute. You can see a picture below: You see how the Speaker, Mute and Hold options are toggle buttons - you can tap them again and they will toggle the green color. They may do this in a custom way, but I suspect ...
Got an activity that extends ListActivity. The list is backed up by a custom adapter that extends BaseAdapter. getListView().setFocusable(true); getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); I do a simple (getSelectedItemPosition() == ListView.INVALID_POSITION) check in onPrepareOptionsMenu() to disable the items that requ...
First of all, Hi to everyone, I'm here just to ask something maybe very simple, I'm working with Files, FileOutputStream and FileInputStream, But I just want to get/set a few props from the file, I mean, the owner the file, the permissions read/write, etc. Looking around I found the classes FileDescriptor and FilePermission but I don't ...
The context: I want to have a ListView that wouldn't receive focus (e.g. won't highlight row when user touches it). Yet each row widget has it's own OnClickListener. Here's what I specify in layout xml: android:choiceMode="none" android:focusableInTouchMode="false" android:focusable="false" The ListView still behaves exactly the same....
I have two Android projects, a 'library project' containing a custom layout, and an 'application project' containing an application which uses the layout. Everything seems to build and execute fine, except that the visual layout editor throws a ClassNotFoundException (which I assume is a bug in the plug-in), but when I try to start to m...
I have created a app where you can download YouTube videos for android. Now, I want it so that if you play a video in the YouTube native app you can download it too. To do this, I need to know the Intent that the YouTube native app puts out in order to play the YouTube app. I could do this easially if I had the YouTube program on my emul...
Hello, I am having problems downloading a binary file (video) in my app from the internet. In Quicktime, If I download it directly it works fine but through my app somehow it get's messed up (even though they look exactly the same in a text editor). Here is a example: URL u = new URL("http://www.path.to/a.mp4?video"); HttpURLCon...
My android application requires a password to be entered as the first activity. I want to be able to automatically send the application back to the password entry screen after the application has been idle for a fixed amount of time. The application has multiple activities, but I would like the timeout to be global to all activities. ...
I have a Android app. It recieves videos in .flv format which is unplayable by the Android phone. I was wondering how to convert the file to MP4. I could use FFMPEG, but I do not know how I would get it onto the phone, and how it would work on multiple phones if it was compiled for a single one. ...
How can I disable landscape mode for some of the views in my Android app? ...
Hi I am using Intents to switch between activities in my Android app. I am putting data in the Intent for use in the next activity. When I switch the phone between landscape and portrait modes, the values passed from the intent are lost and I get a NullPointerException. Can someone please tell me what could be wrong. There's a lot of ...
The web-site i'm working on is specially designed for Android. The user will not benefit from Android build-in zoom buttons. On the contrary they make a mess. How can i switch them off? ...