[android-developers] Re: How to start a launcher directly (without FallbackHome) in AndroidN

2017-01-25 Thread kai zhao
Yes, but I fixed it by modifying android framework. There is another way: to add "android:directBootAware="true" in app's AndroidManifest.xml 在 2016年12月6日星期二 UTC+8下午11:55:27,Anatoliy Shuba写道: > > Hi, > > I have faced same issue. > My device doesn't need any lock or encryption but FallbackHome

[android-developers] Re: How to start a launcher directly (without FallbackHome) in AndroidN

2016-12-06 Thread Anatoliy Shuba
Hi, I have faced same issue. My device doesn't need any lock or encryption but FallbackHome still starts. Did you solve that issue for you? Thanks понедельник, 22 августа 2016 г., 7:22:12 UTC-4 пользователь kai zhao написал: > > I try to run AndroidN on my device. The device *doesn't need any

[android-developers] Re: How to start developing??

2013-06-02 Thread Piren
http://developer.android.com/training/index.html On Sunday, June 2, 2013 11:58:39 AM UTC+3, siter wrote: Hey, I am a newbie and have been referring tuts,videos,books on android,but when it comes to developing I cannot start working. As now I am planning to develop an app I don't know from

Re: [android-developers] Re: How to start again if some third party task killer has killed my app ?

2013-03-25 Thread Streets Of Boston
You haven't found it, because it doesn't exist :-) When the OS or a 3rd party app kills your process, it *kills* it forcefully. And if your app's process is killed your app no longer runs and obviously can't process any callbacks/lifecycle-events, etc. On Sunday, March 24, 2013 3:47:17 AM

Re: [android-developers] Re: How to start again if some third party task killer has killed my app ?

2013-03-24 Thread Piren
Actually you should take his suggestion, as it can also solve your issue. Obviously something is wrong when the app is relaunched, you can use that missing information to understand you need to restart your app (i.e, if it crashes because the user login details are missing, just reset the app

Re: [android-developers] Re: How to start again if some third party task killer has killed my app ?

2013-03-22 Thread Amit Dwivedi
The question is not limited only about force close errors. It is more about the sudden death of the application which can happen because of so many reasons. In which I want to handle Force close when user goes to the *Settings - Applications - my App* and clicks *Force Close* and When some task

[android-developers] Re: How to start a new activity using the command of am,but not brought the activity to the front from its associated task?

2013-01-06 Thread lincoln
Is There nobody knows how to resolve the problem? -- 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] Re: How to start again if some third party task killer has killed my app ?

2012-12-29 Thread Nobu Games
I would focus on your force close error and fix that one instead of trying to work around other apps. On Thursday, December 27, 2012 12:02:06 AM UTC-6, Amit Dwivedi wrote: In my App I have several activities which are obviously related to each other. Whenever I am on some activity and the

[android-developers] Re: How to start again if some third party task killer has killed my app ?

2012-12-27 Thread Indicator Veritatis
The link you give is all very good background on tasks and the activity stack (a.k.a. 'back stack), but how does that help the OP understand what is different in third-party task killers and why it has such a different effect on his program? If the third party task killer does it by killing

[android-developers] Re: How to start again if some third party task killer has killed my app ?

2012-12-26 Thread djhacktor
Read this http://developer.android.com/guide/components/tasks-and-back-stack.html On Thursday, 27 December 2012 11:32:06 UTC+5:30, Amit Dwivedi wrote: In my App I have several activities which are obviously related to each other. Whenever I am on some activity and the user kills my app by

[android-developers] Re: How to start a new activity using the command of am,but not brought the activity to the front from its associated task?

2012-12-25 Thread lincoln
Add environment: GT-N7000,OS version 2.3.5/4.0.3 modify the am command to adb shell am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity -f 0x34288000 -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: How to start service at boot time?

2012-12-11 Thread Piren
have you tried searching for a solution before posting? i've done exactly that and the first 5 results had complete solutions on how to achieve exactly what you want... On Tuesday, December 11, 2012 4:14:05 PM UTC+2, Bajrang Asthana wrote: Hi, I want to know how to start service at boot

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread Seshu
Hi HK, U cannot overlap another activity in main activity. still if u want means then use fragments. On Sep 4, 11:34 am, HK android.out.th...@gmail.com wrote: I think you mean: popup.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); I have tried

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread HK
Hi Seshu, This is not about overlap. When I start activity B, then onPause of A shouldn't be called. As simple as that. On Tuesday, September 4, 2012 4:13:50 PM UTC+9, Seshu wrote: Hi HK, U cannot overlap another activity in main activity. still if u want means then use fragments.

