[android-beginners] Re: Uninstalling the App

2008-10-11 Thread Bill Zimmerly

On Oct 10, 10:58 pm, Arunachalam <[EMAIL PROTECTED]> wrote:
> Where can i get the full details of Android Debug Bridge, as adb help doesnt
> provide much details of it.

http://code.google.com/android/reference/adb.html

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



[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem

Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not
sure what method is used or anything but its possible.

But check out the PolyToPoly API Graphics demo which shows how to
transform a canvas to make it look 3D without opengl. I havnt really
looked over MapView to see if this method is possible, but if it can
be applied to MapView, i think it would do the trick.

On Oct 9, 1:23 pm, sandroid <[EMAIL PROTECTED]> wrote:
> Hi,
>     Is there a way to take the frame from a view, such as the MapView,
> and manipulate it in 3D with OpenGL.  For example, I have a MapView
> which shows a particular location and I want to treat this as a 2D
> plane in 3D so that I can rotate the plane along the y or x axis.
>     Right now I have no idea how to approach this problem.  My initial
> idea is to somehow render the output from MapView to a texture, and
> then render that texture to the screen using OpenGL.
>
> I got the idea from looking at the app Marvin, where the MapView looks
> like a plane receding into the horizon.
>
> -Marc
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Problem with Hello Word app

2008-10-11 Thread David Hoffer

Jerry,

Well this is interesting / weird.  When running the emulator.exe from the
command line, I get the following error:

C:\android-sdk-windows-1.0_r1\tools>emulator
Cannot find file:
C:\android-sdk-windows-1.0_r1\tools/lib/images/\kernel-qemu
Please specify a valid -kernel file

I noticed that in my images folder I do not have a kernel-gemu folder.  I
then noticed that the SDK zip had some files I did not have so I unzipped it
again.  Somehow the original unzip lost a few files.

However, even after unzipping again, and noting that I have all files from
the zip, I get the same error.

What is going on here?

-Dave



From: android-beginners@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry Elizondo
Sent: Thursday, October 09, 2008 7:46 AM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: Problem with Hello Word app

Hello Dave:

The "problem" with Windows in general is that it hides messages from console
applications and the emulator is a console application.

To run the emulator manually and hopefully receive an error message that
would clue us into what's happening do the following: click on Start, Run,
type cmd  and press [Enter]. 

If you can´t find the Run command in the menu, right-click on the Start,
select properties, start menu, advanced and select Run so that it is
displayed in the start menu.

A new window with a command line prompt should open.

Once on the command window, change your drive (if the SDK is in a drive
different from C:). To change a drive type the drive letter, followed by a
colon and then press [Enter]. For example, to change your current drive to
G: type G:  and press [Enter].

Then change your current directory to the directory where the SDK is, type
for example:

cd G:\eclipse\android-sdk-windows-1.0_r1\tools [Enter]

Type emulator and press [Enter]. If the emulator doesn't start, it should
give you an error message which please send me to try to get it running.

If the emulator starts, then we would need to work on the Eclipse
configuration, maybe the path variable is not set (did you set it?) and
Eclipse can't find it or something like that.

Let me know.

On Thu, Oct 9, 2008 at 8:25 AM, David Hoffer <[EMAIL PROTECTED]>
wrote:

I have not tried to use the emulator manually, is this easy to do?
My OS is XP Pro on Dell dual core laptop.

After learning how to kill the emulator and then restart, I now see in the
eclipse console log that it is calling the emulator but it is never
displayed.  What would cause the emulator to not be displayed?

-Dave


From: android-beginners@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry Elizondo
Sent: Monday, October 06, 2008 2:59 PM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: Problem with Hello Word app

Hello Dave:

Nope, so long as you have the full JDK (not the JRE) version 5 (1.5) is
enough. I'm using Eclipse 3.4 (Ganymede) and everything runs fine.

Two questions:

1) If you run the emulator manually, what do you get?
2) What OS are you running?

Cheers,

Jerry
On Mon, Oct 6, 2008 at 2:20 PM, David Hoffer <[EMAIL PROTECTED]>
wrote:

My JAVA_HOME is set to jdk1.5.0_15 and this is in my path.  How/why do I
need a separate/different JDK for Android?  Can you explain?

Thanks,
-Dave



From: android-beginners@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry Elizondo
Sent: Monday, October 06, 2008 1:11 PM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: Problem with Hello Word app

Hello David:

