Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-28 Thread TreKing
On Tue, Dec 28, 2010 at 12:42 AM, sjor wrote: > How can I use ACTION_VIEW? Could you give me an example? > http://developer.android.com/guide/topics/manifest/intent-filter-element.html http://developer.android.com/reference/android/content/Intent.html#ACTION_VIEW

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
How can I use ACTION_VIEW? Could you give me an example? You know while on the browser when I start to watch a YouTube video I want to launch my app. On 28 Aralık, 00:55, TreKing wrote: > On Mon, Dec 27, 2010 at 7:08 AM, sjor wrote: > > I want to control every Youtube video. I just don't want wh

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread TreKing
On Mon, Dec 27, 2010 at 7:08 AM, sjor wrote: > I want to control every Youtube video. I just don't want when I > press "share","search", "hq", the username of the owner of the video etc. > my application is launched. > Maybe adding "ACTION_VIEW" to your filter will make a difference? --

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
But, for example when I want to search a video it launchs my application, too * On 27 Aralık, 15:08, sjor wrote: > I want to control every Youtube video. I just don't want when I press > "share","search", "hq", the username of the owner of the video etc. my > application is launched. Only when I

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
I want to control every Youtube video. I just don't want when I press "share","search", "hq", the username of the owner of the video etc. my application is launched. Only when I want to play a video(can be any video in Youtube) my app should be launched. When i write android:scheme="http" and andro

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:49 AM, sjor wrote: > If I know the mime type i can write android:scheme="http", > android:host="m.youtube.com" and android:mimeType="" then it > works. I should find the mime type as i see. No, that will give you the same results as you have today -- you will ge

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
If I know the mime type i can write android:scheme="http", android:host="m.youtube.com" and android:mimeType="" then it works. I should find the mime type as i see. On 27 Aralık, 14:44, Mark Murphy wrote: > On Mon, Dec 27, 2010 at 7:39 AM, sjor wrote: > > So, what is it? I mean, what is

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:39 AM, sjor wrote: > So, what is it? I mean, what is the mime type of a youtube video play > page? Beats me. That would be a fine question for some place that relates to YouTube. But it does not matter -- your video will have the same MIME type as millions of other video

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
So, what is it? I mean, what is the mime type of a youtube video play page? On 27 Aralık, 14:21, Mark Murphy wrote: > On Mon, Dec 27, 2010 at 7:12 AM, sjor wrote: > > Yes, I want to launch my application while using browser. Is it > > exactly unpossible to make something for it? > > Yes. > > > C

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 7:12 AM, sjor wrote: > Yes, I want to launch my application while using browser. Is it > exactly unpossible to make something for it? Yes. > Can I use > android:mimeType for example? All YouTube videos will share a MIME type. -- Mark Murphy (a Commons Guy) http://commo

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
Yes, I want to launch my application while using browser. Is it exactly unpossible to make something for it? Can I use android:mimeType for example? for On 27 Aralık, 13:50, Mark Murphy wrote: > On Mon, Dec 27, 2010 at 6:46 AM, sjor wrote: > > Thank you. So, Is there any other possible way to lau

