Android :: Subactivity - Created An Application Which Consists Of Several Activities

Aug 3, 2009

I created an application which consists of several activities. If I start a subactivity named DlgTitleTags from main activity everything goes well.

Another case is when I start a subactivity DlgLibrary and then from DlgLibrary DlgTitleTags the execution fails on line:

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

In the first example this line executes without errors so I'm wondering what could be wrong here.

This is the copy from log:

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

Android :: Subactivity - created an application which consists of several activities


Android :: Send String / Int From SubActivity To MainActivity Without Close SubActivity

May 5, 2010

does anyone know how to get result from subactivity to MainActivity without close the subactivity? i know the usual way is using method called "startActivityForResult (Intent intent, int requestCode)" and inside the subActivity set the result 1st before finish(); method

setResult(requestCode,intent); finish(); then the function called "protected void onActivityResult(int requestCode, int resultCode, Intent data)" which is inside main activity will get the result. BUT... by using that way, it will close my sub activity and the system will go back to main activity...........

View 2 Replies View Related

Android :: Calling Subactivity From Subactivity

May 17, 2010

I have three activities in my android app. First activity is main application screen which gives option to open second screen containing second activity. But when I click on the button on second activity which was supposed to open third activity screen.

I get "Application has stopped unexpectedly" error.

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

View 3 Replies View Related

Android :: Two Processes Are Created On First Running Of My Application

Mar 4, 2010

Some times after installing my application and first running my application is creating two processes as follows.

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

View 4 Replies View Related

Android :: Get Informed Whenever An Application Is Started / Created?

Nov 16, 2009

I'd like to write sthg like a logger for my Android phone where I log whenever an application/activity is started respectively created. So it's not only about my own stuff but about all the stuff that gets started on the phone. Is there sthg like an intent flying around or any kind of stuff that I could catch?

View 6 Replies View Related

Android : Layout - Map Consists Of A Drawable Object Which Represents A Room

Jun 12, 2010

I need to create a map with items on it (the map consists of a drawable object, which represents a room) and I thought about using buttons with background images for the items so that they are clickable.

I guess the AbsoluteLayout fits here the best, but unfortunately it's deprecated. What layout would you recommend me for this kind of application ? Is there another layout which supports X/Y coordinates ?

View 2 Replies View Related

Android :: Delete Files Created By Application On Uninstall?

Aug 3, 2009

I created an application which creates and stores files to sdcard. Is there a way to bind the folder with application in order to delete all files when the user runs uninstall on android device?

View 2 Replies View Related

Android :: Secure Database File Created With First Application?

Aug 10, 2009

In one android application, I created a database file in data/data/com.rams/databases/dbfilename.

If I created a second application with the same package name (com.rams) and I access the database file created with my first application, the second application is able to access the database contents.

How can I secure the database file created with my first application?

View 1 Replies View Related

Android :: Simple Listview - Consists Of Strings - When Click Opens A New Activity

Jun 21, 2010

I have a very simple listview going on. The list just consists of strings, when you click the string it opens a new activity blah blah. Here's the problem, I enabled settextfilter and while it did filter the list, when you click the result, it always performs the action of the string located at zero, and not the one it is supposed to.

View 2 Replies View Related

Android :: Apply Animation To View In Application After Created Activity?

Sep 23, 2010

I am trying to apply an animation to a view in my Android app after my activity is created. To do this, I need to determine the current size of the view, and then set up an animation to scale from the current size to the new size. This part must be done at runtime, since the view scales to different sizes depending on input from the user. My layout is defined in XML. This seems like an easy task, and there are lots of SO questions regarding this though none which solved my problem, obviously. So perhaps I am missing something obvious. I get a handle to my view by: ImageView myView = (ImageView)getWindow().findViewById(R.id.MyViewID);