I think that you are missing the JDK from SUN
(http://java.sun.com/javase/downloads/index.jsp) I used JDK 6 Update 7.

Let me know if you still have trouble after installing the JDK.

Cheers,
On Sun, Oct 5, 2008 at 4:22 PM, David Hoffer <[EMAIL PROTECTED]>
wrote:


After installing eclipse 3.4.1 and JDT plug-in per the Android docs, I have
created the Hello World application.  However, when I run the app nothing is
displayed (the emulator is never shown).

If I run using eclipsec.exe I see that
com.android.ide.eclipse.adt.debug.launching.AndroidLaunchControler.launchEmu
lator caused a NPE.

I'm new to eclipse as well as Android so I don't know where to look for the
cause of this problem.  Is there a problem using eclipse 3.4.1?

BTW, is there an Android plug-in for IntelliJ?

-Dave














--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Fugita

actually they are using the street view and I think this means it is
only possible were street view can be used.

On Oct 11, 3:11 am, Esteem <[EMAIL PROTECTED]> wrote:
> Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not
> sure what method is used or anything but its possible.
>
> But check out the PolyToPoly API Graphics demo which shows how to
> transform a canvas to make it look 3D without opengl. I havnt really
> looked over MapView to see if this method is possible, but if it can
> be applied to MapView, i think it would do the trick.
>
> On Oct 9, 1:23 pm, sandroid <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >     Is there a way to take the frame from a view, such as the MapView,
> > and manipulate it in 3D with OpenGL.  For example, I have a MapView
> > which shows a particular location and I want to treat this as a 2D
> > plane in 3D so that I can rotate the plane along the y or x axis.
> >     Right now I have no idea how to approach this problem.  My initial
> > idea is to somehow render the output from MapView to a texture, and
> > then render that texture to the screen using OpenGL.
>
> > I got the idea from looking at the app Marvin, where the MapView looks
> > like a plane receding into the horizon.
>
> > -Marc
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Bulk insert on database create...

2008-10-11 Thread atrus123

What would be a good way to approach performing a bulk insert of
values during the database creation?

What I had tried doing was something like this:

public void onCreate(SQLiteDatabase db) {
// TODO Auto-generated method stub
db.execSQL(CREATE_TABLE);
db.execSQL(LOAD_DATA);
}

but it apparently completely ignored my LOAD_DATA, which was just a
generic INSERT INTO statement.  I also tried appending my insert
statement to the create but with no change.  I checked sqlite in the
adb shell, and the database is present... just empty.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Bulk insert on database create...

2008-10-11 Thread atrus123

I figured it out.  I was trying to insert data prior to opening the
database for writing.

On Oct 11, 11:17 am, atrus123 <[EMAIL PROTECTED]> wrote:
> What would be a good way to approach performing a bulk insert of
> values during the database creation?
>
> What I had tried doing was something like this:
>
> public void onCreate(SQLiteDatabase db) {
> // TODO Auto-generated method stub
> db.execSQL(CREATE_TABLE);
> db.execSQL(LOAD_DATA);
> }
>
> but it apparently completely ignored my LOAD_DATA, which was just a
> generic INSERT INTO statement.  I also tried appending my insert
> statement to the create but with no change.  I checked sqlite in the
> adb shell, and the database is present... just empty.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] "Hello Android" could not be run!, compilation errors

2008-10-11 Thread [EMAIL PROTECTED]

Hello,

I just started with Android, I find it interesting.

I downloaded the Android SDK (C:\android-sdk-windows-1.0_r1).
I installed Eclipse 3.4.1 (Ganymede)
JDK 6 (jdk1.6.0_06) is already installed on my machine windows XP.
I installed Android Development Tools plugin.
In Window->Preferences->Android, I specified the SDK location "C:
\android-sdk-windows-1.0_r1".

I tried to follow the Hello Android example, and this is my source
code:


package com.android.hello;

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

public class HelloAndroid extends Activity {
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   TextView tv = new TextView(this);
   tv.setText("Hello, Android");
   setContentView(tv);
   }
}



When trying to compile I got three errors:

1-com.android.hello.HelloAndroid does not extend android.app.Activity
(on element AndroidManifest.xml)
2-The project was not built since its build path is incomplete. Cannot
find the class file for java.lang.Object. Fix the build path then try
building this project (on element HelloAndroid)
3-The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files (on element R.java, file auto-
generated)

Please any help! I could not move further...

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] "Hello Android" could not be run!, compilation errors

2008-10-11 Thread [EMAIL PROTECTED]

Hello,

I just started with Android, I find it interesting.

