Hi,
Firstly, I am new to android development. My app has been working fine with a number of different activities up until today.
I have been trying to add a new <Button /> element to one of my layout xml files. However, if I give it a new id (e.g., android:id="@+id/button_unique") my app crashes on load, presumably as the resources are...
From this article: http://developer.android.com/guide/publishing/publishing.html#marketintent
Android Market could be invoked by an ACTION_VIEW intent with URI like
http://market.android.com/details?id=<packagename>
How does it work? Is the market.android.com return some info to browser to help it open the Android Market appl...
So basically the title sounds way fancier than the actual question.
I am writing an application in which I would like to implement an achievement system. If I have all of my achievements created as instances of a generic class, how do I write a method to validate those achievements (i.e. determine if the user has met or exceeded goals) ...
ok i have an sql database (we'll call it DATABASE1) that receives inputs of names from the user and they can input as many as they want.. what i need to do now is hard code a database or spreadsheet or matrix or something (we will call it DATASET1) that DATABASE1 can work with.. however the thing is is that DATASET1 is comprised of names...
I am trying to apply a selector to a ListView to make it easy for those without touch screens to navigate my app. The thing is, by applying the selector to the ListView, it only seems to apply the background colors to the entire list, not the items inside of it.
Any ideas? Here's some code:
<ListView
android:id="@android:id/list...
I have a Broadcast receiver setup so that a pop-up message is displayed to the user after each upgrade of my app, or if this is the first time the package is installed. I tested this on my Droid running Android 2.2 both as a fresh install and after upgrading my app, as well in the Emulator running 1.5 and 1.6, and I see everything run fi...
I'm trying to implement a database in my application. I'm following a tutorial about writing my own ContentProvider, but I'm confused about SQLiteOpenHelper::getType. We're supposed to write it and, essentially, write a switch that returns the MIME type corresponding to the type of data we're dealing with.
I don't fully understand it....
I have an extended ImageView that I'm reusing 7 times horizontally (within a LinearLayout) across my screen. Directly above and below this ImageView are other extended ImageViews that are within their own LinearLayouts. I'm spacing these all evenly by using the weight property within the LinearLayout so they space evenly across the scr...
How do you setup scroll bars in an app that has 3 tabs?? Either the phone is broken OR Android is not configured to "show" them. If they are the programmer problem, what does the code look like, and where is it inserted within the android code?
Thanks for all the help in advance,
[email protected]
...
So basically I would like my app to read info from a database, this info would be a string that is valid java code. Once read, I would like my app to execute this string as if it were code. Is there any functionality packaged with the android sdk that supports this?
Essentially I want the phone to populate some data with information que...
does anyone had success in POSTing from android emulator to GAE? I am trying and I am getting Unknown Host Exception.
Do I need to do some settings in emulator? Please help me. I am using HttpClient and HttpPost, and also set uses INTERNET permission.
...
I am having a problem getting the ListView to display properly. It currently looks like this with the following xml code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wr...
When changing the custom locale the label of the phone types change to the appropriate language. Does anybody know how to get the localized label of the phone types?
I pick a contact in my app to get its phone number and if there is more then one number I use an AlertDialog to let the user select the currect one. In this pick list, I w...
Hello, I created a ScrollView and want it to expand to the available space, without having to set a fixed height (i.e. "250px") for it.
As such, I created a RelativeLayout. The basic outline follows:
<RelativeLayout>
<LinearLayout
android:id="@+id/x" >
<TextView
android:text="Title" ... />
</Linear...
I'm trying to experiment with LED colors on my Nexus One and i'm having problems with creating any LED-light (color) with notification. LED-light isn't working. I have tested hardware malfunction and that isn't the problem. Here is the code.
Notification notification = new Notification(R.drawable.icon, tickerText, System.currentTime...
Hi, i have a nexus one with firmware 2.2 = sdk 8
when i dont use:
<uses-sdk android:minSdkVersion="8" />
the app works just fine.
But when I add this (and as my device is 2.2 = sdk 8, so it should be same)
my imagepositions are wrong and the app totaly slow down ?
How do I set the minSDk right?
thx
chris
...
I'm trying to find out if it is possible to modify the notification of another app (the calendar app from Samsung) from my own app. Specifically I'd like to change the alarm for a calendar event from a one-time sound (which is silent, if the phone is set to vibrate) to a repeating vibrate.
Can I even modify the notifications belonging ...
I have a problem re. an Android application's resources:
My application has misc. modes (edit/plan/exec), which I would like to describe using an enumeration type. I would, however, like to populate the enumeration-values with strings that stem from the resource string.xml file, i.e. instead of
enum Mode {
EDIT ("edit"),
PLAN...
Hello all,
I am trying to build a custom check box, I have an issue creating it. let me first show you files so that you can get better picture of what I am talking about.
1)
preference.xml is
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
...
I'm trying to display contact information, and from another question on stackOverflow I've got the following snippet
String[] projection = new String[] {
ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME,
ContactsContract.CommonDataKinds.Email.DISPLAY_NAME
};
Ur...