[android-beginners] Re: MediaScanner

2009-02-09 Thread Dave Sparks

There are 2 ways that the average user is going to add files to the SD
card:

1. Remove the SD card from the device, and plug it into a PC or other
device to transfer files.

2. UMS mount the SD card over USB.

In both cases, when the SD card is remounted, the MediaScanner will
run automatically.

The only time the MediaScanner doesn't run automatically is if "adb
push" method is used. We think only developers will do this because
they want to use DDMS or other debug tools over ADB channel.

The MEDIA_MOUNTED intent is what triggers the MediaScanner to scan the
SD card.

On Feb 9, 10:28 pm, Rohan Francis  wrote:
> Hi Dave,
>
> Thanks for the reply!
>
> I agree. Perhaps, we should not scan the entire phone periodically.
>
> I was looking into a use-case where the user may add media
> without the use of any application. In an application, we can use
> scanFile
> to let MediaScanner add media to the MediaProvider database but if we
> add media as in 'adb push', MediaProvider is not updated.
>
> So I was looking into a way to trigger MediaScanner to rescan the
> phone.
> Maybe not periodically but atleast when the user wants it to, because
> he
> added media and probably wants the database to get updated.
>
> Looking into intents, I came across MEDIA_MOUNTED. I seek your opinion
> on
> using this intent to trigger MediaScanner to scan the sdcard when the
> user
> wants to. Bad idea? Let me know!
>
> Thanks,
> Rohan
>
> On Feb 9, 9:53 pm, Dave Sparks  wrote:
>
> > What are you trying to accomplish by scanning a path or the entire
> > phone periodically? We try to discourage this because it affects
> > battery life.
>
> > The correct way to handle a new media file is to send an intent to the
> > MediaScanner to scan the file immediately after it is created.
>
> > On Feb 8, 10:41 pm, Rohan Francis  wrote:
>
> > > Hi All,
>
> > > I need a little help with the MediaScanner service.
>
> > > I noticed that the MediaScanner service scans both the internal and
> > > external memory on the phone to catalog all the media files at phone
> > > bootup (as seen on the emulator).
>
> > > My question is - is there any way to trigger the MediaScanner service
> > > to scan a filepath (not a file) where I may have added media recently?
>
> > > I noticed that android.media.MediaScannerConnection has a method
> > > 'scanFile' that can be used to scan a file. Perhaps there exists a way
> > > to scan a path too?
>
> > > Or can we trigger MediaScanner to scan the entire phone again? Maybe I
> > > could check for media file periodically?
>
> > > Thanks!
> > > Rohan
--~--~-~--~~~---~--~~
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 class doesn't save exif data?

2009-02-09 Thread Dave Sparks

That looks reasonable to me. What are you using to read back the EXIF
data?

I was just working on the EXIF code over the weekend fixing a few bugs
for the G1. I know that this code is working (the bugs I fixed were
conversion errors, not missing data). I use exiftool to dump the EXIF
tags.

On Feb 9, 9:57 am, George  wrote:
> I've been playing with the parameter code for most of today, can't
> seem to get it to save any exif data. Even if i manually set lat /
> long, it doesn't save anything. The parameter code you posted accounts
> for the gps related exif information, but what of the rest? I can't
> see where it's setting the rest of the data.
>
> Here's the bit of code where i try to set the parameters. Should this
> be else where?
>
> Thanks,
>
> George
>
>                 if (keyCode == KeyEvent.KEYCODE_SPACE) {
>
>                         android.hardware.Camera.Parameters parameters =
> mCamera.getParameters();
>
>                         parameters.set("jpeg-quality", 85);
>
>                         parameters.remove("gps-latitude");
>                         parameters.remove("gps-longitude");
>                         parameters.remove("gps-altitude");
>                         parameters.remove("gps-timestamp");
>
>                         parameters.set("gps-latitude","51.49473309516907");
>                         parameters.set("gps-longitude", "-1.0");
>                         parameters.set("gps-altitude", "71.0"); // meters
>                         parameters.set("gps-timestamp", "1233744883");
>
>                         mCamera.setParameters(parameters);
>
>                         mCamera.takePicture(null, null, mPictureCallback);
>
>                         return true;
>                 }
>
>                 return false;
>         }
>
> On Feb 6, 6:16 pm, Dave Sparks  wrote:
>
> > Here's some code I grabbed from thecameraapp. In this case, the EXIF
> > data is pre-encoded in the JPEG - no need to rewrite the file.
>
> >         private void capture(boolean captureOnly) {
> >             mPreviewing = false;
> >             mCaptureOnlyBitmap = null;
>
> >             final int latchedOrientation =
> > ImageManager.roundOrientation(mLastOrientation + 90);
>
> >             Boolean recordLocation = mPreferences.getBoolean
> > ("pref_camera_recordlocation_key", false);
> >             Location loc = recordLocation ? getCurrentLocation() :
> > null;
> >             android.hardware.Camera.Parameters parameters =
> > mCameraDevice.getParameters();
> >             // Quality 75 has visible artifacts, and quality 90 looks
> > great but the files begin to
> >             // get large. 85 is a good compromise between the two.
> >             parameters.set("jpeg-quality", 85);
> >             parameters.set("rotation", latchedOrientation);
>
> >             parameters.remove("gps-latitude");
> >             parameters.remove("gps-longitude");
> >             parameters.remove("gps-altitude");
> >             parameters.remove("gps-timestamp");
>
> >             if (DEBUG_FAKE_GPS_LOCATION) {
> >                 // Google London office, having trouble encoding
> > longitude
>
> >                 if (false) {
> >                     // This fails:
> >                     parameters.set("gps-latitude",
> > "51.49473309516907");
> >                     parameters.set("gps-longitude",
> > "-0.14598190784454346");
> >                     parameters.set("gps-altitude", "71.0"); // meters
> >                     parameters.set("gps-timestamp", "1233744883");
> >                 } else {
> >                     // This works OK:
> >                     parameters.set("gps-latitude",
> > "51.49473309516907");
> >                     parameters.set("gps-longitude", "-1.0");
> >                     parameters.set("gps-altitude", "71.0"); // meters
> >                     parameters.set("gps-timestamp", "1233744883");
> >                 }
> >             } else if (loc != null) {
> >                 double lat = loc.getLatitude();
> >                 double lon = loc.getLongitude();
> >                 boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d);
>
> >                 if (hasLatLon) {
> >                     String latString = String.valueOf(lat);
> >                     String lonString = String.valueOf(lon);
> >                     parameters.set("gps-latitude",  latString);
> >                     parameters.set("gps-longitude", lonString);
> >                     if (loc.hasAltitude())
> >                         parameters.set("gps-altitude",  String.valueOf
> > (loc.getAltitude()));
> >                     if (loc.getTime() != 0) {
> >                         // Location.getTime() is UTC in milliseconds.
> >                         // gps-timestamp is UTC in seconds.
> >                         long utcTimeSeconds = loc.getTime() / 1000;
> >                         parameters.set("gps-timestamp", String.valueOf
> > (utcTimeSeconds));
> >                     }
> >                 } else 

[android-beginners] MediaPlayer problem

2009-02-09 Thread jaimin

hi.
i am new to android and i want to construct a mediaplayer.
now i done mediaplayer through api demo but it didn't work it give me
error when i click any of the button.
error is MediaPlayer has stopped unexpectedly try again.
so anyone can give me some suggestion to slove that problem its
urgent.

thanks.
jaimin.
--~--~-~--~~~---~--~~
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] packaging to a jar file

2009-02-09 Thread snehal kedar
I want to package my project into a jar instead of an apk.
Is there a way to do that using the aapt tool or any other tool?

-- 
Thanx n Regards
Snehal

--~--~-~--~~~---~--~~
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: MediaScanner

2009-02-09 Thread Rohan Francis

Hi Dave,

Thanks for the reply!

I agree. Perhaps, we should not scan the entire phone periodically.

I was looking into a use-case where the user may add media
without the use of any application. In an application, we can use
scanFile
to let MediaScanner add media to the MediaProvider database but if we
add media as in 'adb push', MediaProvider is not updated.

So I was looking into a way to trigger MediaScanner to rescan the
phone.
Maybe not periodically but atleast when the user wants it to, because
he
added media and probably wants the database to get updated.

Looking into intents, I came across MEDIA_MOUNTED. I seek your opinion
on
using this intent to trigger MediaScanner to scan the sdcard when the
user
wants to. Bad idea? Let me know!

Thanks,
Rohan

On Feb 9, 9:53 pm, Dave Sparks  wrote:
> What are you trying to accomplish by scanning a path or the entire
> phone periodically? We try to discourage this because it affects
> battery life.
>
> The correct way to handle a new media file is to send an intent to the
> MediaScanner to scan the file immediately after it is created.
>
> On Feb 8, 10:41 pm, Rohan Francis  wrote:
>
> > Hi All,
>
> > I need a little help with the MediaScanner service.
>
> > I noticed that the MediaScanner service scans both the internal and
> > external memory on the phone to catalog all the media files at phone
> > bootup (as seen on the emulator).
>
> > My question is - is there any way to trigger the MediaScanner service
> > to scan a filepath (not a file) where I may have added media recently?
>
> > I noticed that android.media.MediaScannerConnection has a method
> > 'scanFile' that can be used to scan a file. Perhaps there exists a way
> > to scan a path too?
>
> > Or can we trigger MediaScanner to scan the entire phone again? Maybe I
> > could check for media file periodically?
>
> > Thanks!
> > Rohan
--~--~-~--~~~---~--~~
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] some questions about AP-"Pictures"

2009-02-09 Thread birdy

Hi all:

I have some questions about AP-"Pictures".
1.Android support jpg, png and gif file formate. Can "Pictures" show
*.gif file? I put some gif file in /sdcard, but those files do not in
the list.
2."Pictures" will auto list still images(jpg , png) in /sdcard,  can
it show still image from internet? if yes, how?

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] Getting data from a server

2009-02-09 Thread shobhit kasliwal
Hi
I am new to android and in my application I want to read and update data
(text and image) which is stored in a database at the server. How can I do
this ?
Any tutorial or source code to do this would be very much helpful for me.


Thanks

-- 
Shobhit Kasliwal

--~--~-~--~~~---~--~~
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.1_r1 SDK released and developer.android.com launched

2009-02-09 Thread Kevin Daly

The Windows version seems to be corrupt - I've downloaded it 3 times-
the 2nd time in case it was garbled in transmission the first time,
the last time with Firefox just for laughs. I haven't been able to
extract any of them.

On Feb 10, 11:32 am, "Justin (Google Employee)" 
wrote:
> Hey developers, today we released the new, 1.1_r1 SDK. This SDK
> includes some minor updates that you can read more about on the 
> blog,http://android-developers.blogspot.com/2009/02/android-11-sdk-release...
> . Also, we've launched the new developer site athttp://developer.android.com
> which has updated documentation for the 1.1_r1 SDK.
>
> Cheers,
> Justin
> Android Team @ Google

--~--~-~--~~~---~--~~
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: regarding jni apps

2009-02-09 Thread Jean-Baptiste Queru

This is not currently officially supported, and if you manage to make
it work anyway you need to be prepared for the fact that it will most
probably break with future system upgrades.

JBQ

On Mon, Feb 9, 2009 at 8:32 PM, gururaja  wrote:
>
> hi ,
> i have some doubts about android.
> we have a mpeg 4 player in linux which is completly written in c. i want to
> port it into android, but android supports java applications.can we write a
> shared library in linux(.so)
> which include all api's and use them from java frontend.if it is possible
> how to do this one.pls send me if u have any sample code written in jni for
> android.
>
>
>
> Thanks And Regards
> Gururaj
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

--~--~-~--~~~---~--~~
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] regarding jni apps

2009-02-09 Thread gururaja

hi ,
i have some doubts about android.
we have a mpeg 4 player in linux which is completly written in c. i want to
port it into android, but android supports java applications.can we write a
shared library in linux(.so)
which include all api's and use them from java frontend.if it is possible
how to do this one.pls send me if u have any sample code written in jni for
android.



Thanks And Regards
Gururaj


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--~--~-~--~~~---~--~~
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 in playing mediaplayer

2009-02-09 Thread jaimin

hi.
i am new to android. and i have done mediaplayer from api demo but i
don't know how to put path of mp3 file into my java code any one plz
give me any soultion its urgent i have put that mp3 file in res/raw
folder but in java i have no idea where i put that mp3 file.

thanks.
jaimin
--~--~-~--~~~---~--~~
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] listview focusing issue

2009-02-09 Thread Selmi

i already asked about this but got no reply and it probably got lost
with other question which was solved...so i write it again


when i have listview and i use some listadapter provided by android
api then when you touch item in list it flashes with orange colour and
then action is processed

if i have my own adapter based on the same system one as i used in
previous case this flash doesn't happen. users request it from me :-(

i guess i have to override or implement something special in my
adapter class to make it work... but what? i checked api examples and
i didn't noticed anything additional in them and they work 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: does android supports WPA2

2009-02-09 Thread Holkre

I also want to see WPA 2 Enterprise Support and WEP support on the G1
as it is an MustHave for Business use or even the use of the Wifi
function at universitys  , please google and t-mobile give us WPA 2
Enterprise :)

On 9 Feb., 04:33, antlet  wrote:
> my company's wi-fi  use WPA2, but my G1 cant access it ,  if android
> dont supports it now , when can it ?
> thanks for 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] Detect rotation of device

2009-02-09 Thread XXL

hi all
is it possible to detect if the device has been rotated?

if it is in horizontal or vertical position? like the WII controller

Thx guys

--~--~-~--~~~---~--~~
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] 3rd party jar

2009-02-09 Thread Michael Lippautz

Hi, (if you already received the message, sorry for that!)

Having a problem here with including a 3rd party jar and couldn't find
any proper solutions on the group so far.

Compiling the HelloWorld app. with an additional 3rd party jar
(cglib-nodep). The jar is in the lib/ folder and has been added to
build
path (add jar).

Compiling gives these warnings (about ~30 times):
warning: Ignoring InnerClasses attribute for an anonymous inner class
that doesn't come with an associated EnclosingMethod attribute. (This
class was probably produced by a broken compiler.)

I then tried to create the dex file myself (dx --dex --output=xx.dex
xx.jar) and succeeded without any errors. As far as I know an
incompatible jar file (incompatible byte code) shouldn't have passed
this one. Am I right here?

The problem is that by adding another 3 external jars the number of
warnings increases, compiling fills the buffer completely and finally
crashes the workspace.

Did I miss something?

I tried another approach by adding them as user lib but got an
undefined
reference at runtime. (The .dex and .apk were far too small, so I
think
they didn't get included)

Libs were:
cglib-nodep
commons-logging
antlr-runtime

--~--~-~--~~~---~--~~
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] mySQL or Internally?

2009-02-09 Thread MP

Hello All,

I am currently brainstorming a project that would require offering new
content for every day of the year.  Each day the app would start with
the most recent content (text string).
I can think of two ways the app would obtain the string content:

SQL DB
Internally in the App

Would it be easier to incorporate the 365 text strings into the app?
(That’s a lot of entries), or have the app request the string from my
DB?  What would be your thoughts on this method?  Is there another
way?

Thanks for your time.

-MP

--~--~-~--~~~---~--~~
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.1_r1 SDK released and developer.android.com launched

2009-02-09 Thread Justin (Google Employee)

Hey developers, today we released the new, 1.1_r1 SDK. This SDK
includes some minor updates that you can read more about on the blog,
http://android-developers.blogspot.com/2009/02/android-11-sdk-release-1-now-available.html
. Also, we've launched the new developer site at http://developer.android.com
which has updated documentation for the 1.1_r1 SDK.

Cheers,
Justin
Android Team @ Google
--~--~-~--~~~---~--~~
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 and USB

2009-02-09 Thread dar

It sounds like you are asking for USB host ability- which is marked as
an enhancement in Issue 738: 
http://code.google.com/p/android/issues/detail?id=738


On Feb 8, 5:51 pm, "William Grazier" 
wrote:
> Does anyone know if there are USB libraries within Android which would allow
> me to interface to an external USB peripheral (in this case, a data
> acquisition board)? Any feedback will be greatly appreciated.
--~--~-~--~~~---~--~~
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 and USB

2009-02-09 Thread Jakor

Android uses intents to let you know when USB Mass Storage media is 
connected/disconnected and to give status updates.
ACTION_UMS_CONNECTED is broadcast when the device has entered USB Mass 
Storage mode -value "android.intent.action.UMS_CONNECTED"
ACTION_UMS_DISCONNECTED is broadcast when the device has exited USB Mass 
Storage mode -value "android.intent.action.UMS_DISCONNECTED"

On http://code.google.com/android/reference/android/content/Intent.html 
search for "public static final String 
 
ACTION_MEDIA_MOUNTED" for the start of the descriptions (the description 
for this intent is wrong and in need of an update as it says " The path 
to the mount point for the removed media" and not " The path to the 
mount point for the mounted media"

getExternalStorageState() will return the current state 
(ACTION_MEDIA_MOUNTED becomes just plain MEDIA_MOUNTED as it's not 
happening)

REFERENCE:
http://code.google.com/android/reference/android/os/Environment.html

However, I believe this is the extent of which USB is hooked into nice 
easy api's for us. The *must* be low level functions of course, however 
this would most likely require a new sdk version which allows our 
"script" access to these functions. Then again, documentation is not 
complete for the android os. 
http://code.google.com/android/toolbox/index.html "Optional APIs" talks 
about Bluetooth and Accelerometer APIs which are not talked about in the 
Optional APIs. I do believe that google's weakness with android is it's 
documentation. We need an android version of msdn.

William Grazier wrote:
>
> Does anyone know if there are USB libraries within Android which would 
> allow me to interface to an external USB peripheral (in this case, a 
> data acquisition board)? Any feedback will be greatly appreciated.
>
>
> >


--~--~-~--~~~---~--~~
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] adding a custom class to the android source

2009-02-09 Thread Wick

I am working directly with the android source and attempting to add my
own class, Slider, extending LinearLayout.  I am having trouble adding
a Slider element to an xml layout.

The package I created is called test.slider

I have defined all of the resources (drawable, values, string, etc) in
test.slider/res

I used aapt to build the resource (.R) file, test.slider.R with this
command:

aapt p -f -M AndroidManifest.xml -S test/slider/res -I $SDKDIR/
android.jar -F out/target/common/R

Question 1:  Because I am using the android source, I did not know
what libraries to include, so I included the android.jar file from the
SDK.  I assume this could be a problem.  What libraries should I be
including here?

The test.slider.R file seems to be produced fine.

Question 2:  When using Slider in an xml layout file, do I need to use
a new namespace such as xmlns:slider="http://schemas.android.com/apk/
res/test.slider" to access the attributes of the Slider class?  I ask
this because when I try to build, it cannot find the attributes (I've
tried using the new namespace above and the normal android namespace).

Those are the only 2 specific questions.  Any other suggestions to
help me along the way would be greatly appreciated.  The class works
fine when used in a stand-alone application, however, I am having
trouble getting it to work in conjunction with the source.

Thank you for any 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: doing something useful in splash

2009-02-09 Thread Mark Murphy

Faber Fedor wrote:
> The biggest advantage I see of
> bundling the splash screen into the main activity is that it simplifies
> dismissing the splash screen the instant it is no longer needed.
> 
> But where do you display the splash screen?  In the onCreate()?

Yes, either explicitly or implicitly (e.g., layout says splash screen is
visible; regular contents are invisible).

> Then the
> splash screen will get called everytime the Activity is started, no? 
> Unless you have a global flag set...

No, and no. Or, rather, perhaps and perhaps. Again, this is difficult to
answer in the abstract.

Either your activity goes through the same might-be-slow step on startup
every time, or it doesn't. How you determine that is an implementation
detail.

If it has to do the might-be-slow step, it can then decide to show the
splash screen. Or, possibly, if it determines that it does not need to
do the might-be-slow step, it might hide the splash screen if the splash
screen was set to automatically show via the layout.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 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] Toggle Button example

2009-02-09 Thread silverburgh.me...@gmail.com

Hi,

Can you please tell me where I can find example in ToggleButton?

http://code.google.com/android/reference/android/widget/ToggleButton.html

Thank you.

--~--~-~--~~~---~--~~
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 class doesn't save exif data?

2009-02-09 Thread George

I've been playing with the parameter code for most of today, can't
seem to get it to save any exif data. Even if i manually set lat /
long, it doesn't save anything. The parameter code you posted accounts
for the gps related exif information, but what of the rest? I can't
see where it's setting the rest of the data.

Here's the bit of code where i try to set the parameters. Should this
be else where?

Thanks,

George

if (keyCode == KeyEvent.KEYCODE_SPACE) {

android.hardware.Camera.Parameters parameters =
mCamera.getParameters();

parameters.set("jpeg-quality", 85);

parameters.remove("gps-latitude");
parameters.remove("gps-longitude");
parameters.remove("gps-altitude");
parameters.remove("gps-timestamp");

parameters.set("gps-latitude","51.49473309516907");
parameters.set("gps-longitude", "-1.0");
parameters.set("gps-altitude", "71.0"); // meters
parameters.set("gps-timestamp", "1233744883");

mCamera.setParameters(parameters);

mCamera.takePicture(null, null, mPictureCallback);

return true;
}

return false;
}



On Feb 6, 6:16 pm, Dave Sparks  wrote:
> Here's some code I grabbed from thecameraapp. In this case, the EXIF
> data is pre-encoded in the JPEG - no need to rewrite the file.
>
>         private void capture(boolean captureOnly) {
>             mPreviewing = false;
>             mCaptureOnlyBitmap = null;
>
>             final int latchedOrientation =
> ImageManager.roundOrientation(mLastOrientation + 90);
>
>             Boolean recordLocation = mPreferences.getBoolean
> ("pref_camera_recordlocation_key", false);
>             Location loc = recordLocation ? getCurrentLocation() :
> null;
>             android.hardware.Camera.Parameters parameters =
> mCameraDevice.getParameters();
>             // Quality 75 has visible artifacts, and quality 90 looks
> great but the files begin to
>             // get large. 85 is a good compromise between the two.
>             parameters.set("jpeg-quality", 85);
>             parameters.set("rotation", latchedOrientation);
>
>             parameters.remove("gps-latitude");
>             parameters.remove("gps-longitude");
>             parameters.remove("gps-altitude");
>             parameters.remove("gps-timestamp");
>
>             if (DEBUG_FAKE_GPS_LOCATION) {
>                 // Google London office, having trouble encoding
> longitude
>
>                 if (false) {
>                     // This fails:
>                     parameters.set("gps-latitude",
> "51.49473309516907");
>                     parameters.set("gps-longitude",
> "-0.14598190784454346");
>                     parameters.set("gps-altitude", "71.0"); // meters
>                     parameters.set("gps-timestamp", "1233744883");
>                 } else {
>                     // This works OK:
>                     parameters.set("gps-latitude",
> "51.49473309516907");
>                     parameters.set("gps-longitude", "-1.0");
>                     parameters.set("gps-altitude", "71.0"); // meters
>                     parameters.set("gps-timestamp", "1233744883");
>                 }
>             } else if (loc != null) {
>                 double lat = loc.getLatitude();
>                 double lon = loc.getLongitude();
>                 boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d);
>
>                 if (hasLatLon) {
>                     String latString = String.valueOf(lat);
>                     String lonString = String.valueOf(lon);
>                     parameters.set("gps-latitude",  latString);
>                     parameters.set("gps-longitude", lonString);
>                     if (loc.hasAltitude())
>                         parameters.set("gps-altitude",  String.valueOf
> (loc.getAltitude()));
>                     if (loc.getTime() != 0) {
>                         // Location.getTime() is UTC in milliseconds.
>                         // gps-timestamp is UTC in seconds.
>                         long utcTimeSeconds = loc.getTime() / 1000;
>                         parameters.set("gps-timestamp", String.valueOf
> (utcTimeSeconds));
>                     }
>                 } else {
>                     loc = null;
>                 }
>             }
>
>             Size pictureSize = parameters.getPictureSize();
>
>             // resize the SurfaceView to the aspect-ratio of the still
> image
>             // and so that we can see the full image that was taken
>             mSurfaceView.setAspectRatio(pictureSize.width,
> pictureSize.height);
>
>             mCameraDevice.setParameters(parameters);
>
>             mCameraDevice.takePicture(mShutterCallback,
> mRawPictureCallback, new J

[android-beginners] Re: doing something useful in splash

2009-02-09 Thread Faber Fedor
On Mon, Feb 9, 2009 at 11:17 AM, Mark Murphy wrote:



> The biggest advantage I see of
> bundling the splash screen into the main activity is that it simplifies
> dismissing the splash screen the instant it is no longer needed.


But where do you display the splash screen?  In the onCreate()? Then the
splash screen will get called everytime the Activity is started, no?  Unless
you have a global flag set...

-- 
Faber Fedor
Linux New Jersey
http://linuxnj.com

--~--~-~--~~~---~--~~
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: Beginners headache error

2009-02-09 Thread Odessa Silverberg

> Just for my own information, whats the difference between "@+id/tabs"
> and "@android:id/tabs"? And when using tabs do I always have to
> inherit from TabActivity?
@+id/tabs will add an id to your applications Ressource file (R.java)
and can be accessed by R.id.tabs (or org.yourpackagename.R.id.tabs)

@android:id/tabs uses (doesn't add) the id from androids R.java class
(which can be accssed in code via android.R.id.tabs).

I supose, the reason for this is that all tabs have the same ID (as
the IDs in your applications R.java may change when you add or remove
IDs, the one in android's R.java file stays same until a new SDK is
released) so the frame work can find it by always having a constant
value
--~--~-~--~~~---~--~~
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: MediaScanner

2009-02-09 Thread Dave Sparks

What are you trying to accomplish by scanning a path or the entire
phone periodically? We try to discourage this because it affects
battery life.

The correct way to handle a new media file is to send an intent to the
MediaScanner to scan the file immediately after it is created.

On Feb 8, 10:41 pm, Rohan Francis  wrote:
> Hi All,
>
> I need a little help with the MediaScanner service.
>
> I noticed that the MediaScanner service scans both the internal and
> external memory on the phone to catalog all the media files at phone
> bootup (as seen on the emulator).
>
> My question is - is there any way to trigger the MediaScanner service
> to scan a filepath (not a file) where I may have added media recently?
>
> I noticed that android.media.MediaScannerConnection has a method
> 'scanFile' that can be used to scan a file. Perhaps there exists a way
> to scan a path too?
>
> Or can we trigger MediaScanner to scan the entire phone again? Maybe I
> could check for media file periodically?
>
> Thanks!
> Rohan
--~--~-~--~~~---~--~~
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 play video on background

2009-02-09 Thread Dave Sparks

This is not supported in SDK 1.0. You must have a surface to display
the video. If the surface is destroyed, you must pause the video.

On Feb 8, 3:23 am, PianoPan  wrote:
> Hi,
>
> I refer to the code of apidemo to write a program to play video.  I
> use the MediaPlayer to play the video file, it could play properly on
> background, such as use HOME key return to the main menu screen and
> let the program run on background, the audio of video playback can be
> heard.
>
> But when I switch back to the play program, the program can not render
> the screen, only show a black screen.
>
> Anyone can give me some comments about it? How to resume the surface 
> rendering?
>
> Regards!
>
> Pan
--~--~-~--~~~---~--~~
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: doing something useful in splash

2009-02-09 Thread Mark Murphy

madcoder wrote:
> I want to initialize and load some data from a single user defined
> data class while the splash screen is being shown.  Then I want to
> launch the main Activity, which will have access to this data.
> 
> What's the best way to go about this?
> 
> Do I create an activity that doesn't show itself, have it display the
> splash screen while another thread initializes the data, then show the
> main activity?
> 
> Do I initialize the data in the splash activity itself, then somehow
> pass that data to the next activity?
> 
> Or some other way?
> 
> The data I want to load will delay the showing of the main activity
> just enough to be a distraction.  I would like to overcome this.

Your question is a little difficult to answer in the abstract.

If the splash screen does not involve user input (e.g., it appears,
maybe animates a bit, and goes away on its own when the main screen is
ready), you could just consider it to be part of the main activity,
rather than its own separate one.

For example, for one consulting client, it was taking a few seconds for
WebView to load up the assets for the page it was trying to display. We
elected to put a "splash screen" with an animation up first, then
display the WebView when the page was loaded. That was simply a matter of:

-- Putting both the splash screen and the WebView in a FrameLayout, with
the WebView initially android:visibility="invisible" (or perhaps
"gone"...I forget which)

-- Use WebViewClient to find out when the page was done loading

-- Making the splash screen invisible/gone and the WebView visible when
the page was loaded

I'm not sure there is one best solution. The biggest advantage I see of
bundling the splash screen into the main activity is that it simplifies
dismissing the splash screen the instant it is no longer needed.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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 when running project

2009-02-09 Thread Anup

I have simple created HelloAndroid.java file as per mentioned on
website,but whenever i am running the file i am getting only ANDROID
word in the middle of emulator.

So can anybody help me.

Thank You.

--~--~-~--~~~---~--~~
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: Notification about GPS and GPRS access

2009-02-09 Thread anup desai
Hi:

Is it possible to deploy Android projects/applications on cellphone/mobile.


Thank You

--~--~-~--~~~---~--~~
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] doing something useful in splash

2009-02-09 Thread madcoder

I want to initialize and load some data from a single user defined
data class while the splash screen is being shown.  Then I want to
launch the main Activity, which will have access to this data.

What's the best way to go about this?

Do I create an activity that doesn't show itself, have it display the
splash screen while another thread initializes the data, then show the
main activity?

Do I initialize the data in the splash activity itself, then somehow
pass that data to the next activity?

Or some other way?

The data I want to load will delay the showing of the main activity
just enough to be a distraction.  I would like to overcome this.

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: How to convert base64 to image?

2009-02-09 Thread Mark Murphy

dilu wrote:
> Hi All, I am getting image from server side as Base64 string in xml
> form.Now i want to convert this base64 string into image.once it will
> get converted into image then i will store it into my local database.
>  Canany one tell me how to do this? Any example iOr sample code for
> converting base64 string to image.

There are many many examples online of converting Base64 into a byte
array. Search on:

base64 java byte[]

in Google.

Then, write the byte[] to a file with the appropriate extension given
whatever format the image is in (PNG, GIF, etc.).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Published!

--~--~-~--~~~---~--~~
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 convert base64 to image?

2009-02-09 Thread dilu

Hi All,
 I am getting image from server side as Base64 string in xml form.Now
i want to convert this base64 string into image.once it will get
converted into image then i will store it into my local database.
Canany one tell me how to do this?
Any example iOr sample code for converting base64 string to image.
Looking forward for your reply.
Thanks
Dileep
--~--~-~--~~~---~--~~
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: Installing the Eclipse Ganemede Plugin (ADT) for Android

2009-02-09 Thread asim riaz
Sir
 
change the https to http and it will work
 
Regards
Asim

--- On Mon, 9/2/09, Greg Corradini  wrote:

From: Greg Corradini 
Subject: [android-beginners] Re: Installing the Eclipse Ganemede Plugin (ADT) 
for Android
To: "Android Beginners" 
Date: Monday, 9 February, 2009, 6:58 PM

Sri,
Below the numbered section you cite there is a section called
"Troubleshooting ADT Installation". In this section you can manually
download the ADT zip file and manually load it into eclipse (see the
directions).

On Feb 8, 4:13 pm, Sri  wrote:
> Google recommends the following for installing Android plugin for
> Eclipse 3.4 Ganemede,  but step 4 fails. Getting the following error
>
> "No repository found
athttps://dl-ssl.google.com/android/eclipse/.";
>
> Any ideas?
>
> -
> 1) Start Eclipse, then select Help > Software Updates
> 2) In the dialog that appears, click the Available Software tab.
> 3) Click Add Site...
> 4)Enter this as the Location:https://dl-ssl.google.com/android/eclipse/
> 5)Click OK.
> 6) Back in the Available Software view, you should see the plugin.
> Select the checkbox next to Developer Tools and click Install...
> 7) On the subsequent Install window, "Android Developer Tools",
and
> "Android Editors" should both be checked. The Android Editors
feature
> is optional, but recommended. If you choose to install it, you need
> the WST plugin mentioned earlier in this page.
> Click Finish.
> 8) Restart Eclipse.




  Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
--~--~-~--~~~---~--~~
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: Installing the Eclipse Ganemede Plugin (ADT) for Android

2009-02-09 Thread Greg Corradini

Sri,
Below the numbered section you cite there is a section called
"Troubleshooting ADT Installation". In this section you can manually
download the ADT zip file and manually load it into eclipse (see the
directions).

On Feb 8, 4:13 pm, Sri  wrote:
> Google recommends the following for installing Android plugin for
> Eclipse 3.4 Ganemede,  but step 4 fails. Getting the following error
>
> "No repository found athttps://dl-ssl.google.com/android/eclipse/.";
>
> Any ideas?
>
> -
> 1) Start Eclipse, then select Help > Software Updates
> 2) In the dialog that appears, click the Available Software tab.
> 3) Click Add Site...
> 4)Enter this as the Location:https://dl-ssl.google.com/android/eclipse/
> 5)Click OK.
> 6) Back in the Available Software view, you should see the plugin.
> Select the checkbox next to Developer Tools and click Install...
> 7) On the subsequent Install window, "Android Developer Tools", and
> "Android Editors" should both be checked. The Android Editors feature
> is optional, but recommended. If you choose to install it, you need
> the WST plugin mentioned earlier in this page.
> Click Finish.
> 8) Restart Eclipse.
--~--~-~--~~~---~--~~
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: Signing APK

2009-02-09 Thread Tote

And what was the solution?

On Feb 8, 6:01 pm, "Kevin J. Brooks" 
wrote:
> Never mind guys, I got this figured out.  Thanks.
>
> On Sun, 2009-02-08 at 10:01 -0500, Kevin J. Brooks wrote:
> > When I try to sign my APK file using Keytool I get an error that says
> > failed to sign JAR file.  Here is the Session Log
>
> > java.util.zip.ZipException: invalid entry compressed size (expected 1192
> > but got 1197 bytes)
> >    at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:206)
> >    at
> > org.ragingcat.shared.util.jar.S_JarOutputStream.s_writeEntry(S_JarOutputStr 
> > eam.java:344)
> >    at
> > org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._s_writeJarEntry(KTLKprO 
> > penSignAbs.java:184)
> >    at
> > org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._signJarFile(KTLKprOpenS 
> > ignAbs.java:619)
> >    at
> > org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._doJob_(KTLKprOpenSignAb 
> > s.java:424)
> >    at
> > org.ragingcat.kst.util.jarsigner.KTLKprOpenSignKPAbs.doJob(KTLKprOpenSignKP 
> > Abs.java:312)
> >    at
> > org.ragingcat.kst.util.jarsigner.KTLKprOpenSignJks.doJob(KTLKprOpenSignJks. 
> > java:73)
> >    at
> > org.ragingcat.kst.swing.panel.PTabUICmdJsrSign.actionPerformed(PTabUICmdJsr 
> > Sign.java:235)
> >    at
> > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
> >    at javax.swing.AbstractButton
> > $Handler.actionPerformed(AbstractButton.java:2318)
> >    at
> > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: 
> > 387)
> >    at
> > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> >    at
> > javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListene 
> > r.java:236)
> >    at
> > java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
> >    at java.awt.Component.processMouseEvent(Component.java:6041)
> >    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
> >    at java.awt.Component.processEvent(Component.java:5806)
> >    at java.awt.Container.processEvent(Container.java:2058)
> >    at java.awt.Component.dispatchEventImpl(Component.java:4413)
> >    at java.awt.Container.dispatchEventImpl(Container.java:2116)
> >    at java.awt.Component.dispatchEvent(Component.java:4243)
> >    at
> > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
> >    at
> > java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
> >    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
> >    at java.awt.Container.dispatchEventImpl(Container.java:2102)
> >    at java.awt.Window.dispatchEventImpl(Window.java:2440)
> >    at java.awt.Component.dispatchEvent(Component.java:4243)
> >    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
> >    at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav 
> > a:273)
> >    at
> > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1 
> > 83)
> >    at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav 
> > a:173)
> >    at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
> >    at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
> >    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>
> > 1 ? ERROR (instance ID: 1)
> >  . location:
> > org.ragingcat.share.util.jar.S_JarOutputStream.s_writeEntry(jos, jey,
> > jfeInput, frmOwner, strTitleAppli)
> >  . message: excIO caught
--~--~-~--~~~---~--~~
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: Notification about GPS and GPRS access

2009-02-09 Thread Mark Murphy

Marcin Zduniak wrote:
>   I am preparing for the development of my first application for
> Android. This application needs to have network access as well as
> access to the embedded GPS perfectly without any notification to the
> user, or eventually only one notification during install time. Is it
> something possible to achieve in Android ? Do I need to purchase
> special certificate for it ?

That depends on what you mean by "any notification to the user". Users
will be prompted to confirm the grant of the necessary permissions at
install time. The GPS icon will appear in the status bar when the GPS is
in use, and GPS can be turned off by the user (e.g., airplane mode).

The general rule of thumb is: Android isn't designed to support "without
any notification to the user", particularly when those things have cost
or privacy ramifications.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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 and USB

2009-02-09 Thread Mark Murphy

William Grazier wrote:
> Does anyone know if there are USB libraries within Android which would
> allow me to interface to an external USB peripheral (in this case, a
> data acquisition board)? Any feedback will be greatly appreciated.

At the API level, I do not believe so.

At the firmware level, yes, but questions about firmware are probably
best asked on a firmware-related list:

http://source.android.com/discuss

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training in Sweden -- http://www.sotrium.com/training.php

--~--~-~--~~~---~--~~
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: Beer Radar Tutorial

2009-02-09 Thread madcoder

I want it...NOW


On Feb 9, 2:00 am, Strawp  wrote:
> On Feb 8, 5:10 pm, android-noob  wrote:> Hi,
>
> > I created a tutorial that maps the user's GPS location with BEER
> > locations :)
>
> >http://www.androidph.com
>
> >http://www.androidph.com/2009/02/app-10-beer-radar.html
>
> > -ice
>
> Excellent! This is one of those apps that fills a need I didn't
> realise I had ;)
>
> You need to sort out the formatting on your blog text though, e.g.
> preserve whitespace on source code snippets and use real unordered
> lists as bullet points instead of putting dashes in. As it is it's
> pretty flat and just makes it hard to read. +1 RSS subscription from
> me though.
>
> Are you going to turn that app into a real service?
>
> Iain
--~--~-~--~~~---~--~~
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] Notification about GPS and GPRS access

2009-02-09 Thread Marcin Zduniak

Hello,

  I am preparing for the development of my first application for
Android. This application needs to have network access as well as
access to the embedded GPS perfectly without any notification to the
user, or eventually only one notification during install time. Is it
something possible to achieve in Android ? Do I need to purchase
special certificate for it ?

Thank you and best regards,
  Marcin
--~--~-~--~~~---~--~~
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 indicate a carriage return in strings?

2009-02-09 Thread frizzo

I want to show some text in the AlertDialog.  This text comes from
strings.xml where I've defined a string.  However, I am having trouble
telling the AlertDialog to respect carriage returns, that I've encoded
into the XML string via  statements?

For instance

This is a question  
This is the answer.

Is there another way to represent carriage returns?

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
-~--~~~~--~~--~--~---