Android : Is It Possible To Have Two Launcher Activity In A Single Apk?

Feb 3, 2009

I need to have 2 launcher activities (i.e. 2 icons on the home screen). Each launch icon would launch a separate activity. Essentially, I need a single apk which contains a suite of 2 apps which I don't want to distribute separately. Is this possible?

Android : Is it possible to have two launcher Activity in a single apk?


Android : Application With Multiple Activities - Single Launcher

Oct 6, 2010

I have an application which has multiple activities associated with it. When the user clicks on the launcher icon I want the last used activity of the application to be shown.

What's the best way to accomplish this?

View 1 Replies View Related

Android :: Launcher - Does Not Show Displayed Activity Log For Launcher

Aug 21, 2009

when I click on launcher it does not show displayed activity log for launcher, it shows it way before during boot up stage. why is this happening?

View 2 Replies View Related

Android :: Only One Map Added To A Single Activity / Solve This?

Oct 4, 2010

In my application if i press a button map is loaded in my layout.again i press the button i got error like this.

only one map is added to a single map activity . how to solve this.

View 1 Replies View Related

Android : Multiple Listviews In Single Activity?

Apr 5, 2010

I want to have multiple listviews in single activity. But only one listview should be displayed at one time. The listviews will be loaded dynamically. So, how can I fill all the four listviews at the same time and display only one?

View 4 Replies View Related

Android : How To Add Multiple Listviews To Single Activity

Oct 29, 2010

I have been trying to get a specific layout for more than two days now and really struck with it, what am trying to achieve is: To have a layout like the following

LISTVIEW A

VIEW

LISTVIEW B

VIEW

LISTVIEW C

(VIEWS are basically for headers) Can any one help to sort out this task?

View 1 Replies View Related

Android : Multiple Handlers In A Single Activity

May 13, 2010

I've more than one Handlers in an Activity. I create all the handlers in the onCreate() of the main activity. My understanding is the handleMessage() method of each handler will never be called at the same time because all messages are put in the same queue (the Activity thread MessageQueue). Therefore, they will be executed in the order in which are put into the Queue. They will also be executed in the main activity thread. Is this correct ? Code...

View 1 Replies View Related

Android : Restarting An Activity In A Single Tab In A TabActivity?

Mar 12, 2010

I have a TabActivity. Each tab points to a sub activity. Works great.

Is there any clever way to refresh one of the activity tabs? I just want to 'restart' the activity in tab #3 for example. Not sure of a good way to do this other than building in refresh support to the activity itself, or clearing ALL the tabs and recreating all of them.

View 1 Replies View Related

Android :: To Call Only A Single Activity On Different Button Clicks

Oct 29, 2010

i have three imagebuttons.and on clicking each buttons a new image with new screen opens.means three imagebuttons calls three different activities. it means if you have ten buttons we have to call 10 activities. i want to call the common activity on each button clicked using if else construct.

View 2 Replies View Related

Android :: Forward Search Queries To One Single Activity

Dec 15, 2009

have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2..................

View 5 Replies View Related

Android :: Display Multiple Activities In A Single Activity

Jun 12, 2010

I want to know if we can display multiple activities in a single activity using ActivityGroup.Can anyone please help me out with this?

View 1 Replies View Related

Android :: AllowTaskReparenting - True Will There Be A Single Instance Of The Activity

Oct 4, 2009

Before asking my doubt, let me clarify my understanding of allowTaskReparenting...

Suppose there exists a Task (say Task 1) and this task has an activity (say Activity 1) which wants to call my Activity (say Activity 2). Let my activity (activity 2) set the attribute allowTaskReparenting to true and let my activity have a specific taskAffinity(affinity1). When Activity1 calls my activity (activity2), my activity becomes part of the task1. But suppose another task (task2) is already present/created with the same taskAffinity as mine (affinity1) and an activity in that task (say activity3) tries to start my activity, my activity gets re- parented to task2.

Not sure if i was clear enough. If i were to rephrase my words...

