[android-beginners] I found the minus key on the android emulator

2009-06-24 Thread MMC2

I have been battling with the issue of how to enter a negative number
into an EditText. I have discovered the answer to the problem and
would like to share it. The minus key on the android emulator is the
"g" key. This seems to be a surprising place for it to be at first,
but with the benefit of hindsight, it is to the immediate right of the
center of the alternative  "calculator style" numeric keyboard that
you get when you specify numeric input for an EditText. It is
unfortunate that the numerals and the minus sign are not shown on
these keys.

Thanks to those who replied to me and tried to 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] User login from mobile app

2009-06-24 Thread MCON Dev
Hello,

I am planning to write a android application that logs into a remote user
database. Once logged in the user can perform multiple tasks. I need some
guidance on the technologies I need to read up to achieve it. I read up
OpenLDAP, and Unbound API's for LDAP. Soon I will prototype the LDAP way.

I was thinking of providing the OpenID way of login. So anyone with a openID
login should be able to use my services. Any guidance there ?

One last approach I had was using a MySQL database.

Its a simple task. Multiple applications I use today on my Nokia phone do
user login. So I know its possible. I just need some guidance on where to
start looking/reading.

Thanks in advance
siddha...@mcon

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



[android-beginners] Re: Basic Layout

2009-06-24 Thread schwiz

try using 1 linear layout with a TableLayout tag inside then TableRow
inside of that.  Make sure  your TableLayout has the attribute
android:stretchColumns="*"
this should do it!

On Jun 23, 10:16 pm, ayush  wrote:
> its hard to figure out without looking at your XML content. my guess
> is that you are using the "fill_parent" value for the layout_width of
> your linear layouts and the ImageView. replace this by "wrap_content"
> or alternatively specify the exact width in pixels that you want each
> of the 3 linear layouts to be. you will also have to use the same
> value on the ImageView.
>
> On Jun 23, 5:13 am, Carl  wrote:
>
> > Why has it got to be s difficult?  For a week now I’ve been
> > reading and playing around with code and have still not found the
> > answer
>
> > I want a simple 3 column layout, with images going from bottom to top
> > in each.
> > Whenever I put 3 LinearLayouts next to each other in the Activity, the
> > first one takes up all the space.
> > That is if I add an ImageView to it in the XML. If I don’t then all
> > none of the Layouts appear.
>
> > Very frustrated and about to quit Android altogether. Please 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: Ringing the phone

2009-06-24 Thread Balwinder Kaur (T-Mobile)

How about this ?

Uri defuri = RingtoneManager.getDefaultUri
(RingtoneManager.TYPE_RINGTONE);
Ringtone r = RingtoneManager.getRingtone(mContext, defuri); //where
mContext is your Context object
r.play();


Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jun 23, 2:45 pm, bear123434...@comcast.net wrote:
> Can someone supply some sample code that shows how to cause the default 
> ringtone to play for about a second and stop?
--~--~-~--~~~---~--~~
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 on Ubunty 9.04: redux, connecting your G1

2009-06-24 Thread Neil Hendrick
THis is what worked for me to get my G1 connected to my Ubuntu 64 Jaunty.



mojote...@kobo:~$ adb devices
List of devices attached

(note: nothing listed here)

mojote...@kobo:~$ sudo touch /etc/udev/rules.d/51-android.rules
[sudo] password for mojotexas:
mojote...@kobo:~$ sudo vi /etc/udev/rules.d/51-android.rules

in vi, add the line:

UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

mojote...@kobo:~$ ls /etc/udev/rules.d/
51-android.rules 70-persistent-cd.rules 70-persistent-net.rules README

