Android :: Dialog Management By Activities

Nov 11, 2009

I'm looking for a little more information about dialogs managed by activities than is provided here:

http://developer.android.com/guide/topics/ui/dialogs.html

And havn't found any good web resources. In particular, I'm having a problem where a dialog must be updated in onPrepareDialog() with Activity member variables that change after onCreateDialog() is initially called. During an orientation change, version 1.5 will only call onCreateDialog() and not onPrepareDialog() for dialogs previously used (and not dismissed).

An example problem scenario's onPrepareDialog() steps are listed here:

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

The result of not calling onPrepareDialog() during orientation change, if the dialog is currently being displayed, is an empty spinner.

In 1.6, onPrepareDialog() is also called and so this problem is not seen.

As a workaround for 1.5 I simply remove the dialog in onResume(), but obviously if the dialog is showing on orientation change the user experience is not ideal.

I don't expect this is a 1.5 bug so much as a lack of my understanding regarding what the "right thing to do" is in such a situation, where information is not known at dialog creation time.

Android :: Dialog management by Activities


Android :: 2 Activities & A Dialog

Aug 12, 2010

Consider the following use case. Activity 1 starts Activity 2. Activity 2 is currently in foreground. Now, Activity 1 wants to display a Dialog. Is it possible for Activity 1 to display a Dialog? What will be the error display, if any?

View 1 Replies View Related

Android :: Alert Dialog To Display Across Activities?

Feb 26, 2010

Does anyone know if it's possible to get a Dialog box to display between activities? I've looked and haven't been able to find a solution.

View 5 Replies View Related

Android :: Project Management / Business - Money Management Applications?

Oct 30, 2009

I currently have a personal (HTC Touch Pro) and business phone (iPhone). With Sprint now offering unlimited any-mobile (freeing up 1300+ minutes a month on my family plan) and Google Voice allowing me to get a separate business number, I'm thinking about dropping my iPhone, and replacing the HTC with either a BlackBerry Tour or a Hero. I work in project management; I know that the BB does have applications that would be useful to me (as does the iPhone), but I can't find comparable apps for Android. As a personal phone though, I would rather have the Hero. Given that I've only been able to spend a limited amount of time browsing the Android Market in a Sprint store, I was hoping someone here might know of some good replacements for my "must have" apps.

1) PIM / Task management. I have a lot of tasks, meetings, and deadlines to manage. I need something similar to the functionality provided by Outlook. I currently use Pocket Informant on the iPhone, which allows me to view multiple calandars, see my schedule from the month-level view, and integrate my to-do lists. I can also assign calander events and to-do tasks to projects, give them priority, provide extra notes, add multiple reminders, etc.. I could probably live with the Android's calander, but I definately need a good to-do app.

2) Time tracking. I have an app on the iPhone (TimeLogger) that lets me track how much time I spend on projects for clients. The one I currently use allows me to start a timer and then come back later to stop it, which is helpful but not a must.

3) Personal finance manager. I track all of my purchases, have several accounts / cards, and need to be able to track/filter business vs personal purchases.

View 5 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

Android :: Prevent Dialog Closed / Remain Dialog When Button Is Clicked

Apr 12, 2010

I have a dialog with edittext for input. when i click yes button on dialog, it will validate the input and then close dialog. However, if the input is wrong, i want to remain in the same dialog. every time no matter what input it is, the dialog always automatically close when i click button. How can i disable this. By the way, i use PositiveButton and NegativeButton for the button on dialog

View 2 Replies View Related

Android :: How To Repeat Login Dialog And Progress Dialog?

Jan 25, 2010

I am having a problem about repeating Login dialog (an AlertDialog) and progress dialog, coordinating with http thread. I suppose repetitive Login dialog (if fail, continue) handling should be common and straightforward. I guess my approach must be wrong somewhere. I already spent 2 days on this and am desperate. So please help. User starts the app, the main activity starts.Show a login dialog (generated by the main thread, i.e. from on Create. The main thread then starts a wait_thread, which will wait for http to return data and check the data and decide what to do.After user input username/password and press login, a progress dialog starts.The progress dialog starts an http_thread to talk to the server and get replies. Once done, it will notify the waiting thread.If the user type in the right username password first time, the code works fine.But it always fail for 2nd time Login, i.e. When first login fail(wrong username/ password),the wait_thread will generate 2nd Login dialog to let user repeat the login process. But after user hit the login on this 2nd Login dialog, the system always crashes.

View 3 Replies View Related

Android :: Custom Dialog By Extends Dialog Or AlertDialog

Dec 29, 2009

I want to make a custom Dialog,because i donot like it"s style,i want get a rounded rectangle rather than rectangle . i know to implement it by theme in Manifest.xml . for example :the code
at activity write:

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

My question is how to implement this Similar result by extends dialog or alertDialog.

View 1 Replies View Related

Android :: ListView Opening Dialog (or Alert Dialog)

Aug 13, 2010

I'm trying to get my list view to open up an alert dialog to display information when a person clicks on a selection. I have been trying several different things on the Google Developers website that have to do with this but have yet to come up with a result. Here is my code. package table.periodic;

import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.AdapterView.OnItemClickListener;...........

View 1 Replies View Related

Android :: Creating An Alert Dialog In Dialog

Apr 14, 2010

how to create an Alert dialog in a dialog? is it possible to create? My requirement is to show mulitple dialogs simultaneously. I tried creating with the following code snippet onClick of a Button in the first Dialog and got an "BadToken" exception from WindowManager: "Unable to add window -- token null is not for an application"

AlertDialog.Builder builder = new AlertDialog.Builder(getContext()); builder.setTitle("Test Title"); builder.setOnCancelListener(new Dialog.OnCancelListener() { public void onCancel(DialogInterface dialog) { dismiss(); } });

View 4 Replies View Related

Android :: Showing Dialog After Another Dialog Hangs

Sep 2, 2010

I have a really weird problem, which I am unable to debug so far. thing is. my app needs to download something to work. So in the beginning of the onCreate() method, I check if that something is already downloaded. If not, I pop a dialog up asking the user to download it.My dialog is shown and I am clicking, so aManager.install() is called. I am passing the context because that aManager.install() pops up a ProgressDialog to show downloading progress and spawns a new thread in which everything is downloaded. So obviously before creating my dialog I make a Handler to receive the response from that aManager.install(). And the response MAY vary, because for example the internet connection isn't available (Exception raised and catched and listener called with different code).Now, when that happens (Exception) I would like to call another dialog saying "something went wrong, would you like to retry?" so another call to showDialog(DIALOG_REINSTALL) (this time with another code).thing is the showDialog() gets called (I can verify this by logging) but the dialogs doesn't show up. Instead my application JUST HANGS Does someone have a clue why it's doing this? No exception raised, absolutely nothing from logcat, I can't tell WHERE it's hanging...just see that the method is called and the dialog should be displayed.

View 2 Replies View Related

Android :: Replace Facebook Dialog With Custom Dialog In Android

Sep 23, 2010

I am trying to run example of facebook android sdk , in that i have run stream example to fetch the
data from facebook. Now hen ever i click on "fconnect" button to log in into facebook i am getting following dialog box. so is it possible to replace this dialog box with following to make it simple ?

View 1 Replies View Related

Android :: Looking For Wifi Management App

Sep 3, 2009

I'm new to Android, having just received my shiny new HTC Hero. So far, I love the phone and Android. But, I have a quick question; I don't use DHCP on my wireless setup at home, which is fine, as I can obviously set a static IP for the wireless, but, I would also like to connect to wi-fi in the office, where I'd need the phone to pick up IP details from DHCP. Is there an app that lets you configure wi-fi settings so that it will use the static IP address when connected to my home network and DHCP when connected at work? I know I can just turn off the static IP when in the office, but that's a bit of a pain. I can't just turn on DHCP at home either as I have a slightly unusual setup, where the wireless access point is behind a broadband router, and it doesn't allow me to specify a default gateway within it's DHCP options, so, whilst a wireless device can connect to the wireless network with DHCP, it has no way of routing to the internet without having a static gateway specified.

View 4 Replies View Related

Android :: Media Management App

Apr 14, 2010

I recently switched from an Iphone to a nexus one. I am getting used to android and loving a lot of the features. My first complaint with android was no real sync software but I found doubletwist and while its not perfect it does a pretty good job. My second gripe is that media is split between the music player and the gallery. I miss how the iphone had photos for all of your photos and video you took on the phone and then the ipod app for all of your music and movies. Is there an app out there to organize all of my media and showcase it in a better manner? If I had that then I would be set with my phone.

View 2 Replies View Related

Android :: Need Application Management App

Aug 27, 2010

Looking for an app that manages applications a little better than the stock option..

More specifically.. I want to see for sure what apps are running on the phone, what apps are running on SD, etc.

Stock management shows whats on SD, but not whats on phone, unless I'm missing something.

View 1 Replies View Related

Android : Need App Of Money Management

Dec 9, 2009

Moneybag is a useful appliction, it can manage all of your money transactions. As you in supermarket, you can note the payment; Of course, it can also register the income of money, when you withdrawing money from bank or other earning, you can note it as income item. Moneybag is not only to record income and expenditure, while it can easily query a specific date capital flows. Do you want to avoid the question of �where is my money�? please use moneybag and track the money transaction any time, to develop good financial habits and create the beautiful life. If you have any question, please tell me. I�d like to listen your opinion and perfect the Moneybag.

View 2 Replies View Related

Android :: Motorla Milestone App Management

Apr 30, 2010

So im new to this phone, and im a little confused about app management. I see there is a "last used" list (holding the home button), but doesn't say whats running and whats not! some apps, like the market seem to remember the last view, so they start there and feels like there where running all along, but where they? let me give you a Reallife(TM) example. i open youtube, and choose a video. while is loading (not fast connections around here), i switch to the mails, and when i come back, the video did not only not load, but it went to the previous screen.but apps like meebo, apear in a special "notification" are of ongoing things ..should i assume that things not going in that special notification area are not running? is not that i feel the phone slower, is just that im a control freak. i would like to know how it work.

View 2 Replies View Related

Android :: Memory Management Outside Heap

Jan 15, 2010

I am working on an application for android and we since we have lots of graphics, we use a lot of memory.

I monitor the memory heap size and its about 3-4 Mb , and peeks of 5Mb when I do something that requires more memory (and then goes back to 3). This is not a big deal, but some other stuff is handled outside the heap memory, like loading of drawables.

For example if I run the ddms tool outside eclipse, and go to sysinfo, I see that my app is taking 20Mb on the Droid and 12 on the G1, but heap size are the same in both, because data is the same but images are different.

So the questions are: How do I know what is taking the memory outside the heap memory? What other stuff takes memory outside the heap memory? Complex layouts (big tree) ? Animations?

View 2 Replies View Related

Android : Need Project Management App On Droid

May 13, 2010

I'm unfortunately going to have to post this in a few places because I don't know where it's going to get the most exposure, but I'll start here because I have a Desire. I need an app to manage the various projects that I have going on. In some ways, you can think of it as a todo application which has subtasks, projects/groups, action lists, sorting via time till due/time taken/project/importance etc. If you have the time, check out this site where there guy goes through a number of options and criteria for a good GTD (getting things done) application.

View 6 Replies View Related

General :: Android Devices Management

Aug 28, 2012

In my company we are starting one project that will (among other) include e.g. 50+ android mobile devices on the field..So I need to find windows 7 desktop software for managing all of this devices at one place...

To have statuses, check location, lock apps, wipe etc - all regular stuff when administrating device..Is there such software??

View 1 Replies View Related

Android :: Resource Management / Priorization Of Applications?

Aug 25, 2009

the Android web site indicates that "all applications are created equal". What is the strategy to ensure that critical applications/ services have priority? Are there any facilities Android does provide to ensure certain applications and/or threads to receive a minimum of CPU bandwith (and other apps/threads are prevented from consuming all the CPU bandwith)?

View 11 Replies View Related

Android :: Power Management That Indicates About 15% Of Wifi Usage

Feb 19, 2010

I just bought a G1 from a friend and am exploring how I am going to use this. I am not much of a cell user, I want this more for the wifi access and am playing with Google Voice. I have a pay as you go call plan, no data plan, and am in a wifi zone about 90% of the time I would want to use it. All is functioning well.

I am finding that the battery barely makes it through the day even with light usage. The power manager indicates that about 15% of my usage is wifi, even when I didn't actually connect. I am thinking that the device is working hard scanning for an open connection. Like I said, 90% of the time I am in a known wifi zone with a "remembered" account. So it doesn't really need to be looking all the time. What would be really cool is if there's an app to toggle wifi based on location. I think by GPS since it would be more accurate. Wifi could be off until I get to a given location, then it would automatically fire up and connect.

View 1 Replies View Related

Android :: Contact Management (register And LookUpKey)

May 10, 2010

I would create an application that saved a references to chosen contacts and create nex contacts. So I first think of contact id but i have read that it was a bad idea and the lookupkey was here for that ! So I try to play with lookupKey and i'm facing some little problems... First :

I choose a contact to saved, I did it by getting it's lookUpKey : no problem. I try to access later to contact with it's lookUpKey : no problem........................

View 2 Replies View Related

Android :: Handles Power Management Application?

Oct 3, 2009

I am looking for an application that handles power management. I downloaded the Power Management app, but the free app has limited features. I am looking for a free app.

View 2 Replies View Related

Android :: Copy Protection & License Key Management

Apr 26, 2009

1. When the "copy protection" checkbox was first introduced on Android Market, I heard about a lot of issues with people not being able to download etc. Have those issues been resolved now? If I turn on copy- protection on an app with over 10K active users, do I risk a major rebellion?

2. I'd like to sell my app on other stores like slideme, andappstore and handango. Since some of these just redirect the user to your own site to download the app, there needs to be a license key that authenticates the user and unlocks his app. I saw that andappstore has a framework for that (not sure if that will only work with them or is a generic solution). I'm looking for a free, generic licensing solution. Is there one that you know of or use? My concern is to not throw in a wrench in the process of user download and use of the app, where I start getting a ton of emails from people whose keys arent working or asking for new keys etc, where license support turns into a full-time activity.

View 6 Replies View Related

Android :: Application - Activity's Memory Management

Mar 1, 2010

I have a problem with my application, and it's about a Virtual memory error: ERROR/AndroidRuntime(19790): java.lang.OutOfMemoryError: bitmap size exceeds VM budget

The story is like this: I have an activity (let's call it A), the user click on a button from this activity, then i will make an api call somewhere in the internet, and after the result is back i start a subactivity (let's call it B).

In the activity B i have to dinamicaly load some images from the resources folder. I load the images into bitmaps -> drawables -> imageviews. After the user click's on some buttons i have to setResult(..), finish(), and get back to activity A.

The thing is that, goes from activity A to B, then B -> A, then A -> B for a few times, my app crashes with the message above: it doesn't have enough memory to load the interface.

I can not maintain the activity B on the stack because i don't want the user to go to this activity without going through activity A first.

View 2 Replies View Related

Android :: Possible To Download SDK Components Without Using SDK Management Utility?

Feb 4, 2010

During the installation of my Android SDK, I am getting stuck during the process where the manager goes out and downloads all the revisions of the APIs and the SDKs.

It is potentially due to a socket issue that typically occurs when a database query is called and there are a large number of TCP connections... according to googling my error (No buffer space available (maximum connections reached?): recv failed )...

So I just need to know if there is a way, other then using the Android download manager, to download / update my computer with the following Android SDK components:


Downloading Documentation for Android SDK, API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.1, API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 7, revision 1'; it depends on 'SDK Platform Android 2.1, API 7, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 7, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.0.1, API 6, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 6, revision 1'; it depends on 'SDK Platform Android 2.0.1, API 6, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 6, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 2.0, API 5, revision 1
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 5, revision 1'; it depends on 'SDK Platform Android 2.0, API 5, revision 1' which was not installed.
Downloading Google APIs by Google Inc., Android API 5, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.6, API 4, revision 2
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 4, revision 2'; it depends on 'SDK Platform Android 1.6, API 4, revision 2' which was not installed.
Downloading Google APIs by Google Inc., Android API 4, revision 2
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.5, API 3, revision 3
No buffer space available (maximum connections reached?): recv failed
Skipping 'Google APIs by Google Inc., Android API 3, revision 3'; it depends on 'SDK Platform Android 1.5, API 3, revision 3' which was not installed.
Downloading Google APIs by Google Inc., Android API 3, revision 3
No buffer space available (maximum connections reached?): recv failed
Downloading SDK Platform Android 1.1, API 2, revision 1
No buffer space available (maximum connections reached?): recv failed
Downloading Usb Driver package, revision 3
No buffer space available (maximum connections reached?): recv failed

View 2 Replies View Related

Android :: Music App With Integrated Podcast Management?

Oct 29, 2010

Having a little trouble with my music/podcast management, primarily because of my Bluetooth connections. I have the stock music app for my music, and then Doggcatcher for my podcasts. Unfortunately, this causes confusion when I am pausing and playing via Bluetooth - both apps will start playing, or one app will play and the other will pause...

It would be mostly solved if Android would give priority to the focused application when responding to Bluetooth commands (so I could just open the app I want and then it would act normally), but unfortunately, such is not the case.

Is there any kind of good music app out there that does good podcast management? I don't need much, just the ability to download podcasts on demand, and remember how much of the podcast I've listened to.

Suggestions? DoubleTwist claims to do this, but I have to connect to the computer to sync, which I think is friggin' stupid. I just want to be able to do everything OTA.

View 3 Replies View Related

Android :: Google's ITunes Equivalent / Music Management App

Jan 14, 2010

I've done a little research on this, with no luck. Basically Does anyone know if Google is planning on, or is already working on a music management app (like iTunes). I use iTunes to sync up my iPod and manage play lists. I would LOVE to be able to use a Google product to manage play lists and sync songs to my Hero. If Google is not planning on this, is there a third party app which can be used to sync my Hero to iTunes?

View 20 Replies View Related

Android :: New Application - Money Management (Incomes And Expenses)

Jul 5, 2010

A new app has been release for android - Money Manager. please have a look on the website at Money Manager - Money Management (incomes and expenses) for Android

View 1 Replies View Related







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