[android-beginners] Re: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread kapnkore
does youe extraxted zip file contains mainfest.xml in notpad v1.R u sure u
are just giving the path of folder which contains mainfest.xml



On Mon, Sep 14, 2009 at 9:25 PM, Anthony anthonyhorto...@gmail.com wrote:


 Hi,

 I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse
 3.4.2), the ADT  DDMS Eclipse plugins (0.9.1.v200905011822-1621), and
 successfully worked my way through the Hello World Tutorial.  However
 I'm not able to get very far into the Notepad Tutorial because I'm not
 able to properly import the project files.  No problems downloading
 the ZIP archive and extracting the files to sub-directories of my
 Eclipse workspace directory, however I'm then unable to open them as
 Android projects in Eclipse.

 The Notepad Tutorial instructs me to:

 1. Start a new Android Project by clicking File  New  Android
 Project.
 2. In the New Android Project dialog, select Create project from
 existing source.
 3. Click Browse and navigate to where you copied the NotepadCodeLab
 (downloaded during setup) and select Notepadv1.

 This is where I hit a problem, as with my combination of ADT plugins
 and Eclipse version the New Android Project dialogue doesn't have a
 'Browse' button or any other way to select a path for the creation of
 a project from existing source!  All I get is an error stating
 AndroidManifest.xml not found in samples. and no way to proceed any
 further.

 As that was a dead end I tried to import Notepadv1 as a General
 Project and use the Android Tools to convert it to an Android project
 afterwards.  The general project dialogue at least gives me the option
 of selecting the path to the Notepadv1 project directory so I'm able
 to create the first project, however when I then right click and
 select Android Tools  Convert to Android Project I get an 'Problem
 Occurred' dialogue windows which tells me that 'Convert Project' has
 encountered a problem.  Notepadv1 does not exist.  The Details
 button doesn't give me any details.

 The project now appears as an Android project, but fails to build
 after a clean or a modification to the files.  The Android ADT error
 in the Problems tab is 'Failed to get output folder!'.  If I try
 Android Tools  FIx Project Properties I get the same error dialogue
 as with Convert Project.

 I've search these groups, and the web in general, and wasn't able to
 come up with any solutions to my problems with what really ought to be
 straightforward.  Can anyone give me some pointers as to what is going
 wrong?

 


--~--~-~--~~~---~--~~
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: Running the android emulator, easiest way?

2009-09-15 Thread kapnkore
ya n if you want to go for multiple emulator at a time eclips is the best
way to use it.just go to run configuration n select diff avd n run it.

On Tue, Sep 15, 2009 at 7:33 AM, John P. johnny.d.p...@gmail.com wrote:


 I agree with Yusuf that Eclipse would be easiest.

 FYI, the error message you see is caused by java[.exe] not being in
 your PATH variable.  Try adding your $JDK/bin to PATH ... and if that
 still doesn't solve your problem, set JAVA_HOME to your $JDK.  (Some
 java programs require this, but I don't think Android does ... but
 give it a shot if you insist on using command line.)

 On Sep 13, 9:13 pm, izzy robindaho...@gmail.com wrote:
   I just want to know, whats the easiest way to run the android
  emulator?. I hate using the command line mainly because its gives me
  alot of problems, and ive always had bad luck with it.
 
  I keep getting this error after typing:
 
  C:\android\android sdk\toolsandroid create avd
 
  Just to test it without the variable or options or anything i get
  java is not recognized as an internal or external command operable
  program or batch file
 


--~--~-~--~~~---~--~~
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] change the angle of pixel

2009-09-15 Thread eldo

Hi all ,
   could someone help me with the below given code snippet.awarning
persists in my application saying that vriable GY is never read . This
warning results in an incorrect output . Could someone help me know if
there is a change in the calculations to be done .


int RY, GY, BY, RYY, GYY, BYY, R, G, B, Y;
double angle = (3.14159d * (double)deg) / 180.0d;
int S = (int)(256.0d * Math.sin(angle));
int C = (int)(256.0d * Math.cos(angle));

for (int y = 0; y  pich; y++)
for (int x = 0; x  picw; x++)
{
int index = y * picw + x;
int r = (pix[index]  16)  0xff;
int g = (pix[index]  8)  0xff;
int b = pix[index]  0xff;
RY = (70 * r - 59 * g - 11 * b) / 100;
GY = (-30 * r + 41 * g - 11 * b) / 100;
BY = (-30 * r - 59 * g + 89 * b) / 100;
Y = (30 * r + 59 * g + 11 * b) / 100;
RYY = (S * BY + C * RY) / 256;
BYY = (C * BY - S * RY ) / 256;
GYY = (-51 * RYY - 19 * BYY) / 100;
R = Y + RYY;
R = (R  0) ? 0 : ((R  255) ? 255 : R);
G = Y + GYY;
G = (G  0) ? 0 : ((G  255) ? 255 : G);
B = Y + BYY;
B = (B  0) ? 0 : ((B  255) ? 255 : B);
pix[index] = 0xff00 | (R  16) | (G  8) | B;
}

how can i get rid of the warning GY unread variable
--~--~-~--~~~---~--~~
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] About the ADT layout editor

2009-09-15 Thread moontain
Hi,

Why the layout editor is not included in the ADT 0.9.1? How to enable it?
It's really useful in the ADT 0.8 that has a visual layout for edit.

Regards,
Moontain

--~--~-~--~~~---~--~~
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] MediaPlayer pause and seek

2009-09-15 Thread manigault

Hi i want to be able to pause the MediaPlayer and then seek to given
position.
I do the following : mPlayer.pause() -  mPlayer.seekTo(myPosition); -
 mPlayer.start();but the player start playing from the position the
pause was called;
Can i use seekTo after when i paused the player ?

--~--~-~--~~~---~--~~
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: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread Anthony



On Sep 15, 6:11 pm, kapnk...@gmail.com wrote:
 does youe extraxted zip file contains mainfest.xml in notpad v1.R u sure u
 are just giving the path of folder which contains mainfest.xml

Yes, the project directories extracted from the tutorial's ZIP archive
contain AndroidManifest.xml files, as they should.

As I've already said, my first problem is that this version of ADT
with this version of Eclipse aren't giving me any way to specify a
path at all when selecting create an Android project from existing
files...