mojote...@kobo:~$ sudo chmod a+rx /etc/udev/rules.d/*-android.rules

mojote...@kobo:~$ sudo /etc/init.d/udev reload
* Reloading kernel event manager... [ OK ]

mojote...@kobo:~$ adb kill-server

mojote...@kobo:~$ adb start-server

mojote...@kobo:~$ adb devicesList of devices attached
HT850GZ54711 device



-- 
~m0j0

Neil Hendrick
Yogi Berra   -
"I never said most of the things I said."

--~--~-~--~~~---~--~~
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] New UI

2009-06-24 Thread johnny

Does anyone know if the new sense UI will be available for the dev G1
for testing? That would be awesome.

Thanks,

- Johnny

--~--~-~--~~~---~--~~
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: Low performance using SurfaceView, touchMode and OptionMenu

2009-06-24 Thread Gazy

Im having the exact same issue - restarting the activity results in
60fps again but now and again pressing the menu key will result in the
surfaceview running at 40fps and staying that way. It seems to be at
the same time the app is struggling a little bit with doing many
things as I can recreate it quite often. Any ideas??

On May 10, 4:32 am, hubert  wrote:
> Hi,
>
> I'm recently working on android application and i can not deal with
> performance issues. My app is based on SurfaceView, I use separate
> thread like in lunar lander. My problems starts when i use
> onTouchEvent and onCreateOptionMenu. I created a test application,
> which does nothing other drawing FPS on canvas. It shows up to 60 fps,
> some times 40-50 when i don't interact in it.  Another case - i start
> the same application, i have about 60 fps. Then I open option menu and
> it slow down to 40 fps, i touch the screen and another drop to about
> 20 fps. If i stop touch the screen fps increase to about 40 some times
> 50 but not to 60. Sometimesi have the case that app runs with 60 fps,
> i start option menu and touch the scren and I have 60 fps as on
> beginning. I have no ideas why is this happens. If anyone has any
> idea, please reply.

--~--~-~--~~~---~--~~
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] Sense UI

2009-06-24 Thread johnny

Sorry if this is a duplicate post (can't find my old one). I was
wondering if anyone knew wether or not the new HTC Sense UI would be
made available for developers to run on the developme G1?

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] adb cannot get devices on Mac

2009-06-24 Thread Josh

Hi

I installed the 1.5 SDK and was trying to access a new HTC Magic using
adb. The command runs but show no devices attached

[24/06 19:19] j...@beaver:~ ! adb start-server
* daemon not running. starting it now *
* daemon started successfully *
[24/06 19:19] j...@beaver:~ ! adb devices
List of devices attached

[24/06 19:19] j...@beaver:~ !

I also tried enabled USB debuging mode on the HTC Magic, but still adb
shows no devices attached.

anyone can help me with this.

Thanks in advanced
Josh

--~--~-~--~~~---~--~~
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: Please Help! I Can't get the ADT Plugin to Install

2009-06-24 Thread Pamplemousse Mk2

Hello,

ADT 0.9.1 worked fine with Eclipse 3.4 until today. Eclipse asks me
for updates. So I accept the updates and now ADT can't open the XML
res files of my current projects.

Is ADT not compatible with updated Eclipse 3.4.2?

On 22 juin, 16:25, Sander  wrote:
> It did not work for me either when I used the update site. And I do
> not have a classic but the WTP version of Ganymede.
> In the end I downloaded the archive 
> fromhttp://developer.android.com/sdk/adt_download.html
> and I installed from a local archive.
> This worked without problems. Would be nice if the SDK had an eclipse
> directory with this ZIP archive inside.
>
> On May 6, 3:34 am, J  wrote:
>
> > I get this error no matter which of the 3 methods I try. What should I
> > do?
>
> > An error occurred while collecting items to be installed
> >   No repository found containing: org.eclipse.draw2d/osgi.bundle/
> > 3.4.1.v20080910-1351
> >   No repository found containing: org.eclipse.emf.common/osgi.bundle/
> > 2.4.0.v200808251517
> >   No repository found containing: org.eclipse.emf.ecore/osgi.bundle/
> > 2.4.1.v200808251517
> >   No repository found containing: org.eclipse.emf.ecore.change/
> > osgi.bundle/2.4.0.v200808251517
> >   No repository found containing: org.eclipse.emf.ecore.edit/
> > osgi.bundle/2.4.1.v200808251517
> >   No repository found containing: org.eclipse.emf.ecore.xmi/
> > osgi.bundle/2.4.1.v200808251517
> >   No repository found containing: org.eclipse.emf.edit/osgi.bundle/
> > 2.4.1.v200808251517
> >   No repository found containing: org.eclipse.wst.common.emf/
> > osgi.bundle/1.1.202.v200809111955
> >   No repository found containing:
> > org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/
> > 1.1.201.v200808071700
> >   No repository found containing: org.eclipse.wst.common.frameworks/
> > osgi.bundle/1.1.200.v200805140020
> >   No repository found containing:
> > org.eclipse.wst.common.project.facet.core/osgi.bundle/
> > 1.3.3.v200809102124
> >   No repository found containing: org.eclipse.wst.common.ui/
> > osgi.bundle/1.1.301.v200805140415
> >   No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/
> > 1.1.302.v200808260045
> >   No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/
> > 1.1.2.v200809120159
> >   No repository found containing: org.eclipse.wst.validation/
> > osgi.bundle/1.2.2.v200809050219
> >   No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/
> > 1.1.305.v200809120354
> >   No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/
> > 1.0.410.v200809120143

--~--~-~--~~~---~--~~
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] Map problem

2009-06-24 Thread jimmy

Hi i have problem that i cant show the map please help me. i m using
sdk1.0, adt0.8.0.



this is my .java file


package net.learn2develop.GoogleMaps;

//import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
//import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

import android.os.Bundle;

public class GoogleMaps extends MapActivity
{
 MapView mapView;
//private MapController mc;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

mapView = (MapView) findViewById(R.id.mapview1);
   // mc = mapView.getController();
mapView = new MapView(this,"0SPUa3va0ay5WY-8vrMy-
Vy2B_z5plRiNneEviw");
//String coordinates[] = {"40.747778", "-73.985556"};
//double lat = Double.parseDouble(coordinates[0]);
//double lng = Double.parseDouble(coordinates[1]);

//GeoPoint p = new GeoPoint(
 //   (int) (lat * 1E6),
  //  (int) (lng * 1E6));

//mc.animateTo(p);
//mc.setZoom(17);
//mapView.invalidate();
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}



this is my androidmanifest.xml file




http://schemas.android.com/apk/res/android";
package="net.learn2develop.GoogleMaps">










http://schemas.android.com/apk/res/android";
android:name="android.permission.INTERNET">


http://schemas.android.com/apk/res/android";
android:name="android.permission.ACCESS_COARSE_LOCATION">






and this is my main.xml file


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>





--~--~-~--~~~---~--~~
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 trying to run the emulator

2009-06-24 Thread ники тончев

when i run the emulator either from the cmd with the emulator command
or the exe file it says that i need to create avd but when i try to
create one it says
C:\Users\D.N.E.A>android create avd --target 2 --name my_avd
'java' is not recognized as an internal or external command,
operable program or batch file.

i have the latest java version installed and i still get this errror

--~--~-~--~~~---~--~~
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] G1 vs Emulator

2009-06-24 Thread Neil Hendrick
Droids,

I have managed to set up my G1 so that it is recognized by the system when
it is connected:

mojote...@kobo:~$ adb devices
List of devices attached
HT850GZ54711 device
emulator-5554 device

but when I try to run my application, I do not get the option to run on the
device. There is no device chooser, it goes straight to the emulator. Any
thoughts?


-- 
~Neil

Neil Hendrick
Bill Cosby   -
"A word to the wise ain't necessary - it's the stupid ones that need the
advice."

--~--~-~--~~~---~--~~
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] Cannot see my HTC Magic via DDMS to take screenshot

2009-06-24 Thread kidhermes

Hello

I'm new to Android and will start to develop on. But I can't connect
my phone (HTC Magic, branded Swisscom in Switzerland) to my XP Eclipse
+ SDK 1.5r1.

First I will simply take a few screenshot following this process:
http://blog.digitaltinder.net/2009/06/how-to-take-android-screenshots/

Won't! I can run the emulator via Eclipse with a project, but when I
plug my phone (debug mod on as requested), DDMS doesn't me any device.
Empty.
In my device manager on XP, I can see my phone as "HTC Android Phone
USB Device". And when I mount the drive, I can access to my sd card
with all the application and files.

Any advice(s)?

A lot of thx in advance.
Regards, Dom

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



[android-beginners] Re: Basic Layout

2009-06-24 Thread AndroidGameGuy

Agreed!  simple layout is a lot more work (take a look at iPhone's
Interface Builder for how easy drag & drop can be)

Anyway, the above suggestions make sense.  Maybe another idea is to
try the "preview" you get in Eclipse, that way you will quickly see
your XML changes without having to run your app on the emulator.

On Jun 22, 5:13 pm, Carl  wrote:
> Why has it got to be s difficult?  For a week now I’ve been
> reading and playing around with code and have still not found the
> answer
>
> I want a simple 3 column layout, with images going from bottom to top
> in each.
> Whenever I put 3 LinearLayouts next to each other in the Activity, the
> first one takes up all the space.
> That is if I add an ImageView to it in the XML. If I don’t then all
> none of the Layouts appear.
>
> Very frustrated and about to quit Android altogether. Please 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] pressing menu key slows down surfaceview

2009-06-24 Thread Gazy

Hi,

I have a surfaceview app and it runs at 60fps ordinarily, but
sometimes if i press the menu key the fps drop right down to 40fps.
This was happening when I moved over to another view for some ordinary
GUI stuff (not a surfaceview) and then back again but I got around it
by restarting the activity each time:

finish();
startActivity(getIntent());

 This meant it was always at 60fps, not an ideal solution but it
works. But now when I press the menukey it also happens sometimes
(perhaps under times of load more often than not), and restarting the
activity here isnt really feasible. So if anyone could shed any light
at all on why pressing the menu key would slow down my surfaceview
20fps, please let me know.

Its a very confusing one.

Gaz.

--~--~-~--~~~---~--~~
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 Data to a ListView

2009-06-24 Thread nbadal

Is there any way to add data to a listview, outside of a cursor? In my
application, I have a SQL database that I use to store data for each
list entry, but one of the numbers I need to show is not directly
derived from the database, but is instead calculated from a number
from the database. (Database stores a date, but I want to show the
number of days until that date)
I know the formula to get this number, but how would I insert it into
the list without putting it into my SQL database?

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



[android-beginners] Launch the listview in a new seprate screen

2009-06-24 Thread rohit

Hello Experts,

I have fetched the contacts from the phone and displayed it on the
ListView. But now would like to launch the ListView at new screen on a
button click.

Please help me..

Regards,
Rohit Mandiwal

--~--~-~--~~~---~--~~
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 connect external webcam

2009-06-24 Thread Shivanand

Hi,

I am beginner to android development. I want know how to connect
external usb webcam to android device..

Thanks,
Shiv.

--~--~-~--~~~---~--~~
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] GLSurfaceView.Renderer onSurfaceCreated/onSurfaceChanged not called if RENDERMODE_WHEN_DIRTY

2009-06-24 Thread Dante

Just trying to put together a simple OpenGL app, but I've run into a
problem. I'm exceptionally new to OpenGL, so maybe I'm missing
something painfully obvious...

I've created a GLSurfaceView and a GLSurfaceView.Renderer to draw a
simple 2D screen. Everything works as expected unless I call
setRenderMode(RENDERMODE_WHEN_DIRTY); When this render mode is in use,
the onSurfaceCreated() and onSurfaceChanged() methods are not called
when returning from an inbound phone call. (I've added some debug
printouts, so I can see if they're called).

I wasn't sure I was doing everything correctly, but if I remove the
call to setRenderMode(), the right thing happens and the renderer
resumes properly. The GLSurfaceView docs say you need to call onPause
() and onResume() at the appropriate times, and I'm doing that, but
they don't really say anything else about it that I can see. The
GLSurfaceView.Renderer docs don't really address this at all. Is there
some black magic I'm missing?

Should mention this is on the emulator, I'm using android-sdk-
windows-1.5_r2, Eclipse version: 3.4.2 (Ganymede), jdk1.6.0_14. Not
sure it would work on a device, I haven't got one yet.

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: IPsec support ?

2009-06-24 Thread Brian Cloutier
A search of the Androids kernel source returns 417 matches for IPsec

On Tue, Jun 23, 2009 at 5:42 AM, Ram  wrote:

>
> Hi,
>
> Is there IPsec support on Android.
> Does Android support Application developers to make use of the IPsec ?
>
> Thank you,
> Ram.
>
> >
>

--~--~-~--~~~---~--~~
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 install Android build on a g1

2009-06-24 Thread vale_arna

Hello,

I'm new to Android. I need to create a manet with some htc g1 for my
thesis work. I've received a g1 from the University with cupcake
already built on it. I noticed that ad-hoc mode is disabled by default
in cupcake, but i found this patch: 
https://review.source.android.com/Gerrit#change,9714
and I've compiled Android from source applying the patch and following
specific instructions for the g1 dream. Now I don't know which is the
best way to install the build on the device. Is fastboot a safe mode?
The device is not mine, so I'm paying attention to avoid dangerous
situations. I have the following images im my out/target/product/dream
directory (on my pc): boot.img, ramdisk.img, ramdisk-recovery.img,
recovery.img, system.img and userdata.img. Do I need to install all
these images on the phone to apply the update or I can copy only
system.img?

Thanks

Valerio

--~--~-~--~~~---~--~~
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] Eclipse plugin vs. conversion to Dalvik

2009-06-24 Thread Benjamin Herrenschmidt

Hi !

I haven't seen this in a FAQ and while Google turned out some mentions
of this problem, I didn't find an actual solution.

So I'm new to Android, planning to try it out, and did the following

 - Machine is an x86/32 runnig ubuntu jaunty

 - JVM is IBM jre1.5 but the problem is identical using Sun OpenJDK 6

 - Freshly installed Eclipse 3.4 with C/C++ and Java environments

 - Downloaded the Android SDK 1.5_r2, unpacket it, followed the
   procedure to install the android plugin from the location provided
   on the web pages etc..

 - Plugin configured to point to my SDK directory, it does see the 3
   target options fine (1.1, 1.5 and 1.5 + Google)

Now, if I create a new android project, from Eclipse, apparently
regardless of what I do, choose as name, location of files etc... what
-always- happen is that the resulting project, when build, pops the
following message:

[2009-06-24 13:10:58 - baroid] no classfiles specified
[2009-06-24 13:10:58 - baroid] Conversion to Dalvik format failed with error 1

I tried going into Properties->Android checking, unchecking etc.. the
build targets, cleaning the project, enabling or disabling automatic
build, anything, always this error.

This happens 100% of the time when creating a project, without anything
else but the default "generated" source file:

package com.example.baroid;

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

public class Baroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}

Any clue what's wrong ? Anything I can do to track this down ? While
and experienced kernel hacker, I have never used eclipse nor done
anything in Java yet so I could use some help here :-)

Cheers,
Ben.


--~--~-~--~~~---~--~~
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] PPC based development

2009-06-24 Thread Duder

>From what I understand, the Android Emulator for development testing
is Java based, and if I'm doing development with the ADT Eclipse
Plugin, that should be Java based as well...so I'm wondering why an
Intel processor is required for Android development, unless I were
using some x86 based executable to do so, which I would not be.

Admittedly, I don't know anything about the inner workings of the ADT,
but I'm not seeing why I couldn't do development on a G5 based build
of Eclipse.  Is there any way around the x86 requirement?

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] Using adb on Mac and HTC Magic

2009-06-24 Thread Josh

Hi,

I installed 1.5 SDK and was trying out the tools: adb. However, after
connecting the USB cable, and running adb the device cannot be
detected anyone can help?

[24/06 22:39] j...@beaver:~ ! adb start-server
* daemon not running. starting it now *
* daemon started successfully *
[24/06 22:40] j...@beaver:~ ! adb devices
List of devices attached


Thanks
Josh

--~--~-~--~~~---~--~~
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] GLSurfaceView Renderer problem

2009-06-24 Thread Ian

I've been working through some of the OpenGL stuff, but I've hit a bit
of a snag. I'd like to use the RENDERMODE_WHEN_DIRTY renderMode, but
it doesn't seem to recover from an incoming call properly -
onSurfaceCreated() and onSurfaceChanged() are not being called. The
docs say to call onPause() and onResume() at the appropriate times and
I've done that, but still no go.

I put in some debug prints and when RENDERMODE_CONTINUOUSLY is set, it
works fine - in fact, everything works fine either way until the app
is paused and resumed with RENDERMODE_WHEN_DIRTY. I'm really new to
OpenGL, so perhaps there's some black magic I'm missing. Any hints?

I should mention I'm using android-sdk-windows-1.5_r2, jdk1.6.0_14,
with Eclipse version 3.4.2. I've only seen this on the emulator so far
- I don't have a device 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] Can the main activity also be the starting activity?

2009-06-24 Thread AndroidGameGuy

I am working on a simple game app that I want to open right to the
game screen when the use launches the app.  No detours to a EULA, or
asking if they want a new game, etc.  Just go right to the game
screen.

It's going to be a simple game so 2D canvas graphics are all I need.
No views in XML, just creating a fullscreen canvas I can draw on.

So my question is, does it make any difference if the activity that is
launched by the application onCreate is different from the activity
that runs the game?  Is there a benefit to putting the game into a new
activity and class?  Is the activity that is started by the
application supposed to be reserved for setup only?

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: Sense UI

2009-06-24 Thread Romain Guy

That's question you should ask HTC :)

On Wed, Jun 24, 2009 at 9:38 AM, johnny wrote:
>
> Sorry if this is a duplicate post (can't find my old one). I was
> wondering if anyone knew wether or not the new HTC Sense UI would be
> made available for developers to run on the developme G1?
>
> thanks.
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
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] Using adb on Mac and HTC Magic

2009-06-24 Thread Joshua Lim
Repost : apologies but posting from the web page doesn't seem to go
through

-- Forwarded message --
From: Josh 
Date: 2009/6/24
Subject: Using adb on Mac and HTC Magic
To: Android Beginners 


Hi,

I installed 1.5 SDK and was trying out the tools: adb. However, after
connecting the USB cable, and running adb the device cannot be
detected anyone can help?

[24/06 22:39] j...@beaver:~ ! adb start-server
* daemon not running. starting it now *
* daemon started successfully *
[24/06 22:40] j...@beaver:~ ! adb devices
List of devices attached


Thanks
Josh

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



[android-beginners] Re: Launch the listview in a new seprate screen

2009-06-24 Thread Yusuf T. Mobile

Start a ListActivity: 
http://developer.android.com/reference/android/app/ListActivity.html



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Jun 24, 4:51 am, rohit  wrote:
> Hello Experts,
>
> I have fetched the contacts from the phone and displayed it on the
> ListView. But now would like to launch the ListView at new screen on a
> button click.
>
> Please help me..
>
> Regards,
> Rohit Mandiwal
--~--~-~--~~~---~--~~
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: Low performance using SurfaceView, touchMode and OptionMenu

2009-06-24 Thread Jason Van Anden

I highly recommend that you watch this:

http://www.youtube.com/watch?v=U4Bk5rmIpic

Jason Van Anden
http://www.smileproject.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: Adding Data to a ListView

2009-06-24 Thread nbadal

Never mind, I hadn't realized I posted this to the android-developers
group at:
http://groups.google.com/group/android-developers/browse_thread/thread/796342d2a30c0c0b#



On Jun 24, 9:19 am, nbadal  wrote:
> Is there any way to add data to a listview, outside of a cursor? In my
> application, I have a SQL database that I use to store data for each
> list entry, but one of the numbers I need to show is not directly
> derived from the database, but is instead calculated from a number
> from the database. (Database stores a date, but I want to show the
> number of days until that date)
> I know the formula to get this number, but how would I insert it into
> the list without putting it into my SQL database?
--~--~-~--~~~---~--~~
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] GUI Question

2009-06-24 Thread nbadal

Hi, does anybody know how to achieve a similar look to the unread mail
number box on the Mail application's account list? Is it a theme, or
just a drawable background?
--~--~-~--~~~---~--~~
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] HelloSpinner example runs but gives resource error

2009-06-24 Thread greg

I think I followed the instructions for the HelloSpinner example (part
of HelloViews documentation), and the HelloSpinner application runs
within the emulator.  However in the Eclipse Problems tab, the
following error message is displayed:

ERROR Error: No resource found that matches the given name (at
'prompt' with value '@string/planet_prompt').

The res/layout/main.xml file and the res/values/strings.xml are as
follows:

main.xml - - -


http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:padding="10dip"
android:layout_width="fill_parent"
android:layout_height="wrap_content">








strings.xml - - -



Hello World, HelloSpinner!
Hello, Spinner
Choose a planet


- - -

Did I miss something in the HelloSpinner instructions that's causing
this error?

- Greg

--~--~-~--~~~---~--~~
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: Garbage Collection of Threads

2009-06-24 Thread fadden

On Jun 23, 8:30 pm, Drifter  wrote:
> Unfortunately I've altered the code to actually start the TestThread
> and it still doesn't hit the breakpoint. Is there any way of
> implementing this without leaking TestThreads?

I tried your example as a simple class invoked from the shell.  It ran
the finalizer just fine.

Put this in Foo.java:

public class Foo {
public static void main(String[] args) {
TestThread t = new TestThread();

t.start();
try {
t.join();
} catch (InterruptedException ie) {}

t = null;
System.gc();

/*
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {}
*/

