[android-beginners] Re: Is Browsing While Calling Impossible? Why?

2010-06-08 Thread Abhi
How can we use google maps while on call on the Verizon network then?

On Jun 8, 2:40 pm, Mark Murphy  wrote:
> Daniel Favela wrote:
> > - Is it up to Android?  Can I, as a developer, overcome this limitation?
>
> No, it is fundamental to CDMA. GSM phones (T-Mobile, AT&T, and most of
> the rest of the civilized world) due not suffer from this limitation.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] MediaController in MediaPlayer

2010-06-03 Thread Abhi
Hello,

I am using MediaPlayer to build a Video player for playing local video
files. However, I don't know how to enable MediaController for my
player. I want the media control buttons that pop up when you touch
the video surface.

Can anyone help me out please?

Thanks,

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] getDuration() in VideoView returns -1 !!!

2010-03-26 Thread Abhi
Hi,

Has anyone tried using the getDuration() method in VideoView? It
returns a -1 for me always. Is there a way around?

Thanks,

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-beginners] Video splitter

2010-03-11 Thread Abhi
I want to create a video splitter that uses the videos that reside on
the SD card and lets you split the video and store as separate files
on the SD Card. Are there any APIs to enable this or I would need to
use something like ffmpeg?

Any suggestions?

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] How to save a WiFi connection?

2010-02-23 Thread Abhi
Hi,

I have written an app that programmatically scans for open WiFi
networks and connects to the one that has been hard-coded in the app
code. For e.g., I have a home network, SSID: Abhi and is secured as
WPA-Personal with a Passkey. The passkey for the above network has
been saved within the App, so when it looks for networks the first
time and comes across the SSID 'Abhi', it connects with the passkey.
However, the problem is, once I am done using the connection and
switch WiFi off and back on again, I don't get connected automatically
to 'Abhi' which would happen if I manually add the WiFi network going
into settings and so on.

Can someone help me figure this out?

Thanks,

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Calling activity from inside a thread?

2010-02-18 Thread Abhi
Hi,

I want to either use WiFiManager to toggle wifi from inside a thread
or call another activity to do this, whichever is possible. I tried
using the wifimanager class inside the thread but it didn't work.
Could anyone tell me how to call an activity using Intents from inside
a thread?

Thanks,

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-17 Thread Abhi
I am not sure what you mean by 'modifying it on the SDK'. I tried
using it inside my application and used KEY_CAMERA instead.

I might need a little more understanding of what you tring to say...
thanks for ur help

Abhi

