Hello,
Currently I am trying to place a MapView within a ListView. Has anyone had any success with this? Is it even possible? Here is my code:
ListView myList = (ListView) findViewById(android.R.id.list);
List<Map<String, Object>> groupData = new ArrayList<Map<String, Object>>();
Map<String, Object> curG...
Is it possible to use AdapterView with text fields in android?
My query returns a set of values and for each I want to place that within a textfield, so that the user may edit the value.
Also, I want to click a button to create a new empty field, so that I may insert a new entry.
If you know of good example, then please let me know!
...
I have a native Android 2.1 application that hosts a web view. I load up a site that contains javascript that uses the LocalStorage feature. When the application is running localStorage works fine. When some users exit the application and restart it, all the values are gone. I'm not seeing this problem in my Motrola Droid or Sprint E...
I want media controls such as play/pause for streaming audio that I am playing in my app. I am using MediaPlayer to stream and play the audio.
Can someone provide a code snippet on how to use MediaController with MediaPlayer?
Thanks
Chris
...
Is there a property to set for Android's LinearLayout that will enable it to properly wrap child controls?
Meaning - I have changeable number of children and would like to lay out them horizontally like:
Example: Control1, Control2, Control3, ...
I do that by setting:
ll.setOrientation(LinearLayout.HORIZONTAL);
foreach (Child c in...
I am followin the method described here to create an EditText input activity. But the view doesn't fill the width of the screen. How can I tell to fit the screen width?
<activity android:name="TextEntryActivity"
android:label="My Activity"
android:theme="@android:style/Theme.Dialog"/>
-
<?xml version="1.0" enc...
It is my first time building an android app. Was wondering firstly, if there are demos that exists which could help me to build a media tag editor (form to edit mp3 files).
I would also like to know how to populate the sd card on the emulator.
Any help on android would be good. Thanks all!
...
I downloaded the emulator and followed the steps on the android website on how to install the SDK. i made an AVD and everything showed up on my computer screen perfectly, but now the problem was installing it to my phone. i can't find the instructions the android website on how to install it on my device.
...
Hi there,
I am trying to create an app with some menus, an I am following the basic example available in the official android site:
http://developer.android.com/guide/topics/ui/menus.html
My problems appear when I define the menu in the XML. After creating the folder res/menu and creating the menu_option.xml file from eclipse.... The ...
Hi
I recently started using eclipse and an AVD emulator to develop android apps for a droid. Everything is going fine, except when i type in the emulator it returns chinese characters. My location is set to en-us, so not sure what is going on.
Any thoughts?
...
I know its easy to do this with Eclipse but i dont have that. can someone please tell me how to do this step by step on Windows??
...
I have created some contacts data in the emulator. When I run the ContactManager sample app downloaded from the Android site, I get an error. Specifically, when trying to add a Contact through the app, I get a NullPointerException.
I think it is because the "Target Accounts" spinner on the scree is not getting populated, and hence I ...
Hi,
I need to have a linear Layout whose height is wrap_content,
but how can I specify a child of this linear layout to stretch to its parent?
I tried
... some other children ...
But this does not work. The image does not scretch.
...
I read this quote in one of the webpages:
If you are writing a large
application, consider dividing it into
a suite of applications and services.
Smaller applications load faster and
use fewer resources. Making a suite of
applications, content providers, and
services makes your code more open to
incorporation into other...
I'm looking to create AVDs to test my apps on, and i'm trying to figure out the correct settings for a square screen such as the new Motorola Flip Out. I don't see a wikipedia article for it, or many specs...
On a related note, what about tablets? Actually.. Why aren't there a set of AVD instances with params from popular devices.. or ...
I thought I could use the position int, but when I click on the item in the list view, nothing happens. Please help!
ListView d = (ListView) findViewById(R.id.apo);
ArrayAdapter adapt = ArrayAdapter.createFromResource(this,
R.array.algebra, android.R.layout.simple_list_item_1);
d.setAdapter(adapt);
d.setOnItemClickListener(new OnIt...
So I'm trying to build a tabs view for an Android app, and for some reason I get a force close every time I try to run it on the emulator. When I run the examples, everything shows fine, so I went as far as to just about copy most of the layout from the examples(a mix of Tabs2.java and Tabs3.java), but for some reason it still wont run, ...
Hi all!
I am coding a custom view, extended from RelativeLayout, and I want to resize it programmatically, How can I do?
the custom view Class is something like:
public ActiveSlideView(Context context, AttributeSet attr){
super(context, attr);
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.L...
I was looking for an API to send incoming calls to voicemail.
I know this can be done using the Contact app that comes with any Android
phones. But is there an API for this?
...
I want to use a custom media controller in my Android app and therefore looking at the vidtry code (http://github.com/commonsguy/vidtry), especially Player.java:
The sample works fine as it comes. But I want the sample to play the fixed video automatically on app startup (so I don't want to enter a URL).
I added:
@Override
public voi...