System.out.println("exiting " + t);
}
}

class TestThread extends Thread {
@Override
public void run()  {
System.out.println("Running...");
}

protected void finalize() throws Throwable {
System.out.println("finalizing TestThread");
super.finalize();
}
}

Then:

% javac -g Foo.java
% dx --dex --output=foo.jar Foo.class TestThread.class
% adb push foo.jar /sdcard
% adb shell dalvikvm -cp /sdcard/foo.jar Foo
  Running...
  finalizing TestThread
  exiting null

The sleep call may be needed to prevent the VM from exiting before the
finalizer thread has a chance to run.  The VM is not guaranteed to run
finalizers immediately, and may never invoke them at all if the VM
exits quickly.  In practice there seems to be enough of a lag from
handling the concatenating println call.

Incidentally, the "+ t" is on there to ensure that the "t = null"
actually happens.  If you use "javac Foo.java" instead of "javac -g
Foo.java", dx doesn't try to preserve debugging information.  Since it
doesn't think anybody will see the state of "t" after the null
assignment, it removes the assignment, and "t" still holds a valid
reference.

If we had live-precise GC this would be fine, since the GC would
ignore the never-used-again local.  We don't have live-precise GC,
which makes things a little weird if you're compiling with debugging
info disabled.  (I assume you have debugging enabled since you're
talking about setting breakpoints.)