On Feb 16, 6:54 pm, Rogério de Souza Moraes 
wrote:
> Hi Abhi,
>
> the code that I sent to you, you tried to use it inside your appplication,
> or you modified it on the SDK?
> I need to see if the Camera Button can be overide. If not, maybe you need to
> change the behavior of the button in the sdk.
> I am traveling right now, but as soon as I back to work, I will check the
> code of the Android and see if I can give you more tips.
>
> Regards,
>
> Rogerio
>
> 2010/2/16 Abhi 
>
> > Hi Roger,
>
> > I am working on a Video Recorder App. But the problem with this App is
> > that it doesn't let me shoot high res videos on the Droid when
> > compared to what the built-in Camcorder App lets you do. The basic
> > idea is to start the accelerometer when the user starts the video
> > recording and stop it when the video is stopped. But the video quality
> > is bad as I said when I try to build my own recorder. Now, I am trying
> > to figure out if I can use the built-in Camcorder App and somehow
> > trigger the accelerometer when the user hits the Record button (on-
> > screen or the hard button on the phone). This is the reason why I have
> > been trying to get an answer to the above question. Is that something
> > you can help me on?
>
> > Thanks,
>
> > Abhi
>
> > On Feb 10, 9:31 am, Rogério de Souza Moraes 
> > wrote:
> > > Hi Abhi,
>
> > > can you paste the code? Maybe I can help better with more information.
>
> > > Regards,
>
> > > Rogerio
>
> > > 2010/2/10 Abhi 
>
> > > > Tried this... doesn't work :(
>
> > > > On Feb 5, 1:36 pm, Abhi  wrote:
> > > > > Great! I will try this out right away.
>
> > > > > Thanks Roger. Appreciate it.
>
> > > > > Abhi
>
> > > > > On Feb 5, 12:47 pm, Rogério de Souza Moraes 
> > > > > wrote:
>
> > > > > > HiAbhi,
>
> > > > > > it is possible. You can do like this:
>
> > > > > >     private class ExpandedDialog extends Dialog {
> > > > > >         ExpandedDialog(Context context) {
> > > > > >             super(context,
> > > > > > com.android.internal.R.style.Theme_Light_NoTitleBar);
> > > > > >         }
>
> > > > > >         @Override
> > > > > >         public boolean dispatchKeyEvent(KeyEvent event) {
> > > > > >             boolean down = event.getAction() ==
> > KeyEvent.ACTION_DOWN;
> > > > > >             switch (event.getKeyCode()) {
> > > > > >             case KeyEvent.KEYCODE_BACK:
> > > > > >                 if (!down) {
> > > > > >                     StatusBarService.this.deactivate();
> > > > > >                 }
> > > > > >                 return true;
> > > > > >             }
> > > > > >             return super.dispatchKeyEvent(event);
> > > > > >         }
> > > > > >     }
>
> > > > > > This example is inside the file StatusBarService.java in SDK. Here,
> > > > this
> > > > > > class gets the event when the user presses the back button and
> > execute
> > > > his
> > > > > > function.
>
> > > > > > Regards,
>
> > > > > > Rogerio
>
> > > > > > 2010/2/5Abhi
>
> > > > > > > Hi,
>
> > > > > > > Is it possible to launch another activity or invoke a sensor
> > (e.g.
> > > > > > > accelerometer) on the press of capture or video record button?
>
> > > > > > >Abhi
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > > Groups "Android Beginners" group.
>
> > > > > > > NEW! Try asking and tagging your question on Stack Overflow at
> > > > > > >http://stackoverflow.com/questions/tagged/android
>
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > android-beginners+unsubscr...@googlegroups.com
> > 
>
> > > > 
> > &g

[android-beginners] Re: Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-16 Thread Abhi
Hi Roger,

I am working on a Video Recorder App. But the problem with this App is
that it doesn't let me shoot high res videos on the Droid when
compared to what the built-in Camcorder App lets you do. The basic
idea is to start the accelerometer when the user starts the video
recording and stop it when the video is stopped. But the video quality
is bad as I said when I try to build my own recorder. Now, I am trying
to figure out if I can use the built-in Camcorder App and somehow
trigger the accelerometer when the user hits the Record button (on-
screen or the hard button on the phone). This is the reason why I have
been trying to get an answer to the above question. Is that something
you can help me on?

Thanks,

Abhi

On Feb 10, 9:31 am, Rogério de Souza Moraes 
wrote:
> Hi Abhi,
>
> can you paste the code? Maybe I can help better with more information.
>
> Regards,
>
> Rogerio
>
> 2010/2/10 Abhi 
>
> > Tried this... doesn't work :(
>
> > On Feb 5, 1:36 pm, Abhi  wrote:
> > > Great! I will try this out right away.
>
> > > Thanks Roger. Appreciate it.
>
> > > Abhi
>
> > > On Feb 5, 12:47 pm, Rogério de Souza Moraes 
> > > wrote:
>
> > > > HiAbhi,
>
> > > > it is possible. You can do like this:
>
> > > >     private class ExpandedDialog extends Dialog {
> > > >         ExpandedDialog(Context context) {
> > > >             super(context,
> > > > com.android.internal.R.style.Theme_Light_NoTitleBar);
> > > >         }
>
> > > >         @Override
> > > >         public boolean dispatchKeyEvent(KeyEvent event) {
> > > >             boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
> > > >             switch (event.getKeyCode()) {
> > > >             case KeyEvent.KEYCODE_BACK:
> > > >                 if (!down) {
> > > >                     StatusBarService.this.deactivate();
> > > >                 }
> > > >                 return true;
> > > >             }
> > > >             return super.dispatchKeyEvent(event);
> > > >         }
> > > >     }
>
> > > > This example is inside the file StatusBarService.java in SDK. Here,
> > this
> > > > class gets the event when the user presses the back button and execute
> > his
> > > > function.
>
> > > > Regards,
>
> > > > Rogerio
>
> > > > 2010/2/5Abhi
>
> > > > > Hi,
>
> > > > > Is it possible to launch another activity or invoke a sensor (e.g.
> > > > > accelerometer) on the press of capture or video record button?
>
> > > > >Abhi
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Beginners" group.
>
> > > > > NEW! Try asking and tagging your question on Stack Overflow at
> > > > >http://stackoverflow.com/questions/tagged/android
>
> > > > > To unsubscribe from this group, send email to
> > > > > android-beginners+unsubscr...@googlegroups.com
> > 
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-beginners?hl=en-Hide quoted
> > text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-10 Thread Abhi
Tried this... doesn't work :(