Re: [android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread Mark Murphy
On Mon, Dec 27, 2010 at 6:46 AM, sjor wrote: > Thank you. So, Is there any other possible way to launch my > application when I open a video on Youtube? If your app is the one that is in control at the time the user says "I want to watch this video", you can start up your own activity yourself. H

[android-developers] Re: Launch Activity with Intent Filter on Right Time

2010-12-27 Thread sjor
Thank you. So, Is there any other possible way to launch my application when I open a video on Youtube? On 27 Aralık, 13:39, Mark Murphy wrote: > That is not possible. The path in both cases are identical. The ? and > stuff to the right is not part of the path. > > > > On Mon, Dec 27, 2010 at 4:5

[android-developers] Re: launch activity from on-screen Camera/Capture button?

2010-02-12 Thread Abhi
Hi Jason, I am not sure if you understood my question correctly... maybe I didn't frame it right :) I am trying to start a background activity, for e.g. the accelerometer from within the Camera app. I want the accelerometer to run while the user is shooting a video. I don't want to build my own

[android-developers] Re: launch activity from on-screen Camera/Capture button?

2010-02-10 Thread Jason Proctor
are you calling the Camera activity from your application with the intent of being called back when the user takes a picture? the conventional way to do this is to start the Camera with startActivityForResult() instead of the regular startActivity(). override onActivityResult() to receive the

[android-developers] Re: launch activity from on-screen Camera/Capture button?

2010-02-10 Thread Abhi
anyone? On Feb 8, 1:24 pm, Abhi wrote: > Hi, > > Is it possible to start an activity from the built-in Camera app after > the user touches the on-screen Capture button? > > Abhi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Launch Activity Call without screen change

2009-09-28 Thread Dianne Hackborn
No, it is not possible, nor is it desirable -- the in-call screen does a lot of special stuff to provide a UI that works well when you are actually talking on the phone (not being impacted by false touches and such). On Mon, Sep 28, 2009 at 7:18 AM, fritzZz wrote: > > It is possibile to start an

[android-developers] Re: launch activity like phone call

2009-09-28 Thread sleith
ok thanks for the explanation. i learn more :D On Sep 28, 8:13 pm, Mark Murphy wrote: > sleith wrote: > > Hi, > > wanna ask again about Mark's first warning: > > " Your service will not be running for very long once the screen turns > > off. The phone will go to sleep, and your service will stop

[android-developers] Re: launch activity like phone call

2009-09-28 Thread Mark Murphy
sleith wrote: > Hi, > wanna ask again about Mark's first warning: > " Your service will not be running for very long once the screen turns > off. The phone will go to sleep, and your service will stop running > when > the phone turns off the CPU. " > > when the phone turns on the CPU again, will

[android-developers] Re: launch activity like phone call

2009-09-28 Thread sleith
Hi, wanna ask again about Mark's first warning: " Your service will not be running for very long once the screen turns off. The phone will go to sleep, and your service will stop running when the phone turns off the CPU. " when the phone turns on the CPU again, will the service restarted automati

[android-developers] Re: launch activity like phone call

2009-09-27 Thread sleith
Hi, thanks Mark for your advice, that's a nice input from you :) On Sep 27, 5:26 pm, Mark Murphy wrote: > sleith wrote: > > i've tested when the phone screen is off, the service is still > > running, but when the service try to start intent, the screen is still > > not shown because it's off. wh

[android-developers] Re: launch activity like phone call

2009-09-27 Thread Mark Murphy
sleith wrote: > i've tested when the phone screen is off, the service is still > running, but when the service try to start intent, the screen is still > not shown because it's off. when the screen is on again, i can see the > intent that was launched by service. > is there any way to make the scr

[android-developers] Re: launch activity like phone call

2009-09-27 Thread sleith
Hi, thanks for your fast response :D how about the questions number 1? i've tested when the phone screen is off, the service is still running, but when the service try to start intent, the screen is still not shown because it's off. when the screen is on again, i can see the intent that was launch

[android-developers] Re: launch activity like phone call

2009-09-27 Thread Dianne Hackborn
On Sun, Sep 27, 2009 at 1:47 AM, sleith wrote: > 2. how to start a service right after downloaded and installed from > android market? > This is deliberately not supported. You can start the service when the user launches your app. -- Dianne Hackborn Android framework engineer hack...@android

[android-developers] Re: Launch Activity

2009-05-06 Thread Mark Murphy
danielececil...@gmail.com wrote: > Ok but i have problem with the startActivity method. > > I created a class ScreenGet witch extends Actity and override > onCreated. > > I write a function main to launch it : > > -- Begin Code > > public class Main > { > pu

[android-developers] Re: Launch Activity

2009-05-06 Thread danielececil...@gmail.com
Ok but i have problem with the startActivity method. I created a class ScreenGet witch extends Actity and override onCreated. I write a function main to launch it : -- Begin Code public class Main { public static void main(String[] args) { Intent i =

[android-developers] Re: Launch Activity

2009-05-05 Thread Mark Murphy
danielececil...@gmail.com wrote: > Hi, > > I try to launch an Activity created with : > > public class MyActivity extends Activity { ... } > > from a java method. > > Somebody can help me please startActivity(new Intent(this, MyActivity.class)); -- Mark Murphy (a Commons Guy) http:/

[android-developers] Re: Launch Activity

2009-05-05 Thread Marco Nelissen
http://developer.android.com/reference/android/app/Activity.html#startActivity(android.content.Intent) On Tue, May 5, 2009 at 8:00 AM, danielececil...@gmail.com < danielececil...@gmail.com> wrote: > > Hi, > > I try to launch an Activity created with : > >public class MyActivity extends A

[android-developers] Re: Launch activity from Web Browser

2009-03-04 Thread Avraham Serour
when the browser sees something that looks like a telefone number you can click it, if it doesn't detect you can select it please note that I didn't explore the browser yet, all I now is from presentetion videos from the android channel from youtube and the like, anyway try out, doesn't this work

[android-developers] Re: Launch activity from Web Browser

2009-03-04 Thread Mattaku Betsujin
Is there a spec for how this should be done inside HTML? Is there any security/permission mechanism? Thanks On Wed, Mar 4, 2009 at 12:15 PM, Avraham Serour wrote: > well, AFAIK the browser already do things like that- Show quoted text - > > > On Wed, Mar 4, 2009 at 10:08 PM, Mattaku Betsujin <

[android-developers] Re: Launch activity from Web Browser

2009-03-04 Thread Avraham Serour
well, AFAIK the browser already do things like that On Wed, Mar 4, 2009 at 10:08 PM, Mattaku Betsujin < mattaku.betsu...@gmail.com> wrote: > Hello, > > > Is there a way to launch an activity from the web page? Like href="dialer:123456">Call me ? > > Thanks > > --~--~-~--~~--