[android-beginners] Re: Making my first Application

2009-03-30 Thread william Howser
Well that's discouraging and motivating at the same time. Either way, I
really appreciate the help. I've begun to look at the websites you offered
to learn from. In the mean-time... as a programmer, maybe you'd like to work
with me for a reasonable return of earings? This application will bring new
lite to the music end of Android Market.

On Mar 30, 2009 2:28 PM, "droozen"  wrote:


That's kind of a big ticket. As a warning, it may take you several
months, if not years, to get up and running. I'm a java developer of >
3 years and I've been programming for the Android phone for 1 month.
Though I had my first app out in a couple days, it took me at least a
couple weeks before I was really getting the hand of it. And it
depends on what you want to do; I'm still learning after a month and I
haven't even tried complicated stuff.

Don't let all that deter you. Just letting you know beforehand the
determination you may need.

First, I'd look at learning Java programming. I learned programming
through 4 years of Computer Science college, so I don't know which
books would help you out. But that's step one.

As you're learning Java programming, learn how to use the Swing GUI.
This will help you learn basics such as listeners, responding to
button presses, and doing the heavy work on a background thread.

Then, when you think you're ready for Android, go here
http://developer.android.com/guide/basics/what-is-android.html and
here http://developer.android.com/guide/tutorials/hello-world.html.
Learn some android basics and go through their tutorials.

That's just my opinion. Maybe others have some good suggestions on a
faster way to learn.

On Mar 28, 5:48 pm, Ender  wrote: > I've got
the best application for ...

--~--~-~--~~~---~--~~
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: Compiler Version

2009-03-30 Thread Sean Hodges
GCJ won't work (I assume that is what you are trying to use, GCC is a C++
compiler). I don't know where any official lists are, but I think the only
supported are Sun JD

On Mar 30, 2009 6:53 PM, "linuxjet"  wrote:


I don't know if I'm just blind but I can not see a recommended
compiler version list anywhere?
I an building on linux.
Using gcc.
Can someone point me in the right direction?


--~--~-~--~~~---~--~~
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] web widgets

2009-03-30 Thread vishal bhoj
hello ALL,

Are there any web widgets for android ? if not does google have plans to add
these  in future ?

-- 
with regards vishal

--~--~-~--~~~---~--~~
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: Compiler Version

2009-03-30 Thread Vishal Gaikwad
just go to the google type Android u will get ceratin option from them
select  the version
There are many version of the Android latest version is 1.0 old version is
0.9 version just downoad the zip file adn then reun into u'r pc.


On 3/30/09, linuxjet  wrote:
>
>
> I don't know if I'm just blind but I can not see a recommended
> compiler version list anywhere?
> I an building on linux.
> Using gcc.
> Can someone point me in the right direction?
>
> >
>

--~--~-~--~~~---~--~~
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 scroll a TileView around by finger

2009-03-30 Thread acrosser

I posted a similar question to this one 5 days ago but received no
replies. So I am changing my question fundamentally because I think I
was going down the wrong path before and asking the wrong questions.

In the API examples there is a Snake game. This game uses a class
called SnakeView, which inherits from TileView.

I am doing something very similar to this. I am inheriting from
TileView to create a class (SkyView), which will become a square board
for a board game (think of the board for Checkers).

However, I would like for my game board to be 400x400 pixels in size,
which will be bigger than the screens of some Android devices (such as
the G1). And I would like for the user to be able to freely scroll and
drag the board around with their finger (both horizontal and vertical
scrolling/dragging).

Can someone please point me in the correct direction for implementing
this? The board must be no smaller than 400x400px in size. And however
much of the board that can be displayed at once, should be displayed
at once.

Should I wrap my SkyView widget in an AbsoluteLayout and use
Scrollbars? Is there another view layout I should put it inside? Code
examples would be nice! Thanks for the help. I am at a loss with this
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] Re: Chronometer Problem

2009-03-30 Thread Injeniero Barsa

Any chance you could post tips or code?

Thanks in advanced.