On Feb 5, 1:36 pm, Abhi  wrote:
> Great! I will try this out right away.
>
> Thanks Roger. Appreciate it.
>
> Abhi
>
> On Feb 5, 12:47 pm, Rogério de Souza Moraes 
> wrote:
>
>
>
> > HiAbhi,
>
> > it is possible. You can do like this:
>
> >     private class ExpandedDialog extends Dialog {
> >         ExpandedDialog(Context context) {
> >             super(context,
> > com.android.internal.R.style.Theme_Light_NoTitleBar);
> >         }
>
> >         @Override
> >         public boolean dispatchKeyEvent(KeyEvent event) {
> >             boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
> >             switch (event.getKeyCode()) {
> >             case KeyEvent.KEYCODE_BACK:
> >                 if (!down) {
> >                     StatusBarService.this.deactivate();
> >                 }
> >                 return true;
> >             }
> >             return super.dispatchKeyEvent(event);
> >         }
> >     }
>
> > This example is inside the file StatusBarService.java in SDK. Here, this
> > class gets the event when the user presses the back button and execute his
> > function.
>
> > Regards,
>
> > Rogerio
>
> > 2010/2/5Abhi
>
> > > Hi,
>
> > > Is it possible to launch another activity or invoke a sensor (e.g.
> > > accelerometer) on the press of capture or video record button?
>
> > >Abhi
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Beginners" group.
>
> > > NEW! Try asking and tagging your question on Stack Overflow at
> > >http://stackoverflow.com/questions/tagged/android
>
> > > To unsubscribe from this group, send email to
> > > android-beginners+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-beginners?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-05 Thread Abhi
Great! I will try this out right away.

Thanks Roger. Appreciate it.

Abhi

On Feb 5, 12:47 pm, Rogério de Souza Moraes 
wrote:
> Hi Abhi,
>
> it is possible. You can do like this:
>
>     private class ExpandedDialog extends Dialog {
>         ExpandedDialog(Context context) {
>             super(context,
> com.android.internal.R.style.Theme_Light_NoTitleBar);
>         }
>
>         @Override
>         public boolean dispatchKeyEvent(KeyEvent event) {
>             boolean down = event.getAction() == KeyEvent.ACTION_DOWN;
>             switch (event.getKeyCode()) {
>             case KeyEvent.KEYCODE_BACK:
>                 if (!down) {
>                     StatusBarService.this.deactivate();
>                 }
>                 return true;
>             }
>             return super.dispatchKeyEvent(event);
>         }
>     }
>
> This example is inside the file StatusBarService.java in SDK. Here, this
> class gets the event when the user presses the back button and execute his
> function.
>
> Regards,
>
> Rogerio
>
> 2010/2/5 Abhi 
>
> > Hi,
>
> > Is it possible to launch another activity or invoke a sensor (e.g.
> > accelerometer) on the press of capture or video record button?
>
> > Abhi
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Launch other activity on pressing the on-screen camera/camcorder button?