This works fine, but when calling getWidth(), getHeight(), getMeasuredWidth(), getLayoutParams().width, etc., they all return 0. I have also tried manually calling measure() on the view followed by a call to getMeasuredWidth(), but that has no effect. I have tried calling these methods and inspecting the object in the debugger in my activity's onCreate() and in onPostCreate(). How can I figure out the exact dimensions of this view at runtime?

View 4 Replies View Related

Android :: Multiple Activities In Application

Mar 17, 2010

I seem to be missing something obvious here, why would I want more than one activity per application in Android? Does somebody have some solid examples?

View 3 Replies View Related

Android :: Activities In Application - Which Should Launch First?

Nov 9, 2010

I created an app with one activity, and it works just fine. Having though more about the app, I decided to add another activity which be the welcome screen of the app, with a nice logo and some buttons. This app should direct the user to the activity I mentioned before. The only trouble is - I can't find out where and how can I determine which activity should launch first, the moment the app loads. Do I need to create the entire app from scratch, but this time programing the home activity first?

View 1 Replies View Related

Android :: Kill An Application With All It's Activities?

Jun 23, 2010

I want to offer the user an option to exit the application as I need to delete some sensitive data, which is stored in the SharesPreferences as long as the application needs it.

As soon as the user wants to exit, the password in the SharedPreferences should be wiped and of course all activities of the application should be closed (it makes no sense to run them without the known password - they would crash).

How can I do that?

System.exit(0) and finish() only exit the current activity - useless. I know there is a taskmanager app. How is that one doing it? It's able to kill the whole application ...

View 4 Replies View Related

General :: Open Application By Tapping Widget Created With UCCW?

May 31, 2013

is it possible to open an application by tapping a widget created with UCCW and to have a notification mark like Missed it?

View 1 Replies View Related

General :: How To Delete Files / Folders Created By Application After Uninstalling It

May 26, 2012

Do we have any application or any easy way to automatically delete files/folders created by an application after uninstalling it? I am looking for a solution like Revo Uninstaller for mac and windows.

View 1 Replies View Related

Android :: Closing Old Methods / Activities In Application

Nov 24, 2010

Need help closing/accessing my views in a simple app (included an img of my program layout) but I might have been too confusing. Basically, I have an app that has a main menu where the user can click a button to open a camera. The user then snaps a photo and it is displayed on a page. The user will then click another button that detects faces. If faces are detected, the user is sent to a final page that shows the cropped face, etc. I give the user the ability to return to the main menu or snap a new photo.

Let's say a new photo is snapped and the user does it a few more times. Now I have multiple saved instances of old snapped photos (presented on the layout). How do I kill the previous instance (the layout from before he decided to snap a new photo)? So when I try to close the app it doesn't go back to the previous instance (displayed layout of said snapped photo). I am so confused on this one thing.

View 1 Replies View Related

Android :: List All Activities Exposed By An Application

Nov 17, 2010

I think that it should be possible to get all the activities from 'third-party' application, described in the manifest file. I can't figure out how.

for example: List<Activity> aList = packManager.getActivitiesForPackage("package.name");

View 2 Replies View Related

Android :: Stop An Application If Any Of Activities Were Killed By OS

Sep 10, 2010

I have an application with many forms implemented as separate activities. The form variables are dynamically built based on a database, and there are a ton of variables in the C++ side of the application (accessed via JNI). I don't see how saving out all of this data to persistent storage each time the onPause() or the onSaveInstanceState() of one of these many activities goes into the background is a smart use of processor time. And I don't see how even if I save the local variables for each activity during that time I'd be able to restore a single activity within the context of all the others.