I can only specify a path and manage to actually create the project if
I select to create a general project instead of an Android project. I
then run into problems when I attempt to convert the general project
to an Android project after creating it. And yes, I am getting the
project path right (when I'm given the chance to provide one).
--~--~-~--~~~---~--~~
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 add my own menu item into the already existing menu in the sms application

2009-09-15 Thread Oskar

Hi,

I would like to add my own menu item into the already existing menu in
the sms application.

E.g when the user is reading a sms and highlights an attached link to
a web page and pressing menu. Is it then possible for me to add my own
menu item in this already existing menu. I would like to use the
attached link and send it to my application when selecting my menu
item from the already existing SMS menu.

I would appreciate very much if someone could give me some hints
regarding what I need and how to get started. Maybe such things are
described somewhere?

Thanks,

Oskar
--~--~-~--~~~---~--~~
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: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread John P.

I'm confused because if you've successfully done step 2 where you
presumably clicked on the radio button to Create project from
existing source, you should get an enabled textfield where you can
specify the location of the said existing source.  If it is indeed
true that such textfield does not become enabled, then may I suggest
creating a new Android project, and manually placing the Notepad
tutorial files to where the new Android project resides.  Be sure to
refresh the project from Eclipse so that it picks up your manual
filesystem changes.

On Sep 14, 11:55 am, Anthony anthonyhorto...@gmail.com wrote:
 Hi,

 I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse
 3.4.2), the ADT  DDMS Eclipse plugins (0.9.1.v200905011822-1621), and
 successfully worked my way through the Hello World Tutorial.  However
 I'm not able to get very far into the Notepad Tutorial because I'm not
 able to properly import the project files.  No problems downloading
 the ZIP archive and extracting the files to sub-directories of my
 Eclipse workspace directory, however I'm then unable to open them as
 Android projects in Eclipse.

 The Notepad Tutorial instructs me to:

 1. Start a new Android Project by clicking File  New  Android
 Project.
 2. In the New Android Project dialog, select Create project from
 existing source.
 3. Click Browse and navigate to where you copied the NotepadCodeLab
 (downloaded during setup) and select Notepadv1.

 This is where I hit a problem, as with my combination of ADT plugins
 and Eclipse version the New Android Project dialogue doesn't have a
 'Browse' button or any other way to select a path for the creation of
 a project from existing source!  All I get is an error stating
 AndroidManifest.xml not found in samples. and no way to proceed any
 further.

 As that was a dead end I tried to import Notepadv1 as a General
 Project and use the Android Tools to convert it to an Android project
 afterwards.  The general project dialogue at least gives me the option
 of selecting the path to the Notepadv1 project directory so I'm able
 to create the first project, however when I then right click and
 select Android Tools  Convert to Android Project I get an 'Problem
 Occurred' dialogue windows which tells me that 'Convert Project' has
 encountered a problem.  Notepadv1 does not exist.  The Details
 button doesn't give me any details.

 The project now appears as an Android project, but fails to build
 after a clean or a modification to the files.  The Android ADT error
 in the Problems tab is 'Failed to get output folder!'.  If I try
 Android Tools  FIx Project Properties I get the same error dialogue
 as with Convert Project.

 I've search these groups, and the web in general, and wasn't able to
 come up with any solutions to my problems with what really ought to be
 straightforward.  Can anyone give me some pointers as to what is going
 wrong?
--~--~-~--~~~---~--~~
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: Basic Questions

2009-09-15 Thread yesno

Shukriya Yusuf.

Just a couple of more questions.
Will make it simpler for u and save time by restricting questions
which would need answer in not more than a phrase.

Does the user have to 'Check for updates' or is it driven by periodic
checking for updates on the phone(OS updates)?
In what format will the update be and how is it done?
How are these updates supported, GPRS or/and any other way?
And it would need the Service Provider to actually support this in
case it is locked right?
And what if it is an unlocked phone?
Just curious to find more information regarding this. Would be glad if
you point me where I could the info.

Thanks in advance, Again.
:)

On Sep 14, 10:24 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t-
Mobile.com wrote:
  To install applications on android, we need the application to be in
  the form of an .apk file regardless of what we use to develop it, i.e
  SDK or NDK. Are there absolutely no other filetypes supported?

 No.

  If there are further patches for the android oses which have been already
  deployed on the phone, do we have to rebuild the image and install it
  on the phone again or is it possible to install it on the phone?

 There are downloadable OS updates. You don't have to build them
 yourself.

  Is it possible to have applications or services running on the device
  which can be built along with the source code, so that it is non-
  removable? I ask this because there might be some need for important
  services which need to exist on the device in order to keep track of
  applications or the device configuration.

 No, the only way to make a service non-removable is to make a custom
 Android distro.

  Is there anyway to perform a silent installation of apps?
   And is it possible to install such applications on the phone..?

 No.

  Android has already been ported to MIPS architecture as well as x86
  machines. Does that mean we would still want the applications to be in
  the form of an .apk file for installation?

 Yes.

  And will all apk files no matter what it is built for (arm or mips
  based) run on all android supported devices, taking into consideration
  only the hardware independent functions being implemented in that
  application?

 Yes, that's the magic of Java-- write once, run everywhere! (ahem)

 Yusuf Saib
 Android
 ·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.
--~--~-~--~~~---~--~~
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 disable connection to internet in android phone?

2009-09-15 Thread kiro

b.c. it costly by my provider and eats battery
--~--~-~--~~~---~--~~
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: getting file from internet

2009-09-15 Thread kiro

Oh, thanks so much, will check at home;)

On Sep 14, 9:34 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t-
Mobile.com wrote:
 Depending on where the file is, you may use the HttpGet class to get
 it:http://developer.android.com/reference/org/apache/http/client/methods...
 File(Uri) may also 
 work:http://developer.android.com/reference/java/io/File.html#File(java.ne...)

 Yusuf Saib
 Android
 ·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 Sep 14, 4:37 am,kirocih.exe...@gmail.com wrote:

  Hi!
  I'm new to android, but i should now or some sample who can provide
  about downloading file from internet and using it in own application?
--~--~-~--~~~---~--~~
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] Views right of long SingeLine Textviews disappear

2009-09-15 Thread Andre Wichmann

Hi,

I'd like to position an ImageView right of a TextView which has
SingeLine set to true. What happens is that if the string in the
TextView is too long, the ImageView gets pushed out of the screen and
gets not displayed! Does anyone have an idea how to prevent that?

To clarify, here is what I want to have:

|Text  Image|

...with the TextView aligned left, and the Image aligned right. Right
now I do this with a horizontal LinearLayout containing a TextView and
an ImageView encapsulated in another LinearLayout that has
align=right (align doesn't work with ImageView, unfortunately).

It works fine for short strings, but if the string gets too long, the
ImageView gets shrinked (ignoring any minWidth attributes...) or even
not displayed at all. It looks like first the TextView gets assigned
as much width as it needs, even the whole screen width if the string
is very long, and only then the ImageView gets drawn - if there is any
space left. Is there a way to force the ImageView to get displayed
regardless of how wide the TextView wants to grow?

I'd really appreciate some help here!

Thanks,

-Andre

--~--~-~--~~~---~--~~
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: Views right of long SingeLine Textviews disappear

2009-09-15 Thread Mark Murphy

 I'd like to position an ImageView right of a TextView which has
 SingeLine set to true. What happens is that if the string in the
 TextView is too long, the ImageView gets pushed out of the screen and
 gets not displayed! Does anyone have an idea how to prevent that?

Don't use a LinearLayout and android:layout_width=wrap_content for the
TextView. Either of the following should work:

1. Use android:layout_width=0px and android:layout_weight=1 for the
TextView. This says use all space not used by the rest of this row.

2. Use RelativeLayout instead of LinearLayout and make the TextView use
android:layout_toLeftOf=..., where ... is the ID of your ImageView.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer 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: Views right of long SingeLine Textviews disappear

2009-09-15 Thread Andre Wichmann

Hi,

On Sep 15, 5:27 pm, Mark Murphy mmur...@commonsware.com wrote:
 1. Use android:layout_width=0px and android:layout_weight=1 for the
 TextView. This says use all space not used by the rest of this row.

This worked indeed - after I've removed the LinearLayout wrapper for
the ImageView, that is.

Thanks a lot! The layouting engine can be a bit confusing at
times. :-)