2010-02-05 Thread Abhi
Hi,

Is it possible to launch another activity or invoke a sensor (e.g.
accelerometer) on the press of capture or video record button?

Abhi

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Video recording

2010-02-05 Thread Abhi
How can we run the built-in Camera app on the SDK? Is that available
for developers?

On Jan 25, 11:38 am, Dave Feltenberger 
wrote:
> Awesome, thanks for the link.  That will be very useful.
>
> On Mon, Jan 25, 2010 at 10:06 AM, Sean Hodges
> wrote:
>
> > On Mon, Jan 25, 2010 at 2:38 PM, Dave Feltenberger
> >  wrote:
> > > Perhaps I'm doing something wrong?  What permissions do I need other than
> > to
> > > record audio and video?
>
> > I haven't done anything with video recording in Android, but looking
> > at the built-in Camera app source code...
>
> >http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=...
>
> > It looks like you need android.permission.CAMERA,
> > android.permission.RECORD_AUDIO, and possibly
> > android.permission.WRITE_EXTERNAL_STORAGE as well. Also, take a look
> > at VideoCamera.java, as there is a lot of stuff happening in the
> > initializeRecorder() and startVideoRecording() methods.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] UPnP

2010-01-21 Thread Abhi
Hi,

Need help understanding how to build a UPnP stack in Android? Anyone?

Abhi
-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: Voice Recognition

2009-12-29 Thread Abhi
Hi Valentino,

Your concept sounds similar to mine. I already have an app out there
called 'Voice Tag'. Haven't had the time to build on to it, but would
be working on making it agile and add more features.

Let me know what you think. 
http://www.androlib.com/android.application.com-trial-voicetag-qAiz.aspx

Abhi

On Dec 28, 5:56 pm, Valentino XM  wrote:
> Hi All,
>
> Has anyone been working with voice recognition, I  would like to build
> an app that responds to various commands
> that will iniate apps from via a website

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: How to get resource path?

2009-10-09 Thread abhi

Thank you, Balwinder. But I just have a string for the name of the
song and so, its not possible to get the ID for it using: .

Please find my code below:

String songFile =  "NameOfSong.mp3";
MediaPlayer mp = new MediaPlayer(songFile); //This is not working
since I don't have the entire path to the music file which is stored
inside the .APK file

Maybe I am using a wrong approach here.



On Oct 8, 10:32 am, "Balwinder Kaur (T-Mobile USA)"  wrote:
> getResources().openRawResourceFd(int id)
>
> Get the FileDescriptor for the file and use MediaPlayer.setDataSource
> (FileDescriptor fd) method.
>
> Balwinder Kaur
> Mobile.Software.Development
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Oct 8, 12:55 am, abhi  wrote:
>
> > Hi,
>
> > I have included three MP3 file in the R.raw folder. Now I am able to
> > get the file name of the MP3 file, but I need to find out the complete
> > path of the file in order to play the file using MediaPlayer.
>
> > I am using MediaPlayer.setDataSource(String path) to set the path to
> > the file. When I set the path as just the file name, the MediaPlayer
> > does not play it.
>
> > Is there any way to get the full path of the MP3 file in resources? Or
> > else, can I  use some other implementation of MediaPlayer.setDataSource
> > ()?
>
> > Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to access the files on SD card through emulator?

2009-10-08 Thread Abhi

Hi,
  I need to search for certain type of files (like .mp3) and
populate the list of files present in that particular category from
the SD card. Can anyone help me with this?

-Regards Abhi.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to get resource path?

2009-10-08 Thread abhi

Hi,

I have included three MP3 file in the R.raw folder. Now I am able to
get the file name of the MP3 file, but I need to find out the complete
path of the file in order to play the file using MediaPlayer.

I am using MediaPlayer.setDataSource(String path) to set the path to
the file. When I set the path as just the file name, the MediaPlayer
does not play it.