I have set up a service that auto saves the files when I detect that the app has gone into the background. (I set a time stamp when onPause() is called in any activity and then clear the time stamp when onResume() is called on any other activity. If the time elapsed is more than a few seconds, I know I'm not the top activity any longer and the service saves the files).

What I'd like to do is continue on as normal unless the OS kills one of my activities. Since we don't always get notified of this, I thought it would be nice if there were a way to tell the OS that I'd rather you kill the whole app than just one activity.

View 1 Replies View Related

Android :: Close All Activities In Tabbed Application

Feb 20, 2009

Can someone tell me how to close all activities running under a tab?My initial activity does not need a tabbed view. Therefore, to initiate a tab for the next (remaining) activities, I call a class that extends TabActivity, from the first tab.All this class does is to assign and call activities based on the tab click.Currently, to close all activities i am using StartActivityforResult.But in this case, while calling activites from the TabHost, setContent does not accept a result code as a parameter.Help me to solve this one. My application is stranded in a blank screen before closing. i.e. in the TabActivity class.

View 2 Replies View Related

Android :: Activity - SubActivity - Intent And IntentFilters ?

Mar 29, 2010

I still have a problem to develop a convenient app to the user. because i am struggling using the activities, intent and intent filters. www.developer.android.com/reference not fit for me to understand these things. can you suggest me a fine example code or tutorial to understand how these things are getting worked.

View 1 Replies View Related

Android :: Creating Options Menu Available To All Activities In Application

Jun 20, 2010

I want to have an options menu that is available to all Activities in my app (on pressing the MENU button). I've been doing this by creating it in onCreateOptionsMenu(Menu menu) for each Activity but this seems redundant. Is there a way to create it in one place and have it available in all Activities?

View 1 Replies View Related

Android :: Application Background Image With Transparent Activities

Oct 29, 2010

I have run into an requirement of my application that i cant find a way to do this.

I need my application to be fullscreen and no title bar (done), and this application will have a background image. However, all the activities/views of my application must be transparent/translucent so the application background will be visible all the time behind the information i am displaying.

Basically i would like to have this behavior

http://www.geeky-gadgets.com/wp-content/uploads/2010/05/amazon-kindle-android-app.jpg

supousing that the image you see is not the phone wallpaper, but the application background image. What would be the application configuration in the manifest file and what would be the configuration for eacy activity/view?

I also noticed that, i need to setup each activity to be fullscreen without title bar. Is there a way to do this globaly in the application so all activities will behave this way?

View 1 Replies View Related

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

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 :: Pass Data Between Activities In Droid Application?

Jun 3, 2010

How to pass data between activities in an Android application?

View 1 Replies View Related

Android :: Return Back To The Parent Activity From Subactivity

Jun 14, 2010

My application supports twitter and needs to open browser for OAuth. When the user clicks the Share on Twitter button, the main activity will create another subactivity (TwitterActivity) to handle twitter authentication issues. Here is a flow graph showing how activities are invoked currently. Main is short for MainActivity and Twit for Twitter Activity. startActivity() OAuth intent OAuth callback finish()Main ---------------> Twit ------------> Browser --------------> Twit --------> Browser As you may notice, after the TwitterActivity calls finish() to stop, it will now return back to MainActivity, but Browser instead. How can I make it return back to MainActivity?

View 2 Replies View Related

Android :: Sending Messages To Subactivity - Currently Running - From The ParentActivity

Jun 1, 2009

Is there any way to send String messages from the parent Activity (running on B/g) to the subActivity (currently running)?

SubActivity is invoked using intent and startActivity(intent);

I want to open EditBox(sub activity) using this method and then update this editBox according to the process going on in the parent activity () and later want to finish() this Box when process in the parent activity completed.

View 5 Replies View Related

Android : Way To Differentiate Droid Activity From A SubActivity Programatically

Jun 2, 2009

How can I differentiate an android Activity from a SubActivity programatically?
Is there any api for that?

View 1 Replies View Related

Android :: Delete Created File Data In Android Application?

Mar 1, 2010

i want to delete file data that i have created in android application. if my application is terminated abnomally or nomally?

View 1 Replies View Related

Android :: Share Files With Different Activities Running / In Different Processes In Application

Mar 16, 2010

I would like to share a cache file across activities, which are running in different processes but in a same application.So, is there any way to make it thread safe (probably not "thread safe", should we call it "activities safe" or "process safe" ?

View 2 Replies View Related







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