I read in the Android documentation that by setting my Activity's launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would reuse a single Activity instance and give me the Intent in the onNewIntent callback. I did both of these things, and onNewIntent never fi...
Is it possible to do the equivalent of
setTextAppearance(context, android.R.style.TextAppearance_Medium);
in the manifest file for an Android app?
...
I want to be able to download a file with a particular extension from the 'net, and have it passed to my application to deal with it, but I haven't been able to figure out the intent filter. The filetype is not included in the mimetypes, and I tried using
<data android:path="*.ext" />
but I couldn't get that to work.
...
Hi
Im working on an application that got an acivity that is set to have intentfilter
<intent-filter>
<action android:name="android.intent.action.RINGTONE_PICKER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
This works fine when im testing with a HTC Magic phone, when I go to s...
Dear all,
I test the intent-filter android:priority="0 and intent-filter android:priority="20" by android.intent.category.HOME. I list the information below,
<activity android:name=".TestHomeActivity"
android:label="@string/app_name">
<intent-filter android:priority="0">
<action android:name="android.intent.actio...
I'd like to have some code be notified of any incoming and outgoing voice calls. I need to grab all the following:
If it was an incoming or outgoing call
Number dialed, or incoming caller-id phone number
Duration of call, or if it was a missed call
It would also be really slick if I could get more contact info, specifically the cont...
I m using Android 1.5 my data directory does'nt have the read/write permissions
System.out.println("DAta can write??--->"+Environment.getDataDirectory().canWrite());
System.out.println("DAta can read??--->"+Environment.getDataDirectory().canRead());
So please suggest me how to provide permission for the data directory.
What m trying...
I'm looking at AndroidManifest files and I see entries for android:backupAgent and according to the Documentation android:backupAgent is
The name of the class implementing BackupAgent to manage backup and restore of the application's settings to external storage.
But I can't find a BackupAgent interface or any other documentation. ...
Hi,
I have developed some widget and what I want to attain is to put it on desktop automatically after installation without doing it manually.
Thanks in advance,
kogut
...
Hi
Since I'm a newbie I don't know if I'll be explaning this correctly. But here goes it.
I'm trying from main Activity (MainFile.java) to open a Map as a new intent through a menu. Something like this...
switch(item.getItemId()) {
case VIEW_AROUND:
**Intent cityMap = new Intent(MainFile.this, Map.class);
...
This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)?
This binary format is not discussed in the in the documentation here: http://developer.android.com/guide/topics/manifest/manifest-intro.html
Note: I want to access this i...
Hello,
I have an application with several Activities.
My A Activity has the Manifest Intent filter parameters: action.MAIN
and category.LAUNCHER. after its being loaded I call Activity B and
finish() A since I don't use it anymore.
After I run my application, go from Activity A to B and press the Home
button, when I relaunch it from th...
hiii
I am trying to launch activities under each tab.
I hav tried with following code
public class Tab_Proj1 extends TabActivity {
TabHost mTabHost ;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Context context = getApplicationContext();
//mTabHost = (T...
Hi,
I specified a meta-data in my manifest.xml like this:
<meta-data android:value="5555555555" android:name="foo"></meta-data>
When accessing the meta data like this:
ActivityInfo ai = act.getPackageManager().getActivityInfo(componentName, PackageManager.GET_META_DATA);
Object value = (Object)ai.metaData.get(key);
this value gets ...
I have been able to create an *.apk file from my code, place the file
in IIS, and download it onto a number of Android phones. Upon the
install, the application works exactly as expected.
However, after a phone is rebooted, the application name is changed to
the fully-qualifed java class name of the activity in the menu (so
"MyActivity...
I am trying to access http link using HttpURLConnection to download a file, but getting this warning in LogCat
WARN/System.err(223): java.net.SocketException: Permission denied (maybe missing INTERNET permission)
I have added android.Manifest.permission to my application but its still giving the same exception
Any suggestions?
...
if google voice is installed on your phone, when you dial a phone number a context menu pops up asking if you want to dial with or without google voice. I would like to accomplish the same task for dialing a number or sending a text message. Does the API allow you to do that?
It seems there is a process_outgoing_calls, in the permission...
I have a very simple game that consists of only one activity, and I want to add a title screen.
If the title screen is another activity, what changes do I need to make to my manifest file to make the title screen open first?
The gameplay activity is called Leeder, and the title screen activity is called LeederTitleScreen
here is my cu...
I have this Broadcast receiver registered
public class NotifyAlarmBroadcast extends BroadcastReceiver{
public Context context;
public static final String NOTI = "android.intent.action.MAIN";
// actually i want NOTI = "com.sumit.timekeeper.NotifyAlarm"
// this too is not working
// help me here please
@Override
public void onRec...
My android app has a two word app name, and the 2nd word doesn't fit on the first line below the app icon. The OS doesn't automatically carry the 2nd word over to the 2nd line so it just gets cut off. I was able to use a "\n" as part of the app name string instead of a space, and that forced the 2nd word to display on the 2nd line. Ho...