I downloaded the Android SDK (C:\android-sdk-windows-1.0_r1).
I installed Eclipse 3.4.1 (Ganymede)
JDK 6 (jdk1.6.0_06) is already installed on my machine windows XP.
I installed Android Development Tools plugin.
In Window->Preferences->Android, I specified the SDK location "C:
\android-sdk-windows-1.0_r1".

I tried to follow the Hello Android example, and this is my source
code:


package com.android.hello;

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

public class HelloAndroid extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  TextView tv = new TextView(this);
  tv.setText("Hello, Android");
  setContentView(tv);
  }
}



When trying to compile I got three errors:

1-com.android.hello.HelloAndroid does not extend android.app.Activity
(on element AndroidManifest.xml)
2-The project was not built since its build path is incomplete. Cannot
find the class file for java.lang.Object. Fix the build path then try
building this project (on element HelloAndroid)
3-The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files (on element R.java, file auto-
generated)

Please any help! I could not move further...

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] plz help to find the mistake.....beginner

2008-10-11 Thread madanmohan

hey guys..m a beginner in java...m not able to print the data in the
following data...no errors,tis takin input successfully.
please help me to find the flaw...plz!!!please edit
the code if required


HERE'S THE CODE:

import java.util.Scanner;
class mix
{
public static void main(String args[])
{
String name;
String education;
int age;
int contract;
int payment;
System.out.println("\nWELCOME TO MADANS FIRST JAVA PRACTICE
PROGRAM(hehe...)\n");
System.out.println("\nEnter canditate's name: ");
Scanner input = new Scanner(System.in);
name = input.nextLine();
System.out.println("\nEnter employers education: ");
education = input.nextLine();
System.out.println("\nEnter employers age: ");
age = input.nextInt();
System.out.println("\nEnter employers contract period: ");
contract = input.nextInt();
System.out.println("\nEnter employers salary/year: ");
payment = input.nextInt();

fresher emp = new fresher();
salary empsal = new salary();
emp.fresher(name,education,age);
empsal.salary(contract,payment);

printstatus display = new printstatus();
display.toprint();
System.out.println("\n\nTHANKING MYSELF FOR RUNNING THE PROGRAM
SUCCESSFULLY");
}
}
class printstatus
{
void toprint()
{
fresher details = new fresher();
details.showdata();
salary pay = new salary();
pay.paymentdetails();
}
}

class fresher
{
String name;
String education;
int age;
void fresher(String name,String education,int age)
{
name=name;
age=age;
education=education;
}
void showdata()
{
System.out.println("\n\nEMPLOYEE
DETAILS--");
System.out.println("NAME : "+name);
System.out.println("QUALIFICATION : "+education);
System.out.println("AGE : "+age);
if(age>28)
{
System.out.println("APPLICATION STATUS : SORRY,YOUR 
APPLICATION HAS
NOT BEEN NOT ACCEPTED");
}
else
{
System.out.println("APPLICATION STATUS : ACCEPTED 
SUCCESSFULLY!!");
}
}
}

class salary extends fresher
{
int contract;
int payment;
int totalpayment;
void salary(int freshercontract,int fresherpayment)
{
contract=freshercontract;
payment=fresherpayment;
}
void paymentdetails()
{
if(age>28)
{
System.out.println("AMOUNT PAID IS :Rs.");

}
else
{
System.out.println("CONTRACT PERIOD : 
"+contract+"years");
System.out.println("SALARY : Rs."+payment);
System.out.println("GROSS AMOUNT TO BE PAID : Rs."+
(contract*payment));
System.out.println("IN-HAND PAYMENT RECEIVED  :
Rs."+(0.4*contract*payment));
}
}
}

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android documentation in PDF Format

2008-10-11 Thread PorkChop

Here is the Android 1.0 documentation in PDF format, for those of us
who prefer to read things from paper rather than a screen!

http://www.frickingnutz.com/?q=node/46

Enjoy!


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Hello Android, could not be run!, compilation errors

2008-10-11 Thread bennjava

Hello,

I just started with Android, I find it interesting.

I downloaded the Android SDK (C:\android-sdk-windows-1.0_r1).
I installed Eclipse 3.4.1 (Ganymede)
JDK 6 (jdk1.6.0_06) is already installed on my machine windows XP.
I installed Android Development Tools plugin.
In Window->Preferences->Android, I specified the SDK location "C:
\android-sdk-windows-1.0_r1".

I tried to follow the Hello Android example, and this is my source
code:


package com.android.hello;

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

public class HelloAndroid extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  TextView tv = new TextView(this);
  tv.setText("Hello, Android");
  setContentView(tv);
  }
}



When trying to compile I got three errors:

1-com.android.hello.HelloAndroid does not extend android.app.Activity
(on element AndroidManifest.xml)
2-The project was not built since its build path is incomplete. Cannot
find the class file for java.lang.Object. Fix the build path then try
building this project (on element HelloAndroid)
3-The type java.lang.Object cannot be resolved. It is indirectly
referenced from required .class files (on element R.java, file auto-
generated)

Please any help! I could not move further...

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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] How to install Android SDK

2008-10-11 Thread anubhav_android

I am facing problem in installation of android SDK on window server
2000.


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Could Not Find HelloAndroid.apk!

2008-10-11 Thread Filipe Mondaini

I had this double bin problem too although my solution was different:
I've copied the keytool.exe from the JDK folder to %windir%\system32
folder.

I did that because I also tried to change the JAVA_HOME classpath.
However I was still with this problem.

Filipe.

On Oct 10, 7:51 am, ftbalagt <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I also had the same problem when I tried upgrading to the new version.
> The problem was that eclipse wasn't able to compile the program
> because of the problem with the classpath in Java, that's why the apk
> is not present. What I did was to execute CLEAN first in eclipse and I
> saw the root of the problem.
>
> What it does is execute keytool.exe which is inside the bin folder
> under the JAVA_HOME classpath. However, the problem was, my JAVA_HOME
> was set to C:\Program Files\Java\jre1.6.0_04\bin, and when eclipse try
> to run it, it tried to run C:\Program Files\Java\jre1.6.0_04\bin\bin
> \keytool.exe. Double "bin"!
>
> So what I did was just change my JAVA_HOME variable to C:\Program Files
> \Java\jre1.6.0_04 (without the bin) (Windows Control Panel->System-
>
> >Environment Variable).
>
> I don't know what eclipse or android did for the new version, since it
> worked for me two months ago without any change in settings.
>
> I hope this helps.
>
> On Sep 25, 5:08 am, Kevin M <[EMAIL PROTECTED]> wrote:
>
> > I am getting this error when trying to run my programs... I see other
> > threads about this but none have clear answers.
>
> > I'm using Eclipse 3.4 on Ubuntu 8.04.
>
> > Any info you need me to post I will be happy to supply.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hello Android, could not be run!, compilation errors

2008-10-11 Thread Xavier Ducrohet

It looks like your project does not contain the android.jar library.
How did you create it? Did you create it before setting the path of
the SDK in the preferences ?

Right click your project in the package explorer, and choose Android
Tools > Fix Project properties, this should fix it.

Xav

On Sat, Oct 11, 2008 at 10:51 AM, bennjava <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I just started with Android, I find it interesting.
>
> I downloaded the Android SDK (C:\android-sdk-windows-1.0_r1).
> I installed Eclipse 3.4.1 (Ganymede)
> JDK 6 (jdk1.6.0_06) is already installed on my machine windows XP.
> I installed Android Development Tools plugin.
> In Window->Preferences->Android, I specified the SDK location "C:
> \android-sdk-windows-1.0_r1".
>
> I tried to follow the Hello Android example, and this is my source
> code:
>
> 
> package com.android.hello;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloAndroid extends Activity {
>  /** Called when the activity is first created. */
>  @Override
>  public void onCreate(Bundle savedInstanceState) {
>  super.onCreate(savedInstanceState);
>  TextView tv = new TextView(this);
>  tv.setText("Hello, Android");
>  setContentView(tv);
>  }
> }
> 
>
>
> When trying to compile I got three errors:
>
> 1-com.android.hello.HelloAndroid does not extend android.app.Activity
> (on element AndroidManifest.xml)
> 2-The project was not built since its build path is incomplete. Cannot
> find the class file for java.lang.Object. Fix the build path then try
> building this project (on element HelloAndroid)
> 3-The type java.lang.Object cannot be resolved. It is indirectly
> referenced from required .class files (on element R.java, file auto-
> generated)
>
> Please any help! I could not move further...
>
> 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem

check out 3:10-3:20 of their video. I dont think thats street view.
Also 5:35-6:00 where they specifically show driving directions in a 3D
landscape mode :)


On Oct 11, 8:10 am, Fugita <[EMAIL PROTECTED]> wrote:
> actually they are using the street view and I think this means it is
> only possible were street view can be used.
>
> On Oct 11, 3:11 am, Esteem <[EMAIL PROTECTED]> wrote:
>
> > Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not
> > sure what method is used or anything but its possible.
>
> > But check out the PolyToPoly API Graphics demo which shows how to
> > transform a canvas to make it look 3D without opengl. I havnt really
> > looked over MapView to see if this method is possible, but if it can
> > be applied to MapView, i think it would do the trick.
>
> > On Oct 9, 1:23 pm, sandroid <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > >     Is there a way to take the frame from a view, such as the MapView,
> > > and manipulate it in 3D with OpenGL.  For example, I have a MapView
> > > which shows a particular location and I want to treat this as a 2D
> > > plane in 3D so that I can rotate the plane along the y or x axis.
> > >     Right now I have no idea how to approach this problem.  My initial
> > > idea is to somehow render the output from MapView to a texture, and
> > > then render that texture to the screen using OpenGL.
>
> > > I got the idea from looking at the app Marvin, where the MapView looks
> > > like a plane receding into the horizon.
>
> > > -Marc
>
>
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android documentation in PDF Format

2008-10-11 Thread 김병주
last updated date is 25 / sep  but In this PDF documents it is updated
22/sep  Are there differences  between 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Manipulate 2D View in 3D OpenGL

2008-10-11 Thread Esteem

I just experimented real quick on implimenting the PolyToPoly method
to the MapViewCompassDemo.java APIDemo and it worked!

I added mMatrix as a variable for the class:
private Matrix  mMatrix = new Matrix();

added a concat call to the protected void dispatchDraw() function:
canvas.concat(mMatrix);

and finally added the matrix transformation call to the end of the
onLaonLayout() function:
float src[] = new float[] { 0, 0, width, 0, width, height, 0,
height };
float dst[] = new float[] { 0, 0, width, 0, width*2, height, -width,
height };
mMatrix.setPolyToPoly(src, 0, dst, 0, src.length >> 1);

and here's what it looks like:
http://censorednet.org/3dmapview.jpg

On Oct 11, 4:39 pm, Esteem <[EMAIL PROTECTED]> wrote:
> check out 3:10-3:20 of their video. I dont think thats street view.
> Also 5:35-6:00 where they specifically show driving directions in a 3D
> landscape mode :)
>
> On Oct 11, 8:10 am, Fugita <[EMAIL PROTECTED]> wrote:
>
> > actually they are using the street view and I think this means it is
> > only possible were street view can be used.
>
> > On Oct 11, 3:11 am, Esteem <[EMAIL PROTECTED]> wrote:
>
> > > Enkin's (http://www.enkin.net/) "landscape mode" does this. I'm not
> > > sure what method is used or anything but its possible.
>
> > > But check out the PolyToPoly API Graphics demo which shows how to
> > > transform a canvas to make it look 3D without opengl. I havnt really
> > > looked over MapView to see if this method is possible, but if it can
> > > be applied to MapView, i think it would do the trick.
>
> > > On Oct 9, 1:23 pm, sandroid <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
> > > >     Is there a way to take the frame from a view, such as the MapView,
> > > > and manipulate it in 3D with OpenGL.  For example, I have a MapView
> > > > which shows a particular location and I want to treat this as a 2D
> > > > plane in 3D so that I can rotate the plane along the y or x axis.
> > > >     Right now I have no idea how to approach this problem.  My initial
> > > > idea is to somehow render the output from MapView to a texture, and
> > > > then render that texture to the screen using OpenGL.
>
> > > > I got the idea from looking at the app Marvin, where the MapView looks
> > > > like a plane receding into the horizon.
>
> > > > -Marc
>
>
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to install Android SDK

2008-10-11 Thread Arunachalam
could u send us the error message...where u r falling
it will help the group to answer...

Cheers,
Arun

On Sun, Oct 12, 2008 at 2:52 AM, anubhav_android <[EMAIL PROTECTED]>wrote:

>
> I am facing problem in installation of android SDK on window server
> 2000.
>
>
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: "Hello Android" could not be run!, compilation errors

2008-10-11 Thread Karthik P
You have missed out installing ANT and set the environment variables
JAVA_HOME to jdk/bin dir and ANT_HOME to ant/bin dir. Set the PATH
appropriately as per the document
http://code.google.com/android/intro/installing.html

Thanks,
Karthik

On Sat, Oct 11, 2008 at 9:59 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:

>
> Hello,
>
> I just started with Android, I find it interesting.
>
> I downloaded the Android SDK (C:\android-sdk-windows-1.0_r1).
> I installed Eclipse 3.4.1 (Ganymede)
> JDK 6 (jdk1.6.0_06) is already installed on my machine windows XP.
> I installed Android Development Tools plugin.
> In Window->Preferences->Android, I specified the SDK location "C:
> \android-sdk-windows-1.0_r1".
>
> I tried to follow the Hello Android example, and this is my source
> code:
>
> 
> package com.android.hello;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloAndroid extends Activity {
>  /** Called when the activity is first created. */
>  @Override
>  public void onCreate(Bundle savedInstanceState) {
>  super.onCreate(savedInstanceState);
>  TextView tv = new TextView(this);
>  tv.setText("Hello, Android");
>  setContentView(tv);
>  }
> }
> 
>
>
> When trying to compile I got three errors:
>
> 1-com.android.hello.HelloAndroid does not extend android.app.Activity
> (on element AndroidManifest.xml)
> 2-The project was not built since its build path is incomplete. Cannot
> find the class file for java.lang.Object. Fix the build path then try
> building this project (on element HelloAndroid)
> 3-The type java.lang.Object cannot be resolved. It is indirectly
> referenced from required .class files (on element R.java, file auto-
> generated)
>
> Please any help! I could not move further...
>
> 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Database problems

2008-10-11 Thread obi

Alright, so I am new to this whole Android thing, and I'm having a
little trouble with Databases.  I've been able to figure out most of
Notepad examples, and when I copy and paste that database into my
application it works reasonably well.  The problem is, I believe that
I need another table in my application and when I try to access the
functions referencing that table, Android crashes.  This makes me
think that I am incorrectly creating the second table, but I can't
really see where I'm going wrong.  Is there anything that I am
missing?

Thanks in advance!

***Here is the function that seems to be crashing***

private void fillPlayers() {
Cursor mPlayerCursor = temp_Db.fetchAllPlayers();   <--
This line works if you call fetchAllRosters()
startManagingCursor(mPlayerCursor);

String[] from = new String[]{DbTables.KEY_ROSTER};

int[] to = new int[]{R.id.text1};

ListAdapter rosters =
new SimpleCursorAdapter(this, R.layout.roster_row,
mPlayerCursor, from, to);
setListAdapter(rosters);
}


***Here is the Database Definition Code***

package com.android.USP;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class DbTables {
public static final String KEY_ROSTER = "roster";
public static final String KEY_PLAYER = "player";
public static final String KEY_ROWID = "_id";

private static final String TAG = "DbRoster";
private DatabaseHelper mDbHelper;
private SQLiteDatabase mDb;

// Database creation sql statement

private static final String DATABASE_CREATE = "" +
"create table roster (_id integer primary key 
autoincrement, roster
text not null);" +
"create table player (_id integer primary key 
autoincrement, player
text not null);";

private static final String DATABASE_NAME = "data";
private static final String DATABASE_TABLE_ROSTER = "roster";
private static final String DATABASE_TABLE_PLAYER = "player";
private static final int DATABASE_VERSION = 2;

private final Context mCtx;

private static class DatabaseHelper extends SQLiteOpenHelper {

DatabaseHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

@Override
public void onCreate(SQLiteDatabase db) {

db.execSQL(DATABASE_CREATE);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion) {
Log.w(TAG, "Upgrading database from version " + 
oldVersion + " to "
+ newVersion + ", which will destroy 
all old data");
db.execSQL("DROP TABLE IF EXISTS notes");
onCreate(db);
}
}

public DbTables(Context ctx) {
this.mCtx = ctx;
}

public DbTables open() throws SQLException {
mDbHelper = new DatabaseHelper(mCtx);
mDb = mDbHelper.getWritableDatabase();
return this;
}

public void close() {
mDbHelper.close();
}

public long createRoster(String roster) {
ContentValues initialValues = new ContentValues();
initialValues.put(KEY_ROSTER, roster);

return mDb.insert(DATABASE_TABLE_ROSTER, null, initialValues);
}

public Cursor fetchAllRosters() {

return mDb.query(DATABASE_TABLE_ROSTER, new String[] { 
KEY_ROWID,
KEY_ROSTER }, null, null, null, null, null);
}

public long createPlayer(String roster) {
ContentValues initialValues = new ContentValues();
initialValues.put(KEY_PLAYER, roster);

return mDb.insert(DATABASE_TABLE_PLAYER, null, initialValues);
}

public Cursor fetchAllPlayers() {

return mDb.query(DATABASE_TABLE_PLAYER, new String[] { 
KEY_ROWID,
KEY_PLAYER }, null, null, null, null, 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---