Is there any way to get the full path of the MP3 file in resources? Or
else, can I  use some other implementation of MediaPlayer.setDataSource
()?

Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Emulator file transfer

2009-10-06 Thread abhi

Hi,

Is there a way to transfer files to the Android emulator? I am
creating a media player and I'd like to transfer some files to the
emulator file system so that my media player can play it. I am using
eclipse with the Android SDK for development.

Thanks,

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: launch app from an app

2009-09-18 Thread Abhi

Hi,

After searching through some online and the package manager methods, I
came across ApplicationInfo and a way to open an app activity using
this as below:

ApplicationInfo ai
PackageManager pm = getPackageManager();
try {
Intent i = pm.getLaunchIntentForPackage(ai.packageName);
startActivity(i);
}
catch (Exception e) {
Toast t = Toast.makeText(this, "Couldn't launch the application.",
Toast.LENGTH_SHORT);
t.show();
}

However, I need to have the application info in 'ai' to make the above
code work... I don't seem to understand how ApplicationInfo works on a
particular app. Help please!!!

Abhi

On Sep 18, 8:25 am, Mark Murphy  wrote:
> Abhi wrote:
> > Thanks Mark.
>
> > Can you give an example for launching the Youtube app from within my
> > app? I have tried startActivity() to open up Gallery this way:
>
> > Intent intent2 = new Intent();
> > intent2.setClassName("com.android.camera",
> > "com.android.camera.GalleryPicker");
> > intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> > startActivity(intent2)
>
> > Couldn't understand how to do it with other apps.
>
> You will need to use methods on PackageManager to determine an
> appropriate activity to use for that package.
> getLaunchIntentForPackage() is probably worth trying.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: launch app from an app

2009-09-18 Thread Abhi

Thanks Mark.

Can you give an example for launching the Youtube app from within my
app? I have tried startActivity() to open up Gallery this way:

Intent intent2 = new Intent();
intent2.setClassName("com.android.camera",
"com.android.camera.GalleryPicker");
intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent2)

Couldn't understand how to do it with other apps.

Thanks,

Abhi

On Sep 18, 8:09 am, Mark Murphy  wrote:
> Abhi wrote:
> > I am making an app which when running may need to open another app
> > thats installed on my phone. The other app(s) are the ones not
> > developed by me and I would only like to launch these apps if/when
> > needed.
>
> > Any help around making this work will be appreciated.
>
> Call startActivity() to open up whatever activity you want from the
> other app(s).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] launch app from an app

2009-09-18 Thread Abhi

Hi,

I am making an app which when running may need to open another app
thats installed on my phone. The other app(s) are the ones not
developed by me and I would only like to launch these apps if/when
needed.

Any help around making this work will be appreciated.

Thanks,

Abhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Voice 2 text help

2009-09-08 Thread Abhi

Hi guys,

I have been trying to develop an app around the voice recognition
functionality of Cupcake. As a sample code, I used the
VoiceRecognition.java project available under API Demos. (http://
developer.android.com/guide/samples/ApiDemos/src/com/example/android/
apis/app/VoiceRecognition.html)


I want to know if I can extract the text result on the list view and
use it as a String further on? The part of code I am refering to is
below where mList is defined as ListView:


ArrayList matches = data.getStringArrayListExtra
(RecognizerIntent.EXTRA_RESULTS);
mList.setAdapter(new ArrayAdapter(this,
android.R.layout.simple_list_item_1, matches));


I want to use the result to be able to take further action.


Thanks,


Abhi



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Developer hardware

2009-08-12 Thread Abhi

hi guys,

thought i would jump in here instead of creating a new post...

i just bought myself the new htc mytouch 3g g-phone (g2). I have a few
basic apps (scan wireless networks, display accelerometer values etc.)
that I want to test on my phone as the emulator doesn't support any of
this. Both the apps force close in the emulator

I want to know how can I test them on my phone real-time? I read about
doing this on T-mobile G1 over here 
http://developer.android.com/guide/developing/device.html
, but it doesn't work this way on my phone tried enabling USB
Debugging on the phone as mentioned, installing the drivers,
everything that this manual says... but Eclipse would just not detect
my phone and always Run the code on the emulator...

