Android : Call App Activities From Stand-alone Widget?
Dec 29, 2009
I currently have widget for my app Hire*A*Droid bundled with the main application. I would like to unbundle the widget and release it as a separate offering. However - the widget is relying on Activities from the main app so I need to navigate between these two mainly calling particular Activity of the main app from the widget. So the basic idea - app can work without widget and the widget becomes the "add-on" option.
What is the "right" way to call app activities from the stand-alone widget? Do I convert the main app into a content provider? Can you point me to any code samples perhaps?
P.S. I'm not asking how to call Activities from the widget that is bundled in the same APK. The question specifically states that widget is distributed separately from the app it's calling
View 1 Replies
Aug 16, 2010
Can a services exists as a stand alone with out any activities/ default. Is it possible to create services with out any activities associated with it as a stand alone inside a apk. (just a service).
View 2 Replies
View Related
Dec 9, 2009
My Droid was in its leather carrying case in my backpack for about an hour while I was at the gym. When I pulled it out it was hot. Not warm, but hot. I couldn't stand to hold it against my ear to make a call.
When I pulled up the battery usage it did not appear to be anything out of the ordinary. The keyboard was locked when I pulled it out of the case so that eliminates errant keypresses opening up a bunch of apps and making calls while it was in there.
View 15 Replies
View Related
May 8, 2010
Say I have 2 activities (ActivityOne and ActivityTwo). How would I call ActivityTwo from ActivityOne? Then how would I return to ActivityOne from ActivityTwo? For example, I have a listview with all the contacts on the host phone. When I tap on a contact, another activity shows information and allows editing of that contact. Then I could hit the back button, and I would go back to the exact state that ActivityOne was in before I called ActivityTwo. I was thinking an Intent object, but I am not sure. Could someone post some code?
View 2 Replies
View Related
May 30, 2009
Is it possible with one call to finish all previous Activities. (like: this.finish(all) :)
I have a main activity, calling a preferences and there is a switchuser point that switch the user and call the main activity again. But than i don't need that the user can go back, step by step, It would be just fine i could say "kill all previous activities" in the moment the user click "switch user".
View 7 Replies
View Related
Jun 7, 2010
Is there a way to have a calendar widget on the home screen with the days current activities? I saw it on one of the scene layouts.. I think it was the work one but I want to use the sprint scene and add that widget. Is this possible? Also, is there a to do list or task list app built in or do I need to download one. If I do have to download one are there any recommendations.
View 1 Replies
View Related
Jun 29, 2010
I'm looking for a call log widget and a voicemail widget which look like the default mail app widget.That is, a simple small widget which show me the number of missed calls (if it's the call log widget) or the number of voicemails received (if it's the voicemail widget), just like the mail widget shows the number of emails received.
View 2 Replies
View Related
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
Nov 14, 2009
I just want a shortcut icon or a small widget where i can click on it and it goes straight to your call log, its a pain clicking on contacts or phone and than having to click on call log everytime. I never use the dial pad only contact,favs, and the call log pretty much.
View 22 Replies
View Related
Oct 29, 2009
Call DOCK BAR ALBRAndroid Blog Up to 4 contacts will be shown on the dock bar with photo and first-name. You can choose between one click call or a popup window to choose one of the functions like CALL, SMS or EMAIL.The ONE-CLICK-CALL option will call the contactperson after the click on the image icon. The PopUp-Window option will show an activity to choose between CALL, SMS or EMAIL. You can choose between different themes (13) (Blue, Green, Orange,.) Call Dock Bar2 Use it together to manage 8 contacts. http://www.cyrket.com/package/albr.android.quickcall
View 1 Replies
View Related
May 30, 2009
I've read through the Application Fundamentals three times today (and I had done so before), but I still can't quite wrap my ahead around the task concept. Or I guess I thought I understood it, but usually, the results I am seeing don't match up to what I would expect to happen (maybe a tool to see the current tasks/activities etc. for debugging purposes would be a nice addition).
I have multiple widgets from my provider in the Launcher desktop, and each is using a PendingIntent with a different URI as data (so they should be separate intents) to open an Activity.
I want there to be only once concurrent instance of this Activity that the user can access. So clicking the widget (1) , pressing HOME (2), clicking a different widget (3), pressing BACK (4) should bring the user back to the Desktop.
Now I did manage to do this using launchMode="singleTask" - the existing instance is brought to the top, onNewIntent() is called and I am pretty satisfied with it.
However, supposedly there are other ways to achieve an equivalent effect (say with having the activity restarted), and I'd like to understand why I don't seem to be able to get them to work: In every case, instead of seeing the home screen after step (4) (after pressing BACK), I see the *previous* instance of the Activity.
For example, if I read this correctly:
"There's another way to force activities to be removed from the stack. If an Intent object includes the FLAG_ACTIVITY_CLEAR_TOP flag, and the target task already has an instance of the type of activity that should handle the intent in its stack, all activities above that instance are cleared away so that it stands at the top of the stack and can respond to the intent. If the launch mode of the designated activity is "standard", it too will be removed from the stack, and a new instance will be launched to handle the incoming intent." http://developer.android.com/guide/topics/fundamentals.html
Then simply using using the following code to start my Activity from my widget should do what I want, no?
CODE:............
So in (3) My activity should be launched using FLAG_ACTIVITY_NEW_TASK by the launcher, which due to process affinity would find the existing task (which would consist of a single instance of my Activity), and launch the new instance on top of it. This explains what I am seeing. Why doesn't FLAG_ACTIVITY_CLEAR_TOP cause the existing instance in the task to be replaced?
Even setting android:launchMode explicitely to "standard", as mentioned in the doc quote above, this doesn't seem to change things.
I also tried android:finishOnTaskLaunch="true", but the behaviour is the exact same was just described with FLAG_ACTIVITY_CLEAR_TOP (which seems to be the exact same as when doing neither and really starting an activity without any special attributes).
I should mention that If I click the same widget in (3) as I clicked in (1), i.e. using the same PendingIntent twice, I do get the previous instance brought to the front (not restarted), but again, regardless of whether FLAG_ACTIVITY_CLEAR_TOP or finishOnTaskLaunch are being used.
I find this especially strange since the docs about tasks don't seem to mention the intent itself being relevant at all. Application Fundamentals does at one point say "For the default "standard" mode, a new instance is created to respond to every new intent", but it's not clear what "new intent" means then. Is triggering a PendingIntent multiple times through a widget not multiple "new" intents then?
I also tried various combinations of the other related options, but pretty much got nowhere.
View 2 Replies
View Related
Feb 22, 2010
I saw many sample codes that each variable contains the 'm' prefix. I don't know what this m means. I have two-year experience in MFC. Each variable has 'm' prefix to tell you that I'm the one variable of MFC component. (m stands for MFC). can anybody answer me this question?
View 22 Replies
View Related
Jun 11, 2010
i'm looking for a stand alone contact manager app that will allow me to import contacts and map custom fields from our CRM database. depending on the user, their database can be anywhere from a few hundred to a few thousand contacts. in an effort to keep things clean (business vs. personal), i'd like to keep these out of the built in contact manager.
View 2 Replies
View Related
Jul 4, 2010
I wrote a widget that can call numbers directly with one click. It works on the emulator, and it used to work on my nexus one when it had Android 2.1. Now I got the update, and the widget stopped working. I am using Intent.ACTION_CALL, and android.permission.CALL_PHONE. If I change to Intent.ACTION_DIAL it works, and the same code works from an activity. It is the combination of an app widget and the call action. I don't see any error. Does anyone know if it is not possible, and if so, how? Are there many cases the emulator is different than the cell phones, concerning the permission aspects?
The numbers are all regular, not 911 or something.
View 1 Replies
View Related
Oct 3, 2010
How to develop application with service only without any activities, so the user can't open the application but other applications can use the service.
View 4 Replies
View Related
Nov 28, 2010
Can anyone recommend a widget that shows the number of missed calls / text messages / emails? I would prefer something that is text only.If not, does anyone know a widget that can display text from a file on the SD card? I could probably figure out how to use Tasker to generate the text file if needed.
View 1 Replies
View Related
Jul 15, 2009
I have downloaded the full Android source code & pulled out the contact source into a different folder. I am trying to create a separate Contacts "stand alone" App using the existing android contacts source code, once that done I intend to add some more features (code) to contacts source & make a contacts.apk out of it. Is it possible? The problem I faced was, when I pulled the contacts app source code, there were many internal api calls & Private api references. I tried to resolve them by including those internal api source code & class files (available from the android source code) in my project, but there are still many errors & internal api calls, which I am not sure how to resolve them like:
import android.os.ServiceManager android.provider.Gmail android.provider.Im android.provider.Telephony acquireProvider(Uri) deleteRow() lookupProviderNameFromId(int) ISyncAdapter IContentProvider etc.
Is there a way to solve these internal API issue? Was there anyone who has successfully extended any of the existing apps (Contacts, Alaram, calendar.) of android with the help of its source code, is this approach possible? I tried to include the "framework_immediates classes.jar" in the project, but due to duplicate class files present in the project & SDK it throws the ususal - UNEXPECTED TOP-LEVEL EXCEPTION: class file already added com/android/ internal/telephony/callerInfosync. I have been trying to achieve this for the past 2 days, with not much success. Can somebody lead me to a correct direction?
View 8 Replies
View Related
Nov 15, 2010
I have a widget and I want it to make a phonecall to a particular number when the user clicks on the widget. How do i do this?
View 2 Replies
View Related
Nov 15, 2010
I have a widget, and I want it to make a phone call to a preset number when the user clicks on it. How do I do this? I havn't yet understood how widgets work, so it would be really helpful if you could provide a sample code.
View 4 Replies
View Related
Nov 20, 2009
Are there any good apps in the android market that can replace a stand alone golf gps device (think SkyCaddie)? If so please pass on the names of the apps.
View 22 Replies
View Related
Mar 31, 2010
Is there a stand-alone sample code for video capturing in Android ?
View 2 Replies
View Related
Sep 7, 2010
I googled, and didn't find my answer.
View 4 Replies
View Related
Aug 30, 2010
My HTC Desire gets stuck when it trips into standby mode. When I press the unlock key, the bottom hard keys light up but the screen stays black. I have to do a battery pull whenever it happens. Done a factory reset but nothing helped.
View 4 Replies
View Related
Jul 13, 2010
Okay so I've tried a few different Calendar apps, and they all seem to link to either Google, or the stock Calendar. Is there an app out there that has all the functions of one of these, reoccurring events, Colored event bars etc, BUT does not link to either the stock or Google, or any other type. I'm not happy with the way this linking system works, but I DO need a calendar with event tabs for my work rota, holidays, pay days etc.
View 2 Replies
View Related
Jan 21, 2010
So I am traveling to UK next week for business.Is there a way to use the GPS stand alone?I wanted to use the APP Sporty Pal but when I turn off the radio the app just spins and has "Initializing GPS" and then times out. I have tried to do this with WiFi connect also to see if it needed something data wise to get started but same results.Any ideas or other apps that track your runs that can use GPS only?
View 15 Replies
View Related
Jan 8, 2010
I know I've asked a lot of questions about getting the stock Android apps and keyboards, etc. But I am very concerned as it may mean taking back my Eris.
For some reason, I just cannot stand the HTC apps. For example, the Messaging app, the black notification bar and different battery icon, the Mail app, etc. They just look cheap or something. I don't use Sense UI, I have it set to Default Home. I don't really like HTC's keyboard as much as the stock Android one either. I bought the Eris because of the price, and how much lighter and thinner it is and how much better it looks than the Motorola Droid. However, I would really love to know if we can get the stock Android look and feel, for example the stock Android keyboard, stock notification bar color, stock messaging app, after the 2.0/2.1 update or after it is rooted. It just looks so much more dark and rich. I don't like white color schemes like in the HTC messaging app. (And don't say use Handcent because I don't like it either and I don't want to replace any apps.) Is it possible to just install the stock Android OS after it is rooted?
View 17 Replies
View Related
Jun 7, 2010
Had my Evo in Stand-by mode. It turned itself on (unknowingly to me) and my battery became extremely hot. Had to remove battery. Thought it was going to burst in flames. Waited awhile, replaced battery and so far no problem. What should I do?
View 9 Replies
View Related
Jan 19, 2010
I know about camel case rules, but I'm confused with this m rule. What does it stand for? I'm a php developer, "we" use first letters of variables as indication of type, like 'b' for boolean, 'i' for integer and so on.
Is 'm' a java thing? Does it stand for mobile? mixed?
View 3 Replies
View Related
Nov 12, 2010
My phone was updated to 2.1 over a week ago. Since then, it's been working fine.But I noticed that my 3G reception is not as strong anymore. ONE MORE THING, I noticed that it would go into the H network sometime. What does the H mean/stand for?I know 3G is 3G, E is EDGE, what is H?
View 3 Replies
View Related
Jun 10, 2010
What clock application is everyone using for their night stand when its bedtime?
View 4 Replies
View Related