-Andre

--~--~-~--~~~---~--~~
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 change text in a Button

2009-09-15 Thread cellurl

Hi,

On the fly, I want to change the text shown in a Button.

Q: How do I do that.

My teacher held me back a year from Android school ;-)
(newbie again)
jim

--~--~-~--~~~---~--~~
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: How to add my own menu item into the already existing menu in the sms application

2009-09-15 Thread Jack Ha

Here is an example and you probably can make it to work with SMS.

http://www.anddev.org/viewtopic.php?p=25639

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

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 Sep 15, 5:13 am, Oskar cov.johans...@gmail.com wrote:
 Hi,

 I would like to add my own menu item into the already existing menu in
 the sms application.

 E.g when the user is reading a sms and highlights an attached link to
 a web page and pressing menu. Is it then possible for me to add my own
 menu item in this already existing menu. I would like to use the
 attached link and send it to my application when selecting my menu
 item from the already existing SMS menu.

 I would appreciate very much if someone could give me some hints
 regarding what I need and how to get started. Maybe such things are
 described somewhere?

 Thanks,

 Oskar
--~--~-~--~~~---~--~~
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: how to change text in a Button

2009-09-15 Thread Jack Ha

Please refer to the Android Developer Guide.

button.setText()

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

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 Sep 15, 9:34 am, cellurl gpscru...@gmail.com wrote:
 Hi,

 On the fly, I want to change the text shown in a Button.

 Q: How do I do that.

 My teacher held me back a year from Android school ;-)
 (newbie again)
 jim
--~--~-~--~~~---~--~~
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: How to disable sms notification?

2009-09-15 Thread Yusuf Saib (T-Mobile USA)

If all you want to do is intercept some SMS messages meant for your
app, you can do that in Android. One tutorial that explains how is
here: http://mobiforge.com/developing/story/sms-messaging-android



Yusuf Saib
Android
·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 Sep 13, 8:57 pm, zhy scott@gmail.com wrote:
 You can change the Mms at packages/apps/Mms.
 Or write your BroadcastReceiver.  when received sms, cancel the
 notification.

 在 2009-09-09三的 13:08 +0800,Henry Shang写道:



  I'm trying to use my own app to handle one incoming message
  with some specific characters in it. And I don't want the system's
  default sms notifications to show up.

  How can I do this?
--~--~-~--~~~---~--~~
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: Request helping for writting HTTP Request in Android

2009-09-15 Thread Yusuf Saib (T-Mobile USA)

What problems do you encounter?




Yusuf Saib
Android
·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 Sep 14, 2:48 am, Carmen Lau ivancar...@gmail.com wrote:
 package com.example.helloandroid;

 import java.io.IOException;
 import java.io.InputStream;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.TextView;

 import org.apache.http.HttpResponse;
 import org.apache.http.HttpStatus;
 import org.apache.http.client.*;
 import org.apache.http.client.methods.*;
 import org.apache.http.impl.client.DefaultHttpClient;
 //import org.apache.http.util.EntityUtils;

 public class HelloAndroid extends Activity {
     /** Called when the activity is first created. */
         @Override
     public void onCreate(Bundle savedInstanceState) {
                 super.onCreate(savedInstanceState);

                 try
                 {
                         HttpClient hc = new DefaultHttpClient();
                     HttpGet get = new HttpGet(http://www.yahoo.com;);
                     HttpResponse rp = hc.execute(get);

                     if(rp.getStatusLine().getStatusCode() == HttpStatus.SC_OK)
                     {
                         //String str = EntityUtils.toString(rp.getEntity());
                         InputStream is = rp.getEntity().getContent();
                         String str = is.toString();

                         TextView tv = new TextView(this);
                         tv.setText(str);
                         setContentView(tv);

                     }
                     else
                     {
                         System.out.println(halo,baby.);
                     }
                 }catch(IOException e){
                         return;
                 }
     }

 }

 the above is my code.
 but it seems there are some problems here.
 So, Anyone can give me some ideas on it?
 Thank you.

 Carmen Lau
--~--~-~--~~~---~--~~
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: MediaPlayer pause and seek

2009-09-15 Thread Jack Ha

seekTo() is an asynchronuous call and the actual seek operation may
take a while to finish. If an OnSeekCompleteListener has been
registered beforehand via setOnSeekCompleteListener
(OnSeekCompleteListener), it will get called.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

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 Sep 15, 4:01 am, manigault manig...@gmail.com wrote:
 Hi i want to be able to pause the MediaPlayer and then seek to given
 position.
 I do the following : mPlayer.pause() -  mPlayer.seekTo(myPosition); - 
 mPlayer.start();but the player start playing from the position the

 pause was called;
 Can i use seekTo after when i paused the player ?
--~--~-~--~~~---~--~~
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: What's good to start with?

2009-09-15 Thread Yusuf Saib (T-Mobile USA)

There is a tutorial for taking and modifying pictures with a menu
here: 
https://freshbrain.org/group/building-applications-g1-mobile-phone-learning-path



Yusuf Saib
Android
·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 Sep 14, 7:24 pm, John P. johnny.d.p...@gmail.com wrote:
 Wow, great job taking the initiative to develop on Android!

 I'm not sure of your Java level, but if you have a hard time following
 through the SDK documentation (http://developer.android.com/guide/
 index.html), particularly the Tutorial section, try to get more
 familiarized with programming in general.  I personally like the
 Cookbook types (there's one for Java by Oreilly publisher), but there
 are many free resources available on the internet.  The more you
 program, the better you'll understand object oriented design and
 frameworks.  IMO, the minimum two things you want to master are: 1)
 how to look up information (e.g. API), and 2) how to debug --
 definitely learn how to insert breakpoints and step through your code.

 On Sep 13, 3:33 am, Jonte jonathan.hels...@gmail.com wrote:



  I'm 14 years old and have been programming a little bit with Eclipse
  and Java. I just got a HTC Hero and want to make some easy thing to
  start with. Like showing a picture or some thing that I after that can
  put a menu on and thing like that. My goal is to make a small easy
  game but I got to start some were.

  What is good to start with?

  And were can I find more information about programming in Android?

  Is it just to write the same things as I do when I make a small
  program in Java?

  With great regards

  Jonte