Pedantic note: neither System.gc() nor System.runFinalization() are
guaranteed to do anything at all.  System.gc() may discard some but
not all objects, or it may just return immediately.
System.runFinalization() may wake up the finalization thread and
return immediately.  I happen to know that, in the current
implementation, System.gc() collects everything it can and
System.runFinalization() doesn't return until the finalizer queue is
empty, but you really don't want to depend on that in shipping code.

--~--~-~--~~~---~--~~
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: Garbage Collection of Threads

2009-06-24 Thread fadden

Somebody pointed me at this:

  http://bugs.sun.com/view_bug.do?bug_id=4410846

Apparently we're not the first. :-)

--~--~-~--~~~---~--~~
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: HelloSpinner example runs but gives resource error

2009-06-24 Thread greg

By the way, the emulator correctly displays the string (i.e.,
planet_prompt) at the top of the spinner selections.  Yet, the
Problems tab of Eclipse claims that no resource matches the name
planet_prompt.  Anyone else seeing this error in the HelloSpinner
example?

- Greg

On Jun 24, 2:57 pm, greg  wrote:
> I think I followed the instructions for the HelloSpinner example (part
> of HelloViews documentation), and the HelloSpinner application runs
> within the emulator.  However in the Eclipse Problems tab, the
> following error message is displayed:
>
> ERROR Error: No resource found that matches the given name (at
> 'prompt' with value '@string/planet_prompt').
>
> The res/layout/main.xml file and the res/values/strings.xml are as
> follows:
>
> main.xml - - -
>
> 
> http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:padding="10dip"
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content">
>
>              android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:layout_marginTop="10dip"
>         android:text="Please select a planet:"
>     />
>
>              android:id="@+id/spinner"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:drawSelectorOnTop="true"
>         android:prompt="@string/planet_prompt"
>     />
>
> 
>
> strings.xml - - -
>
> 
> 
>     Hello World, HelloSpinner!
>     Hello, Spinner
>     Choose a planet
> 
>
> - - -
>
> Did I miss something in the HelloSpinner instructions that's causing
> this error?
>
> - Greg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Basic Layout

2009-06-24 Thread Carl

Thanks for all your replies. I was so fed up!

Here is the layout xml. I did have the wrong (fill_parent) value in
layout_width.
That has solved that issue, thanks.

Also, the eclipse layout editor is such a great tool. It really helps
to see what you are doing before you try it in the emulator, as that
is such a long-winded process.

The problem I have now is that the first two columns are of equal
size, and the third is small - they all fit the screen size (which is
great) but they are not all the same size. This is also squeezing the
image in the third column.
Is there a way to resize the images so they are all the same size,
fitting the column?



http://schemas.android.com/apk/res/
android"
android:id="@+id/llPlay"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">























--~--~-~--~~~---~--~~
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 on Ubunty 9.04: redux, connecting your G1

2009-06-24 Thread Michael Leung
I can't connect my Kubuntu 9.04 as well. But that is a VM.

On Thu, Jun 25, 2009 at 2:47 AM, Neil Hendrick  wrote:

> THis is what worked for me to get my G1 connected to my Ubuntu 64 Jaunty.
>
>
>
> mojote...@kobo:~$ adb devices
> List of devices attached
>
> (note: nothing listed here)
>
> mojote...@kobo:~$ sudo touch /etc/udev/rules.d/51-android.rules
> [sudo] password for mojotexas:
> mojote...@kobo:~$ sudo vi /etc/udev/rules.d/51-android.rules
>
> in vi, add the line:
>
> UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
>
> mojote...@kobo:~$ ls /etc/udev/rules.d/
> 51-android.rules 70-persistent-cd.rules 70-persistent-net.rules README
>
> mojote...@kobo:~$ sudo chmod a+rx /etc/udev/rules.d/*-android.rules
>
> mojote...@kobo:~$ sudo /etc/init.d/udev reload
> * Reloading kernel event manager... [ OK ]
>
> mojote...@kobo:~$ adb kill-server
>
> mojote...@kobo:~$ adb start-server
>
> mojote...@kobo:~$ adb devicesList of devices attached
> HT850GZ54711 device
>
>
>
> --
> ~m0j0
>
> Neil Hendrick
> Yogi Berra  - "I 
> never said most of the things I said."
> >
>


-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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



[android-beginners] Re: Basic Layout

2009-06-24 Thread Carl

thanks. I tried that but unfortunately I then get an
arithmeticException.
It also seems pretty complicated to add Views to it.

On Jun 24, 3:36 pm, schwiz  wrote:
> try using 1 linear layout with a TableLayout tag inside then TableRow
> inside of that.  Make sure  your TableLayout has the attribute
> android:stretchColumns="*"
> this should do it!
>
> On Jun 23, 10:16 pm, ayush  wrote:
>
>
>
> > its hard to figure out without looking at your XML content. my guess
> > is that you are using the "fill_parent" value for the layout_width of
> > your linear layouts and the ImageView. replace this by "wrap_content"
> > or alternatively specify the exact width in pixels that you want each
> > of the 3 linear layouts to be. you will also have to use the same
> > value on the ImageView.
>
> > On Jun 23, 5:13 am, Carl  wrote:
>
> > > Why has it got to be s difficult?  For a week now I’ve been
> > > reading and playing around with code and have still not found the
> > > answer
>
> > > I want a simple 3 column layout, with images going from bottom to top
> > > in each.
> > > Whenever I put 3 LinearLayouts next to each other in the Activity, the
> > > first one takes up all the space.
> > > That is if I add an ImageView to it in the XML. If I don’t then all
> > > none of the Layouts appear.
>
> > > Very frustrated and about to quit Android altogether. Please help!- Hide 
> > > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Basic Layout

2009-06-24 Thread Christian Polzer

Have you tried an Relative Layout yet?

I think you can specify the left and right Item in the Xml for that?


Regards,,

Christian Polzer

christian.pol...@googlemail.com







On 24.06.2009, at 23:51, Carl wrote:

>
> thanks. I tried that but unfortunately I then get an
> arithmeticException.
> It also seems pretty complicated to add Views to it.
>
> On Jun 24, 3:36 pm, schwiz  wrote:
>> try using 1 linear layout with a TableLayout tag inside then TableRow
>> inside of that.  Make sure  your TableLayout has the attribute
>> android:stretchColumns="*"
>> this should do it!
>>
>> On Jun 23, 10:16 pm, ayush  wrote:
>>
>>
>>
>>> its hard to figure out without looking at your XML content. my guess
>>> is that you are using the "fill_parent" value for the layout_width  
>>> of
>>> your linear layouts and the ImageView. replace this by  
>>> "wrap_content"
>>> or alternatively specify the exact width in pixels that you want  
>>> each
>>> of the 3 linear layouts to be. you will also have to use the same
>>> value on the ImageView.
>>
>>> On Jun 23, 5:13 am, Carl  wrote:
>>
 Why has it got to be s difficult?  For a week now I’ve been
 reading and playing around with code and have still not found the
 answer
>>
 I want a simple 3 column layout, with images going from bottom to  
 top
 in each.
 Whenever I put 3 LinearLayouts next to each other in the  
 Activity, the
 first one takes up all the space.
 That is if I add an ImageView to it in the XML. If I don’t then all
 none of the Layouts appear.
>>
 Very frustrated and about to quit Android altogether. Please  
 help!- Hide quoted text -
>>
>> - Show quoted text -
> >


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



[android-beginners] Re: Eclipse plugin vs. conversion to Dalvik

2009-06-24 Thread Benjamin Herrenschmidt

On Wed, 2009-06-24 at 15:24 +1000, Benjamin Herrenschmidt wrote:
> Hi !
> 
> I haven't seen this in a FAQ and while Google turned out some mentions
> of this problem, I didn't find an actual solution.
> 
> So I'm new to Android, planning to try it out, and did the following
> 
>  - Machine is an x86/32 runnig ubuntu jaunty
> 
>  - JVM is IBM jre1.5 but the problem is identical using Sun OpenJDK 6

And that was the problem !

If I use Sun JDK 5, it works...

Cheers,
Ben.



--~--~-~--~~~---~--~~
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: Eclipse plugin vs. conversion to Dalvik

2009-06-24 Thread Raphael

Hi Ben, long time no see :-)

That's a frequent error that happens when no classes were properly
generated. And yes in this case the JDK matters a lot.

R/

On Wed, Jun 24, 2009 at 3:26 PM, Benjamin
Herrenschmidt wrote:
>
> On Wed, 2009-06-24 at 15:24 +1000, Benjamin Herrenschmidt wrote:
>> Hi !
>>
>> I haven't seen this in a FAQ and while Google turned out some mentions
>> of this problem, I didn't find an actual solution.
>>
>> So I'm new to Android, planning to try it out, and did the following
>>
>>  - Machine is an x86/32 runnig ubuntu jaunty
>>
>>  - JVM is IBM jre1.5 but the problem is identical using Sun OpenJDK 6
>
> And that was the problem !
>
> If I use Sun JDK 5, it works...
>
> Cheers,
> Ben.
>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Please Help! I Can't get the ADT Plugin to Install

2009-06-24 Thread Jose Ayerdis
try Galileo Realesed.

2009/6/24 Pamplemousse Mk2 

>
> Hello,
>
> ADT 0.9.1 worked fine with Eclipse 3.4 until today. Eclipse asks me
> for updates. So I accept the updates and now ADT can't open the XML
> res files of my current projects.
>
> Is ADT not compatible with updated Eclipse 3.4.2?
>
> On 22 juin, 16:25, Sander  wrote:
> > It did not work for me either when I used the update site. And I do
> > not have a classic but the WTP version of Ganymede.
> > In the end I downloaded the archive fromhttp://
> developer.android.com/sdk/adt_download.html
> > and I installed from a local archive.
> > This worked without problems. Would be nice if the SDK had an eclipse
> > directory with this ZIP archive inside.
> >
> > On May 6, 3:34 am, J  wrote:
> >
> > > I get this error no matter which of the 3 methods I try. What should I
> > > do?
> >
> > > An error occurred while collecting items to be installed
> > >   No repository found containing: org.eclipse.draw2d/osgi.bundle/
> > > 3.4.1.v20080910-1351
> > >   No repository found containing: org.eclipse.emf.common/osgi.bundle/
> > > 2.4.0.v200808251517
> > >   No repository found containing: org.eclipse.emf.ecore/osgi.bundle/
> > > 2.4.1.v200808251517
> > >   No repository found containing: org.eclipse.emf.ecore.change/
> > > osgi.bundle/2.4.0.v200808251517
> > >   No repository found containing: org.eclipse.emf.ecore.edit/
> > > osgi.bundle/2.4.1.v200808251517
> > >   No repository found containing: org.eclipse.emf.ecore.xmi/
> > > osgi.bundle/2.4.1.v200808251517
> > >   No repository found containing: org.eclipse.emf.edit/osgi.bundle/
> > > 2.4.1.v200808251517
> > >   No repository found containing: org.eclipse.wst.common.emf/
> > > osgi.bundle/1.1.202.v200809111955
> > >   No repository found containing:
> > > org.eclipse.wst.common.emfworkbench.integration/osgi.bundle/
> > > 1.1.201.v200808071700
> > >   No repository found containing: org.eclipse.wst.common.frameworks/
> > > osgi.bundle/1.1.200.v200805140020
> > >   No repository found containing:
> > > org.eclipse.wst.common.project.facet.core/osgi.bundle/
> > > 1.3.3.v200809102124
> > >   No repository found containing: org.eclipse.wst.common.ui/
> > > osgi.bundle/1.1.301.v200805140415
> > >   No repository found containing: org.eclipse.wst.sse.core/osgi.bundle/
> > > 1.1.302.v200808260045
> > >   No repository found containing: org.eclipse.wst.sse.ui/osgi.bundle/
> > > 1.1.2.v200809120159
> > >   No repository found containing: org.eclipse.wst.validation/
> > > osgi.bundle/1.2.2.v200809050219
> > >   No repository found containing: org.eclipse.wst.xml.core/osgi.bundle/
> > > 1.1.305.v200809120354
> > >   No repository found containing: org.eclipse.wst.xml.ui/osgi.bundle/
> > > 1.0.410.v200809120143
>
> >
>


-- 
Atte

[[Jose Luis Ayerdis Espinoza]]
http://blognecronet.blogspot.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: G1 vs Emulator

2009-06-24 Thread David Turner
adb -e    to talk to the emulator (only works if there is a single
emulator instance running)
adb -d ...to talk to a real device (only works if there is a single
physical device connected)
adb -s  ...  to talk to a specific device  (where  is either
"emulator-5554" or "HT850GZ54711")

On Wed, Jun 24, 2009 at 7:01 PM, Neil Hendrick  wrote:

> Droids,
>
> I have managed to set up my G1 so that it is recognized by the system when
> it is connected:
>
> mojote...@kobo:~$ adb devices
> List of devices attached
> HT850GZ54711 device
> emulator-5554 device
>
> but when I try to run my application, I do not get the option to run on the
> device. There is no device chooser, it goes straight to the emulator. Any
> thoughts?
>
>
> --
> ~Neil
>
> Neil Hendrick
> Bill Cosby  - "A 
> word to the wise ain't necessary - it's the stupid ones that need the
> advice."
> >
>

--~--~-~--~~~---~--~~
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] startActivity called from non-Activity context - help

2009-06-24 Thread Jason Van Anden
This message appeared in logcat when selecting a notification ...

startActivity called from non-Activity context; forcing
Intent.FLAG_ACTIVITY_NEW_TASK for: Intent {
comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) }

It brings the Activity into focus which is half the battle ... thing is, I
have no idea what function to read the intent details from.  It does not
call onCreate ... or startActivity.

I have posted this several times ... feeling a bit stuck.  Help super
appreciated.

j

--~--~-~--~~~---~--~~
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: startActivity called from non-Activity context - help

2009-06-24 Thread Mark Murphy

Jason Van Anden wrote:
> thing is,
> I have no idea what function to read the intent details from.

You can get the Intent that started your activity via getIntent().
AFAIK, if you are brought forward off the stack via a Notification,
getIntent() will return the Intent from the Notification.

> It does not call onCreate ... or startActivity.

I'm not sure what "it" is in the above sentence.

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

_Android Programming Tutorials_ Version 1.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] how to stop sound notification/let it only play once?

2009-06-24 Thread polzifer

Hi,

while my

notification.sound = uri

isn't stopping from looping the sound, the vibration does only vibrate
once.
So I assume the i flagged the notification ok?

The ringtone for the app is chosen via a ringtone preference dialog:







...and the code for the service looks like that:



protected void notifyClient(String from, String message) {

notifyCounter++;
String title = "Message from " + from;
notification = new Notification(R.drawable.icon, APP_NAME + ": "
+ title, System.currentTimeMillis());
Uri userNameUri = Uri.parse(from);
notificationIntent.setData(userNameUri);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
notificationIntent,
0);

notification.setLatestEventInfo(this, title, message,
pendingIntent);
notification.number = notifyCounter;
notification.flags = Notification.FLAG_AUTO_CANCEL
| Notification.FLAG_ONLY_ALERT_ONCE;

vibraNotififaction();

if (isLEDNotify) {
notification.flags |= Notification.DEFAULT_LIGHTS;
notification.ledARGB = Color.MAGENTA;
notification.ledOnMS = 300;
notification.ledOffMS = 1000;
notification.flags |= Notification.FLAG_SHOW_LIGHTS;
}



notificationMGR.notify(NOTIFY_ID, notification);
}

private void vibraNotififaction() {
if (isVibraNotify) {
vibrator.vibrate(500);
}
}
private void soundNotification(){
notification.sound = null;
Uri soundUri = TextUtils.isEmpty(ringNotify) ? null : Uri.parse
(ringNotify);
notification.sound =  soundUri;
}

protected void getPreferences(SharedPreferences prefs) {
this.isLEDNotify = 
prefs.getBoolean(PreferenceConstants.LEDNOTIFY,
false);
this.isVibraNotify = prefs.getBoolean
(PreferenceConstants.VIBRATIONNOTIFY, false);
this.ringNotify = prefs.getString
(PreferenceConstants.RINGTONENOTIFY, null);
}




--~--~-~--~~~---~--~~
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: New UI

2009-06-24 Thread johnny

PLEASE DISREGARD THIS POSTING IT'S A DUPLICATE FROM ME...MY BAD!!
--~--~-~--~~~---~--~~
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 stop sound notification/let it only play once?

2009-06-24 Thread polzifer

of course when copying and pasteing I accidentally erased the
"soundNotification();"

from the notifyClient method.

Just nobody gets confused...

Regards, chris!


On 25 Jun., 03:11, polzifer  wrote:
> Hi,
>
> while my
>
> notification.sound = uri
>
> isn't stopping from looping the sound, the vibration does only vibrate
> once.
> So I assume the i flagged the notification ok?
>
> The ringtone for the app is chosen via a ringtone preference dialog:
>
> 
>                          android:id="@+id/ringtone"
>                         android:key="ringtone"
>                         android:title="@string/ringtone_title"
>                         android:ringtoneType="notification"
>                         android:showDefault="true"
>                         android:showSilent="true"
>                         android:summary="@string/ringtone_summ"
>                 />
> 
>
> ...and the code for the service looks like that:
>
> 
>
> protected void notifyClient(String from, String message) {
>
>                 notifyCounter++;
>                 String title = "Message from " + from;
>                 notification = new Notification(R.drawable.icon, APP_NAME + 
> ": "
>                                 + title, System.currentTimeMillis());
>                 Uri userNameUri = Uri.parse(from);
>                 notificationIntent.setData(userNameUri);
>                 PendingIntent pendingIntent = PendingIntent.getActivity(this, 
> 0,
> notificationIntent,
>                                 0);
>
>                 notification.setLatestEventInfo(this, title, message,
> pendingIntent);
>                 notification.number = notifyCounter;
>                 notification.flags = Notification.FLAG_AUTO_CANCEL
>                                 | Notification.FLAG_ONLY_ALERT_ONCE;
>
>                 vibraNotififaction();
>
>                 if (isLEDNotify) {
>                         notification.flags |= Notification.DEFAULT_LIGHTS;
>                         notification.ledARGB = Color.MAGENTA;
>                         notification.ledOnMS = 300;
>                         notification.ledOffMS = 1000;
>                         notification.flags |= Notification.FLAG_SHOW_LIGHTS;
>                 }
>
>                 notificationMGR.notify(NOTIFY_ID, notification);
>         }
>
>         private void vibraNotififaction() {
>                 if (isVibraNotify) {
>                         vibrator.vibrate(500);
>                 }
>         }
>         private void soundNotification(){
>                 notification.sound = null;
>                 Uri soundUri = TextUtils.isEmpty(ringNotify) ? null : 
> Uri.parse
> (ringNotify);
>                 notification.sound =  soundUri;
>         }
>
>         protected void getPreferences(SharedPreferences prefs) {
>                 this.isLEDNotify = 
> prefs.getBoolean(PreferenceConstants.LEDNOTIFY,
> false);
>                 this.isVibraNotify = prefs.getBoolean
> (PreferenceConstants.VIBRATIONNOTIFY, false);
>                 this.ringNotify = prefs.getString
> (PreferenceConstants.RINGTONENOTIFY, null);
>         }
>
> 
--~--~-~--~~~---~--~~
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: startActivity called from non-Activity context - help

2009-06-24 Thread Jason Van Anden

Hi Mark,

Thanks Mark ... still stuck tho.  The "it" is the pendingIntent that
is re-activating/restarting the Activity.

Basically, my main Activity starts a Service that continues to run
with or without it.  The Service occasionally updates the status bar.
When the user selects the status bar item, it is supposed to bring the
Activity to the foreground and do something based upon the extras sent
with the pendingIntent.  Selecting the status bar item works fine, the
Activity moves to the foreground ... the problem is the extras.  I
assumed when the Activity was activated it would call onCreate, or
startActivity ... or something else where I could retrieve the extras
from.  onResume gets called - but when it gets called, the intent has
changed via LogCat :

Starting activity: Intent { comp={com.blah.blahs/com.blah.blahs.Blahs}
(has extras) }

startActivity called from non-Activity context; forcing
Intent.FLAG_ACTIVITY_NEW_TASK for: Intent {
comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) }

RESUMED called here!!!
Intent { action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x1020
comp={com.blah.blahs/com.blah.blahs.Blahs} }

By the time onResume is called, the intent has changed - so there are
no more extras.  This is where either I am totally confused or my
paradigm needs some major shifting.

I really appreciate the help.

j


On Wed, Jun 24, 2009 at 8:57 PM, Mark Murphy wrote:
>
> Jason Van Anden wrote:
>> thing is,
>> I have no idea what function to read the intent details from.
>
> You can get the Intent that started your activity via getIntent().
> AFAIK, if you are brought forward off the stack via a Notification,
> getIntent() will return the Intent from the Notification.
>
>> It does not call onCreate ... or startActivity.
>
> I'm not sure what "it" is in the above sentence.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.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] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Mark Murphy

Jason Van Anden wrote:
> I
> assumed when the Activity was activated it would call onCreate, or
> startActivity ... or something else where I could retrieve the extras
> from.  onResume gets called - but when it gets called, the intent has
> changed via LogCat

That certainly would not have been my expectation, but the whole Android
task model makes my head hurt...which is one of the reasons I don't have
a chapter on it in any of my books. :-(

Have you tried hooking onRestart() or onStart() and see if the desired
extras are available at that point? Or maybe onNewIntent()?

Have you tried adding Intent.FLAG_ACTIVITY_NEW_TASK as a flag on the
PendingIntent you are handing to the Notification? It's possibly that
the "forcing Intent.FLAG_ACTIVITY_NEW_TASK" is somehow contributing to
your woe. You would need this, for example, if your service is a remote
service, in its own application, rather than a local service in the same
application as your activity.

Have you tried FLAG_UPDATE_CURRENT with your PendingIntent?

And why do you think your app is blah? You might hurt your app's
feelings with that attitude... ;-)

> This is where either I am totally confused or my
> paradigm needs some major shifting.

In a pinch, can you have your activity call into your service, in effect
asking "u...you rang?", and get the details you need that way?
Extras would seem to be preferable, but I'm trying to think of
alternatives in case this all gets too painful.

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

_Android Programming Tutorials_ Version 1.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] Re: startActivity called from non-Activity context - help

2009-06-24 Thread Wayne Wenthin
Not to hijack the thread but ... Mark do you know any books that cover this
stuff because it makes my head hurt also and seems to be one of my main
stumbling blocks.

On Wed, Jun 24, 2009 at 7:00 PM, Mark Murphy wrote:

>
> Jason Van Anden wrote:
> > I
> > assumed when the Activity was activated it would call onCreate, or
> > startActivity ... or something else where I could retrieve the extras
> > from.  onResume gets called - but when it gets called, the intent has
> > changed via LogCat
>
> That certainly would not have been my expectation, but the whole Android
> task model makes my head hurt...which is one of the reasons I don't have
> a chapter on it in any of my books. :-(
>
> Have you tried hooking onRestart() or onStart() and see if the desired
> extras are available at that point? Or maybe onNewIntent()?
>
> Have you tried adding Intent.FLAG_ACTIVITY_NEW_TASK as a flag on the
> PendingIntent you are handing to the Notification? It's possibly that
> the "forcing Intent.FLAG_ACTIVITY_NEW_TASK" is somehow contributing to
> your woe. You would need this, for example, if your service is a remote
> service, in its own application, rather than a local service in the same
> application as your activity.
>
> Have you tried FLAG_UPDATE_CURRENT with your PendingIntent?
>
> And why do you think your app is blah? You might hurt your app's
> feelings with that attitude... ;-)
>
> > This is where either I am totally confused or my
> > paradigm needs some major shifting.
>
> In a pinch, can you have your activity call into your service, in effect
> asking "u...you rang?", and get the details you need that way?
> Extras would seem to be preferable, but I'm trying to think of
> alternatives in case this all gets too painful.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 1.0 Available!
>
> >
>


-- 
Writing code is one of few things
that teaches me I don't know everything.

--~--~-~--~~~---~--~~
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: G1 vs Emulator

2009-06-24 Thread Roman

I noticed the same on my system. To go around this problem, I switch
to DDMS mode in Eclipse and select the device icon to make sure that
the G1 is recognized. If this is not the case I unplug the G1 and
connect it again. After seeing the G1 as device connected on Eclipse I
switch back to Java mode and start the application.
Then the HW device is picked up and your application is loaded on the
device. Most of the times I get the display that I can select between
emulator and HW device but it seems like it is flaky!

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jun 24, 5:22 pm, David Turner  wrote:
> adb -e    to talk to the emulator (only works if there is a single
> emulator instance running)
> adb -d ...    to talk to a real device (only works if there is a single
> physical device connected)
> adb -s  ...  to talk to a specific device  (where  is either
> "emulator-5554" or "HT850GZ54711")
>
> On Wed, Jun 24, 2009 at 7:01 PM, Neil Hendrick  wrote:
> > Droids,
>
> > I have managed to set up my G1 so that it is recognized by the system when
> > it is connected:
>
> > mojote...@kobo:~$ adb devices
> > List of devices attached
> > HT850GZ54711 device
> > emulator-5554 device
>
> > but when I try to run my application, I do not get the option to run on the
> > device. There is no device chooser, it goes straight to the emulator. Any
> > thoughts?
>
> > --
> > ~Neil
>
> > Neil Hendrick
> > Bill Cosby  - 
> > "A word to the wise ain't necessary - it's the stupid ones that need the
> > advice."
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Can the main activity also be the starting activity?

2009-06-24 Thread Balwinder Kaur (T-Mobile)

The choice of which activity should be launched by an application is
determined by the application developer. Android does not have any
requirements that a setup screen be shown first. That being said, it
is really up to the application developer to determine the user
experience they want to provide to the user and how they want to lay
out their code base.


Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Jun 24, 7:50 am, AndroidGameGuy  wrote:
> I am working on a simple game app that I want to open right to the
> game screen when the use launches the app.  No detours to a EULA, or
> asking if they want a new game, etc.  Just go right to the game
> screen.
>
> It's going to be a simple game so 2D canvas graphics are all I need.
> No views in XML, just creating a fullscreen canvas I can draw on.
>
> So my question is, does it make any difference if the activity that is
> launched by the application onCreate is different from the activity
> that runs the game?  Is there a benefit to putting the game into a new
> activity and class?  Is the activity that is started by the
> application supposed to be reserved for setup only?
>
> 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] Steps for Implementing the SOAP Protocol In Android.

2009-06-24 Thread vinny.s...@gmail.com

Hi Every One

Can Any Body explain the Steps for Implementing the SOAP Protocol In
Android.

I have a two methods to call from the server and to get the data from
the server 

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] Re: Using adb on Mac and HTC Magic

2009-06-24 Thread Josh

Could this be the reason?

http://code.google.com/p/android/issues/detail?id=3096


On Jun 24, 10:46 pm, Joshua Lim  wrote:
> Repost : apologies but posting from the web page doesn't seem to go
> through-- Forwarded message --
> From: Josh 
> Date: 2009/6/24
> Subject: Using adb on Mac and HTC Magic
> To: Android Beginners 
>
> Hi,
>
> I installed 1.5 SDK and was trying out the tools: adb. However, after
> connecting the USB cable, and running adb the device cannot be
> detected anyone can help?
>
> [24/06 22:39] j...@beaver:~ ! adb start-server
> * daemon not running. starting it now *
> * daemon started successfully *
> [24/06 22:40] j...@beaver:~ ! adb devices
> List of devices attached
>
> Thanks
> Josh
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---