How big is the motorola android's screen, in pixels? I want to know what size I need to make my graphic without it being too disorted by the fill_parent.
EDIT: I don't think you guys understood this... I know android is the operating system.
Let me explain:
If phone A was 400 by 300 pixels, hypothetically, and phone B was 450 by 350 pi...
Hello , im trying to implement a listAdapter that supports integer Arraylists by extending the baseAdapter, when initialize the activity my app crashes. Since im new to android i was wondering if anybody could spot something wrong with my implementation
package com.test.testapp;
import java.util.ArrayList;
import com.test.testapp.R;
...
I was following this guide to make a custom AlertDialog. I want to make a dialog with buttons and a title like an AlertDialog, but also with an EditText box, which a regular AlertDialog can't use. So I made the following custom layout containing the EditText box in a file called add_player_dialog.xml in res/layout, which will be called...
Hello,
I am trying to toggle the microphone of Android mobile. App. freezes if I run the mute and unmute in a loop, With a delay of say 500ms. Is there a specific reason mobile behaves this way? (Motorola Droid is not even able to mute the phone) however all other mobiles are able to do it.
This runs in a loop for 20 times
audioServic...
Is it possible to set the absolute position of a view in android? (I know that there is an AbsoluteLayout, but it's deprecated...)
Lets say I have a screen 240x320px, and I want to put an ImageView which is 20x20px with its center at the position (100,100).
What do I have to do?
Thanks for the help, this is driving me crazy.
...
Can someone tell me, what is the best way to deal with situations when there is no GPS signal or from some reason fix cannot be acquired?
The thing is that I thought that it would be sufficient just to use onStatusChanged method from LocationListener, but when there is no GPS signal it never calls this method. Why is that?
Thanks
...
Ok so I have an rss reader that links to articles. One of the sites it links to doesn't have a mobile view. I was wondering if anyone knew if it was possible to set the "zoom" and position of the view once the page is loaded? So for instance if the following link were my article... http://www.neworleanssaints.com/news-and-events/artic...
What is the difference between vcalendar and icalendar? Is it only the VERSION difference as 1.0 and 2.0 respectively?
For sending a Meeting Request with iCalendar and vcalendar, I specify the MIME type as text/calendar.
The email sent with iCalendar appears as a Meeting Request while the one with vCalendar appears as an attachment. W...
I'm building a small Android application, but this is more of a Java question than an android question. Looking through the tutorials there are lines that look like:
startService(new Intent(this, MyService.class));
what exactly does the "MyService.class" field represent? Is that just a reference to the class for a template?
Thanks.
...
I have the following snippet of code , i'm trying to get the text values someone types into the EditText's
LayoutInflater factory = LayoutInflater.from(this);
final View loginView = factory.inflate(R.layout.login, null);
b.setOnClickListener(new OnClickListener(){
public void onClick(View v) {
...
I'd like to allow my Android app to upload a spreadsheet document to Google Docs. Using a simple Uri request:
Uri uri = Uri.parse("http://docs.google.com/DocAction?action=updoc&hl=en");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
and this page appears as blank on a phone (must use code not compatibl...
I would like to add an HTML resource to my Android project with references to other resources (mainly drawables).
Where should I put it and how do I reference other resources from it?
Is there a particular way to pass the HTML resource to a WebView?
Thanks!
...
How do you instruct users to report a bug in Android? Any advice or tips?
I'd like to get send detailed instructions to my users to get the most of their bug report. I know there are various apps that send bug reports from the device and I was wondering how other Android developers deal with this.
...
Is there a way to make the screen scroll to allow the text field to be scene?
...
Hi
This is a basic question. I was going through an official video by google regarding android. In it they used Viewholder class as
static class Viewholder{
ImageView image;
Textview text;
}
Would it be right to declare this class as static or view holder is used as static inner class.
I think suppose if its top level clas...
Hello I am currently new to android development I been working on the examples in the Dev Guide in the android website. I want to get a stream from a server I have to play in the emulator when I insert the url it doesn't seam to want to play. My question is there a way to get the emulator to play audio or is it all enabled also does Medi...
Suppose my activity ui-thread spawns a separate thread at some point. Is it safe for that new thread to fire off an Intent for launching a new activity?
Thanks
...
I created an application which is currently on Android market. The key used to sign the application was made using jarsigner. How do I sign using the .key file originally generated?
...
I keep getting this error... should I just make "id" a field?
My code:
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
ImageView mainimage = (ImageView) findViewById(R.id.mainanim);
mainimage.setBackgroundResource(R.anim.mainanim);
mainanimation = (AnimationDr...
Hi,
I am studying android's sample Wiktonary in how to create a widget for android.
My questions is why it puts
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="146dip"
android:minHeight="72dip"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/widget_m...