--~--~-~--~~~---~--~~
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: Accelerometer on different devices

2009-09-15 Thread Yusuf Saib (T-Mobile USA)

That's an interesting question. On the one hand, for a platform to
support Android, it should provide accelerometer data in a manner
consistent with the spec (max and min values, etc.) On the other hand,
different hardware may have slightly different performance, for
example with latency or sensitivity to small movements, etc. It's like
a mouse-based game on a PC. Some mice are more sensitive than others,
or the Windows mouse settings are more/less fast.



Yusuf Saib
Android
·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 Sep 13, 8:26 am, Jonathan jlani...@gmail.com wrote:
 I'm currently developing an iPhone game and would like to port it to
 Android. The game relies heavily on the accelerometer.

 My question is - with all of the of the new Android phones entering
 the market next year - will the current dev phone 1 be sufficient for
 testing the game? In other words, will the accelerometer data be
 consistent across all devices? I understand that the hardware will be
 different for each, but is the API smart enough to recognize this and
 spit out the same data regardless of which type of hardware you're
 running?
--~--~-~--~~~---~--~~
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: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Paul Turchenko

Use PendingIntent

On Sep 14, 8:01 pm, Tikoze janderson@gmail.com wrote:
 Anyone?

 On Aug 31, 4:26 pm, Tikoze janderson@gmail.com wrote:

  Any info on this would be appreciated.  I know it can be done because
  I have installed a few apps that are able to launch via the camera
  button without having the camera app launch as well.
--~--~-~--~~~---~--~~
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: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Justin Anderson
All I have to do is change the code below to use a PendingIntent and pass
that to startActivity?

public void onReceive(Context context, Intent intent)
   {
   if (intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT) !=
null)
   {
   Intent newIntent = new Intent(Intent.ACTION_MAIN);
   newIntent.setClass(context, ActivityListView.class);
   newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
   context.startActivity(newIntent);
   }
   }

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 15, 2009 at 11:00 AM, Paul Turchenko
paul.turche...@gmail.comwrote:


 Use PendingIntent

 On Sep 14, 8:01 pm, Tikoze janderson@gmail.com wrote:
  Anyone?
 
  On Aug 31, 4:26 pm, Tikoze janderson@gmail.com wrote:
 
   Any info on this would be appreciated.  I know it can be done because
   I have installed a few apps that are able to launch via the camera
   button without having the camera app launch as well.
 


--~--~-~--~~~---~--~~
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: change the angle of pixel

2009-09-15 Thread Yusuf Saib (T-Mobile USA)

GY is set on the line that has GY = but not used on the right-hand
side of the equation anywhere after that. There is no code that says,
for example, B = GY + Y.



Yusuf Saib
Android
·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 Sep 15, 1:24 am, eldo iameldoja...@gmail.com wrote:
 Hi all ,
    could someone help me with the below given code snippet.awarning
 persists in my application saying that vriable GY is never read . This
 warning results in an incorrect output . Could someone help me know if
 there is a change in the calculations to be done .

 int RY, GY, BY, RYY, GYY, BYY, R, G, B, Y;
         double angle = (3.14159d * (double)deg) / 180.0d;
         int S = (int)(256.0d * Math.sin(angle));
         int C = (int)(256.0d * Math.cos(angle));

         for (int y = 0; y  pich; y++)
         for (int x = 0; x  picw; x++)
             {
             int index = y * picw + x;
             int r = (pix[index]  16)  0xff;
             int g = (pix[index]  8)  0xff;
             int b = pix[index]  0xff;
             RY = (70 * r - 59 * g - 11 * b) / 100;
             GY = (-30 * r + 41 * g - 11 * b) / 100;
             BY = (-30 * r - 59 * g + 89 * b) / 100;
             Y = (30 * r + 59 * g + 11 * b) / 100;
             RYY = (S * BY + C * RY) / 256;
             BYY = (C * BY - S * RY ) / 256;
             GYY = (-51 * RYY - 19 * BYY) / 100;
             R = Y + RYY;
             R = (R  0) ? 0 : ((R  255) ? 255 : R);
             G = Y + GYY;
             G = (G  0) ? 0 : ((G  255) ? 255 : G);
             B = Y + BYY;
             B = (B  0) ? 0 : ((B  255) ? 255 : B);
             pix[index] = 0xff00 | (R  16) | (G  8) | B;
             }

 how can i get rid of the warning GY unread variable
--~--~-~--~~~---~--~~
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: Running the android emulator, easiest way?

2009-09-15 Thread jotobjects

Hi Izzy - Android SDK works fine at the command line - just install
Ant and Java (see http://developer.android.com/sdk/1.5_r3/requirements.html).

Sounds like you don't have Java installed correctly.  Make sure Java
is installed by typing this at the command line -

java -version

Then create an AVD on the command like this -

create avd -t 3 -n my_avd

And run the emulator on the command like this -

emulator -logcat *:v -avd my_avd

--~--~-~--~~~---~--~~
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: Simulate speech on emulator?

2009-09-15 Thread Yasser

Thanks Natalya.
I think these are basically for playing audio in the emulator.
My task is to feed audio into the microphone just like a person would
normally speak into it.

On Sep 14, 9:53 pm, Natalya Dobry natalyado...@gmail.com wrote:
 On Tue, Sep 15, 2009 at 6:48 AM, Yasser yassersiddi...@gmail.com wrote:

  Hi,

 I saw that emulator has the followin options
  -audio backend               use specific audio backend
  -audio-in backend            use specific audio input backend
  -audio-out backend           use specific audio output backend

 You can see this from coman line do emulator -help .

 Regards.



  My application records the audio data coming from Microphone, saves it
  to an AMR file and then sends it to the server for results.

  Is there a way I can change the AudioSource from microphone to some
  audio file? This way I would be able to simulate the speech
  functionality. OR in some way if I can feed audio file into the mike it
  will solve my purpose.

  Thanks
  Yasser- 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: Unable to start Wi-fi

2009-09-15 Thread Roman ( T-Mobile USA)

What do you mean with setting up network?

Right now you can do data connectivity having Wifi disabled. The
emulator is able to simulate 3G data connectivity.

If you try to communicate with a server located on the desktop you
might have to setup port forwarding (look for android port
forwarding).

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 Sep 14, 8:19 pm, andriod learner andymori...@gmail.com wrote:
 To be able to test the application of network availables in emulator, is
 there any steps for setting up network within emulator enviornments?

 thanks,

 andy

 On Tue, Sep 15, 2009 at 1:14 PM, Roman ( T-Mobile USA) 

 roman.baumgaert...@t-mobile.com wrote:

  On the emulator there is no Wifi support.

  --
  Roman Baumgaertner
  Sr. SW Engineer-OSDC
  ·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 Sep 14, 5:31 pm, andriod learner andymori...@gmail.com wrote:
   Hi,

   I want to test the application to detect network over emulator but in
   emulator, it display unable to start wi-fi under wireless control. How
  can i
   solve this problem? any suggestions?


--~--~-~--~~~---~--~~
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: Simulate speech on emulator?

2009-09-15 Thread Natalya Dobry
Hi  Yasser,I thought that -audio-in option is what u need. May be i do not
understand what u really
need.

Regards.
On Tue, Sep 15, 2009 at 9:08 PM, Yasser yassersiddi...@gmail.com wrote:


 Thanks Natalya.
 I think these are basically for playing audio in the emulator.
 My task is to feed audio into the microphone just like a person would
 normally speak into it.

 On Sep 14, 9:53 pm, Natalya Dobry natalyado...@gmail.com wrote:
  On Tue, Sep 15, 2009 at 6:48 AM, Yasser yassersiddi...@gmail.com
 wrote:
 
   Hi,
 
  I saw that emulator has the followin options
   -audio backend   use specific audio backend
   -audio-in backenduse specific audio input backend
   -audio-out backend   use specific audio output backend
 
  You can see this from coman line do emulator -help .
 
  Regards.
 
 
 
   My application records the audio data coming from Microphone, saves it
   to an AMR file and then sends it to the server for results.
 
   Is there a way I can change the AudioSource from microphone to some
   audio file? This way I would be able to simulate the speech
   functionality. OR in some way if I can feed audio file into the mike it
   will solve my purpose.
 
   Thanks
   Yasser- 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] problem with google map