I hope someone can help me out with this...

Thanks,

Abhi

On Aug 12, 12:52 pm, mvdb  wrote:
> Thanks everyone for your help!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: WifiReceiver not part of SDK 1.5???

2009-08-12 Thread Abhi

This is what I get on the Eclipse console when I run that app... and
it force closes.

[2009-08-12 08:54:30 - WiFiProject] Android Launch!
[2009-08-12 08:54:30 - WiFiProject] adb is running normally.
[2009-08-12 08:54:30 - WiFiProject] Performing
com.example.WiFiProject.WiFiProject activity launch
[2009-08-12 08:54:30 - WiFiProject] Automatic Target Mode: launching
new emulator with compatible AVD 'Android'
[2009-08-12 08:54:30 - WiFiProject] Launching a new emulator with
Virtual Device 'Android'
[2009-08-12 08:54:36 - WiFiProject] New emulator found: emulator-5554
[2009-08-12 08:54:36 - WiFiProject] Waiting for HOME
('android.process.acore') to be launched...
[2009-08-12 08:56:34 - WiFiProject] HOME is up on device
'emulator-5554'
[2009-08-12 08:56:34 - WiFiProject] Uploading WiFiProject.apk onto
device 'emulator-5554'
[2009-08-12 08:56:34 - WiFiProject] Installing WiFiProject.apk...
[2009-08-12 08:56:44 - WiFiProject] Application already exists.
Attempting to re-install instead...
[2009-08-12 08:56:48 - WiFiProject] Success!
[2009-08-12 08:56:48 - WiFiProject] Starting activity
com.example.WiFiProject.WiFiProject on device
[2009-08-12 08:56:50 - WiFiProject] ActivityManager: Starting: Intent
{ comp={com.example.WiFiProject/
com.example.WiFiProject.WiFiProject} }

I am not sure about testing this app on my phone to see if it works
there. Don't want to end up screwing it up if something goes wrong.
How else can I make sure this app to work?

Thanks,

Abhi

On Aug 12, 8:31 am, Abhi  wrote:
> I do have this line in there...
>
> On Aug 11, 2:46 pm, Jack Ha  wrote:
>
>
>
> > Make sure you have the following line in your AndroidManifest file.
>
> >  > uses-permission>
>
> > --
> > Jack Ha
> > Open Source Development Center
> > ・T・ ・ ・Mobile・ stick together
>
> > The views, opinions and statements in this email are those of
> > the author solely in their individual capacity, and do not
> > necessarily represent those of T-Mobile USA, Inc.
>
> > On Aug 11, 10:55 am, Abhi  wrote:
>
> > > Hi Jack,
>
> > > posting my reply again... dunno where my previous post went.
>
> > > I have the complete code now but the app force closes on my emulator.
> > > Is it because the emulator doesn't support WiFi apps? and force closes
> > > when it tries to scan for networks? I thought the emulator would just
> > > get stuck at the Starting Scan phase but wouldn't crash... correct?
>
> > > Abhi
>
> > > On Aug 11, 11:41 am, Jack Ha  wrote:
>
> > > > WifiReceiver is not part of the SDK.
>
> > > > Are you referring to the following example? You'll see WifiReceiver
> > > > extends BroadcastReceiver.
>
> > > >    http://www.androidsnippets.org/snippets/9/
>
> > > > --
> > > > Jack Ha
> > > > Open Source Development Center
> > > > ・T・ ・ ・Mobile・ stick together
>
> > > > The views, opinions and statements in this email are those of
> > > > the author solely in their individual capacity, and do not
> > > > necessarily represent those of T-Mobile USA, Inc.
>
> > > > On Aug 11, 6:37 am, Abhi  wrote:
>
> > > > > I don't see this in the list of WiFi classes on the latest
> > > > > documentation found 
> > > > > herehttp://developer.android.com/reference/android/net/wifi/package-summa...
>
> > > > > I am refering to a WifiScanner code (snippet below) to scan wireless
> > > > > networks
>
> > > > > public class WifiTester extends Activity {
> > > > >     TextView mainText;
> > > > >     WifiManager mainWifi;
> > > > >     WifiReceiver receiverWifi;
> > > > >     List wifiList;
> > > > >               ...
>
> > > > > and it gives me an error in Eclipse saying 'WifiReceiver cannot be
> > > > > resolved to a type'. Any help would be appreciated.
>
> > > > > Please also let me knw how to replace the part of code that has
> > > > > WifiReceiver in it with any of the existing classes.
>
> > > > > Thanks,
>
> > > > > Abhi- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: WifiReceiver not part of SDK 1.5???

2009-08-12 Thread Abhi

I do have this line in there...

On Aug 11, 2:46 pm, Jack Ha  wrote:
> Make sure you have the following line in your AndroidManifest file.
>
>  uses-permission>
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Aug 11, 10:55 am, Abhi  wrote:
>
>
>
> > Hi Jack,
>
> > posting my reply again... dunno where my previous post went.
>
> > I have the complete code now but the app force closes on my emulator.
> > Is it because the emulator doesn't support WiFi apps? and force closes
> > when it tries to scan for networks? I thought the emulator would just
> > get stuck at the Starting Scan phase but wouldn't crash... correct?
>
> > Abhi
>
> > On Aug 11, 11:41 am, Jack Ha  wrote:
>
> > > WifiReceiver is not part of the SDK.
>
> > > Are you referring to the following example? You'll see WifiReceiver
> > > extends BroadcastReceiver.
>
> > >    http://www.androidsnippets.org/snippets/9/
>
> > > --
> > > Jack Ha
> > > Open Source Development Center
> > > ・T・ ・ ・Mobile・ stick together
>
> > > The views, opinions and statements in this email are those of
> > > the author solely in their individual capacity, and do not
> > > necessarily represent those of T-Mobile USA, Inc.
>
> > > On Aug 11, 6:37 am, Abhi  wrote:
>
> > > > I don't see this in the list of WiFi classes on the latest
> > > > documentation found 
> > > > herehttp://developer.android.com/reference/android/net/wifi/package-summa...
>
> > > > I am refering to a WifiScanner code (snippet below) to scan wireless
> > > > networks
>
> > > > public class WifiTester extends Activity {
> > > >     TextView mainText;
> > > >     WifiManager mainWifi;
> > > >     WifiReceiver receiverWifi;
> > > >     List wifiList;
> > > >               ...
>
> > > > and it gives me an error in Eclipse saying 'WifiReceiver cannot be
> > > > resolved to a type'. Any help would be appreciated.
>
> > > > Please also let me knw how to replace the part of code that has
> > > > WifiReceiver in it with any of the existing classes.
>
> > > > Thanks,
>
> > > > Abhi- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: WifiReceiver not part of SDK 1.5???

2009-08-11 Thread Abhi

Hi Jack,

posting my reply again... dunno where my previous post went.

I have the complete code now but the app force closes on my emulator.
Is it because the emulator doesn't support WiFi apps? and force closes
when it tries to scan for networks? I thought the emulator would just
get stuck at the Starting Scan phase but wouldn't crash... correct?

Abhi

On Aug 11, 11:41 am, Jack Ha  wrote:
> WifiReceiver is not part of the SDK.
>
> Are you referring to the following example? You'll see WifiReceiver
> extends BroadcastReceiver.
>
>    http://www.androidsnippets.org/snippets/9/
>
> --
> Jack Ha
> Open Source Development Center
> ・T・ ・ ・Mobile・ stick together
>
> The views, opinions and statements in this email are those of
> the author solely in their individual capacity, and do not
> necessarily represent those of T-Mobile USA, Inc.
>
> On Aug 11, 6:37 am, Abhi  wrote:
>
>
>
> > I don't see this in the list of WiFi classes on the latest
> > documentation found 
> > herehttp://developer.android.com/reference/android/net/wifi/package-summa...
>
> > I am refering to a WifiScanner code (snippet below) to scan wireless
> > networks
>
> > public class WifiTester extends Activity {
> >     TextView mainText;
> >     WifiManager mainWifi;
> >     WifiReceiver receiverWifi;
> >     List wifiList;
> >               ...
>
> > and it gives me an error in Eclipse saying 'WifiReceiver cannot be
> > resolved to a type'. Any help would be appreciated.
>
> > Please also let me knw how to replace the part of code that has
> > WifiReceiver in it with any of the existing classes.
>
> > Thanks,
>
> > Abhi- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] WifiReceiver not part of SDK 1.5???

2009-08-11 Thread Abhi

I don't see this in the list of WiFi classes on the latest
documentation found here 
http://developer.android.com/reference/android/net/wifi/package-summary.html

I am refering to a WifiScanner code (snippet below) to scan wireless
networks

public class WifiTester extends Activity {
TextView mainText;
WifiManager mainWifi;
WifiReceiver receiverWifi;
List wifiList;
  ...

and it gives me an error in Eclipse saying 'WifiReceiver cannot be
resolved to a type'. Any help would be appreciated.

Please also let me knw how to replace the part of code that has
WifiReceiver in it with any of the existing classes.

Thanks,

Abhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] gmote app help

2009-08-10 Thread Abhi

has anyone played around with the Gmote app? its a really cool one..

I am trying to understand how it works... can someone help me out with
a high-level understanding of how the code works? i have an app in
mind that might b close to this one... using WiFi.

Thanks,

Abhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Abhi

Thanks Mark.

On Aug 5, 9:48 am, Mark Murphy  wrote:
> Abhi wrote:
> > How do I see so many Bluetooth Apps around?
>
> Presumably, they are using undocumented APIs that are subject to
> breakage in future Android releases.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Abhi

What about WiFi?

On Aug 5, 9:08 am, Abhi  wrote:
> How do I see so many Bluetooth Apps around?
>
> On Aug 5, 8:50 am, Mark Murphy  wrote:
>
>
>
> > Abhi wrote:
> > > I am developing an app using Bluetooth on my G2 phone (Tmobile's HTC
> > > MyTouch 3G) but am unable to find any documentation on Bluetooth
> > > classes in Android 1.5. Need help around that!!
>
> > There are no Bluetooth classes in the SDK at this time.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Android Development Wiki:http://wiki.andmob.org- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Bluetooth Classes documentation???

2009-08-05 Thread Abhi

How do I see so many Bluetooth Apps around?

On Aug 5, 8:50 am, Mark Murphy  wrote:
> Abhi wrote:
> > I am developing an app using Bluetooth on my G2 phone (Tmobile's HTC
> > MyTouch 3G) but am unable to find any documentation on Bluetooth
> > classes in Android 1.5. Need help around that!!
>
> There are no Bluetooth classes in the SDK at this time.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Bluetooth Classes documentation???

2009-08-05 Thread Abhi

Hi there,

I am developing an app using Bluetooth on my G2 phone (Tmobile's HTC
MyTouch 3G) but am unable to find any documentation on Bluetooth
classes in Android 1.5. Need help around that!!

Thanks,

Abhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] help around using accelerometer sensor

2009-07-31 Thread Abhi

hi,

i have been trying to create an app using the accelerometer sensor in
SDK 1.5.

i am using the Sensor class and tried using the getSupportedSensors()
method to get a list of supported sensors. But it gives an error
saying 'The method is undefined for the type Sensor'. Any idea how to
work around this?

here is the link to the android developers guide
http://lampwww.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/hardware/Sensors.html#getSupportedSensors()

thanks,

Abhi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How can i Intercept incoming call in android

2009-02-03 Thread Abhi Android
Hi All,  I have read in some forum saying we cannot intercept incoming
call in Android. Is it possible to intercept incoming call in Android?

  Is it possible to send any auto voice message when the user receives
any incoming calls

Thanks,
Jack

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---