If my activity has allowTaskReparenting set to true and an instance of my activity is already present in task1. If task2 with the same task affinity as my activity tries to start my activity, the EXISTING activity gets re-parented from task1 to task2.

My quesions:

(1) Is my understanding correct ?

(2) If I am correct then a single instance of my activity gets shifted from task1 to task2. So 2 activity objects of my activity are NOT created.

View 5 Replies View Related

Android :: Button And Expandable List On Single Activity

Jun 16, 2009

I want to customize my ExpandableList my issue is i need a button and expandable list on single activity can i achieve that as i have seen all the examples they all extends ExpandableListActivity not the Activity in which i can put all the widgets in one activity

View 1 Replies View Related

Android : Single Instance Theme Of An Activity In Phone

Sep 7, 2010

I have two activities. A and B. A starts B. Both are running in the screen and both are visible. Say now B is visible.

On a special key press, I want to bring the A to the front and make it active. The problem I am facing is when the special key is pressed, another instance of A is launched and the new instance is brought to the front.

But I want the original A to come to the front. I want to make this change in the framework layer rather than application specific by using the singleInstance theme in the launchMode in AndroidManifest file.

Please help me in this regard as this is really urgent for me. Any inputs will be really valuable for me.

View 1 Replies View Related

Android :: Add To Menu Using AddIntent Options Providing For A Single Activity

Oct 7, 2010

I want to use addIntentOptions to drive my menus when ever possible. This seems the cleanest way to provide them. Rather than explicitly detailing activities, simply ask for a menu listing all the activities which are available for my data item.So I'm trying to put together a context menu for a List View. It works great. Only problem is that I have an activity that has two intents that consume my data type, and only the first shows up.The activity in question in Android Manifest.xml
<activity android:name=".ui.MyActivity" android:label="The title">
<intent-filter android:label="First context label">
<action android:name="com.sample.action.FIRST_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
<data android:scheme="myscheme" />
</intent-filter>
<intent-filter android:label="Second context label">
<action android:name="com.sample.action.SECOND_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
<data android:scheme="myscheme" />
</intent-filter>
</activity>

View 1 Replies View Related

Android :: How To Use Multiple Views Inside A Single Activity With A Canvas?

Nov 7, 2010

Basically what I am trying to accomplish is I want a canvas I can pass bitmaps to, to be displayed on the screen with the rest of my view objects (buttons, textviews, etc).

View 1 Replies View Related

Android :: Create A Single Class Which Can Be Parent For Every Type Of Activity?

Oct 7, 2010

I wish to have a single class which all of my Activity classes extend. I have ListActivities, Activities, MapActivities, TabActivities, etc in my App.

I have many of these different activities in my app, ~12 activities. I want each of them to have the methods which are in the parent class.

Right now, i have created 4 parent activity classes which are extended from a certain activity depending on their type(ListActivity, Activity, MapActivity, TabActivity)

I am creating a lot of redundant code - each of the 4 parent activities has almost identical code, in exception for what class activity it extends.

Here is an example that may clarify what my problem is:

I have an Activity: MenuScreen which extends BaseListActivity BaseListActivity extends ListActivity BaseListActivity contains methods and fields which i want all my activities to have access to I have another Activity: HomeScreen which extends BaseActivity BaseActivity extends Activity BaseActivity contains the same methods and fields which are in my other Base[<type>]Activity classes(such as BaseListActivity)

These methods/fields are copy-pasted to all my Base[<type>]Activity, and seems awfully redundant to me.

Can i create a master activity class which all types of Activity classes can use as its parent? if not, am i stuck with copy and pasting this code and feeling gross/dirty about it?

View 2 Replies View Related

Android : Multiple Listviews In Single Activity But Display At One Time

Apr 5, 2010

I want to have multiple listviews in single activity. But only one listview should be displayed at one time. The listviews will be loaded dynamically. So, how can I fill all the four listviews at the same time and display only one.