2009-09-15 Thread boyscout ninja
hi, I'm trying to run some code I got from a book (written for sdk 1.1_r1)
and I have problems when the aplication starts. In the LogCat this exception
appears:

09-15 17:55:06.800: ERROR/AndroidRuntime(754): java.lang.IllegalAccessError:
cross-loader access from pre-verified class
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
dalvik.system.DexFile.defineClass(Native Method)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
dalvik.system.DexFile.loadClass(DexFile.java:193)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.os.Looper.loop(Looper.java:123)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
android.app.ActivityThread.main(ActivityThread.java:3948)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
java.lang.reflect.Method.invokeNative(Native Method)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
java.lang.reflect.Method.invoke(Method.java:521)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
09-15 17:55:06.800: ERROR/AndroidRuntime(754): at
dalvik.system.NativeStart.main(Native Method)

Do you know where can be my mistake?

I'm using sdk 1.5 and jdk1.6.0_14.

Thanks!

Iván

--~--~-~--~~~---~--~~
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: Unable to start Wi-fi

2009-09-15 Thread andriod learner
Now, it worked. Thanks! Roman

On Wed, Sep 16, 2009 at 2:46 AM, Roman ( T-Mobile USA) 
roman.baumgaert...@t-mobile.com wrote:


 What do you mean with setting up network?

 Right now you can do data connectivity having Wifi disabled. The
 emulator is able to simulate 3G data connectivity.

 If you try to communicate with a server located on the desktop you
 might have to setup port forwarding (look for android port
 forwarding).

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·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 Sep 14, 8:19 pm, andriod learner andymori...@gmail.com wrote:
  To be able to test the application of network availables in emulator, is
  there any steps for setting up network within emulator enviornments?
 
  thanks,
 
  andy
 
  On Tue, Sep 15, 2009 at 1:14 PM, Roman ( T-Mobile USA) 
 
  roman.baumgaert...@t-mobile.com wrote:
 
   On the emulator there is no Wifi support.
 
   --
   Roman Baumgaertner
   Sr. SW Engineer-OSDC
   ·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 Sep 14, 5:31 pm, andriod learner andymori...@gmail.com wrote:
Hi,
 
I want to test the application to detect network over emulator but in
emulator, it display unable to start wi-fi under wireless control.
 How
   can i
solve this problem? any suggestions?
 
 
 


--~--~-~--~~~---~--~~
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 use MediaStore to get content URI of audio file saved in sdcard ?

2009-09-15 Thread Harshit Mapara

Hi All,

I searched this , but can't find any related info.
Here is what I want to do:

In  /sdcard/downloads  folder, there is a xyz.mp3 file.
I want to save the content URI of xyz.mp3 file into my database.
xyz.mp3 is huge, so it can't be saved in database, but I want to save
it's URI in database with other records in row. So always I can get
the URI string and using content resolver I can get the xyz.mp3 file
by providing its content URI. ( I guess using openOuputStream method
of contentResolver)

So the question is, how do I do this?? how can I get content URI of
xyz.mp3 ? I guess it can be done using MediaStore, but I don't get
enough help from documentation to accomplish this.

Please help
Thanks
Harshit


--~--~-~--~~~---~--~~
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] view caching, maps?

2009-09-15 Thread Jeffrey Blattman




i have a map view that draws (in the worst case) around 100 overlay
items. when the user tries to zoom / scroll the map, it's slow for
obvious reasons. i'm already caching as much as i can in draw(), but
because the zoom level, and consequently the location where things are
drawn changes, there's a limit. also, it seems like the "drawXXX()"
methods are what's taking up the time.

i understand there's a "view caching" mechanism, but i can find little
information on how to use it. can anyone point me to some example code,
or otherwise give me some pointers? 

thanks.
-- 





[android-beginners] Re: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread Anthony



On Sep 15, 10:29 pm, John P. johnny.d.p...@gmail.com wrote:
 I'm confused because if you've successfully done step 2 where you
 presumably clicked on the radio button to Create project from
 existing source, you should get an enabled textfield where you can
 specify the location of the said existing source.  If it is indeed
 true that such textfield does not become enabled, then may I suggest
 creating a new Android project, and manually placing the Notepad
 tutorial files to where the new Android project resides.  Be sure to
 refresh the project from Eclipse so that it picks up your manual
 filesystem changes.

 On Sep 14, 11:55 am, Anthony anthonyhorto...@gmail.com wrote:



  Hi,

  I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse
  3.4.2), the ADT  DDMS Eclipse plugins (0.9.1.v200905011822-1621), and
  successfully worked my way through the Hello World Tutorial.  However
  I'm not able to get very far into the Notepad Tutorial because I'm not
  able to properly import the project files.  No problems downloading
  the ZIP archive and extracting the files to sub-directories of my
  Eclipse workspace directory, however I'm then unable to open them as
  Android projects in Eclipse.

  The Notepad Tutorial instructs me to:

  1. Start a new Android Project by clicking File  New  Android
  Project.
  2. In the New Android Project dialog, select Create project from
  existing source.
  3. Click Browse and navigate to where you copied the NotepadCodeLab
  (downloaded during setup) and select Notepadv1.

  This is where I hit a problem, as with my combination of ADT plugins
  and Eclipse version the New Android Project dialogue doesn't have a
  'Browse' button or any other way to select a path for the creation of
  a project from existing source!  All I get is an error stating
  AndroidManifest.xml not found in samples. and no way to proceed any
  further.

  As that was a dead end I tried to import Notepadv1 as a General
  Project and use the Android Tools to convert it to an Android project
  afterwards.  The general project dialogue at least gives me the option
  of selecting the path to the Notepadv1 project directory so I'm able
  to create the first project, however when I then right click and
  select Android Tools  Convert to Android Project I get an 'Problem
  Occurred' dialogue windows which tells me that 'Convert Project' has
  encountered a problem.  Notepadv1 does not exist.  The Details
  button doesn't give me any details.

  The project now appears as an Android project, but fails to build
  after a clean or a modification to the files.  The Android ADT error
  in the Problems tab is 'Failed to get output folder!'.  If I try
  Android Tools  FIx Project Properties I get the same error dialogue
  as with Convert Project.

  I've search these groups, and the web in general, and wasn't able to
  come up with any solutions to my problems with what really ought to be
  straightforward.  Can anyone give me some pointers as to what is going
  wrong?
--~--~-~--~~~---~--~~
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] For a project demonstration, any way to clone device screen on a monitor?

2009-09-15 Thread Kevin Grant

Using android / G1 as a platform in a game development class I'm
taking.  We need to be able to do project presentations, and was
wondering if there was any way to clone the device screen onto a
monitor with the USB cable somehow.  I would just load the game into
the emulator and run it from there, but the game itself uses motion
control, which would be difficult not only to set up, but also in
trying to demonstrate game play.

If thats not possible I suppose I can just take a video of the screen,
but its certainly not the most ideal solution.  Any help is
appreciated, 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: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1

2009-09-15 Thread Anthony



On Sep 15, 10:29 pm, John P. johnny.d.p...@gmail.com wrote:
 I'm confused because if you've successfully done step 2 where you
 presumably clicked on the radio button to Create project from
 existing source, you should get an enabled textfield where you can
 specify the location of the said existing source.  If it is indeed
 true that such textfield does not become enabled, then may I suggest
 creating a new Android project, and manually placing the Notepad
 tutorial files to where the new Android project resides.  Be sure to
 refresh the project from Eclipse so that it picks up your manual
 filesystem changes.

Yes, that's exactly my problem. When I select the create from existing
source radio button in the create Android project dialogue I don't get
an enabled text field and browse button with which to select a path. I
know I should, and I was hoping that someone had seen a similar ADT
problem before and could say what's going wrong.  I do get the enabled
text field and button when creating a general project.

Thanks for the suggested workaround, that should at least enable me to
start working through the tutorial. I'd really like to get to the
bottom of this though.

 On Sep 14, 11:55 am, Anthony anthonyhorto...@gmail.com wrote:



  Hi,

  I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse
  3.4.2), the ADT  DDMS Eclipse plugins (0.9.1.v200905011822-1621), and
  successfully worked my way through the Hello World Tutorial.  However
  I'm not able to get very far into the Notepad Tutorial because I'm not
  able to properly import the project files.  No problems downloading
  the ZIP archive and extracting the files to sub-directories of my
  Eclipse workspace directory, however I'm then unable to open them as
  Android projects in Eclipse.

  The Notepad Tutorial instructs me to:

  1. Start a new Android Project by clicking File  New  Android
  Project.
  2. In the New Android Project dialog, select Create project from
  existing source.
  3. Click Browse and navigate to where you copied the NotepadCodeLab
  (downloaded during setup) and select Notepadv1.

  This is where I hit a problem, as with my combination of ADT plugins
  and Eclipse version the New Android Project dialogue doesn't have a
  'Browse' button or any other way to select a path for the creation of
  a project from existing source!  All I get is an error stating
  AndroidManifest.xml not found in samples. and no way to proceed any
  further.

  As that was a dead end I tried to import Notepadv1 as a General
  Project and use the Android Tools to convert it to an Android project
  afterwards.  The general project dialogue at least gives me the option
  of selecting the path to the Notepadv1 project directory so I'm able
  to create the first project, however when I then right click and
  select Android Tools  Convert to Android Project I get an 'Problem
  Occurred' dialogue windows which tells me that 'Convert Project' has
  encountered a problem.  Notepadv1 does not exist.  The Details
  button doesn't give me any details.

  The project now appears as an Android project, but fails to build
  after a clean or a modification to the files.  The Android ADT error
  in the Problems tab is 'Failed to get output folder!'.  If I try
  Android Tools  FIx Project Properties I get the same error dialogue
  as with Convert Project.

  I've search these groups, and the web in general, and wasn't able to
  come up with any solutions to my problems with what really ought to be
  straightforward.  Can anyone give me some pointers as to what is going
  wrong?
--~--~-~--~~~---~--~~
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: For a project demonstration, any way to clone device screen on a monitor?

2009-09-15 Thread Mark Murphy

Kevin Grant wrote:
 Using android / G1 as a platform in a game development class I'm
 taking.  We need to be able to do project presentations, and was
 wondering if there was any way to clone the device screen onto a
 monitor with the USB cable somehow.  I would just load the game into
 the emulator and run it from there, but the game itself uses motion
 control, which would be difficult not only to set up, but also in
 trying to demonstrate game play.

You can give DroidEx a shot:

http://www.androidguys.com/2009/01/30/projecting-android-on-the-big-screen/

I use it all the time when I deliver Android application development
training, for the reasons you seek.

I need to do more with it (better UI, handle screen rotations, allow
recording, etc.), which I hopefully will get to before year's end.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Beginning Android_ from Apress Now Available!

--~--~-~--~~~---~--~~
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: aapt is present - Hello, World application.

2009-09-15 Thread Lee Jarvis

BUMP, anyone?

Any reply is much appreciated.

Thanks.

On 12 Sep, 23:46, Lee Jarvis ljjar...@googlemail.com wrote:
 Hey guys, I'm trying to run the hello world application from the
 documentation example, but to no avail..

 This is my error:

 Error executing aapt. Please check aapt is present at /home/haze/
 android/platforms/android-1.1/tools/aapt

 $ ls /home/haze/android/platforms/android-1.1/tools/
 aapt  aidl  dexdump  dx  lib

 aapt is also executable, so I'm not quite sure what the problem is. I
 realize this question has been asked many times before, but even with
 that I was unable to resolve it.

 Thanks,
 Lee
--~--~-~--~~~---~--~~
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] Android 1.6 SDK is here!

2009-09-15 Thread Xavier Ducrohet

http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here.html

Enjoy!
-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~-~--~~~---~--~~
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: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Tikoze

I haven't had time to try a PendingIntent object yet, but I am curious
how it will help?

The problem isn't that I can't get my app to launch when the camera
button is pressed... The problem is that is launches the Camera app
and then launches my app.

Since there is no guarantee as to the order that applications will be
notified, it is almost like I would have to find some way to
unregister everything else that is listening for the camera button...
Given Android's security measures, is that even possible?

Thanks,
Justin

On Sep 15, 11:08 am, Justin Anderson janderson@gmail.com wrote:
 All I have to do is change the code below to use a PendingIntent and pass
 that to startActivity?

 public void onReceive(Context context, Intent intent)
        {
                if (intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT) !=
 null)
                {
                        Intent newIntent = new Intent(Intent.ACTION_MAIN);
                        newIntent.setClass(context, ActivityListView.class);
                        newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        context.startActivity(newIntent);
                }
        }

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Sep 15, 2009 at 11:00 AM, Paul Turchenko
 paul.turche...@gmail.comwrote:



  Use PendingIntent

  On Sep 14, 8:01 pm, Tikoze janderson@gmail.com wrote:
   Anyone?

   On Aug 31, 4:26 pm, Tikoze janderson@gmail.com wrote:

Any info on this would be appreciated.  I know it can be done because
I have installed a few apps that are able to launch via the camera
button without having the camera app launch as well.
--~--~-~--~~~---~--~~
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] Android in Eclipse - package name problem - please help

2009-09-15 Thread Mimi


As I was coding, building and testing my Android App merrily along, it
seemed all of a sudden, the parsing/compile failed. Error is on the
Manifest complaining that a file could not be found in the package
mimi.package.newApp.

What I found out under the Ecplise Explorer was that the
com.mimi.package package name was no longer a string but got
fragmented as folders i.e. src/com/mimi/package. Same with gen/com/
mimi/package.

I must have done something unintentionally to cause this but what is
it? Any ideas and suggestions would be greatly appreciated.

Many Thanks...Mimi
--~--~-~--~~~---~--~~
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: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Jeffrey Blattman

seems unlikely (but i have no idea really). you wouldn't think you would 
have control over the intents that other apps can listen for / act upon. 
how would you like it if some other app came along and unregistered your 
app from that intent?

On 9/15/09 3:40 PM, Tikoze wrote:
 Since there is no guarantee as to the order that applications will be
 notified, it is almost like I would have to find some way to
 unregister everything else that is listening for the camera button...
 Given Android's security measures, is that even possible?



--~--~-~--~~~---~--~~
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] Problem displaying notifications

2009-09-15 Thread Tikoze

I cannot get a notification to appear in the status bar.  And since I
haven't been able to find any posts of others with a similar problem
I'm sure there is some small thing that I am missing...

I more or less followed the example in the Dev Guide.  Below is my
Service class.

public class MultiTaskerNotifierService extends Service
{
@Override
public void onCreate()
{
Notification notifier = new Notification();

Intent launchIntent = new Intent();
launchIntent.setClassName(this,
com.magouyaware.multitasker.ActivityListView);

notifier.flags = Notification.DEFAULT_ALL |
Notification.FLAG_NO_CLEAR;
notifier.tickerText = getText(R.string.app_name);
notifier.contentIntent = PendingIntent.getActivity(this, 0,
launchIntent, Intent.FLAG_ACTIVITY_NEW_TASK);

notifier.setLatestEventInfo(getBaseContext(), getText
(R.string.app_name), getText(R.string.notifier_description),
notifier.contentIntent);

NotificationManager mgr = (NotificationManager)getSystemService
(NOTIFICATION_SERVICE).notify(1234, notifier);
}

public IBinder onBind(Intent intent)
{
return m_binder;
}

/**
 * This is the object that receives interactions from clients.
See RemoteService
 * for a more complete example.
 */
private final IBinder m_binder = new Binder() {
@Override
protected boolean onTransact(int code, Parcel data, Parcel 
reply,
int flags) throws RemoteException {
return super.onTransact(code, data, reply, flags);
}
};
}

I have it set up so that my activity starts this service with
startService() when the user selects to have a persistent
notification.  Using TaskManager 1.10 I have been able to tell that my
service is actually running after that call, but the notification
never gets displayed.

Any ideas?

Thanks in advance for any hel... This is the last hurdle before I put
the first version of my app on the Market!  :)  I'm very excited and
anxious to get this out there!
--~--~-~--~~~---~--~~
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: Android in Eclipse - package name problem - please help

2009-09-15 Thread Raphael

First check that you're not using the Navigator view instead (which
shows files, not Java namespaces).

