Android :: How To Create Intent To Open Activity / That Displays Accounts & Sync Settings Screen

Jun 9, 2010

I have seen the below log message when navigating to the Account & sync settings screen but I am confused as to how to create an Intent to navigate there.I dont seem to have access to the ManageAccountsSettings for development.I just wanted to create an Intent such as below, but I cant call out ManageAccountsSettings.

Android :: How to Create Intent to open activity / that displays Accounts & Sync settings screen


Android : Cannot Add Gmail Account To Accounts - Sync Settings

Aug 19, 2010

Using Eclipse 3.5.2, SDK Platform Android 2.2, API 8, revision 2 In Settings --> Accounts & Sync --> Add Account I do not have the option to add anything but an Exchange Account in the emulator. I should be able to add a gmail account. Am I being stupid or is there a problem with the emulator?

View 5 Replies View Related

Android : Way To Get Result From Settings Activity Intent?

May 4, 2009

I am currently trying to launch a GPS settings activity using startActivityForResult....however it never seems to be calling my onActivityResult function after it exits. I noticed the docs mentioned that some Intent protocols are not defined to return a result, is this one such example? are there any flags that I could set to either make the settings activity call onActivityResult, or even better make my activity block until the launched activity returns?

View 5 Replies View Related

Android :: Open Activity From An Other Application Via Implicit Intent

Aug 20, 2010

I was trying to open an Activity of an other applicatoin by using an implicit Intent. It doesn't work, I thought it is possible to start an Activity of an other Application by using implicit Intent. Or do I missunderstand it?

I added following intent-filter to the AndroidManifest of Application A:

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

And called the Intent in Application B by using folloing code:

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

All I get ist, the error message that Application A was stoped unexpectedly.

View 5 Replies View Related

General :: Backup / Restore Accounts And Sync Settings

Jan 12, 2012

I'm looking for an app that backs up the "Accounts & Sync" settings for all my accounts, before flashing a new rom. I tried "MyBackup" from the market and it backed up my Sensation quite nicely, but it doesn't restore the accounts and setting up everything again was difficult.

Any app that does a backup that includes a backup of the "Accounts & Sync" settings?

View 9 Replies View Related

Android :: Open An Intent - MapView - From Main Activity With Menu

Jan 13, 2010

I'm trying from main Activity (MainFile.java) to open a Map as a new intent through a menu. Something like this...

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

And I already have set up thing on my manifest.xml with access to...

CODE:........

It worked fine with other File.class, but with the Map.class doesn't seem to be working.

View 1 Replies View Related

Android :: No Activity Found To Handle Intent - Act - Android.accounts.AccountAuthenticator

Jun 28, 2010

I'm trying to have my app display my login activity when a user selects add account in accounts&sync or wants to use the app and isn't logged in yet. I've followed the example SampleSyncAdapter fairly closely, but can't get it to work.

In my auth service:

CODE:........

In my manifest:

CODE:........

In my main activity:

CODE:.......

I've tried doing both

CODE:.......

And

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

Before the startActivity() call, but it still can't find an activity for that intent. If I try to add an account via accounts&sync the app crashes with the same ActivityNotFoundException.

I've examined c99's last.fm app, which defines a custom action and uses intents based on that action rather than android.accounts.AccountManager.ACTION_AUTHENTICATOR_INTENT. Is that a better approach? Is there a way to make it work with Accounts & Sync?

View 1 Replies View Related

Android : How To Create Intent Using A String To Launch Another Activity?

Mar 5, 2010

The first activity in my app needs to load a small amount of data from a text file. Two strings and an integer. Once I load the data, I want to use one of the strings to create an intent, that will launch the next activity.

View 2 Replies View Related

Android :: How To Lunch Account And Sync Settings Screen?

Mar 7, 2010

any ideas about how to lunch the Account and sync settings screen from within my app main activity.

View 3 Replies View Related

Android :: How To Create Icon On Home Screen Through Activity

Oct 7, 2009

I would like to have icon created on home screen through an activity . All the icons of my activities are on main menu, once i click it my activity will be launched instead i need an icon on home screen which when clicked activity should be launched.

View 4 Replies View Related

Android :: K-9 Email SMTP Settings For 2 Accounts

May 1, 2010

From BB to Droid I see there is huge difference on emails. Last night I was working with K-9 email.
I have 3 emails: Gmail working OK. Yahoo working OK (using K-9) and there is work account. I can receive emails OK but cannot send any out. Because I cannot use work SMTP server I went and enter my smtp.mobile.mail.yahoo.com port 587 require sign in. There are lots of errors: from push error: null / relay access denied / imap server is not idle capable... Can I have same SMTP under two accounts?

View 6 Replies View Related