If anyone knows the solution then please share it over here. I hope to get a quick response.

View 1 Replies View Related

Android :: Android - Forward Search Queries To One Single Activity

Dec 15, 2009

I have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1)

@Override
protected void onNewIntent(Intent intent) {
Log.i(TAG, "onNewIntent()");.....................

View 1 Replies View Related

Android :: Launcher Label Vs Activity Title

Aug 15, 2010

I want to give my application launcher icon (the one that is displayed on the startscreen!) a different, shorter caption. It seems the launcher takes its label from the mainfest section about the main activity's label, as here:

<activity android:name="MainActivity" android:label="@string/app_short_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

I already changed the original reference to my app's name @string/app_name to a different, shorter string resource here. BUT - big BUT: this also of course changes this activity's default title! And I did not want that to happen, there's enough space for a long application name! Setting the long title again in onCreate using the setTitle(int) method does no good either, because the short name will be visible to the user for a short time, but long enough to notice!

And - please don't answer my question by refering to a custom titlebar... I do not want to go that long way, just because of a stupid string title! It's a pain to draw a custom title bar for so little effect! Is there no easy way to just give the launcher a different string to display?

View 2 Replies View Related

Android :: Why Activity Icon Is Not Removed From Launcher?

Nov 11, 2009

I'm trying to remove activity icon from launcher panel. I'm using firmware 1.5. But nothing seems to work. I'm not receiving any error but activity icon is not removed.

View 7 Replies View Related

Android :: Add Widget Configuration Activity To Launcher?

Oct 17, 2010

I have a widget with a configuration activity.

Currently the configuration launches when you click on the widget.

I want to add the configuration as an app icon to the launcher.

The problem is that when the configuration launches on click, I get a specific widget id , so each widget instance can have a different configuration.

What will happen if I start the activity from the launcher?

I wont be able to show multiple configurations on the same activity.

View 1 Replies View Related

Android :: How To Debug Launcher Activity In Eclipse

Apr 16, 2009

I am trying to following this documentation 'http://source.android.com/using-eclipse' to debug android Launcher Activity in eclipse.

It said' You may need to open the Debug perspective (next to the "Java" perspective icon in the upper-right, click the small "Open Perspective" icon and select "Debug"). Once you do, you should see a list of threads; if you select one and break it (by clicking the "pause" icon), it should show the stack trace, source file, and line where execution is at. Breakpoints and whatnot should all work.

My question is which threads I need to select in order to debug Launcher Activity? I don't see a thread name Launcher.

View 2 Replies View Related

Android :: How To Make Launcher Open Main Activity?

May 26, 2010

I have activities A and B. The A is the one with LAUNCHER intent-filter (i.e. the activity that is started when we click the app icon on home screen). A launches B using start Activity(new Intent(A.this, B.class)). When the user has the B activity open, and then put my application into the background, and later my application's process is killed, when the user starts my application again, B is opened instead of A. This caused a force close in my app, because A is the activity that initializes the resources my app needs, and when B tried to access the uninitialized resources, B crashes.

View 1 Replies View Related

Android :: Stop Launcher Activity From Starting Application

Sep 15, 2010

I have a enable and disable button. When this button is enable, user can launch my application normally. But when the button is in disable state, I don't want to start the application, that is the launcher activity should not start, but the icon for application will be there.When we click on the icon for application to launch it should not start.

View 3 Replies View Related

Android : How To Allow User To Remove An Activity Form Launcher?

Nov 22, 2009

I am creating an alternative keyboard. In order to help users understand how to set up the IME after it is installed I have added a simple Main Activity that appears in the Application Launcher with set up and usage instructions. I also have a preferences Activity and I want the user to have an option to hide or show the setup instructions Activity if they don't want to see it any more. My question is how best I can do this? I am assuming if it is possible it would require overriding the IntentFilter for the setup instruction Activity. I have experimented with this and read through the Intents and IntentFilter documentation but I can't see how to do this.

View 2 Replies View Related

Android : By Clicking On My App's Launcher Icon, Bring My App To Foreground And Not Launch New Activity

Feb 28, 2010

My app has 2 activities - A and B. From homescreen I launch A, from A I launch B. The activity stack looks like this: A-B. Now I press HOME button, and from homescreen click again on my app icon, which launches A and adds it on top of the activity stack, which now looks like this: A-B-A. But I just want to bring my application to foreground, is that possible in Android?

View 2 Replies View Related

Android :: Android - SMS Broadcast Receiver / No Launcher Activity Found

Nov 7, 2010

I have been trying to get this program to work but so far having no luck. I cannot find where I am doing wrong. I'm not sure if there's something wrong with the code, or debugging.

Here is my program:
package Technicaljar.SMSBroadcastReceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.util.Log;

public class SMSBroadcastReceiver extends BroadcastReceiver {
private static final String SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED";
private static final String TAG = "SMSBroadcastReceiver";
@Override
public void onReceive(Context context, Intent intent) {
Log.i(TAG, "Intent received: " + intent.getAction());
if (intent.getAction() == SMS_RECEIVED) {
Bundle bundle = intent.getExtras();
if (bundle != null) {
Object[] pdus = (Object[])bundle.get("pdus");
final SmsMessage[] messages = new SmsMessage[pdus.length];
for (int i = 0; i < pdus.length; i++) {
messages[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
} if (messages.length > -1) {
Log.i(TAG, "Message recieved: " + messages[0].getMessageBody());
} } } } }

And the manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="Technicaljar.SMSBroadcastReceiver"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" >
<receiver android:name=".SMSBroadcastReceiver">
<intent-filter>
<action android:name="android.provider.telephony.SMS_RECEIVED"></action>
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET">
</uses-permission>
<uses-permission android:name="android.permission.RECEIVE_SMS">
</uses-permission>
</manifest>

I am sending SMS through Telnet, and I cannot see any Intent received messages in the logcat. Here is my logcat from the time of installation.

D/AndroidRuntime( 478):
D/AndroidRuntime( 478): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 478): CheckJNI is ON
D/AndroidRuntime( 478): --- registering native functions ---
D/AndroidRuntime( 478): Shutting down VM
D/dalvikvm( 478): Debugger has detached; object registry had 1 entries
I/AndroidRuntime( 478): NOTE: attach of thread 'Binder Thread #3' failed
D/Mms:app ( 220): getSmsNewMessageNotificationInfo: count=14, first addr=12345, thread_id=4
D/dalvikvm( 151): GC_EXPLICIT freed 391 objects / 22552 bytes in 65ms
D/dalvikvm( 220): GC_EXPLICIT freed 926 objects / 44840 bytes in 73ms

So the SMS seems to be received by the emulator, but looks like the no intents are firing.
What am I doing wrong here? After installing, do I have to somehow 'start' this receiver?
Because when I install, I get

[2010-11-07 21:24:41 - SMSBroadcastReceiver] No Launcher activity found!
[2010-11-07 21:24:41 - SMSBroadcastReceiver] The launch will only sync the application package on the device!

View 1 Replies View Related

Android :: Change Main Launcher Activity Doesn't "take"

Apr 6, 2009

After a long time with one Activity being my app's entry point, I just changed the manifest to point to a different activity to be the entry point. But the G1 is doggedly trying to load the old activity - even after uninstall, install, reboot, etc. and acore throws a security exception. Code...

View 8 Replies View Related

Android :: Launcher Pro Forgets It The Default Launcher

Jul 20, 2010

I've been using LP for about a week (it's great BTW!) and this just started to happen so it could have something to do with the latest update. I've set LP at the default launcher and everything works great. However, if I ever long press the "home" button, go to an application, then press "home" again I get the popup asking me which launcher I want to use. I check the "set as default" box then select LP and everything is good again. It all works until I long press home the next time, then the remembered default is gone and I get the prompt again. I've tried rebooting, clearing defaults, etc.

View 32 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved