Android :: How To Get Icons Of Activities

Oct 27, 2010

I am trying to display a list of all activities (i.e., icon and label) on the phone in a ListView. Here is my code to get the activities:

CODE:..........

However, when I display the list, many of the activities' icons weren't found. I tried both of the following to get the icons to no avail:

resolve.activityInfo.getIconResource() resolve.activityInfo.icon

What's the proper way to do this?

Android :: How to get icons of activities


Android :: How Do I Get Multiple Icons To Launch Different Activities In One Application?

Jul 17, 2010

I have an application with two activities and I'd like to be able to have two icons appear in the launcher, each launching the respective activity within the app.Specifically, I want one icon to launch my main app, and another icon to launch my settings activity. Is this possible?This creates two launcher icons, but they both run my main app instead of the second icon running my settings app. I've tried just having the launcher category but then I don't get an icon so it looks like I need the main action as well.Is this the right approach or should I be declaring two applications in the manifest instead?

View 2 Replies View Related

How To Use Listview With Icons To Open Different Activities

Sep 8, 2011

I have a listview with icons and am having difficulty opening different activities from the items of the list.

the code is as follows:

Code:

package mCRM.android.hp;
import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
//import android.widget.AdapterView;

[code]....

View 2 Replies View Related

Android :: Switching Activities / Passing Data Between Activities

Jun 30, 2010

how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?

View 2 Replies View Related

HTC Incredible : Change Phone Icons Like Camera / Photos To Stock Droid Icons?

May 13, 2010

Is there a way to change the HTC Icons like camera, photos to the stock Android Icons?

View 5 Replies View Related

General :: Move Icons WiFi / Vibrate To Left And Battery / Signal Icons To Right

Oct 28, 2013

I would do this: [URL] .... (created with paint)

Because I get to edit files, but I am looking for a long time without finding how to put ALL the icons on the left, and keep only the icons on the right as in the picture.

View 1 Replies View Related

Samsung Captivate :: Instant Message - Change Icons With Different Icons

Nov 25, 2010

I notice that the home screen is customizable but not the four applications on the bottom, the call, email, browser and applications. How would I change those icons with different icons? Mainly the email and browser. How do I turn off or at least severly limit the data that goes to and from my phone. I do not have wireless and am just a bit paranoid about going over my data limit. I got the phone from work and this is my first smartphone so I am a bit nervous about anything I do on it.

View 3 Replies View Related

Samsung Epic 4G :: Launcherpro Plus - Customized Dock Icons - Make Dock Icons Bigger

Nov 7, 2010

hey there i am new to this site and new to the android platform. I have figured everything out for the most part. but i purchased the launcherpro plus or whatever for my samsung epic and i customized the dock icons. They are really small i don't know why. but is there anyone out there that knows how to make the dock icons bigger?

View 8 Replies View Related

General :: Auto Hide Home Screen Icons App Like Auto Hide Desktop Icons For PC?

Sep 28, 2013

is there an auto hide home screen icons app like Auto hide desktop icons for PC? I found some but its not like i want. I want that the icons should stay hidden until i tap on the home screen.

View 2 Replies View Related

Android :: When To Use More Activities?

Nov 14, 2010

I have an Activity which is an OpenGL view. I also have an xml layout to use for preferences. Until now, to show the preference menu, I just brought it to front by setContentView(). And the same to get back to the OpenGL view. But is this a case where I should give the preference menu its own Activity? I guess this would make a few things much easier. For example, the back button would just work, opposed to now where I have to code it or it will just exits the application.And if this is a good idea, how do I pass data both ways? I have a class that store all preferences. Can I send it to the Activity and back again? Or is the best way to store the preferences in a sqlite database and then use it for passing data?

View 2 Replies View Related

Android :: How To Communicate Between 2 Activities?

Apr 22, 2009

I have read 'http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html', specifically step 4 ahow can I return a different result to the 'calling activity', in this example, it always return ACTIVITY_CREATE. What if the 'activity being launcher' has a 'okay' and a 'cancel' button. How can the 'calling activity' knows which button user presses in the 'activity being launcher'.

View 3 Replies View Related

Android :: Way To Swap Activities?

Aug 15, 2010

Right now I have 2 activities (A+B) and what I would like is for only 1 of them ever to be on the stack (If A shows B, I want the back button from B to go to the home screen not A). Is their a good way of doing this with activities Or should I change my app to be a bunch of views?

View 5 Replies View Related

Android :: How Can I Get All Name Of Activities In System ?

Apr 15, 2010

In my project ,I need get all the name of the activities ,not only my own application, but also the third party application , and how can I get?

View 3 Replies View Related

Android :: Launching Activities Within Tab

Aug 20, 2009

I have an application with three tabs. Through various interactions with the items in the tabs I end up launching other activities. The client has reviewed this and would like the activities launched "within" the tabs, so the tabs remain visible and if the user clicks the tab it goes back to the original activity defined in the setContent function. Is this possible and how would I go about this from other activities? (ie the child activities, not the one that defines the TabHost and has access to call setContent)?

View 4 Replies View Related

Android :: App With Multiple Activities

Feb 8, 2010

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.

View 1 Replies View Related

Android :: ProgressBar Between To Activities?

Apr 3, 2010

when click the grid item, i want to show a progressbar between the time of next Activity shown. then the second activity has a custom listview. there also i want to show a progressbar. how to do that?

View 1 Replies View Related

Android :: Activities UI Persistence

Jun 10, 2010

I need to have two activities in an Android app that can be switched between each other with UI persistence.I would like the changes made in step 2 to be visible in step 4.I have tried using the singleInstance activity tag on Activity B to no avail. I would also prefer a more elegant solution than simply writing all object properties to a file or SQLite table.It seems that this behaviour must be easily achievable given that Android does it automatically for calls to onBackPressed() where the parent Activity's UI is saved.

View 2 Replies View Related

Android :: TabHost Activities Within Each Tab

Jun 23, 2010

I'm trying to create multiple tabs, each with a different Activity. The only downside is i'm using a custom layout file thus my class extends an Activity rather than a TabActivity. While trying to run, it fails and suggests calling TabHost.Setup(ActivityGroupManager agm)

View 3 Replies View Related

Android :: Activities Vs Views

Jul 8, 2010

I am working on an Android app that has multiple screens the user will need to navigate between and I am curious what the best practices are when switching between those screens. I am torn between creating a new Activity for each screen and simply changing the view (setContentView(R.layout.whatever)). The screens all share at least some variable values so I'm leaning toward changing views and using class level variables, but I'm worried a single activity could become very large and confusing with logic for multiple screens in a single file. I'd like to keep the code clean and separated, but I also don't want to be passing several variables around between views if that isn't needed.Being new to Android development, I'm hoping some more experienced members of the community could share their thoughts and let me know how best to handle it

View 2 Replies View Related

Android :: How To Manage Activities?

Jul 24, 2010

i identified problem in changing one activity using tab, in on tab activity i am adding data to sqlite in other tab activity i am displaying them using listview(array adapter)but when i come back to add data and after adding new item to sqlite the newly added records are not updated in listview.

View 3 Replies View Related

Android :: Data Between Activities

Jun 30, 2009

Is it possible to transfer data between activities without using "extars"? I need to access MyOwnObject in Atctivity 1 from Activity2 Possible with using static fields?

View 6 Replies View Related

Android :: How To Set Same XML Attributes To All Activities ?

Dec 7, 2009

In my application, I don't want the activity to restart when user changes his mobile's orientation or when he opens his physical keyboard.So, I have to assign the following XML attribute to all my activities in the manifest file.Is it possible to assign the same XML attribute value to all activities ? Or should I copy the attribute in all the <activity> tags of the manifest?

View 3 Replies View Related

Android :: Some Activities Never Display UIs?

Feb 2, 2009

I hear that "some Activities never display UIs" according to http://code.google.com/android/devel/building-blocks.html. My question: is this true? I have yet to find a way to make an Activity without a UI. Documentation suggests an Activity can be non-visual.For example, Activity.getWindow() returns the "current window, or null if the activity is not visual."When would an Activity have a null Window?

View 2 Replies View Related

Android :: Activities With Different Orientations

Apr 7, 2009

Let's assume i got two activities "Main" and "Sub" Activity "Main" is forced into portrait orientation using setRequestedOrientation At some later point "Main" runs "Sub" using startActivityForResult.Somehow "Sub" also starts in portrait orientation while i would expect the call to setRequestedOrientation only to affect the calling activity.How do i get "Sub" to respect the system orientation while keeping "Main" locked in Portrait?

View 8 Replies View Related

Android :: How To Close All Activities In App?

May 2, 2010

I have two activities,A ,B A will start activity B When I press "back"button in B, I want to close A also But how can I close A here?

View 8 Replies View Related

Android :: Animation Between Two Activities

Dec 2, 2009

I design a rotate animation when activity 1 ends, and then start activity 2.but this code will not saw the animation totally, that's means, the animation will pop up a second then soon activity2 start! but I need the animation play over, then the activity 2 start.so how I do for that requestion? I almost use the thread&handler to do, but it wasn't work.

View 3 Replies View Related

Android :: Sub Activities In Tabs?

Feb 9, 2009

I have a tabbed applicationen setup. I like to keep the tabs visible at all times and work with its subactivites as 'more or less' standalone application threads.Within one or more of these tab subactivities, I'd like to start its own sub-activity, which should not hide the root tabs.Whatever I've found will call ctx.startActivity() which works, but will hide the tabs by using the full screen.Is there a way to limit the sub actitivies to a parent activities bounds, and keep (in my case) the rot Tabs visible? Where shall I look?

View 2 Replies View Related

Android :: Get All Apps And Their Activities?

Jul 31, 2009

Is there a way to get a list of all apps and their activities and intent filters? Basically, I'd like to know what another app is "listening to" so I can provide an Intent that matches. (I suppose that this will require an ADP, which is fine).

I tried grabbing the AndroidManifest.xml from an .apk file in /data/ app, but that didn't seem to work - I ran jar -xf on the apk, but the xml wasn't plain ASCII.

View 7 Replies View Related

Android :: Lifecycle Of Activities ?

Apr 5, 2010

In my application I have several activities, the main screen has 4 buttons that each start a different activity. So one of them is a search activity, once it searches it shows you a result activity. This result activity can be reached from other activities, so in general something like this:

Main activity -> Search activity -> Result activity

Main acitivty -> someother activity -> Result activity

Now, if I have reached this result activity and press back once or twice, and after that press the Home key it will show the Home screen. But if I want to get back to my application by holding the Home button and clicking on my app it will always go back to the Result activity, no matter which activity was the last one I was using. And if I press again back it will take me back to the Home screen.

If I try it again it will take me again to the Result activity. The only way to avoid this is to start the application by clicking on the app's icon. And this takes me to the last activity I was using and it remembers the state so if I press back again it doesn't take me to the Home screen, instead to the activity before it. To illustrate this:

Main activity -> Search activity -> result activity --back--> Search activity --Home Button--> Home Screen --Hold Home and select the app --> Result activity --back--> Home Screen

--Click application icon--> Search activity --back--> Main activity

Another thing that happens is that if I press the Home button while on the Result activity, and start the app by clicking the icon, it will take me to the activity prior the the Result one.

View 2 Replies View Related

Android :: How To Get Parameters Between Activities

Jun 17, 2010

I am working on an app that has multiple tabs. In the first tab the user will enter values. In the other tabs it will display the results of calculations based off of those values.

Like in tab 1, the user will enter "3" and "2". In tab 2, the program will add them and display "5".

In tab 2 how do I access the ints "3" and "2"?

View 1 Replies View Related







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