Android :: Exclude Own Activity From Activity.startActivity - Intent

Oct 17, 2010

My app works with pictures. It can take multiple pictures as an input, process them, and send them again to another app.

As a consequence, my main Activity has declared an intent filter on ACTION_SEND_MULTIPLE for image/* mimetypes and can result in issuing a new Intent with the same action and data type using Activity.startActivity(Intent).

Is there a way to exclude my own activity from the list of apps that is displayed to the user after the startActivity() call ?

View 1 Replies View Related

Android :: How To Access And Change Settings For Phone And Email Accounts?

Jun 1, 2010

How can I get and connect to the internet Database of the device so that I can:Obtain the phone number and other carrier information associated with the device? Obtain email settings of the device?Is it possible to change the email settings via an app on the device?

View 2 Replies View Related

Android :: Open Another Application From - Intent

May 6, 2010

I know how to update my own programs, and I know how to open programs using the a predefined Uri (for sms or email for example)

I need to know how I can create an Intent to open MyTracks or any other application that I don't know what intents they listen to.

I got this info from DDMS, but I havn't been succesful in turning this to an Intent I can use. This is taken from when opening MyTracks manually.

View 2 Replies View Related

Android :: Open Proper App With Intent

Sep 13, 2010

Forgive me if this is a topic that has already been discussed, but I've searched for hours and can't seem to find the answer I'm looking for. I'm trying to cut my teeth on Android programming with a simple file manager app and currently have most all functions working, but I can't seem to open a selected file with the appropriate app.

Here is my current code:

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

View 2 Replies View Related

Android :: Open Dialogue Activity Without Opening Main Activity Behind It

Jul 19, 2010

Im writing a program that offers a quick reply dialog upon receipt of an SMS.

However, I am getting an unexpected result. When I receieve an SMS, the appropriate dialog activity comes up displaying the correct phone number and message, however there is a second activity behind it that is the 'default' activity in my program (it is what opens when i launch my application)

I do not want this second activity to come up. The quick reply activity should come up by itself over top of whatever the user was doing before.

The 'floating' activity:

CODE:.........

The call to the activity inside an onReceive()

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

The Manifest:

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

View 1 Replies View Related

Android :: Integrate My Settings Activity Into Settings Apk

Apr 6, 2010

I know ime developer can create his own setting activity which will be displayed in Settings apk. I wonder whether there is a common way to interate any settings activity into Settings apk.

View 3 Replies View Related

Android :: Open Gallery Via Intent Without Result

Oct 5, 2010

I have a kind of an ApplicationLauncher that has to start the build-in gallery. But I dont want to get any result from that gallery... I just want to start it and want my "Launcher" to close after that.

What ive tried:

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

But it doestn even work with this flag... as soon as I click on a pic in the gallery, it closes and returns to my "Launcher". Is there any way to achieve what i want to do?

View 3 Replies View Related

Android :: Open A Local App File In Another App Via An Intent

Nov 8, 2010

I don't want to store said file on the sdcard in this case. The file also cannot be storage directly in the apps local files directory. It needs to be in a subdirectory, so it cannot write the file using openFileOutput() and MODE_WORLD_READABLE.

The app may download files small files like pdfs and store them locally in a subdirectory. I would like to be able to have the user open these files if they have an app that can open them.

For example here is an intent for sending a pdf:

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

path being something like: /data/data/packagename/files/subdir/example.pdf

That intent will open a pdf viewer, but the viewer is unable to open the file. I assume this is a permissions issue. I tried Mark Murphy's suggestion here: http://groups.google.com/group/android-developers/browse_thread/thread/4e55d869213483a9/b7270078ac1a2744?lnk=raot of using Runtime.getRuntime().exec("chmod 755 " + fileName); but it didn't make any difference. He also suggested a Content Provider but I would like to avoid it if I can because it seems like a lot just to get this file over to another app.

If the content provider is the only option, do I have to save the file to the content provider or can I just use the content provider as a pass through to get it to the other app when I need to?

View 2 Replies View Related

Android :: Intent To Open Video With Raw Resource

Nov 9, 2010

Does anyone know of an intent I can use to open a raw mp4 resource in the phone's video player?

I tried this code:
CODE:..............

This threw an ActivityNotFoundException, however this has worked for me when the URI was the sdcard and the video was located there. Does anyone know how I can use the above code with a resource file in my app?

View 1 Replies View Related

Android :: WebView Displays Black Screen

Feb 2, 2010

I have a listview that when you click on an item it will take you to a WebView that displays some static formatted text associated with that list entry.

I had it all working with a TextView but I wanted to be able to use HTML formatting for the text and figured the WebView was the way to go. Right now it is just supposed to display a generic link for testing purposes but when the viewContent intent starts it just goes to a black screen. I can go back and pick another entry and it also just shows the black screen.

I'm not sure what code you are going to want to see so here's the viewSection class file and the viewsection.xml layout.

viewSection.java:

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

viewsection.xml:

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

View 1 Replies View Related

Android : On Screen Keyboard Always Displays On Galaxy

Aug 13, 2009

I have a layout with a TextView and a List, and in onCreate() I have the TextView request focus. On the G1 and emulator the screen comes up with the TextView having focus, and the on-screen keyboard will display when you tap on the TextView, but on the Galaxy apparently the on-screen keyboard is always displayed. Does anyone know why this would be so? And why would a phone without a keyboard act differently from a phone with a keyboard that's hidden--shouldn't they follow the same logic?

View 3 Replies View Related

Android :: Save An Intent In Settings?

May 11, 2010

In my application, I allow the user to have a button that launch the application of his choice. I get no problem to make a list of all installed apps, get the Intent and launch the choosen app.

But I would like to save the corresponding intent in the settings for the next time the user use my application, but settings only allow me to save basic data type ( Integer, boolean, Strings, etc. )

So, my question is how to save an intent in a smart way.

View 2 Replies View Related

Android :: Sync With 2 Google Accounts

Apr 15, 2010

I have one gmail (personal) account, and one google account (for work, not email, just google services account).My main account is my gmail one on android and it's fine.But I would also like to see my work contacts and calendar.I added it to my "accounts & sync settings" but it always said "Sync is OFF", no way to turn it on for this account.Just to make it clear, my work account is NOT a gmail account, I use my work email address as a log-in for all other google services (mainly calendar and contacts)

View 2 Replies View Related

Android :: Way To Only Have Certain Accounts Sync Automatically

Jun 7, 2010

Is there a way to only have certain accounts sync automatically? I have my phone set up with my gmail account as well as an Activesync account at the office. I would like to have the gmail account always sync but the work email sync manually. Does anyone know how to do this?

View 1 Replies View Related

Android :: Intent To Open Users Preferred Browser

Jun 28, 2010

I've been trying to find out how to create an intent that will open the user's preferred browser without specifying the URL. I know how to open it by giving a specific URL like this:Intent intent = new Intent();intent.setAction(Intent.ACTION_VIEW); intent.setData (android.net.Uri.parse ("http://www.google.com")) ;context.startActivity (intent);I don't want to open the browser to any page in particular, just the set homepage or whatever page the user was on last. I've thought about looking up the homepage set within the app but you can't do it with the default Browser app because it is private. Does anybody know of a way to do this?

View 1 Replies View Related

Android : How To Get Caller Name Which Displays On Incoming Call Screen?

Nov 10, 2009

Suppose my application xyz stores a few contacts(just like in the address book/ telephone book). Other contacts are by-default stored in my Android address book. Suppose I receive a call on the handset with my app xyz running in the background. All I need is to fetch the Caller's name from the application xyz and display this name as" Akash Calling..." instead of "+91... calling..." assuming that caller's details are present in the application say, his name and none of his details in the actual address book. Is this feasible.

View 2 Replies View Related

Android :: Handle Existing Instance Root Activity Launching Root Activity From Intent Filter

Apr 3, 2010

I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app. My problem is if I launch my application first through the the android applications screen and then launch my application via opening the Email attachment it creates two instances of my root activity. steps: Launch root activity A, press home Open email attachment, intent filter triggers launches root activity A Is it possible when opening the Email attachment that when the OS tries to launch my application it detects there is already an instance of it running and use that or remove/clear that instance?

View 1 Replies View Related

Android : TabWidget Activity Handling - Does It Create New Activity EveryTime?

Apr 27, 2010

When a TabWidget is using intents to designate the target Activity for each tab, is there any special handling of those Activities on the Activity Stack outside of the default operation? For Instance, if my app has tabs A, B, and C, and I click them in this order--A, B, A, C, A, B--how will the Activity stack change? My understanding of the default operation, if startActivity() is called each time on the intent, would have the Stack keep loading up new instances of the activities: A, AB, ABA, ABAC, ABACA, ABACAB It's hard to believe that's how it works though... Seems like it would be a waste of resources and could be endless. Can anyone tell me how this will actually work?

View 2 Replies View Related

Android : How To Set Sync Interval For Accounts In Pre-froyo

Jun 22, 2010

Does anyone know if there's a way to set the sync interval on accounts via sync adapter in pre-froyo? They've added the API to do so in 2.2 but I'm curious to know if there is a workaround in 2.0-2.1. (My backup plan is the alarm manager) What's odd is there doesn't even seem to be any preset interval either .so accounts are never synced!

View 5 Replies View Related







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