On Mar 30, 6:18 pm, Brian  wrote:
> I think that's the way the chronometer works -- look at the code, it
> seems to be by design that it keeps counting when it's paused.  I just
> wrote my own pauseable chronometer to fix this...
>
> On Mar 30, 10:07 am, Injeniero Barsa  wrote:
>
> > Hello,
>
> > I'm having trouble with the Chronometer class. When I call the stop()
> > method, it freezes the display, but not the upcount. For instance, the
> > widget displays 00:04 and I call the stop() method. 8 seconds later I
> > call the start() method and it doesn't start from 00:04, but from
> > 00:12.
>
> > ¿How can I correct this?
>
> > Thanks in advanced.
--~--~-~--~~~---~--~~
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: "Your location cannot be determined"

2009-03-30 Thread Brian

I just did this, and it worked for me.

Start emulator
Start ddms
Go to Emulator Control tab in DDMS
Click the emulator-5554 in DDMS's left pane
Go into Maps app on emulator
Go to Menu / My Location
In DDMS in the right pane, under Location Controls, ensure Manual tab
is selected, and hit "Send"
The map in the emulator should go to Google HQ in Mountain View, CA

Using DDMS to send coords is how I test my gps listener for my app --
seems to work fine.

On Mar 30, 4:21 pm, Benjamin  wrote:
> > Did you have your emulator selected over in the tree-table on the left?
> > That would be if you are using DDMS standalone -- I am not 100% certain
> > the equivalent in the Eclipse perspective.
>
> Ok so I tried new things : I started the ddms.bat (wow it looks pretty
> powerful!) from the tools folder, then the emulator.exe, then I
> started Google Maps on the emulator, and there I started again the "My
> Location" thing, still got the error, and this message on the ddms
> log:
>
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):
> isProviderEnabled got exception:
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):
> java.lang.IllegalArgumentException: provider=network
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):     at
> com.android.server.LocationManagerService._isProviderEnabled
> (LocationManagerService.java:1210)
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):     at
> com.android.server.LocationManagerService.isProviderEnabled
> (LocationManagerService.java:1196)
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):     at
> android.location.ILocationManager$Stub.onTransact
> (ILocationManager.java:211)
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):     at
> android.os.Binder.execTransact(Binder.java:276)
> 03-30 20:17:47.399: ERROR/LocationManagerService(52):     at
> dalvik.system.NativeStart.run(Native Method)
>
> I don't understand it but it seems that the provider is "network", and
> in my app it's "gps".
>
> Any new ideas?
--~--~-~--~~~---~--~~
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: Chronometer Problem

2009-03-30 Thread Brian

I think that's the way the chronometer works -- look at the code, it
seems to be by design that it keeps counting when it's paused.  I just
wrote my own pauseable chronometer to fix this...

On Mar 30, 10:07 am, Injeniero Barsa  wrote:
> Hello,
>
> I'm having trouble with the Chronometer class. When I call the stop()
> method, it freezes the display, but not the upcount. For instance, the
> widget displays 00:04 and I call the stop() method. 8 seconds later I
> call the start() method and it doesn't start from 00:04, but from
> 00:12.
>
> ¿How can I correct this?
>
> Thanks in advanced.
--~--~-~--~~~---~--~~
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: "Your location cannot be determined"

2009-03-30 Thread Benjamin

> Did you have your emulator selected over in the tree-table on the left?
> That would be if you are using DDMS standalone -- I am not 100% certain
> the equivalent in the Eclipse perspective.

Ok so I tried new things : I started the ddms.bat (wow it looks pretty
powerful!) from the tools folder, then the emulator.exe, then I
started Google Maps on the emulator, and there I started again the "My
Location" thing, still got the error, and this message on the ddms
log:

03-30 20:17:47.399: ERROR/LocationManagerService(52):
isProviderEnabled got exception:
03-30 20:17:47.399: ERROR/LocationManagerService(52):
java.lang.IllegalArgumentException: provider=network
03-30 20:17:47.399: ERROR/LocationManagerService(52): at
com.android.server.LocationManagerService._isProviderEnabled
(LocationManagerService.java:1210)
03-30 20:17:47.399: ERROR/LocationManagerService(52): at
com.android.server.LocationManagerService.isProviderEnabled
(LocationManagerService.java:1196)
03-30 20:17:47.399: ERROR/LocationManagerService(52): at
android.location.ILocationManager$Stub.onTransact
(ILocationManager.java:211)
03-30 20:17:47.399: ERROR/LocationManagerService(52): at
android.os.Binder.execTransact(Binder.java:276)
03-30 20:17:47.399: ERROR/LocationManagerService(52): at
dalvik.system.NativeStart.run(Native Method)

I don't understand it but it seems that the provider is "network", and
in my app it's "gps".

Any new ideas?

--~--~-~--~~~---~--~~
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: Making my first Application

2009-03-30 Thread droozen

That's kind of a big ticket. As a warning, it may take you several
months, if not years, to get up and running. I'm a java developer of >
3 years and I've been programming for the Android phone for 1 month.
Though I had my first app out in a couple days, it took me at least a
couple weeks before I was really getting the hand of it. And it
depends on what you want to do; I'm still learning after a month and I
haven't even tried complicated stuff.

Don't let all that deter you. Just letting you know beforehand the
determination you may need.

First, I'd look at learning Java programming. I learned programming
through 4 years of Computer Science college, so I don't know which
books would help you out. But that's step one.

As you're learning Java programming, learn how to use the Swing GUI.
This will help you learn basics such as listeners, responding to
button presses, and doing the heavy work on a background thread.

Then, when you think you're ready for Android, go here
http://developer.android.com/guide/basics/what-is-android.html and
here http://developer.android.com/guide/tutorials/hello-world.html.
Learn some android basics and go through their tutorials.

That's just my opinion. Maybe others have some good suggestions on a
faster way to learn.

On Mar 28, 5:48 pm, Ender  wrote:
> I've got the best application for the Android Market! Only problem
> is.. I'm not a programmer, developer or any of the things I
> desperately need to be for my idea to hit the open Market. Does anyone
> have the time to walk me through some steps to get me on my way?
--~--~-~--~~~---~--~~
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: "Your location cannot be determined"

2009-03-30 Thread Benjamin

Hi Mark,
First of all, thanks for your help.

> There are several dozen examples on the Web site. They are all under the
> heading "Tutorials and Sample Code" in the navigation frame on the left.

I know that, but I was asking for more examples on every single Class
provided by the SDK, just as in the PHP documentation !

> If the built-in Google Maps application didn't work, then permissions
> are not your problem.
Yes I know, I was saying that in prevention.

> Did you have your emulator selected over in the tree-table on the left?
> That would be if you are using DDMS standalone -- I am not 100% certain
> the equivalent in the Eclipse perspective.
I'm using Eclipse, I don't know how to do that on Eclipse!

> Did you then click the [Send] button beneath the longitude and latitude
> fields?
Yes of course I did.

Thanks again!
--~--~-~--~~~---~--~~
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: "Your location cannot be determined"

2009-03-30 Thread Mark Murphy

Benjamin wrote:
> From what I've seen the online documentation is a mess: there is
> exactly no example AT ALL (well except the tutorials), and we all know
> how examples are useful for developers.

There are several dozen examples on the Web site. They are all under the
heading "Tutorials and Sample Code" in the navigation frame on the left.

> I added this to my manifest.xml file :
> 
> 

If the built-in Google Maps application didn't work, then permissions
are not your problem.

> and I also changed the Location Controls on the Emulator Control to
> the latitude and longitude of the Statue of Liberty (40.689; -74.045)

Did you have your emulator selected over in the tree-table on the left?
That would be if you are using DDMS standalone -- I am not 100% certain
the equivalent in the Eclipse perspective.

Did you then click the [Send] button beneath the longitude and latitude
fields?

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

_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] "Your location cannot be determined"

2009-03-30 Thread Benjamin

Hi guys,
I'm new to android development, I tried some stuffs since a week now.

>From what I've seen the online documentation is a mess: there is
exactly no example AT ALL (well except the tutorials), and we all know
how examples are useful for developers. But that's not the point
today.

So I tried to get my location on the emulator. Of course, not my real
location, but an emulate one. But for everything I tried, I had a 0.0
latitude, and a 0.0 longitude.

So I thought "maybe Google Maps can't do it too!". So I ran it, and I
got the "Your location cannot be determined" message.

I went to the Settings on the emulator phone, and the GPS is enabled.

So here's my question : do we have something special to do to get the
location?

I added this to my manifest.xml file :



and I also changed the Location Controls on the Emulator Control to
the latitude and longitude of the Statue of Liberty (40.689; -74.045)

So I really need your help guys!

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: Question about path to take

2009-03-30 Thread Mark Murphy

bsd_mike wrote:
> 
> For my night class, I need to create an application that displays a
> photo, info text, and a price.
> (Ok I am making a catalog)
> 
> The user will be able to see a screen with an item, hit a graphic
> button ("+") to order 1
> or "-" to remove one for the order.
> 
> I have created a XML layout for each of the 12 items.
> 
> Is that my best approach?

I would recommend using a ListView with a custom row for each of your
items in the catalog.

> It is possible just to have lists of my items and change one layout as
> I go, but I am unsure
> about how that may work.

http://androidguys.com/?s=fancy+listviews

That link points to a series of blog posts I have about your very issue.
Please forgive the broken formatting, and the examples are from last
summer and so may need some modification to work on the current SDK.

You can get the source code to my original Android book, which has
up-to-date editions of the sample code from the blog posts. Visit
http://commonsware.com/Android/ and click on the Source Code link.

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

_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] Question about path to take

2009-03-30 Thread bsd_mike


For my night class, I need to create an application that displays a
photo, info text, and a price.
(Ok I am making a catalog)

The user will be able to see a screen with an item, hit a graphic
button ("+") to order 1
or "-" to remove one for the order.

I have created a XML layout for each of the 12 items.

Is that my best approach?

It is possible just to have lists of my items and change one layout as
I go, but I am unsure
about how that may work.

How could change a ImageView on the fly?

Thank you in advance for any help.
-Mike

--~--~-~--~~~---~--~~
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] Making my first Application

2009-03-30 Thread Ender

I've got the best application for the Android Market! Only problem
is.. I'm not a programmer, developer or any of the things I
desperately need to be for my idea to hit the open Market. Does anyone
have the time to walk me through some steps to get me on my way?

--~--~-~--~~~---~--~~
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] LocationManager - issue with setting distance/time filter

2009-03-30 Thread Brian Gyss

I'm encountering what appears to be inconsistencies with how the
distance and time filter settings for the LocationManager are
currently working when I attempt to log the current GPS location in an
application that I'm writing.  The phone that I'm using to log is a G1
(non-dev phone).

Basically, I'm trying to run a GPS logger as a background service that
starts when the phone is booted up.  The code that loads the Service
seems to work properly so I'm going to provide a snippet of the actual
GPS logger itself.

-

public class LocationLoggerService extends Service {

@Override
public IBinder onBind(Intent intent) {
return null;
}

@Override
public void onCreate() {
// setup logging
long maxTime = 36;
int maxDist = 3;
startLocationUpdates(maxTime, maxDist);
}

public void startLocationUpdates(long maxTime, int maxDist) {
// start location updates
LocationManager lm = (LocationManager)getSystemService
(Service.LOCATION_SERVICE);
LocationListener mLocationListener = new LocationListener() {

@Override
public void onLocationChanged(Location loc) {
float speed = loc.getSpeed();
double longitude = loc.getLongitude();
double latitude = loc.getLatitude();
long time = loc.getTime();
time = time / 1000;

try {
*submit stuff goes here*
} catch (Exception e) {
e.printStackTrace();
}

}

@Override
public void onProviderDisabled(String arg0) {
}

@Override
public void onProviderEnabled(String arg0) {
}

@Override
public void onStatusChanged(String arg0, int arg1, 
Bundle arg2) {
}
};
Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
lm.requestLocationUpdates(lm.getBestProvider(criteria, true),
maxTime, maxDist, mLocationListener);
}
}

-

What I'm expecting to happen with this code is that the
LocationManager either 1) logs a fine (no wi-fi location) location
every half hour or 2) logs a fine location every time the device moves
2m.  This code should only register a point every 30 minutes unless
the device is in motion.

However, I'm finding that it actually does the following:

1) on startup, logs about five points while the device is stationary
and then proceeds to log about every 30 seconds.
2) when the device is in motion, logs sporadically - basically a trip
of around 10-15 kilometers only logged around 72 points, many with
incorrect speed

I think what I'd like is if I could utilize the maxTime and maxDist
settings without the second case occuring (it seems to be constantly
dropping the GPS fix and then trying to re-acquire it, introducing a
lot of error in the process).

Any suggestions on how to solve these issues would be greatly
appreciated.

Thanks!

-b


--~--~-~--~~~---~--~~
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: Problem with Emulator

2009-03-30 Thread Vishal Gaikwad
I need to convert text file into jpeg file

On 3/30/09, gganesh  wrote:
>
>
> hi ,
> I could launch any application on emulator has it shows error like
>
>
> ERROR/mountd(19): could not read initial mass storage state
> ERROR/flash_image(28): can't find recovery partition
> DEBUG/AndroidRuntime(23): >> AndroidRuntime START
> <<
> DEBUG/AndroidRuntime(23): CheckJNI is ON
> ERROR/dalvikvm(23): Unable to find run() in java.lang.Thread
> DEBUG/dalvikvm(23): VM cleaning up
> DEBUG/dalvikvm(23): LinearAlloc 0x0 used 15972 of 4194304 (0%)
> WARN/dalvikvm(23): JNI_CreateJavaVM failed
> ERROR/AndroidRuntime(23): JNI_CreateJavaVM failed
> INFO/(24): ServiceManager: 0xaab8
> INFO/AudioFlinger(24): AudioFlinger's main thread ready to run.
> INFO/CameraService(24): CameraService started: pid=24
> DEBUG/RILD(22): overriding with -s /dev/socket/qemud_gsm
> DEBUG/AndroidRuntime(48): >> AndroidRuntime START
> <<
>
>
> I could not figure out what went wrong
> I'm using Ubuntu 8.4
> Eclipse 3.4
> java 1.6
>
> 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] Embedded sound not possible in webview or browser?

2009-03-30 Thread Danneman

Ive tried playing a sound from the browser (and from a stand-alone
webview from within an app), trying all different html/javascript-
sounds available on this site:
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm

But nothing works, neither in the emulator, nor for people with an
android-phone who have been kind enough to try it out.

So, it appears to be a flaw in the browser/webview (deliberate to let
the operators have full controll over sound-playback?).

Are there other methods than those available on the site above to play
sounds within a webpage on an android-device?

And what about work-arounds? Can your javacode react on events
triggered in a webpage that is loaded into your app's webview?
As a comparison, in Xcode (the ide for iPhone-apps) your obj-c code
could react to, for instance, a -tag that was
triggered, and extract the url ("something") to be used in its native
code. Is something similar available on android?

--~--~-~--~~~---~--~~
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] Overlay View on other views

2009-03-30 Thread Dhawal

Hi,

I am new to android and trying to find out how to overlay views and/or
clickable objects on other views. I want to replicate the
functionality similar to one provided by the Overlay class in
com.google.android.maps. Any ideas/suggestions?

Regards,
Dhawal

--~--~-~--~~~---~--~~
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] Menu items and Contex Menu items

2009-03-30 Thread Mariam Rady

Hi all,

I want to add a Menu item or a Context Menu item that can be globally
seen by some of the built in Android Applications. Is this 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: onCreateContextMenu ListView Confusion

2009-03-30 Thread Lorents

Thanks, I was looking for the same :)

On Feb 21, 8:28 pm, robotissues  wrote:
> Thanks anyway.
>
> Answer was in NotesList example ...
>
> hopefully this will save someone else's forehead/desktop ...
>
> http://code.google.com/android/samples/NotePad/src/com/example/androi...
>
> On Feb 21, 1:11 pm, robotissues  wrote:
>
> > I am unsure that made any sense - brain is a bit super saturated with
> > code at the moment.  Let me rephrase ...
>
> > I have a ListActivity.  When I short click on a list item, I get the
> > position via onListItemClick event.  When I long click on the same
> > spot, the context menu comes up.  The thing is that there is no info
> > on the position.  I would like to get the selected item without
> > requiring the user to short click and then long click.  I have seen
> > this functionality in Android apps, so I may be missing something
> > obvious.  Help appreciated none the less.
>
> > Thanks!
>
> > On Feb 21, 12:54 pm, robotissues  wrote:
>
> > > I would need to determine the position of the item where the
> > > ContextMenu was triggered from.  Can this be done?  If so, how.  I can
> > > single click then long click ... but this feels like an extra step.
> > > Advice 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] Chronometer Problem

2009-03-30 Thread Injeniero Barsa

Hello,

I'm having trouble with the Chronometer class. When I call the stop()
method, it freezes the display, but not the upcount. For instance, the
widget displays 00:04 and I call the stop() method. 8 seconds later I
call the start() method and it doesn't start from 00:04, but from
00:12.

¿How can I correct this?

Thanks in advanced.

--~--~-~--~~~---~--~~
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] Applet Alert

2009-03-30 Thread wingy3181

Hi I was wondering if anyone could help me?
I have installed eclipse 3.4 with the Android plugin
Whenever I try and point the plugin to the Android SDK, I get an
applet alert dialog box with the message "The applet is attempting to
access the "isDirectory" state attributes of file C:\.
with 3 buttons "Allow", "Disallow", "stop applet"

I'm not sure what the issue is.
Is it because the plugin is unsigned?
is there something wrong with my installation of java (am on java 6
atm)

Thanks in Advance

--~--~-~--~~~---~--~~
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] Embedded sound not supported in WebView or Webbrowser?

2009-03-30 Thread Danneman

Ive tried playing a sound from the browser (and from a stand-alone
webview from within an app), trying all different html/javascript-
sounds available on this site:
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm

But nothing works, neither in the emulator, nor for people with an
android-phone who have been kind enough to try it out.

So, it appears to be a flaw in the browser/webview (deliberate to let
the operators have full controll over sound-playback?).

Are there other methods than those available on the site above to play
sounds within a webpage on an android-device?

And what about work-arounds? Can your javacode react on events
triggered in a webpage that is loaded into your app's webview?
As a comparison, in Xcode (the ide for iPhone-apps) your obj-c code
could react to, for instance, a -tag that was
triggered, and extract the url ("something") to be used in its native
code. Is something similar available on android?

--~--~-~--~~~---~--~~
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] Awesome new app!!

2009-03-30 Thread william Howser
I've got an awesome new app that desperately needs to be in the market.
Problem is I don't have the foggiest! I've downloaded the sdk on my mac, but
got lost in direction. Any help would be the best cause' I can't wait to get
this app out for people! Thanks and I'm looking forward to hearing from
you!  Ed

--~--~-~--~~~---~--~~
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] Compiler Version

2009-03-30 Thread linuxjet

I don't know if I'm just blind but I can not see a recommended
compiler version list anywhere?
I an building on linux.
Using gcc.
Can someone point me in the right direction?

--~--~-~--~~~---~--~~
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] Conversiton of textfile to imagefile

2009-03-30 Thread vishal

I am trying to convert the text message into jpeg.
I am not geting the idea of the conversiton of the text to image.
please send me the hint and code.

Email:-vishalgaikwa...@gamil.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: openInputStream problem

2009-03-30 Thread Tejas

well its started working.. the same code !!

On Mar 18, 9:31 pm, Tejas  wrote:
> Hi,
>
> I'm trying to read an image (taken on camera) that I need to POST to a
> server.
> I'm using the following code:
>
> 
>        OutputStream os = urlConn.getOutputStream();
>
>        ContentResolver cR = this.getContentResolver();
>        InputStream is = cR.openInputStream(photoUri);
>        BufferedInputStream buf = new BufferedInputStream(is);
>        int readBytes = 0;
>
>        while ((readBytes = buf.read()) != -1){
>            os.write(readBytes);
>        }
>
> 
>
> But when I debug, I find that readBytes never gets a -1 (i.e eof). Can
> anyone tell what is wrong here?
> Is there any other alternative to read photos taken by the phone
> camera (get a stream or bytes) to be POSTed to services etc...
>
> Cheers,
> Tej
--~--~-~--~~~---~--~~
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: dx moaning

2009-03-30 Thread BeWillDir

Following up:

b...@gizmo:~$ javac -version
javac 1.6.0_12

This on the problem machine.  For the machine that is working fine
(dex not complaining):

b...@flipper:~$ javac -version
javac 1.6.0_07

But as indicated earlier, they produce apparently identical class
files:

b...@gizmo:~/android/Apprise/bin/classes/net/from/apprise$ sum *
10609 1 Apprise$APBR.class
13164 3 Apprise.class
38798 1 R$attr.class
32369 1 R.class
51563 1 R$layout.class
58496 1 R$string.class

vs.

b...@flipper:~/android/Apprise/bin/classes/net/from/apprise$ sum *
10609 1 Apprise$APBR.class
13164 3 Apprise.class
38798 1 R$attr.class
32369 1 R.class
51563 1 R$layout.class
58496 1 R$string.class



On Mar 30, 8:18 am, BeWillDir  wrote:
> Good question, and I'll get back to you precisely on that shortly (but
> I do know it is a Sun JDK), but please note that all the class files
> are identical in size to those on the system where dx works OK, and at
> least one has a matching (sum) checksum.  So I suspect they are all
> identical.
>
> Beyond this immediate problem, I seek to understand better what dx is
> trying to tell me in some depth.  I'm also seeking a source of more
> info on dx beyond the usage info emitted by the command -- like a man
> page, or better, some comprehensive writeup.  Any pointers on this?
>
> On Mar 30, 8:04 am, David Turner  wrote:
>
> > Which exact JDK are you using ? I believe some JDKs create class files that
> > are not supported by dex yet
--~--~-~--~~~---~--~~
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: dx moaning

2009-03-30 Thread BeWillDir

Good question, and I'll get back to you precisely on that shortly (but
I do know it is a Sun JDK), but please note that all the class files
are identical in size to those on the system where dx works OK, and at
least one has a matching (sum) checksum.  So I suspect they are all
identical.

Beyond this immediate problem, I seek to understand better what dx is
trying to tell me in some depth.  I'm also seeking a source of more
info on dx beyond the usage info emitted by the command -- like a man
page, or better, some comprehensive writeup.  Any pointers on this?

On Mar 30, 8:04 am, David Turner  wrote:
> Which exact JDK are you using ? I believe some JDKs create class files that
> are not supported by dex yet

--~--~-~--~~~---~--~~
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: Problem with Emulator

2009-03-30 Thread gganesh

Thanks David for your reply
I got the problem solved by clearing all files under .android folder




On Mar 30, 5:00 pm, David Turner  wrote:
> it looks like there is something fishy in your system image. Try starting
> with "emulator -wipe-data" once to see if this solves the issue.
> If it doesn't, try re-downloading the SDK.
>
> If that doesn't solve the issue, let us know by giving us as much detail as
> possible as to what you do to build/install/start your
> application.
>
> On Mon, Mar 30, 2009 at 6:03 AM, gganesh  wrote:
>
> > hi ,
> > I could launch any application on emulator has it shows error like
>
> >  ERROR/mountd(19): could not read initial mass storage state
> >  ERROR/flash_image(28): can't find recovery partition
> > DEBUG/AndroidRuntime(23): >> AndroidRuntime START
> > <<
> > DEBUG/AndroidRuntime(23): CheckJNI is ON
> > ERROR/dalvikvm(23): Unable to find run() in java.lang.Thread
> > DEBUG/dalvikvm(23): VM cleaning up
> > DEBUG/dalvikvm(23): LinearAlloc 0x0 used 15972 of 4194304 (0%)
> > WARN/dalvikvm(23): JNI_CreateJavaVM failed
> > ERROR/AndroidRuntime(23): JNI_CreateJavaVM failed
> > INFO/(24): ServiceManager: 0xaab8
> > INFO/AudioFlinger(24): AudioFlinger's main thread ready to run.
> > INFO/CameraService(24): CameraService started: pid=24
> > DEBUG/RILD(22): overriding with -s /dev/socket/qemud_gsm
> > DEBUG/AndroidRuntime(48): >> AndroidRuntime START
> > <<
>
> > I could not figure out what went wrong
> > I'm using Ubuntu 8.4
> > Eclipse 3.4
> > java 1.6
>
> > 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: dx moaning

2009-03-30 Thread David Turner
Which exact JDK are you using ? I believe some JDKs create class files that
are not supported by dex yet

On Mon, Mar 30, 2009 at 2:44 AM, Bill Michaelson wrote:

> I've been using ant to build my .apk on one of my office systems.  Works
> fine.  Now I'm preparing for a trip and I want to continue development on my
> netbook, but I'm haviing trouble with the build process.  It appears to run
> the compiler OK, and generates a set of class files identical to that on my
> first system (verified by checksums), but the netbook build fails in the dx
> phase with messages as shown below.  I don't know where to look to determine
> what is different about the netbook installation that causes different
> behavior, and I don't have a very good idea about how to interpret what the
> messages are telling me in order to determine the cause or how to correct
> it.  Help would be appreciated.
>
> dex:
>  [echo] Converting compiled files and external libraries into
> bin/classes.dex...
> [apply]
> [apply] trouble processing:
> [apply] invalid constant pool index 
> [apply] ...while parsing attributes[1]
> [apply] ...while parsing Code attribute at offset 0715
> [apply] ...while parsing attributes[0]
> [apply] ...while parsing methods[0]
> [apply] ...while parsing net/from/apprise/Apprise.class
> [apply] ...while processing net/from/apprise/Apprise.class
> [apply]
> [apply] trouble processing:
> [apply] invalid constant pool index 
> [apply] ...while parsing attributes[1]
> [apply] ...while parsing Code attribute at offset 00ff
> [apply] ...while parsing attributes[0]
> [apply] ...while parsing methods[0]
> [apply] ...while parsing net/from/apprise/R$attr.class
> [apply] ...while processing net/from/apprise/R$attr.class
> [apply]
> ...more stuff like 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: Problem with Emulator

2009-03-30 Thread David Turner
it looks like there is something fishy in your system image. Try starting
with "emulator -wipe-data" once to see if this solves the issue.
If it doesn't, try re-downloading the SDK.

If that doesn't solve the issue, let us know by giving us as much detail as
possible as to what you do to build/install/start your
application.

On Mon, Mar 30, 2009 at 6:03 AM, gganesh  wrote:

>
> hi ,
> I could launch any application on emulator has it shows error like
>
>
>  ERROR/mountd(19): could not read initial mass storage state
>  ERROR/flash_image(28): can't find recovery partition
> DEBUG/AndroidRuntime(23): >> AndroidRuntime START
> <<
> DEBUG/AndroidRuntime(23): CheckJNI is ON
> ERROR/dalvikvm(23): Unable to find run() in java.lang.Thread
> DEBUG/dalvikvm(23): VM cleaning up
> DEBUG/dalvikvm(23): LinearAlloc 0x0 used 15972 of 4194304 (0%)
> WARN/dalvikvm(23): JNI_CreateJavaVM failed
> ERROR/AndroidRuntime(23): JNI_CreateJavaVM failed
> INFO/(24): ServiceManager: 0xaab8
> INFO/AudioFlinger(24): AudioFlinger's main thread ready to run.
> INFO/CameraService(24): CameraService started: pid=24
> DEBUG/RILD(22): overriding with -s /dev/socket/qemud_gsm
> DEBUG/AndroidRuntime(48): >> AndroidRuntime START
> <<
>
>
> I could not figure out what went wrong
> I'm using Ubuntu 8.4
> Eclipse 3.4
> java 1.6
>
> 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
-~--~~~~--~~--~--~---