Re: [android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread Parthi K
hi dude i dont know exactly y u ill try thread concept . On Tue, Sep 4, 2012 at 12:47 PM, HK android.out.th...@gmail.com wrote: Hi Seshu, This is not about overlap. When I start activity B, then onPause of A shouldn't be called. As simple as that. On Tuesday, September 4, 2012

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread falcon74
Can't you use 'Notifications' ? On Tuesday, September 4, 2012 10:56:20 AM UTC+5:30, HK wrote: Hi, I have activity A running. I want to start my new activity B so that activity A is also running. Is this possible ? Normally, when activity B is started, activity A is put on hold and

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread arun singh
Hi, No, it's not possible to run two activities simultaneously. one will be paused that means onPaused() will be called. So whatever you want to do with these two activities, do that with some other mechanism. Thanks, Arun On Tuesday, September 4, 2012 10:56:20 AM UTC+5:30, HK wrote: Hi,

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread HK
No. On Tuesday, September 4, 2012 5:26:32 PM UTC+9, falcon74 wrote: Can't you use 'Notifications' ? On Tuesday, September 4, 2012 10:56:20 AM UTC+5:30, HK wrote: Hi, I have activity A running. I want to start my new activity B so that activity A is also running. Is this possible ?

Re: [android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread HK
What do you mean by thread concept ? On Tuesday, September 4, 2012 4:29:39 PM UTC+9, parthi wrote: hi dude i dont know exactly y u ill try thread concept . On Tue, Sep 4, 2012 at 12:47 PM, HK android@gmail.com javascript:wrote: Hi Seshu, This is not about overlap. When I start

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread HK
Hi, what do you mean by some other mechanism ? On Tuesday, September 4, 2012 5:58:23 PM UTC+9, arun singh wrote: Hi, No, it's not possible to run two activities simultaneously. one will be paused that means onPaused() will be called. So whatever you want to do with these two activities,

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread HK
I am just wondering if I can display an alert dialog from a service and that service has the handle(Context variable) of activity A. This is how: Activity A is running. Activity A starts service S and passes the Context of Activity A. Service S uses Activity A's context to display alert dialog.

[android-developers] Re: how to-Start new activity with also current activity running

2012-09-04 Thread skink
HK wrote: I am just wondering if I can display an alert dialog from a service and that service has the handle(Context variable) of activity A. This is how: Activity A is running. Activity A starts service S and passes the Context of Activity A. Service S uses Activity A's context to

[android-developers] Re: How do start ROM Development

2012-07-29 Thread lbendlin
Step 1: Go to xda-developers.com On Saturday, July 28, 2012 3:14:20 PM UTC-4, Shashikant Rudrawadi wrote: If I want to create a custom made ROM for certain device where do I Start from? What do I need? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How to start my anroid developer carrier and from where to start?

2012-01-02 Thread Terry
You start here : http://developer.android.com/index.html Good luck! Terry On 30 Des 2011, 05:20, Vansh vans...@gmail.com wrote: I m New to this one, so need guidance for starting my anroid carrier plz...help -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: How to start activity without creating new one?

2011-10-08 Thread Goodwin
I think the Activity is destroyed. so, It calls onCreate() everytime. On Oct 6, 8:55 pm, Charley Smith sfaffila...@gmail.com wrote: I tried to set attribute android:launchMode=singleTask for calling Activity, but it still does not works as I expect I need that method onCreate(Bundle bundle)

[android-developers] Re: how to start a activity using this menu structor

2011-09-12 Thread Raziel23x
he method intent(String) is undefined for the type LiquidBackgroundsFreeActivity On Sep 12, 12:40 pm, TreKing treking...@gmail.com wrote: On Mon, Sep 12, 2011 at 11:27 AM, Raziel23x raziel...@gmail.com wrote: I get a error when i add this to the code You want us to guess what error you're

Re: [android-developers] Re: how to start a activity using this menu structor

2011-09-12 Thread TreKing
On Mon, Sep 12, 2011 at 12:07 PM, Raziel23x raziel...@gmail.com wrote: he method intent(String) is undefined for the type LiquidBackgroundsFreeActivity It sounds like you need to learn Java before you starting working on your Android App. Find a good book or tutorial and learn at least the

[android-developers] Re: how to start

2011-08-01 Thread vipin saroha
hii rambabu thanx for the help dude.. u suggest me that book of RITO MEIER. actually icould not find it in the market as well on the internet where i can download it could u plz send me the link of pdf of that book if u know. vipin -- You received this message because you are subscribed to

[android-developers] Re: How to start an activity from a service

2010-10-06 Thread Doug
startActivity works the same in a service as it does in an activity (Context vs. Activity argument not withstanding), and I don't think it's gauche to launch an activity from your service. In many cases, you need to launch an activity from a service when it needs attention. Doug -- You

Re: [android-developers] Re: How to start an activity from a service

2010-10-06 Thread Prakash Iyer
would you be able to use the NotificationManager and let the user start the activity? if possible that might be less intrusive... On Wed, Oct 6, 2010 at 2:23 AM, Doug beafd...@gmail.com wrote: startActivity works the same in a service as it does in an activity (Context vs. Activity argument

[android-developers] Re: How to start an activity from a service

2010-10-05 Thread Bret Foreman
I might be bad manners to start an Activity out of the blue like that, but here's how you do it: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClass( myContext , ActivityToLaunch.class ); startActivity( intent ); Note that the first arg

[android-developers] Re: how to start a stop activity

2010-09-21 Thread Bret Foreman
I was in a relationship like this once... You want to make it such that when a user explicitly navigates away from your app, it pops right back up 3 seconds later? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: How to start an activity from the Service

2010-09-03 Thread String
On 3 Sep, 00:31, Prateek finch...@gmail.com wrote: i have tried intent but doesnot seems to get though it . Then you're not using the Intent correctly, because that is the correct approach. Intents can be finicky beasts, requiring several pieces to all be correct before they'll do what you

[android-developers] Re: How to start an activity from the Service

2010-09-03 Thread Pent
Use an intent with a set component. You need flag LAUNCHED_FROM_BACKGROUND or whatever it is and NEW_TASK if I remember right. Look in the log and see what the problem is. Pent On Sep 3, 8:31 am, Prateek finch...@gmail.com wrote: i have a launcher activity which gets activated everytime i

[android-developers] Re: How to start an activity from the Service

2010-09-03 Thread Namrata
I think just FLAG_ACTIVITY_NEW_TASK would work.. On Sep 3, 2:59 pm, Pent tas...@dinglisch.net wrote: Use an  intent with a set component. You need flag LAUNCHED_FROM_BACKGROUND or whatever it is and NEW_TASK if I remember right. Look in the log and see what the problem is. Pent On Sep

[android-developers] Re: How to start application when bootup complete of emulator

2010-09-03 Thread SREEHARI
Hi Sohan, I tried the same thing; It is working fine. This is the code I used... package com.android.BootComplete; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootComplete extends BroadcastReceiver { @Override

[android-developers] Re: How to start a animation when activity starts

2010-08-23 Thread cindy
Correct way to do it: put into onWindowFocusChanged(boolean a) it works!! On Aug 21, 3:05 pm, cindy ypu01...@yahoo.com wrote: no it is not working: In android document, it says: It's important to note that the start() method called on the AnimationDrawable cannot be called during the

[android-developers] Re: How to start a animation when activity starts

2010-08-21 Thread skink
On Aug 21, 8:48 pm, cindy ypu01...@yahoo.com wrote: Hi Friend, I need to start a animation automatically for a activity without any user clicking. I know when activity is not ready, animation could not start. I used a thread to start it, however it is still not working. How could I know

[android-developers] Re: How to start a animation when activity starts

2010-08-21 Thread cindy
no it is not working: In android document, it says: It's important to note that the start() method called on the AnimationDrawable cannot be called during the onCreate() method of your Activity, because the AnimationDrawable is not yet fully attached to the window. If you want to play the

[android-developers] Re: How to start the Process to add a new Languge(Locale+Fonts) to the Android?

2010-08-04 Thread Lado Kumsiashvili
What is at least starting with adding goergian glyphs to the Android Fonts? How can I support you for it? On 28 Jul., 02:21, Dianne Hackborn hack...@android.com wrote: Sorry there is no process here.  Someone making a device can generate and include localizations for whatever countries they are

Re: [android-developers] Re: How to start the Process to add a new Languge(Locale+Fonts) to the Android?

2010-08-04 Thread Mark Murphy
On Wed, Aug 4, 2010 at 6:53 PM, Lado Kumsiashvili herrl...@gmail.com wrote: What is at least starting with adding goergian glyphs to the Android Fonts? How can I support you for it? Those fonts were developed by Ascender; official modifications to those fonts probably have to be made by them.

[android-developers] Re: How to start the Process to add a new Languge(Locale+Fonts) to the Android?

2010-07-28 Thread Lado Kumsiashvili
Hi Dianne, Sorry, I've posted my answer accidentaly via replay an Autor. Could you please post my quastion here. I can not restore it anymore :( On 28 Jul., 02:21, Dianne Hackborn hack...@android.com wrote: Sorry there is no process here.  Someone making a device can generate and include

[android-developers] Re: how to start animation automatically

2010-07-08 Thread metal mikey
Unless you've ensured that anim_record is an AnimationDrawable, your attempts to start an animation are doomed. Aside from that, I've encountered some buggy behaviour regarding the starting of AnimationRecordables within onCreate before. I suggest you try using a Handler to start the animation

[android-developers] Re: how to start animation automatically

2010-07-08 Thread cindy
any sample code? I have read some information online. It suggests to use window focus event. Does any one has experience before? On Jul 7, 11:20 pm, metal mikey coref...@gmail.com wrote: Unless you've ensured that anim_record is an AnimationDrawable, your attempts to start an animation are

[android-developers] Re: how to start application in last viewed activity in previous session

2010-04-21 Thread greg
Thanks. I was incorrectly focused on avoiding an intermediate Activity. Your approach seems simpler to implement and I suspect the delay due to the creation of the intermediate Activity will be too small to notice. On Apr 21, 2:42 pm, ~ TreKing treking...@gmail.com wrote: On Wed, Apr 21, 2010

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-03-26 Thread Matt Kanninen
Sorry about resurrecting an old thread, but really? All resources from all APK's are public to all APK's at all times? Could yall post a new blog post about how to write secure Android applications? ;) How about assets? And whats the deal with the stuff that ends up in your assets folder that

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-03-26 Thread Dianne Hackborn
On Fri, Mar 26, 2010 at 4:22 PM, Matt Kanninen mathias...@gmail.com wrote: Sorry about resurrecting an old thread, but really? All resources from all APK's are public to all APK's at all times? Yes. Could yall post a new blog post about how to write secure Android applications? ;) One

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with sharp pointy

Re: [android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread Mark Murphy
AuxOne wrote: On the whole, that's not a good idea. Popping up an Activity in the middle of whatever the user is doing will not be popular. There are certain circumstances where this is appropriate -- incoming VOIP calls, etc. -- but should not be done in general. Users will attack you with

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
Sorry if I seem confused... Call getContentResolver() in your Service. I'm also doing things like .sendBroadcast() to refresh the photo gallery, .openFileInput() from the Activity. So doesn't that mean GetContentResolver() won't work for me? Your example code has the Alarm scheduled from

Re: [android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread Mark Murphy
AuxOne wrote: Like, what If the phone boots up and that starts the Alarm, but then the app is closed and manually restarted. Won't the previous alarm still be in memory? No, outstanding alarms are flushed on a reboot. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: How to start Activity from Service (if not already started)?

2010-03-19 Thread AuxOne
Is there any advantages / disadvantages to having the Service start the AlarmManager, as opposed to the AlarmManager starting the Service? I though Services were more robust. On Mar 19, 10:50 am, Mark Murphy mmur...@commonsware.com wrote: AuxOne wrote: Like, what If the phone boots up and

[android-developers] Re: How to start another application from my activity.

2010-02-21 Thread aishwarya
Thanks a lot. It worked. Can i provide some more specific intents to the maps application? I am trying the geo: _lat _long So what other parameters can it take apart from latitude and longitude. can i send a search query (say a pointer to all the medical stores in the vicinity) to the map

Re: [android-developers] Re: How to start another application from my activity.

2010-02-21 Thread Mark Murphy
aishwarya wrote: Thanks a lot. It worked. Can i provide some more specific intents to the maps application? I am trying the geo: _lat _long So what other parameters can it take apart from latitude and longitude. can i send a search query (say a pointer to all the medical stores in the

[android-developers] Re: How to start application after pressing particular key?

2010-02-21 Thread pramod.deore
Hello Sir, Thanks for reply. Actually I am developing one application, in which suppose I call on '000' number then sms has to be sent some predefined number. On Feb 21, 6:05 pm, Mark Murphy mmur...@commonsware.com wrote: pramod.deorewrote: How can I start my android application after pressing

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-16 Thread jotobjects
On Feb 15, 5:01 pm, Mark Murphy mmur...@commonsware.com wrote: jotobjects wrote: Are the resources of the another application package essentially public - can any application call Context.createPackageContext() to get the context of a different application? Yes. It shocked the heck out

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-16 Thread Mark Murphy
jotobjects wrote: For instance with a Context you can get lists of databases and files and delete them! No, you can't. Linux file permissions will prevent this. Getting access to MetaData via PackageManager seems reasonable if you are aware that this is how it works, but the rationale for

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-16 Thread Dianne Hackborn
On Mon, Feb 15, 2010 at 4:37 PM, jotobjects jotobje...@gmail.com wrote: Are the resources of the another application package essentially public - can any application call Context.createPackageContext() to get the context of a different application? Yep all resources are public. This allows

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-15 Thread sai ongoleee
download free important softwares,movies,games many more http://www.moreutilities.blogspot.com/ On Sat, Feb 13, 2010 at 11:59 PM, Menny menn...@gmail.com wrote: So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource)

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-15 Thread jotobjects
On Feb 13, 11:36 am, Dianne Hackborn hack...@android.com wrote: This sounds much more complicated than you need.  If you just want to load resources from another .apk, you don't need any code in it at all -- just use Context.createPackageContext() to get the context for the other package and

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-15 Thread Mark Murphy
jotobjects wrote: Are the resources of the another application package essentially public - can any application call Context.createPackageContext() to get the context of a different application? Yes. It shocked the heck out of me when I realized it. It's possible there are some limits, but I'm

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Dianne Hackborn
You can follow the same model we use for input methods, app widgets, live wallpapers, and other things (none of which are fundamentally kinds of things in the platform, but built on top of the fundamental generic activity, receiver, service, and provider components): 1. Pick the kind of component

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Menny
I'll look at the examples, and try that. Thanks. On Feb 14, 11:07 am, Dianne Hackborn hack...@android.com wrote: You can follow the same model we use for input methods, app widgets, live wallpapers, and other things (none of which are fundamentally kinds of things in the platform, but built

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Mark Murphy
Menny wrote: So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This sounds OK. The only problem is how to query for packages which have this resource? I'm not sure if there is

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Menny Even Danan
OK, thanks. I'll try that. On Sun, Feb 14, 2010 at 14:15, Mark Murphy mmur...@commonsware.com wrote: Menny wrote: So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-14 Thread Mark Murphy
Menny Even Danan wrote: OK, thanks. I'll try that. Actually, I hadn't seen Ms. Hackborn's response before replying -- definitely consider following her guidance in this area. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
OK. I'll be explain my needs: I'm the author of AnySoftKeyboard (http:// softkeyboard.googlecode.com). The reason I made this keyboard, is to provide alternative layouts in the on-screen keyboard (e.g., Hebrew, Russian, DVORAK, etc. and of course, qwerty). But the keyboard APK gets bloated with

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Dianne Hackborn
This sounds much more complicated than you need. If you just want to load resources from another .apk, you don't need any code in it at all -- just use Context.createPackageContext() to get the context for the other package and load its resources from there. And if you don't need any UI, and

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
I don't know what the other ContentProviders URI are. They can be anything, I want to release my keyboard service, and then release layouts as I need. This means that, somehow, the keyboard service needs to know which layout packages are installed on the device, and what are the URI of their

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Mark Murphy
Menny wrote: I don't know what the other ContentProviders URI are. Then don't use a ContentProvider. Follow Ms. Hackborn's directions instead and use Context.createPackageContext() and access the other APKs' resources that way. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Mark Murphy
Menny wrote: I don't know what the other ContentProviders URI are. They can be anything, I want to release my keyboard service, and then release layouts as I need. This means that, somehow, the keyboard service needs to know which layout packages are installed on the device, and what are the

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This sounds OK. The only problem is how to query for packages which have this resource? I can still create an Activity which have

[android-developers] Re: How to start up the native gallery app?

2009-12-07 Thread pcm2a
I eventually found two spectacular ways to get the list of applications on the phone (including the gallery). Both of these methods are from Android source code! Method one, if you want the list of applications in a list to iterate through: PackageManager manager =

[android-developers] Re: How to start up the native gallery app?

2009-11-27 Thread pcm2a
Maybe I'm asking the totally wrong question here: On any android phone I can press the up arrow and get a list of all the built in and install application. What is the recommended way to get a list of all these items, their icons, and their start intents. Current'y I'm using the PackageManager

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-27 Thread Mark Murphy
pcm2a wrote: Maybe I'm asking the totally wrong question here: On any android phone I can press the up arrow and get a list of all the built in and install application. What is the recommended way to get a list of all these items, their icons, and their start intents. Current'y I'm using

[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
Why would it break in the future? The main function of my app relies on the user to be able to get a list of install applications. Think of like an application like App Task Manager that shows you the installed apps and allows you to uninstall them. Running appInfo.getInstalledApplications(0)

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread Dianne Hackborn
It doesn't even work today, because different devices have the gallery implemented in different places. DO NOT USE PACKAGE NAMES. The only supported way to launch other applications is through the officially published intent protocols, such as VIEW with an image to show an image. On Thu, Nov

[android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread pcm2a
I don't need to start up one image, what I need to start up is the gallery application. I'm not wanting to choose one image or return an image back to my application. I just want the gallery app to start up just like you clicked the icon. I do have some good news that I have figured out a way to

Re: [android-developers] Re: How to start up the native gallery app?

2009-11-26 Thread Dianne Hackborn
Okay I am going to say once more, and I am done with this thread: do not do this. Your app -will- break on different devices. You have been warned. Please don't complain about having to deal with your app breaking when it does, because you are making assumptions about very fragile

[android-developers] Re: How to start a service without using any activity??

2009-10-19 Thread pink 444
My manifest file is as follows and in which i want to start my service. application android:icon=@drawable/icon android:label=@string/ app_name android:enabled=true service android:enabled=true android:name=.MyService intent-filter

[android-developers] Re: How to start a service without using any activity??

2009-10-18 Thread pink 444
I am starting my service in an Activity with StartService() method.But i don't know how to start service from application.Thus whenever my activity is destroyed and rebuilt new service is created. How can i create/start my service from other than Activity? On Oct 18, 5:43 am,

[android-developers] Re: How to start a service without using any activity??

2009-10-17 Thread Farproc
You can try to code, and then post the problem you encounter. On 10月17日, 下午1时10分, pink 444 pnk...@gmail.com wrote: Thanks for your replay. Can you give me a example . On Oct 16, 2:55 pm, Farproc farp...@gmail.com wrote: First, you do not have to start/stop aservicefrom a Activity.

[android-developers] Re: How to start a service without using any activity??

2009-10-16 Thread André
It solely depends upon your implementation whether a service starts, shuts down or restarts; regardless whether you do this from your application or an activity. In other words you shouldn't shut down the service once the activity finishes. This will keep it running and next time your activity

[android-developers] Re: How to start a service without using any activity??

2009-10-16 Thread Farproc
First, you do not have to start/stop a service from a Activity. You can do that in anywhere via a Context object(which is very easy to retrieve). If you want to start a service, just call Context.startService(), form then on the service will keep running in background until you explicitly

[android-developers] Re: How to start a service without using any activity??

2009-10-16 Thread pink 444
Thanks for your replay. Can you give me a example . On Oct 16, 2:55 pm, Farproc farp...@gmail.com wrote: First, you do not have to start/stop a service from a Activity. You can do that in anywhere via a Context object(which is very easy to retrieve). If you want to start a service,

[android-developers] Re: How to start debugger on ADP1 device rather than AVD

2009-09-18 Thread WoodManEXP
The minSDKVersion of the app is 3 (1.5) and the ADP1 and the AVD are each at the same level. It's all at 3 (1.5). Changing to the manual confuguration seems to have been the answer. Thank you! On Sep 18, 12:30 am, Raphael r...@android.com wrote: What is the minSdkVersion for your app? Which

[android-developers] Re: How to start debugger on ADP1 device rather than AVD

2009-09-17 Thread Raphael
What is the minSdkVersion for your app? Which android does the avd that starts run? For example if you have minSdkVersion=4 in your app's manifest, ADT will want to locate a system for android-4, but your device only runs android-3 (aka 1.5). One workaround is to edit your launch configuration

[android-developers] Re: How to Start application On-Install

2009-06-18 Thread Dianne Hackborn
This is working as intended, and there is no plan at this point to change it. On Wed, Jun 17, 2009 at 10:49 PM, Raj lal.ra...@gmail.com wrote: Thanks erictcrook for the idea, but it wont work unless and untill you start the application manually once. Hi Dianne, so there is no way out in

[android-developers] Re: How to Start application On-Install

2009-06-18 Thread Raj
Thanks a lot Dianne for the reply. So I will take that - there is no way out in Android for the application to run-on-install as of now. Regards, Raj On Jun 18, 1:34 pm, Dianne Hackborn hack...@android.com wrote: This is working as intended, and there is no plan at this point to change it.

[android-developers] Re: How to Start application On-Install

2009-06-17 Thread erictcr...@gmail.com
I'm not sure, but I believe the following code may help. put the folling in your AndroidManifest.xml as a child of your Application tag receiver android:name=com.ericcrook.InstallReceiver android:enabled=true intent-filter action

[android-developers] Re: How to Start application On-Install

2009-06-17 Thread Dianne Hackborn
We deliberately don't send this broadcast to an app when it is first installed (as of cupcake you -will- get the broadcast when being updated from a previous install). It is generally up to the user to launch your app when they want to. On Tue, Jun 16, 2009 at 12:11 PM, erictcr...@gmail.com

[android-developers] Re: How to Start application On-Install

2009-06-17 Thread MrSnowflake
I think that's a very good reason not to send it to a newly installed app. Though you could give the user the option to start the app immediately after install, with a button for example. On Jun 17, 8:55 pm, Dianne Hackborn hack...@android.com wrote: We deliberately don't send this broadcast to

[android-developers] Re: How to Start application On-Install

2009-06-17 Thread Dianne Hackborn
There is a button in market to launch the app. So you see in the status bar that the download is down, select the notification, now you are in market about the app saying it is installed, and you can press the button there to launch the app for the first time. On Wed, Jun 17, 2009 at 12:05 PM,

[android-developers] Re: How to Start application On-Install

2009-06-17 Thread Raj
Thanks erictcrook for the idea, but it wont work unless and untill you start the application manually once. Hi Dianne, so there is no way out in Android for the application to run on install, correct? But I feel that this feature should have been there, as it is available in all other mobile

[android-developers] Re: How to start the intent contacts with a query

2009-06-04 Thread prihei
Thank you. If i only use: Intent intent = new Intent(Intent.ACTION_SEARCH); intent.putExtra(SearchManager.QUERY, Heiko); startActivity(intent); I get a Windo Popup to choose a action: Complete action using: - Mail - Android Market - App/Search/Query/Search Result - Browser -

[android-developers] Re: How to start other activity by code

2009-06-02 Thread Mark Murphy
Augustin.CL wrote: Dear all, I want to start the activity owned by other application. I know we could construct the Intent(setAction,setClass), and then call context.startActivity(intent) to start a new activity owned by the same application. When we start the activity not owned

[android-developers] Re: How to start other activity by code

2009-06-02 Thread Augustin.CL
Thanks for your help. I also find I could use the other method provided by Intent to achieve my goal. Here is the method. intent.setClassName(String packageName,String className); We could replace the orginal one with the following. i.setClassName

[android-developers] Re: How to start serial interface(RS232) code in Android

2009-06-01 Thread n0x
Hi dinozaur, the google g1 have a seriel port on his special usb-port, but as far as i know there is no android api. The USB Port, the msm7k chip in the HTC G1, has USB host capabilities but there are no drivers in the linux kernel. When you know a solution i very interested ... best regards

[android-developers] Re: How to start the intent contacts with a query

2009-05-15 Thread Jeff Sharkey
The ACTION_SEARCH intent doesn't take a data Uri, so new Intent(Intent.ACTION_SEARCH) should be enough. j On Thu, May 14, 2009 at 9:02 AM, prihei pri...@googlemail.com wrote: Hello, how can i open the contact view with a query? I try this: Intent intent = new Intent(Intent.ACTION_SEARCH,

[android-developers] Re: How to start serial interface(RS232) code in Android

2009-04-28 Thread dinozaur
Hello! I have quite difficult qestion... I have HTC G1 with android on board and I want to use an usb-RS232 converter to send text commands to Atmega uC. Do you have any ideas how do it? a hava one: use command cat file_nameport or reading cat file_name... but this works on pc, i will try it on

  1   2   >