In the package explorer, click on the View Menu (a little triangle
just above the scrollbar in the explorer view. Select Package
Presentation and change it from flat to hierarchical, or the reverse.

R/


On Tue, Sep 15, 2009 at 4:06 PM, Mimi mimik...@gmail.com wrote:


 As I was coding, building and testing my Android App merrily along, it
 seemed all of a sudden, the parsing/compile failed. Error is on the
 Manifest complaining that a file could not be found in the package
 mimi.package.newApp.

 What I found out under the Ecplise Explorer was that the
 com.mimi.package package name was no longer a string but got
 fragmented as folders i.e. src/com/mimi/package. Same with gen/com/
 mimi/package.

 I must have done something unintentionally to cause this but what is
 it? Any ideas and suggestions would be greatly appreciated.

 Many Thanks...Mimi
 


--~--~-~--~~~---~--~~
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: aapt is present - Hello, World application.

2009-09-15 Thread Xavier Ducrohet

Can use execute aapt manually from the command line?
What OS are you running?

On Sat, Sep 12, 2009 at 3:46 PM, Lee Jarvis ljjar...@googlemail.com wrote:

 Hey guys, I'm trying to run the hello world application from the
 documentation example, but to no avail..

 This is my error:

 Error executing aapt. Please check aapt is present at /home/haze/
 android/platforms/android-1.1/tools/aapt

 $ ls /home/haze/android/platforms/android-1.1/tools/
 aapt  aidl  dexdump  dx  lib

 aapt is also executable, so I'm not quite sure what the problem is. I
 realize this question has been asked many times before, but even with
 that I was unable to resolve it.

 Thanks,
 Lee

 




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~-~--~~~---~--~~
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: aapt is present - Hello, World application.

2009-09-15 Thread Raphael

Can you do a ls -l /home/haze/android/platforms/android-1.1/tools/
to see the file attributes?

The old SDK used a zip for linux, and some unzip binaires sometimes
did not preserve file attributes. If ls -l doesn't show the files as
+x, you can try:

chmod -v +x /home/haze/android/platforms/android-1.1/tools/*

Let us know if that helps.
R/

On Sat, Sep 12, 2009 at 3:46 PM, Lee Jarvis ljjar...@googlemail.com wrote:

 Hey guys, I'm trying to run the hello world application from the
 documentation example, but to no avail..

 This is my error:

 Error executing aapt. Please check aapt is present at /home/haze/
 android/platforms/android-1.1/tools/aapt

 $ ls /home/haze/android/platforms/android-1.1/tools/
 aapt  aidl  dexdump  dx  lib

 aapt is also executable, so I'm not quite sure what the problem is. I
 realize this question has been asked many times before, but even with
 that I was unable to resolve it.

 Thanks,
 Lee

 


--~--~-~--~~~---~--~~
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: How to disable connection to internet in android phone?

2009-09-15 Thread Roman ( T-Mobile USA)

There are already several threads on this topic. For example

http://groups.google.com/group/android-developers/browse_thread/thread/752a2e56dce42123

Also look for changing the APN settings.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 Sep 15, 7:42 am, kiro cih.exe...@gmail.com wrote:
 b.c. it costly by my provider and eats battery
--~--~-~--~~~---~--~~
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: how to change text in a Button

2009-09-15 Thread cellurl

Heres my code.
I don't see a .setText for View.
I guess I am confusing button and view.
thanks for any help.
jp


AndroidManifest.xml--

activity android:name=.About25
android:label=@string/about_title
android:theme=@android:style/Theme.Dialog
/activity


---Translate.java


   private void findViews
  // Set up click listeners for all the buttons
  View aboutButton25 = findViewById(R.id.about_button25);
  aboutButton25.setOnClickListener(this);

  broke here ??
  if(mph) {
 aboutButton25.setText(25 Mph);
  } else {
 aboutButton25.setText(25 Kph);
  }

   }


   public void onClick(View v) {

  switch (v.getId()) {

  case R.id.about_button25:
 Intent i25 = new Intent(this, About25.class);
 startActivity(i25);
 break;
   }


--About25.java---


public class About25 extends Activity {

}




--~--~-~--~~~---~--~~
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: Android 1.6 SDK is here!

2009-09-15 Thread Xavier Ducrohet

A last minute mix-up had us upload the wrong SDK packages :(

The only difference is the lack of TTS language files and of the
Accessibility apps (TalkBack, SoundBack and KickBack)

If you don't care about this you can keep using your 1.6 SDK. If you
care about these features, I've just uploaded the correct archives.

We apologize for the inconvenience.

Xav

On Tue, Sep 15, 2009 at 3:22 PM, Xavier Ducrohet x...@android.com wrote:
 http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here.html

 Enjoy!
 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

--~--~-~--~~~---~--~~
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: Android 1.6 SDK is here!

2009-09-15 Thread er...@motorola.com

Woohoo! You can now have a beer.

-E

On Sep 15, 5:22 pm, Xavier Ducrohet x...@android.com wrote:
 http://android-developers.blogspot.com/2009/09/android-16-sdk-is-here...

 Enjoy!
 --
 Xavier Ducrohet
 Android Developer Tools Engineer
 Google Inc.
--~--~-~--~~~---~--~~
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: Camera Button Broadcast Receiver Problem...

2009-09-15 Thread Tikoze

Obviously I understand that the ability to do that could cause some
developers to abuse it...  And of course I would not like another
application to unregister things that my app listens for (if it
occurred without the user's knowledge).

As an example, I have used an application called Task Switcher.  I
don't know how the developer does it, but he provides a setting that
makes his app (and only his app) launch when the camera button is
pressed.  He lets the user know what will happen and verifies they
want to proceed.  I found this ability very useful and handy.

I am developing an application very similar to Task Switcher and want
to provide the same option to launch my app from the camera button.  I
would just prefer that the default camera didn't launch before my
app... It makes it look like my app launched the camera and then
itself and is very unprofessional-looking.

Again, if any one knows how to do this, I would be very grateful.

On Sep 15, 5:11 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 seems unlikely (but i have no idea really). you wouldn't think you would
 have control over the intents that other apps can listen for / act upon.
 how would you like it if some other app came along and unregistered your
 app from that intent?

 On 9/15/09 3:40 PM, Tikoze wrote:

  Since there is no guarantee as to the order that applications will be
  notified, it is almost like I would have to find some way to
  unregister everything else that is listening for the camera button...
  Given Android's security measures, is that even possible?
--~--~-~--~~~---~--~~
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: how to change text in a Button

2009-09-15 Thread Justin Anderson
Don't make it a View... Make it a Button.  Button inherits from TextView.
http://developer.android.com/reference/android/widget/Button.html

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Tue, Sep 15, 2009 at 8:01 PM, cellurl gpscru...@gmail.com wrote:


 Heres my code.
 I don't see a .setText for View.
 I guess I am confusing button and view.
 thanks for any help.
 jp


 AndroidManifest.xml--

activity android:name=.About25
android:label=@string/about_title
android:theme=@android:style/Theme.Dialog
/activity


 ---Translate.java


   private void findViews
  // Set up click listeners for all the buttons
  View aboutButton25 = findViewById(R.id.about_button25);
  aboutButton25.setOnClickListener(this);

  broke here ??
  if(mph) {
 aboutButton25.setText(25 Mph);
  } else {
 aboutButton25.setText(25 Kph);
  }

   }


   public void onClick(View v) {

  switch (v.getId()) {

  case R.id.about_button25:
 Intent i25 = new Intent(this, About25.class);
 startActivity(i25);
 break;
   }


 --About25.java---


 public class About25 extends Activity {

 }




 


--~--~-~--~~~---~--~~
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: how to change text in a Button

2009-09-15 Thread cellurl

thanks

On Sep 15, 11:12 pm, Justin Anderson janderson@gmail.com wrote:
 Don't make it a View... Make it a Button.  Button inherits from 
 TextView.http://developer.android.com/reference/android/widget/Button.html

 Thanks,
 Justin

 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --

 On Tue, Sep 15, 2009 at 8:01 PM, cellurl gpscru...@gmail.com wrote:

  Heres my code.
  I don't see a .setText for View.
  I guess I am confusing button and view.
  thanks for any help.
  jp

  AndroidManifest.xml--

         activity android:name=.About25
                 android:label=@string/about_title
                 android:theme=@android:style/Theme.Dialog
         /activity

  ---Translate.java

    private void findViews
       // Set up click listeners for all the buttons
       View aboutButton25 = findViewById(R.id.about_button25);
       aboutButton25.setOnClickListener(this);

       broke here ??
       if(mph) {
          aboutButton25.setText(25 Mph);
       } else {
          aboutButton25.setText(25 Kph);
       }

    }

    public void onClick(View v) {

       switch (v.getId()) {

       case R.id.about_button25:
          Intent i25 = new Intent(this, About25.class);
          startActivity(i25);
          break;
    }

  --About25.java---

  public class About25 extends Activity {

  }
--~--~-~--~~~---~--~~
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: Can't get the altitude from Location.getAltitude()

2009-09-15 Thread Horse

Yes, I have put the permissions.

On 8月6日, 下午11時33分, wwsean08 wwsports...@gmail.com wrote:
 did you remember to put the permissions in the android manifest to
 access the GPS:

 uses-permission android:name=android.permissi
 on.ACCESS_COARSE_LOCATION/u ses-
 permission
 uses-permission android:name=android.permissi on.ACCESS_FINE_
 LOCATION/use s- permission
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---