Android :: Understanding Proper Alarm Flow

Jan 11, 2010

the app I'm trying to implement allows the user to select a sound file (MP3 or WAV) to play at a specific date and time showing a dialog with a progress bar and an OK/Cancel button allowing the user to stop the playing of the sound file. I want it to behave something like the countdown apps I've seen or even the built-in alarm clock app. As I'm implementing this simple (I thought!) app, I'm trying to better understand the platform and make the application conform to the Android way.

As I've been writing the app, I learn more about how things are supposed to work on the Android platform. And here's where I'm getting a bit confused. During my attempts to get the alarm to fire and display, I'm learning that properly formed Android applications are not supposed to show dialogs as a result of a background service or broadcast receiver being invoked through Android's alarm service. Instead, I think, the app is supposed to use a notification on the status bar to alert the user. The user then has the option to look at the notification to see what the app is trying to tell them..............

Android :: Understanding proper alarm flow


Motorola Droid : Several Alarm Clocks - If Snooze Alarm 1 - Alarm 2/3 Never Goes Off

Mar 9, 2010

I tried several alarm clocks on my droid, and they all seem to have a problem. if I set alarms for 6:30, 6:41, and 6:52 am. Each with a different sound. If i snooze alarm 1, alarm 2/3 never goes off. i thought all 3 would be seperate, but it seems only 1 can be active at a time. unless im doing something wrong. this happens on the default alarm clock and, better alarm clock.

View 2 Replies View Related

Checking Code Flow Of NFC In Android-ICS?

Dec 13, 2011

Actually I am checking the code flow of NFC in Android-ICS.But i got stuck because of some files are not present in ICS.

Like :

GB code -> WriteTagActivity (to write into a TAG)

ICS code -> no files.

Some more files are also missing in NFC and TAG.

View 2 Replies View Related

Android :: How To Layout Text To Flow Around An Image

Feb 9, 2010

In android, can you please tell me if there is a way to layout text around an image? Like this: ------ text text text | | text text text ----- text text text text text text text text text text text?

View 3 Replies View Related

Android :: Activity Flow During OAUTH Authentication

Feb 3, 2010

I think that I've found the problem I am having with AccountManager that I described in an earlier thread that got no responses on the board.

I think it is a problem with the way that the Activity Stack is working during the OAUTH workflow. Here's the workflow as I see it. I found this problem by separating out my Activity, which I'll call M, from the oauth Activity, which I'll call O. In the course of authentication, the web browser is invoked and let's call that B.

When a user needs to start over with authentication, my application, through Activity M, starts Activity O. That, in turn, generates some magic URL that is sent to the web browser. So the browser is fired up and information was sent to the OAUTH provider to do a redirect back through the browser back to Activity O.

So, this how the OAUTH workflow looks up to the browser: M -> O -> B

At this point the user logs in and hits the Accept button and the browser then invokes my BROWSABLE activity, which, again, is O. I had thought this would unwind the above stack, but it seems that above situation disappears and what I have after the user hits Accept in the browser is this: B -> O

What I did to work around that is that I put a startActity(M) in O and that seems to work, but it is a workaround.

I believe there is something that I could do with launch modes or activity modes to fix this problem and maintain the original activity stack.

All that is happening, really, is that the O activity pauses for little while, then comes back with the goods, the login credentials. But when I tried to return the information via startActivityForResult (), nothing. Because M is no longer on the Activity Stack.

View 2 Replies View Related

Android :: How To Layout Text To Flow Around Image?

Feb 12, 2010

Can you please tell me if there is a way to layout textaround an image?I have gotten a response from an android developer about this question. But I am not sure what he means by doing my own version of TextView? Thank for any tips.This is not possible using only the supplied widgets and layouts. could write your own version of TextView to do this, it shouldn't be hard.

View 2 Replies View Related

Android :: Program Flow When Rotating Device With Two Activities

Aug 13, 2010

My first activity is creating a second activity within its onCreate:

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

The second activity has EditText views for the username and password along with submit and cancel buttons. When either button is pushed, the text from username and password is sent back to activity one (via onActivityResult), which connects to a server to see if the username is available. While connecting to the server showDialog is used to show a ProgressDialog. When the server responds, the ProgressDialog is dismissed and an AlertDialog is shown. This works fine as long as the device is not rotated.

Here's the problem: if the user rotates the device from within the second activity and pushes submit, the first activity re-invokes its onCreate, which ends up launching the second activity again since the username and password are still null.

Does anyone have any suggestions to get around this?

Is there a method that could be used to pass data from activity-2 to activity-1's onCreate? I wouldn't want to use a database in this case, as that seems like overkill.

I've thought about containing the server communication and dialogs to activity 2, but then I'd have duplicate server code in activity 1 and activity 2 (activity 1 connects to the server for other things too). Another issue I'd have with this approach is that the user has an option to cancel creating the password, in which case I want the app to finish. If I called finish from activity 2, activity 1 would appear and I don't want that to show unless a username and password have been created.

It just occurred to me - if I could replace activity 2 with a dialog it might make things simpler. The dialog view needs to have 2 EditTexts and 2 buttons. Can I create something like this and use the showDialog method?

View 1 Replies View Related

Android :: Design Flow Chart Scheme For Apps?

Oct 7, 2010

I'm seeing that it would be good to have some sort of charting scheme (or possibly just a table-based design strategy) when designing Android apps.Have any such schemes been proposed?

View 4 Replies View Related

Android :: Multiple Process On Separate Development Flow

Jul 14, 2009

I need two activities run in different processes in the same application. Now I have made it work by specifying the different process name in "android:process". But I met a problem, from http://developer.android.com/guide/topics/manifest/application-elemen..., we have only one superclass of Application will run before the activity starts(I have tested it, and each time a after new processes start, this Application(its superclass) will run before activity). But, my two activities have two different superclasses of Applications.

So, how to make Applications for different activities run for its corresponding activity? If there is no way to use different Application class for different activity, how can I make a flag for the common Application superclass to judge which process(by getting its name) is running? BTW, the two activities were on the separated development flow and I am trying to merge them.

View 12 Replies View Related

Android :: Make Control (focus) Flow From Button To Top Of List View

Oct 4, 2010

My activity has a set of buttons on the left half of the screen and a ListView on the right.Initially the focus is on the first button. When I browse the buttons by pressing DOWN arrow key and then press the RIGHT arrow key, the focus does not go to the topmost list item. Instead, the list item correspondingly on the right gets focused.Is there a way that when I press the RIGHT arrow key, the focus goes to the topmost item on the Listview?

View 1 Replies View Related

HTC EVO 4G :: Music Album Art Flow?

May 14, 2010

Will there be any cover flow on the evo and will you be be able to use the music player in landscape mode. I asked this a previous thread figure I would bring it back up.

View 4 Replies View Related

Android :: Sense UI - Understanding

Mar 26, 2010

I'm not fully understanding Sense UI. What makes Sense UI so relevant, or not relevant? What exactly is it?

View 2 Replies View Related

Sprint HTC Hero :: Turn Off Text Flow In Browser?

Nov 9, 2009

Does anyone know if there is a way turn off the text flow in the Hero's browser? I hate how when I pinch to zoom, it auto text flows and throws me onto some random place on the site...pretty annoying. I have to then search around for where i on the site I was before I did the pinchzoom

View 1 Replies View Related

General :: Dolphin Browser HD / New Tab Homepage And Text Re-flow?

Aug 2, 2012

New to Android and to Dolphin Browser HD. I've Googled for days, however, I have come up with squat.

1) When I open a new tab, can it automatically go to my homepage and not the "Speed Dial" sort of page it does now? Any add-ons that might enable this?

2) Does Dolphin Browser HD do automatic text reflow? And, if not, any other browsers that can do this? It is pretty tedious now trying to read pages that aren't re-sized for mobile.

View 3 Replies View Related

Android :: How To Handle Alarm Clock & Alarm Reciever Broad Casting To Pause Playing Mediaplayer

Jun 22, 2010

I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption.When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing should happen with snooze.

View 1 Replies View Related

Android :: Understanding Permission Group Tag

May 14, 2009

I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using permission-group and what benefit offers this grouping? Is there a plus security using it? Does anyone know an example when to use it?

View 2 Replies View Related

Android :: Understanding How Activities Work

Jul 22, 2010

I'm trying to wrap my head around activities and how they begin and end in Android. I've read what the Developer Guide has to say regarding activities and I'm still a little fuzzy on how I should appropriately handle their navigation in my application. As an example, say I have a main activity that starts a secondary activity. Once the secondary activity has completed it's purpose, I want to close it and return to the main activity. I recall having read that the activity stack was just that, a stack of activities that are pushed and popped. So I assumed that calling finish on the secondary activity would return me to my existing main activity. Calling finish on the secondary activity didn't actually do anything, visibly at least. Is there further reading that anyone can recommend to me? Chris Stewart cstewart@gmail.com http://www.androidsdkforum.com

View 10 Replies View Related

Android :: Understanding Parameters Of Images?

Feb 17, 2009

I am trying the FaceDetector class using the code as shown in the following link: http://www.anddev.org/quick_and_easy_facedetector_demo-t3856.html Everything works fine as far as the activity drawing the bitmaps is concerned but I haven't had any success in getting Android to recognize a face. Has anyone tried this feature? Could anyone please help in understanding the parameters of the images to use or please post a link to some image that has worked for them?

View 2 Replies View Related

Android :: Not Understanding Activity Stack?

Dec 3, 2009

I'm having trouble with my activities when they go in the background. I have two activities, A and B. Only A can launch B (manifest copied below).This is very confusing. It's like Android knows my app is running, and puts a new instance of A on top of the old B instance running. I'd just expect that the application gets paused in-place, and whenever the user hits the app icon again, it just picks up where it left off (in this case, just show B again!) Below is the manifest, and the activity classes for this test are completely empty (except A which has a button to launch B).

View 4 Replies View Related

Android :: Understanding Content Providers ?

Mar 1, 2010

I am having trouble understanding content providers in Android. Do you use intents to call content providers as well as managed queries?

Also, an activity has an intent filter. The intent filter has a element which has a mimeType attribute. How does Android know which content provider this mimetype is referring to?
The tag in the manifest just lists an authority but not the full content_uri. Further, the content_uri is typically defined in an encapsulated class that seems to only consist of constants but no methods, so I don't see how that links over to the content provider class.

View 1 Replies View Related

Android :: Alarm Clock That Will Alarm When Phone Is Switched Off

Jul 21, 2010

As far as I'm aware the standard alarm clock will not alarm when the phone is switched off. Does anybody know an alarm clock that will alarm when the phone is switched off ...? (preferably free)

View 2 Replies View Related

Android :: Understanding Broadcast Receiver / Way Of Activate It

Mar 25, 2010

I am trying to understand the use of the broadcast receiver and the way of activate it. There's two ways isn't it? Register it from an activity or declare it in the manifest. So my question is: If I code a broadcast receiver which is watching incoming messages and I register it in the manifest, when a message comes my broadcast receiver will catch it automatically although any activity of my app had registered it. In a nutshells, I don't have to activate it so it works, only register it either in the manifest or in an activity.

View 2 Replies View Related

Android :: Understanding Relative Layout - Add Four Controls

May 19, 2010

I'm attempting to add four controls to a layout; <label> <text> <seek> <radio> I want the seek widget to occupy all the available screen space between the edittext control and the radio control. However if I give it the value android:layout_width="wrap_content" only a small seek control is displayed and if I set the value to fill_parent it overwrites the radio control. I would have thought there would be a mechanism to occupy the free space between the text and radio controls dynamically. The xml file I am using is below You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 2 Replies View Related

Android :: Understanding Bound Center Bottom

Jan 20, 2010

Trying to replicate the behavior of ItemizedOverlay.boundCenterBottom(), inside of one of my Overlay classes. I am fairly certain that I can do this using setBounds(), but I am utterly lost as to what setBounds() is actually doing.

View 1 Replies View Related

Android :: Understanding ContentObserver Life Cycle

May 9, 2010

The core of this Widget is an AppWidgetProvider which registers a ContentObserver to the CallLog content URI. This means that my widget is updated every time a call (incoming, outgoing, missed) is recorded. This works fine for a while, until *something happens* and my ContentObserver stops getting called (no error message seen in trace). I would rather that this ContentObserver persisted until the user removes the Widget.

I am guessing that my JVM has been destroyed (due to low memory?), ContentObserver garbage collected and/or ContentObserver unregistered (or just pointing to nothing), but I don't know how to debug this without restarting my code (and thereby re-registering). I can hide this bug by periodically re-registering my Content provider, but I would rather understand the cause and have a more optimal solution..............

View 3 Replies View Related

Android :: Understanding Life Cycle When Screen Goes Off And On?

Aug 4, 2010

My device is a Nexus One with 2.2 and I have tested two projects, one on 1.5 and one on 2.1. Problem: I have trouble to understand the life cycle of my application when the screen is turned off and on. Here is my output

// activity starts
08-04 17:24:17.643: ERROR/PlayActivity(6215): onStart executes ...
08-04 17:24:17.643: ERROR/PlayActivity(6215): onResume executes ...
// screen goes off
08-04 17:24:28.943: ERROR/PlayActivity(6215): onPause executes ...
08-04 17:24:32.113: ERROR/PlayActivity(6215): onStop executes ...
08-04 17:24:32.113: ERROR/PlayActivity(6215): onDestroy executes ...
08-04 17:24:32.983: ERROR/PlayActivity(6215): onStart executes .....................

View 3 Replies View Related

Android :: Group Apps To Get More In Depth Understanding

Oct 6, 2010

I am a beginner in writing Android apps and would like to be a part of the group to get a more in depth understanding.

View 4 Replies View Related

Android :: Understanding DDMS Log - How To Logcat From Force Close

Jun 25, 2009

Can someone please explain how to understand a logcat from an android force close. This crash occurs when I called finish() in the onPause(). Here is the DDMS screenshot http://www.2ql.net/uploads/1245827534.png

View 1 Replies View Related

Android :: Understanding Menu Call Back Code

Jun 13, 2009

I see this example of MenuCallback code, but i don't understand where is the reference 'ImageManager.IImage image' comes from? How is that image get created and passed it to MemuCallback?

View 2 Replies View Related

Android :: Not Understanding A Basic Concept Of Application Development

Aug 26, 2010

First and foremost, are there many android developers here? Is this a good place for Android related discussions?I seem to be missing a rather large concept of Android development. The gist is I am struggling understanding how to tie an application together. I'm not sure how to explain it, so I thought I would do my best with an example from the Android ApiDemo... assuming you are familiar with it.

Inside the com.example.android.apis.view namespace of the ApiDemo, there is a class called Animation3.java.Animation3 inherits the activity class and there is some code inside to display animation.I can't find a reference to the class (Animation3) anywhere in the demo code (except for its definition obviously). The only mention I found is in the manifest xml file. So how the heck does this activity get started? Don't we need to create an instance of the class somewhere and fire off a method to start it? I don't understand how to generate the code that ultimately glues this class to the rest of the application.Additionally, what about other classes like views or viewgroups? How do I generate code outside the class that initiates/starts/uses/calls (insert proper term) the class.I would appreciate any code examples as well as any concept explanation or reference documents. So far I've read pages and pages on activities and views but I'm really struggling how to tie things together.

View 4 Replies View Related







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