[android-beginners] Re: Please help in creating simple text file

2009-08-25 Thread nitin

I'm setting these permissions, but I am not storing file in SD Card by
in data/files/ folder:

uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/uses-
permission
uses-permission
android:name=android.permission.ACCESS_LOCATION_EXTRA_COMMANDS/
uses-permission
uses-permission
android:name=android.permission.ACCESS_MOCK_LOCATION/uses-
permission
uses-permission
android:name=android.permission.CONTROL_LOCATION_UPDATES/uses-
permission
uses-permission android:name=android.permission.INTERNET/uses-
permission

On Aug 24, 7:27 pm, Donn Felker donnfel...@gmail.com wrote:
 Are you setting the SDCard permission properly in the manifest?





 On Mon, Aug 24, 2009 at 7:22 AM, nitin ni...@infocratsweb.com wrote:

  though I was using 'this' as context in onCreate event. I ran the same
  code after removing 'Context' as parameter, still same result. At last
  I uninstalled the application from Emulator and restarted
  everythingit worked with the same code :) Thanks for your
  valuable timebut I am still thinking does Emulator not refresh
  things properly?

  On Aug 22, 2:46 pm, Mark Murphy mmur...@commonsware.com wrote:
   nitin wrote:
when i tried after changing the code like:
catch (IOException ioe) {
return ioe.toString();
}

Giving error:
java.io.FileNotFoundException:
/data/data/hello.world/files/test.txt

online samples are giving the same code...am i missing some
setting/permission? pls help

   Where are you getting the Context from? If it is your Activity instance,
   this code should work. If you are somehow creating your own Context
   object, then that might be the source of your problem -- use a Context
   given to you by Android, such as an Activity or Service object.

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

   Android App Developer Training:http://commonsware.com/training.html

 --
 Donnhttp://blog.donnfelker.com/- 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] Unable to run the application even once.

2009-08-25 Thread nitin

Hello, when I am trying to run the application for the first time, it
is giving error in console as:

[2009-08-25 12:47:24 - temp] --
[2009-08-25 12:47:24 - temp] Android Launch!
[2009-08-25 12:47:24 - temp] adb is running normally.
[2009-08-25 12:47:24 - temp] Launching: info.temp.temp
[2009-08-25 12:47:24 - temp] Automatic Target Mode: launching new
emulator.
[2009-08-25 12:47:24 - temp] Launching a new emulator.
[2009-08-25 12:47:24 - Emulator] invalid command-line parameter:
SDAndroid
[2009-08-25 12:47:24 - Emulator] Android Emulator usage: emulator
[options] [-qemu args]
.
.
.
.
.
[2009-08-25 12:47:24 - Emulator]  -help-keyset-file   key
bindings configuration file
[2009-08-25 12:47:24 - Emulator]  -help-all   prints
all help content
[2009-08-25 12:47:24 - Emulator]


I tried clearing windows/preferences/Android/Launch/Default Emulator
Option textbox, but no luck. Earlier 'SDAndroid' was written in this
box.

pls help.is some setting to do?

thanks
Nitin
--~--~-~--~~~---~--~~
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] what is the fast way to save/load string from/in an array?

2009-08-25 Thread Liviu Ungureanu
Hi!
I want to save an array with  strings.

I try to write in a file and to save it on sdcard but the loading process
get so much time...


Thank you!

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



[android-beginners]

2009-08-25 Thread saurabh sinha

import com.google.googlenav.DrivingDirection;
import com.google.googlenav.map.MapPoint;


I am doing route direction example in mapview
but above these package are not found in lastes sdk
hello sir can u tell me

--~--~-~--~~~---~--~~
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: Development Phone

2009-08-25 Thread Rafa Perfeito
Yusuf,
Does that means that i can, for example, install new Android versions for
myself in the device? What do you mean by 'modify the OS on the phone'?

On Mon, Aug 24, 2009 at 6:20 PM, Yusuf Saib (T-Mobile USA) 
yusuf.s...@t-mobile.com wrote:


 If you just want to write applications and run them on your phone, any
 Android phone will do. If you want to modify the OS on the phone, then
 you need either an official development phone or hack a non-dev phone
 to be a dev phone.




 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 Aug 24, 6:09 am, Ran dahan...@gmail.com wrote:
  Hi everyone,
 
  I'm new to Android and I want to start developing and deploying my
  apps to a real phone.
  My question is what is the big difference between the official ADP1
  and other Android phones ?
  What is the benefit of working with ADP1 over the other Android
  phones ?
  I want to buy some Andriod phone, I thought of the new Samsung i7500
  with Andriod OS or HTC Hero, will I be able to develop regularly or I
  will need to hack them in some manner to activate some features ?
 
  Thanks in advance
  Ran
 



-- 
Cumprimentos,

Hugo Rafael Augusto

--~--~-~--~~~---~--~~
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] why I can't use movieview to play the movie came from the internet?

2009-08-25 Thread yjshi

I use the movieview.java to playback the movie comes from the
internet.In a activity ,I wrote a Intent that jump to the movieview
and pass the movieview a url.But after several seconds,It  is closed
because something is wrong.


W/InputManagerService( 1075): Starting input on non-focused client
com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0
(uid=10003 pid=1305)
W/IInputConnectionWrapper( 1305): showStatusIcon on inactive
InputConnection
I/ActivityManager( 1075): Displayed activity
com.android.stk/.StkDialogActivity: 439 ms (total 439 ms)
V/VideoView( 1305): reset duration to -1 in openVideo
W/IInputConnectionWrapper( 1119): showStatusIcon on inactive
InputConnection
E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error
or info PVMFFailure
W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete
E/MediaPlayer( 1305): error (1, -1)
E/MediaPlayer( 1305): Error (1,-1)
D/VideoView( 1305): Error: 1,-1
E/MediaPlayer( 1305): stop called in state 0
E/MediaPlayer( 1305): error (-38, 0)
W/MediaPlayer( 1305): mediaplayer went away with unhandled events

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



[android-beginners] ListView item stay selected

2009-08-25 Thread manigault

I have a listview and i want when i select a row to stay selected
after googling i came to this solution:
@Override
protected void onListItemClick(ListView l, View v, int position, long
id) {
// ... rest of the code
v.setSelected(true);
}
I just manually set the selected view to stay selected. This works :).
The problem is that if i change some attribute ( for example
v.setBackgroundColor(Color.BLACK) ) the selected view no longer stays
selected.
Any ideas how to fix this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Overlay Item collection?

2009-08-25 Thread Jose Ayerdis
i dont know if you meaning to the last lines of the tutorial


itemizedoverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedoverlay);
that  code does not go in HelloItemizedOverlay.java but in the Activity
class 
HelloViewMap.java?ui=2ik=1f4971b240view=attth=1235183b6e514f3eattid=0.1disp=attd


2009/8/22 John Pszeniczny jze...@gmail.com


 Hi, I'm running into a snag on the last step (Step 4) of the Hello Map
 Views Tutorial.  Where does this code go in HelloItemizedOverlay.java

 4. All that's left is for us to add this OverlayItem to our collection
 in the HelloItemizedOverlay, and add this to the List of Overlay
 objects retrieved from the MapView:

 itemizedoverlay.addOverlay(overlayitem);
 mapOverlays.add(itemizedoverlay);

 Thanks in advance, I'm such a newb!

 John

 



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

package android.google.example;

import java.io.IOException;
import java.util.List;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.OverlayItem;

import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.location.Address;
import android.location.Criteria;
import android.location.Geocoder;
import android.location.Location;
import android.location.LocationManager;

import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.ZoomControls;

public class HelloViewMap extends MapActivity {
/** Called when the activity is first created. */
	
	private LinearLayout linearLayout;
	private MapView mapView;
	private ZoomControls zoomController;
	
	private ListOverlay mapOverlays;
	private Drawable drawable;
	private HelloItemizedOverlay itemizedOverlay;
	
	@Override
	protected boolean isRouteDisplayed(){		
		return false;
	}
	
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
linearLayout = (LinearLayout) findViewById(R.id.zoomview);
mapView = (MapView) findViewById(R.id.mapview);
zoomController = (ZoomControls) mapView.getZoomControls();
linearLayout.addView(zoomController);

 
mapOverlays = mapView.getOverlays();
drawable = this.getResources().getDrawable(R.drawable.icon1);
itemizedOverlay = new HelloItemizedOverlay(drawable);

LocationManager manager=(LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location= manager.getLastKnownLocation(manager.getBestProvider(new Criteria(),true));

 

double latitude=location.getLatitude()*1E6;
double longitude=location.getLongitude()*1E6;

Geocoder geoCoder=new Geocoder(this);
Address address;
		try {
			address = (Address)geoCoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1).get(0);
			if(null!=address.getCountryName())
			Log.i(Country: ,address.getCountryName());
			if(null!=address.getSubAdminArea())
			Log.i(Subadmin: ,address.getSubAdminArea());
			if(null!=address.getLocality())
	Log.i(Locality: ,address.getLocality());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}




GeoPoint point2 = new GeoPoint((int)latitude,(int)longitude);

OverlayItem overlayitem = new OverlayItem(point2, Other, );
itemizedOverlay.addOverlay(overlayitem);
mapOverlays.add(itemizedOverlay);

}
}

[android-beginners] Re: Simple Animation Code

2009-08-25 Thread Kingcrowley

ok been messing around with this for a while and still no luck...
so here is the code in full (probably not great code being honest)
public class StartInActivityMonitor extends Activity implements
SensorEventListener{

/** Called when the activity is first created. */
public SensorManager mSensorManager;
public boolean k= false;
public float prevX;
public float prevY;
public float prevZ;
public Timer timer;
public SoundTimeTask ourSound;
public TTS myTts = null;
private int warning = 0;
private String sendTo;
private String Username;
public long Duration;
// String sendTo = 0833345391;
String myMessage = Need Help!;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.frame_animations_layout);

mSensorManager = (SensorManager) 
getSystemService(SENSOR_SERVICE);
mSensorManager.registerListener(this, 
mSensorManager.getDefaultSensor
(Sensor.TYPE_ACCELEROMETER) , SensorManager.SENSOR_DELAY_UI);

Bundle extras = getIntent().getExtras();
final String tempDuration = extras.getString(myDuration);
float myDuration =  Float.parseFloat(tempDuration);
Duration = (long) (myDuration * 60 * 1000);

ourSound = new SoundTimeTask();
timer = new Timer();

timer.schedule(ourSound,Duration, Duration);

final String tempsendTo = extras.getString(telephoneNumber);
sendTo = tempsendTo;

final String tempUsername = extras.getString(Username);
Username = tempUsername;

myTts = new TTS(this, ttsInitListener, true);
myTts.speak(Creating, 0, null);


}
@Override
public void onAccuracyChanged(Sensor sensor, int accuracy) {
// TODO Auto-generated method stub

}

@Override
public void onSensorChanged(SensorEvent event) {
Sensor mySensor = event.sensor;
if (mySensor.getType() != Sensor.TYPE_ACCELEROMETER) return;

if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER){
float x = event.values[0];
float y = event.values[1];
float z = event.values[2];


if(!k){
prevX = x;
prevY = y;
prevZ = z;
k = true;
}
float value1 = Math.abs(x) - Math.abs(prevX);



if (value1  0.4){
warning = 0;
ourSound.cancel();
ourSound = new SoundTimeTask();
timer.schedule(ourSound,Duration, Duration);
}
prevX = x;
prevY = y;
prevZ = z;

}


}
protected void onStop() {
mSensorManager.unregisterListener(this);
timer.cancel();
super.onStop();
}

class SoundTimeTask extends TimerTask implements Runnable{

public void run() {

switch (warning) {
case 0:

ImageView imgView = 
(ImageView)findViewById(R.id.imageView);
imgView.setVisibility(View.VISIBLE);


imgView.setBackgroundResource(R.drawable.frame_animation);

AnimationDrawable frameAnimation =
(AnimationDrawable) 
imgView.getBackground();

if (! frameAnimation.isRunning())
{
frameAnimation.start();
}

myTts.speak(Hello + Username, 0, null);

break;

case 1:
myTts.speak(Username + How are you?, 0, null);
break;

case 2:
myTts.speak(Are you ok? + Username, 0, null);
break;

case 3:
myTts.speak(Do you require assistance + 
Username + ?, 0,
null);
break;

case 4:
myTts.speak(Hello + Username + please 
respond and move phone,
0, null);
break;


[android-beginners] Re: ListView item stay selected

2009-08-25 Thread Mark Murphy

 I have a listview and i want when i select a row to stay selected

The core Android team does not recommend this.

 The problem is that if i change some attribute ( for example
 v.setBackgroundColor(Color.BLACK) ) the selected view no longer stays
 selected.

That is because selected is one of the background colors. A widget
background is usually some form of ColorStateList. You can supply a simple
color to setBackgroundColor(), but that only works if you do not intend to
allow the item to be selected, for example.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



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



[android-beginners] Re: why I can't use movieview to play the movie came from the internet?

2009-08-25 Thread Balwinder Kaur (T-Mobile USA)

You have not setup the MediaPlayer properly that is why you have an
error. Could you please post your code ?
Also, I guess you mean VideoView not MovieView (although I do some
references to a MovieView in the documentation for MediaStore)

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 Aug 25, 3:57 am, yjshi shiyaju...@gmail.com wrote:
 I use the movieview.java to playback the movie comes from the
 internet.In a activity ,I wrote a Intent that jump to the movieview
 and pass the movieview a url.But after several seconds,It  is closed
 because something is wrong.

 
 W/InputManagerService( 1075): Starting input on non-focused client
 com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0
 (uid=10003 pid=1305)
 W/IInputConnectionWrapper( 1305): showStatusIcon on inactive
 InputConnection
 I/ActivityManager( 1075): Displayed activity
 com.android.stk/.StkDialogActivity: 439 ms (total 439 ms)
 V/VideoView( 1305): reset duration to -1 in openVideo
 W/IInputConnectionWrapper( 1119): showStatusIcon on inactive
 InputConnection
 E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error
 or info PVMFFailure
 W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete
 E/MediaPlayer( 1305): error (1, -1)
 E/MediaPlayer( 1305): Error (1,-1)
 D/VideoView( 1305): Error: 1,-1
 E/MediaPlayer( 1305): stop called in state 0
 E/MediaPlayer( 1305): error (-38, 0)
 W/MediaPlayer( 1305): mediaplayer went away with unhandled events
--~--~-~--~~~---~--~~
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: ListView item stay selected

2009-08-25 Thread Martin Obreshkov

Thanks for the reply but if this is not the recommended way what is
the solution for it. For example i have a list with mails and when i
select given mail there are actions i can perform(delete, reply). What
is the best way to implement this, should i use listview at all.
Thanks in advance.

On Tue, Aug 25, 2009 at 5:39 PM, Mark Murphymmur...@commonsware.com wrote:

 I have a listview and i want when i select a row to stay selected

 The core Android team does not recommend this.

 The problem is that if i change some attribute ( for example
 v.setBackgroundColor(Color.BLACK) ) the selected view no longer stays
 selected.

 That is because selected is one of the background colors. A widget
 background is usually some form of ColorStateList. You can supply a simple
 color to setBackgroundColor(), but that only works if you do not intend to
 allow the item to be selected, for example.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 Android App Developer Books: http://commonsware.com/books.html



 




-- 
When I raise my flashing sword, and my hand takes hold on judgment, I
will take vengeance upon mine enemies, and I will repay those who haze
me. Oh, Lord, raise me to Thy right hand and count me among Thy
saints.

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



[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-25 Thread Yusuf Saib (T-Mobile USA)

Can you post the code that takes a long time? How long does it take,
for how many strings?



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 Aug 25, 2:08 am, Liviu Ungureanu smartli...@gmail.com wrote:
 Hi!
 I want to save an array with  strings.

 I try to write in a file and to save it on sdcard but the loading process
 get so much time...

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



[android-beginners] Re: Cheapest way to acquire a development phone?

2009-08-25 Thread Yusuf Saib (T-Mobile USA)

You don't need a development phone to try out apps. Dev phones are for
people who want to change the OS. Any Android phone with WiFi but no
plan could be used to try out apps.



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 Aug 24, 12:01 pm, Ron ronbruck...@comcast.net wrote:
 I need an actual Google phone with GPS to get some idea of what
 applications are out there.  I already have a plan with a non-Google
 provider, so I only need a plan to try out the apps themselves.  Any
 ideas on how to most efficiently achieve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Cheapest way to acquire a development phone?

2009-08-25 Thread Casper Bang

Search on ebay or wait a few months, as current owners of the HTC
Magic with 6 month contract (like me), will want to move on to newer
devices.

/Casper

On 24 Aug., 21:01, Ron ronbruck...@comcast.net wrote:
 I need an actual Google phone with GPS to get some idea of what
 applications are out there.  I already have a plan with a non-Google
 provider, so I only need a plan to try out the apps themselves.  Any
 ideas on how to most efficiently achieve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: what is the fast way to save/load string from/in an array?

2009-08-25 Thread Liviu Ungureanu
Thank you for reply,,

I want to save the history for my application in a file on sdcard.

First i tried to save it as xml and parse it to load...but these actions
take a lot of time..(almost 8 seconds for 20 strings on a HTC Hero device);

this is the code:

package com.app.lookitup2;

import java.io.BufferedInputStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;

import org.apache.http.util.ByteArrayBuffer;

import android.content.Context;
import android.os.Environment;
import android.util.Log;

public class HistoryManager
{

private ArrayListHistoryItem history_items;
private Context  context;
private final String WHAT_TAG_START  = what;
private final String WHAT_TAG_END= /what;
private final String WHERE_TAG_START = where;
private final String WHERE_TAG_END   = /where;
private final String DATE_TAG_START  = date;
private final String DATE_TAG_END= /date;
private final String ITEM_TAG_START  = item;
private final String ITEM_TAG_END= /item;


public  HistoryManager(Context ctx)
{
context = ctx;

history_items = new ArrayListHistoryItem();
}


public void addHistoryItem(HistoryItem h_item)
{
history_items.add(h_item);
}

public HistoryItem getHistoryItem(int position)
{
return history_items.get(position);
}

public boolean saveHistory()
{

String data;
int i;

File root = Environment.getExternalStorageDirectory();
File history_file = new File(root,history_lookitup.xml);
if(history_file.length() = 1048576)
{
Log.e(SAVE_HISTORY,History is full!Please empty!);
return false;
}

data =  new String();

for(i = 0; i  history_items.size(); i++)
{
data = data + ITEM_TAG_START +
WHAT_TAG_START +
history_items.get(i).getWhat().getText().toString() + WHAT_TAG_END +
WHERE_TAG_START +
history_items.get(i).getWhere().getText().toString() + WHERE_TAG_END +
DATE_TAG_START +
history_items.get(i).getDate().toString() + DATE_TAG_END +
ITEM_TAG_END;
}

try
{
if(root.canWrite())
{
FileWriter history_writer = new
FileWriter(history_file,true);
BufferedWriter out = new BufferedWriter(history_writer);

out.write(data);
out.close();
Log.e(SAVE HISTORY,History is saved);
return true;
}
else
{
Log.e(SAVE HISTORY,no sd card or no permission to write
on it);
return false;
}
} catch (IOException e)
{
Log.e(WRITE FILE,Could not write file  + e.getMessage());
return false;
}

}

public boolean loadHistory() throws IOException
{
String myString =  ;
ArrayListHistoryItem items;


FileInputStream is;
try {

is = new FileInputStream(/sdcard/history_lookitup.xml);
BufferedInputStream bis = new BufferedInputStream(is);

ByteArrayBuffer baf = new ByteArrayBuffer(50);
int current = 0;
while((current = bis.read()) != -1)
   baf.append((byte)current);

myString = new String(baf.toByteArray());

if(myString.equals( ) == false)
{
HistoryParser parser = new HistoryParser(?xml
version='1.0' encoding='UTF-8'?main + myString + /main,context);

items = new ArrayListHistoryItem();
items = parser.getItemList();
Log.e(FIRST_HISTORY, items.get(0).getDate().toString());
Log.e(DATA,myString);

history_items = items;
Log.e(history_items =
,Integer.toString(history_items.size()));
return true;
}
else
return false;


} catch (FileNotFoundException e)
{
e.printStackTrace();
return false;
}


}

public int getCount()
{
return history_items.size();
}

public ArrayListHistoryItem getHistoryList()
{
return history_items;
}

public void clearHistory() throws IOException
{
File root = Environment.getExternalStorageDirectory();
File history_file = new File(root,history_lookitup.xml);

if(root.canWrite())
{
FileWriter history_writer = new FileWriter(history_file);
BufferedWriter out = new BufferedWriter(history_writer);

out.write( );
out.close();
Log.e(Clear HISTORY,History is empty now);

[android-beginners] test

2009-08-25 Thread speedooo

test

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

2009-08-25 Thread zyy571137
why


--~--~-~--~~~---~--~~
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] repo init error

2009-08-25 Thread richard007.lin
Dear all,
I've just installed repo successfully. But I got an error when using repo 
init -u git://android.git.kernel.org/platform/mainfest.git . Here is the error 
output:
Traceback (most recent call last):
  File /home/android/mydroid/.repo/repo/main.py, line 235, in module
_Main(sys.argv[1:])
  File /home/android/mydroid/.repo/repo/main.py, line 217, in _Main
repo._Run(argv)
  File /home/android/mydroid/.repo/repo/main.py, line 123, in _Run
cmd.Execute(copts, cargs)
  File /home/android/mydroid/.repo/repo/subcmds/init.py, line 218, in Execute
self._SyncManifest(opt)
  File /home/android/mydroid/.repo/repo/subcmds/init.py, line 110, in 
_SyncManifest
m.PreSync()
  File /home/android/mydroid/.repo/repo/project.py, line 1440, in PreSync
cb = self.CurrentBranch
  File /home/android/mydroid/.repo/repo/project.py, line 271, in CurrentBranch
b = self.work_git.GetHead()
  File /home/android/mydroid/.repo/repo/project.py, line 1226, in GetHead
fd = open(path, 'rb')
IOError: [Errno 2] No such file or directory: 
'/home/android/mydroid/.repo/manifests/.git/HEAD'

what's wroing? can anyone give some clues?Thanks!

2009-08-25 



richard007.lin 

--~--~-~--~~~---~--~~
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 error: missing required Java project

2009-08-25 Thread deki

hi list, beginner here.

I am getting 3 eclipse errors:

Project 'foo' is missing required Java project: 'bar'
The project cannot be built until build path errors are resolved
Conversion to Dalvik format failed with error 1

anyone seen this?

Thanks

Dejan

--~--~-~--~~~---~--~~
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] Additional Contact Information

2009-08-25 Thread King of Camelot

Hi all. New to Android, so I'm just trying to get a grasp of what's
possible for an application and what's not.

Let's say for example I wanted to add a 'Favorite Food Type' drop-down
box to the contact view UI. This way when you add new contacts, or
modify old ones, you can select a favorite food type for that
individual, that the application I'm making would then use to display
all individuals who like the food type you're currently craving. (Just
an example application)

And just to clarify, by the contact view UI, I mean the interface you
see when you go to contacts and select an individual. In other words,
the screen that lets you modify their contact information.

Now, would it be possible for an application to insert this drop-down
box into the default contact view UI? Or would the application need to
show all contacts itself and force the user to do the food type
selections in the application?

The first options is preferable. If that isn't possible, there's also
a third potential option where the application overrides the default
contact view UI with it's own.

Anybody know which of these is possible, and how to implement?
(Although the in-application version need not explanation)

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] Get arguments from another activity

2009-08-25 Thread Sebeto

Hi,

I try to get the value of a parameter from another activity, but can't
succeed in doing that. I found things about putExtra/getExtra, but
couldn't get it to work unfortunately.

Problem:
I've got a TabActivity called methodes, which has a TabHost. The
contents of the Tabs are activities, and I need to retrieve in these
activities the value of maValeur (which is actually a
ArrayListString). My application is net.sebeto.android.essai.

public class Methodes extends TabActivity
{
public static ArrayListString maValeur;
public void onCreate(Bundle savedInstanceState)
{

  // I initialize maValeur, ...
  (...)

 // MethTab2 will be the content of the second tab
 Intent Tab2 = new Intent(this, MethTab2.class);
 Tab2.putStringArrayListExtra
(net.sebeto.android.essai.Methodes.maValeur, maValeur);

 TabHost host = getTabHost();
 (...)
 host.addTab(host.newTabSpec(two).setIndicator
(Valeur).setContent(Tab2));
}
}

Now:

public class MethTab2 extends Activity
{
private ArrayListString maValeurBis;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

// How to get the value of maValeur??
// I found no way to use getStringArrayList?
//  maValeurBis = savedInstanceState.getStringArrayList
(net.sebeto.android.cuisine.Methodes.maValeur); crashes, ...
   // I can get the value with maValeurBis =
Methodes.maValeur; but I'm not sure that it's
   // a good way to do it, is it? It works, but... do you
think it's a good method?

maValeurAdapter = new ArrayAdapterString(this,
R.layout.methtab2,maValeurBis);
ListView list = new ListView(this);
list.setAdapter(maValeurAdapter);
list.setSelector(android.R.color.transparent);
setContentView(list);
}
}

Thank you for your answers, I'm a perfect beginner in java and in
android... If someone could give me a code which would work it would
be great! I know that it's probably very simple but...

--~--~-~--~~~---~--~~
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] hi, I'm the nre comer

2009-08-25 Thread zero4kevin

Hi,
I am the beginner, hope to learn more with you!
:)
zero4kevin

--~--~-~--~~~---~--~~
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] Proxy issue in emulator 1.5 on Ubuntu(VM)

2009-08-25 Thread speedooo

Hi,


I am just learn Android development on my Ubuntu, which is guest VM on
my windowsXP host. I tried basic Map application, but could not get
internet from my emulator.

I installed ntlmaps on my Ubuntu and everything can go through ntlmaps
default port  5865 to Internet.So when I start emulator I put this in
the command like

emulator -avd MapAndroid1.5 -http-proxy 127.0.0.1:5865 -debug-proxy
proxy_http_setup: creating http proxy service connecting to:
127.0.0.1:5865
server name '127.0.0.1' resolved to 127.0.0.1:5865
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):

but the default Browser and Map Applications with Emulator do not
work. and no further debug message coming through in the console.

I tried insert this parameter in SYSTEM database
or setprop net.gprs.http-proxy [HTTP_PROXY_HOST]:[HTTP_PROXY_PORT]

none of them works for me.

I did try 10.0.2.2 and 10.0.2.15 , failed either, because I thought
127.0.0.1 is localhost for emulator own not for my Ubuntu's 127.0.0.1.

After goole search I found multicast is not support in 1.5 version,
but there is one port(5554) open on host(Uunbtu).
Is it possible link this 5554 with 5865, local proxy port in Ubuntu?

my sdk version is android-sdk-linux_x86-1.5_r3

thanks for your help,

kevin

--~--~-~--~~~---~--~~
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 dom4j in Eclipse

2009-08-25 Thread Zonakusu

Hi!

I am creating an app that uses a lot of different XML files. Because
there are so many I don't like the way SAXParser does it, it would
result in many classes to read all different XML files.

That's why I want to use a more simple XML parser such as dom4j. Does
anyone has experience in importing it in Eclipse en running it on
Android? When I import the .jar file in my /src folder I cant import
org.dom4j.Document for example.

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] What's the best way to fill a TableLayout with objects defined by a template?

2009-08-25 Thread e.ogas

This is a bit hard to explain only using words, but what I'd like to
do is create a xml layout to act as a template for the contents of a
TableLayout.  I figured this would be as simple as creating my
template and adding instances of it as children to the TableLayout.
This didn't quite work out, and I'm wondering if anyone can give a
brief example on how to do this correctly.

I think perhaps that this require the creation of a Compound Control
as outlined on this page: 
http://developer.android.com/guide/topics/ui/custom-components.html
I attempted to do this with no luck.  Can anyone give a full example
on how to do the Compound Control method?

--~--~-~--~~~---~--~~
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: The FTP uploading program does not work on Android Emulator

2009-08-25 Thread engin

I have also this problem

On 22 Temmuz, 03:18, Bo zhaobo...@gmail.com wrote:
 Dear Sir:

 I developed a FTP uploading program which upload the string to a text
 file through FTP. This program only works well as an Java application
 on PC, but when I put the same code to Android application on
 Emulator, Android always begins to grow heap and allocate memory when
 the code calls the functionURLConnection.getOutputStream(), and
 finally Android is Out of memory. I have suffered from this problem
 for a week. If you could help me, I really appreciate!

 Below is the code and debug trace got by adb logcat. (I replace the
 host, user, password and targetfile with some common strings.)

                    String host = hostname;
                    String user = username;
                    String password = password;
                    String targetfile = filename;

                    try{
                      URL url= new URL(ftp://+ user+ :+ password+
 @+ host+ /+ targetfile + ;type=i);
                      URLConnection urlc = url.openConnection();
                      Log.d(DEBUG,  openconnection done);

                      OutputStream os = urlc.getOutputStream();//
 problem happens from this line
                      Log.d(DEBUG,get OutputStream);
                      String packet_str = Uploading;
                      byte[] buf = packet_str.getBytes();
                      os.write(buf);
                      Log.d(DEBUG,write done);
                      os.close();
                      urlc= null;
                    }catch (Exception E) {
                        Log.d(DEBUG,Erro Happen! + E.getMessage
 ());
                        E.printStackTrace();
                    }

 Below is the trace:

 D/DEBUG   (  719):  openconnection done
 D/InetAddress(  719): xzzb.hostrator.com: 64.191.109.6 (family 2,
 proto 6)
 D/dalvikvm(  637): GC freed 2854 objects / 162328 bytes in 177ms
 D/dalvikvm(  719): GC freed 14245 objects / 422552 bytes in 84ms
 D/dalvikvm(  719): GC freed 19713 objects / 529824 bytes in 75ms
 D/dalvikvm(  719): GC freed 17813 objects / 501656 bytes in 78ms
 D/dalvikvm(  719): GC freed 23615 objects / 567184 bytes in 82ms

 .

 D/dalvikvm(  719): GC freed 74935 objects / 1798504 bytes in 162ms
 D/dalvikvm(  719): GC freed 74935 objects / 1798504 bytes in 155ms
 D/dalvikvm(  719): GC freed 43212 objects / 1037152 bytes in 118ms
 I/dalvikvm-heap(  719): Forcing collection of SoftReferences for
 9437196-byte allocation
 D/dalvikvm(  719): GC freed 0 objects / 0 bytes in 62ms
 E/dalvikvm-heap(  719): Out of memory on a 9437196-byte allocation.
 I/dalvikvm(  719): main prio=5 tid=3 RUNNABLE
 I/dalvikvm(  719):   | group=main sCount=0 dsCount=0 s=0
 obj=0x40018e70
 I/dalvikvm(  719):   | sysTid=719 nice=0 sched=0/0 handle=-1097544548
 I/dalvikvm(  719):   at java.lang.AbstractStringBuilder.enlargeBuffer
 (AbstractStringBuilder.java:~99)
 I/dalvikvm(  719):   at java.lang.AbstractStringBuilder.append0
 (AbstractStringBuilder.java:153)
 I/dalvikvm(  719):   at java.lang.StringBuffer.append
 (StringBuffer.java:128)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.readLine
 (FtpURLConnection.java:403)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getReply
 (FtpURLConnection.java:355)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.port
 (FtpURLConnection.java:391)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connectInternal
 (FtpURLConnection.java:232)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect
 (FtpURLConnection.java:189)
 I/dalvikvm(  719):   at
 org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream
 (FtpURLConnection.java:342)
 I/dalvikvm(  719):   at com.example.sendonce.sendonce$1.onClick
 (sendonce.java:118)
 I/dalvikvm(  719):   at android.view.View.performClick(View.java:2179)
 I/dalvikvm(  719):   at android.view.View.onTouchEvent(View.java:3828)
 I/dalvikvm(  719):   at android.widget.TextView.onTouchEvent
 (TextView.java:6291)
 I/dalvikvm(  719):   at android.view.View.dispatchTouchEvent
 (View.java:
 3368)
 I/dalvikvm(  719):   at android.view.ViewGroup.dispatchTouchEvent
 (ViewGroup.java:863)
 I/dalvikvm(  719):   at android.view.ViewGroup.dispatchTouchEvent
 (ViewGroup.java:863)
 I/dalvikvm(  719):   at android.view.ViewGroup.dispatchTouchEvent
 (ViewGroup.java:863)
 I/dalvikvm(  719):   at android.view.ViewGroup.dispatchTouchEvent
 (ViewGroup.java:863)
 I/dalvikvm(  719):   at com.android.internal.policy.impl.PhoneWindow
 $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
 I/dalvikvm(  719):   at
 com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
 (PhoneWindow.java:1197)
 I/dalvikvm(  719):   at android.app.Activity.dispatchTouchEvent
 

[android-beginners] Re: Unable to Connect to FTP server

2009-08-25 Thread engin

I have olsa this error.Did you find solution??

On 1 Temmuz, 18:36, Andrew Burgess abom...@gmail.com wrote:
 I don't think you want URLConnection. I believe you'd actually want to set
 up a Socket (http://developer.android.com/reference/java/net/Socket.html)
 instead.

 I implemented a simple one in C# a while back, and used the code 
 fromhttp://www.codeproject.com/KB/IP/ftplib.aspxas a guide.

 On Mon, Jun 15, 2009 at 4:43 PM, Andy Wolpert 
 andywolp...@mindspring.comwrote:







  Hello All -

  I am trying to upload a file from the Android (Emulator or I/O phone)
  and get a cannot connect to server error. I saw a variety of posts,
  but never a solution. The same accounts, URLs and passwords work from
  the shell.

  The following code is Hello Android extended to call my FTP code.
  (accounts, passwords changed).
  Does FTP upload work?
  Is there a sample to work from?
  Any other ideas?
  (P.S. I would gladly use HTTP instead but found that more confusing
  and got a different error. So a sample there would be great as well).
  - Andy

  -- the code follows -

  package com.example.helloandroid;

  import java.io.FileInputStream;
  import java.io.OutputStream;
  import java.net.URL;
  import java.net.URLConnection;
  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;

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

         try {
         testFTP();
         }

         catch (Exception e) {
                         Log.println(1, FTP, e.getMessage());
                         e.printStackTrace();
                 }
     }

     protected void testFTP() throws Exception {
                 final String localfile =
  /data/data/com.technomusicology.upload/
  test.mp3;
                 final String targetfile = test.mp3;
                 final String host = ftp.myhost_here.com;
                 final String user = user_here;
                 final String password = password_here;
                 URL url = new URL(ftp://+ user+ :+ password+ @+ host
  + /+
  targetfile+ ;type=i);
                 URLConnection urlc = url.openConnection();
                 urlc.setDoOutput(true);
                 // the following line throws unable to connect to host {0}
                 OutputStream os = urlc.getOutputStream();
                 FileInputStream is=  new FileInputStream(localfile);

            byte[] buf= new byte[16384];
            int c;
            while (true) {
                    c= is.read(buf);
                    if (c= 0)  break;
                    os.write(buf, 0, c);
            }
            os.close();
            is.close();
            urlc = null; // close
     }
  }

  // here is more information on the exception
  this    HelloAndroid  (id=830058643256)
  savedInstanceState      null
  e       IOException  (id=830058667280)
         cause   IOException  (id=830058667280)
         detailMessage   Unable to connect to server: {0} (id=830058746592)
         stackState      int[]  (id=830058792560)
         stackTrace      null

 --
 Andrew Burgess- Alıntıyı gizle -

 - Alıntıyı göster -

--~--~-~--~~~---~--~~
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] NullPointerException from getReadableDatabase and getWritableDatabase

2009-08-25 Thread Ryan Rowland

Hi all,
I'm new to Android, however I am experienced with C# and Java. I have
never had problems opening or communicating with a database until now.
Every time I try to open/create a database using SQLiteOpenHelper's
built-in getReadableDatabase or getWritableDatabase functions my
program crashes with a NullPointerException. Here is the relevant
code:

My SQLiteOpenHelper class:
---
public class SQLHelper extends SQLiteOpenHelper{
public SQLHelper(Context context, String db_name)
{
super(context, db_name, null, 1);
}

public void onUpgrade(SQLiteDatabase db, int oldVersion, int
newVersion){}
public void onCreate(SQLiteDatabase db){}
public void onOpen(SQLiteDatabase db){}
}


My  main Activity class:
--
public class BlackBook extends Activity{
private SQLHelper dbHelper;
private SQLiteDatabase db;
private ListProvider lp;
private TextView tv;

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

lp = new ListProvider();
tv.setText(lp.Initiate());
}

public class ListProvider extends ContentProvider
{
/* All mandatory, unmodified overrides here.
   Cut out for clarity of this discussion. */

public String Initiate()
{
dbHelper = new SQLHelper(getContext(), LBB_DB.db);
try{
db = dbHelper.getReadableDatabase();
}catch (Exception e)
{return e.toString();}
finally{}

return Success!;
}
}
--

As you can see, I create a new ContentProvider class in order to
obtain a Context() to pass to the SQLiteOpenHelper. This is what I saw
in the NotePadProvider example, so please let me know if I've done
this wrong and it is causing this error.

This line does not throw an error:
dbHelper = new SQLHelper(getContext(), LBB_DB.db);
But the very next line throws a NullPointerException error:
db = dbHelper.getReadableDatabase();

I have tried both getReadable and getWritable with no difference. I've
been pulling my hair out over this one for well over five hours now, I
would greatly appreciate some help pinpointing the source of the error
if possible.

Thanks for reading.

--~--~-~--~~~---~--~~
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: Development Phone

2009-08-25 Thread Zonakusu

He means that you can create and install your own software packages
(.apk files) on your phone, but you won't be able to rewrite parts of
the actual operating system.

On 25 aug, 12:06, Rafa Perfeito rafa.perfe...@gmail.com wrote:
 Yusuf,
 Does that means that i can, for example, install new Android versions for
 myself in the device? What do you mean by 'modify the OS on the phone'?

 On Mon, Aug 24, 2009 at 6:20 PM, Yusuf Saib (T-Mobile USA) 



 yusuf.s...@t-mobile.com wrote:

  If you just want to write applications and run them on your phone, any
  Android phone will do. If you want to modify the OS on the phone, then
  you need either an official development phone or hack a non-dev phone
  to be a dev phone.

  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 Aug 24, 6:09 am, Ran dahan...@gmail.com wrote:
   Hi everyone,

   I'm new to Android and I want to start developing and deploying my
   apps to a real phone.
   My question is what is the big difference between the official ADP1
   and other Android phones ?
   What is the benefit of working with ADP1 over the other Android
   phones ?
   I want to buy some Andriod phone, I thought of the new Samsung i7500
   with Andriod OS or HTC Hero, will I be able to develop regularly or I
   will need to hack them in some manner to activate some features ?

   Thanks in advance
   Ran

 --
 Cumprimentos,

 Hugo Rafael Augusto

--~--~-~--~~~---~--~~
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] Add one butten in a tab

2009-08-25 Thread Chri

hi!

I just started with android and now i have a problem!
I want to add a button in a tab. In time I just can show text and i don
´t know how i add this button!

my code is:
in the .xml file:

?xml version=1.0 encoding=utf-8?
TabHost xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@android:id/tabhost
android:layout_width=fill_parent
android:layout_height=fill_parent

LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
TabWidget
android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout
android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent
TextView
android:id=@+id/textview1
android:layout_width=fill_parent
android:layout_height=fill_parent
android:text=Tickets /
TextView
android:id=@+id/textview2
android:layout_width=fill_parent
android:layout_height=fill_parent
android:text=Tasks /
TextView
android:id=@+id/textview3
android:layout_width=fill_parent
android:layout_height=fill_parent
android:text=Settings /
/FrameLayout
/LinearLayout
/TabHost


and my .java file:

package com.example.workingcodes;


import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;

public class WorkingCodes extends TabActivity {
/** Called when the activity is first created. */


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

TabHost mTabHost = getTabHost();

mTabHost.addTab(mTabHost.newTabSpec(tab_test1).setIndicator
(Tickets).setContent(R.id.textview1));
mTabHost.addTab(mTabHost.newTabSpec(tab_test2).setIndicator
(Tasks).setContent(R.id.textview2));
mTabHost.addTab(mTabHost.newTabSpec(tab_test3).setIndicator
(Settings).setContent(R.id.textview3));

mTabHost.setCurrentTab(2);


}
}


I want a button in the third tab! How i do this?! plz help!

wkr chri

--~--~-~--~~~---~--~~
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: Cheapest way to acquire a development phone?

2009-08-25 Thread Bart Trojanowski

Hi Ron,

I found that acquiring a Tmobile G1 on eBay a cheap alternative to
buying an ADP1.  You should be able to get a used G1 for about $200,
and a new one for about $300.  Make sure you get an unlocked one if
you plan on using it on a network other than Tmobile.

Judging by your email address I don't think you have the same problem
as I do, but shipping an ADP1 out of the USA is really cost
prohibitive.

-Bart.

On Mon, Aug 24, 2009 at 3:01 PM, Ronronbruck...@comcast.net wrote:
 I need an actual Google phone with GPS to get some idea of what
 applications are out there.  I already have a plan with a non-Google
 provider, so I only need a plan to try out the apps themselves.  Any
 ideas on how to most efficiently achieve this?

-- 
http://www.jukie.net/~bart/sig

--~--~-~--~~~---~--~~
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: About ERROR: unknown virtual device name: 'myavd'

2009-08-25 Thread Phoenix

I also have the same error.

I've tried creating the AVD on the command line and via the gui in the
Eclipse plugin.  Both created the AVD with no problems, but the
emulator still cannot find it.

I've tried running with the configuration set to Automatic, and to
Manual and manually selecting Launch a new Android Virtual Device and
checking the box next to 'my_avd', and the emulator still cannot find
it.  I know it exists, I can see it in S:Documents and Settings
\Phoenix\.android\avd\my_avd.avd

I've tried stopping and re-starting the ADB server, stopping and re-
starting Eclipse... nothing has fixed it.

This is on a new setup, just set up today.  Eclipse Galileo, Android
SDK 1.5_r3 for Windows, on XP.

The complete console:
[2009-08-25 06:11:11 - HelloAndroid] --
[2009-08-25 06:11:11 - HelloAndroid] Android Launch!
[2009-08-25 06:11:11 - HelloAndroid] adb is running normally.
[2009-08-25 06:11:11 - HelloAndroid] Performing
com.example.helloandroid.HelloAndroid activity launch
[2009-08-25 06:11:11 - HelloAndroid] Automatic Target Mode: Preferred
AVD 'my_avd' is not available. Launching new emulator.
[2009-08-25 06:11:11 - HelloAndroid] Launching a new emulator with
Virtual Device 'my_avd'
[2009-08-25 06:11:12 - Emulator] emulator: ERROR: unknown virtual
device name: 'my_avd'
[2009-08-25 06:11:12 - Emulator] emulator: could not find virtual
device named 'my_avd'

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



[android-beginners] Re: Additional Contact Information

2009-08-25 Thread tinyang

Hello Sire :)

I'm new to Android too, but it sounds like the first option is certainly
do-able.  Just modify the current contacts app (assuming it's open source)
and replace one of the current spinners (drop down menus) with the Favorite
food item spinner you wish to add.  Modify the contacts database to add a
field for your fav food, link it to your spinner, and you're good to go.

-Original Message-
From: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] On Behalf Of King of Camelot
Sent: Tuesday, August 25, 2009 12:52 PM
To: Android Beginners
Subject: [android-beginners] Additional Contact Information


Hi all. New to Android, so I'm just trying to get a grasp of what's possible
for an application and what's not.

Let's say for example I wanted to add a 'Favorite Food Type' drop-down box
to the contact view UI. This way when you add new contacts, or modify old
ones, you can select a favorite food type for that individual, that the
application I'm making would then use to display all individuals who like
the food type you're currently craving. (Just an example application)

And just to clarify, by the contact view UI, I mean the interface you see
when you go to contacts and select an individual. In other words, the screen
that lets you modify their contact information.

Now, would it be possible for an application to insert this drop-down box
into the default contact view UI? Or would the application need to show all
contacts itself and force the user to do the food type selections in the
application?

The first options is preferable. If that isn't possible, there's also a
third potential option where the application overrides the default contact
view UI with it's own.

Anybody know which of these is possible, and how to implement?
(Although the in-application version need not explanation)

Thanks!


No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/25/2009
6:07 PM


--~--~-~--~~~---~--~~
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] Install app on a device?

2009-08-25 Thread Yasser

Hi,

I have HTC Magic and I want to install an android app (APK) on it.
I did the following:
1. connected phone to PC and then used HTC sync to synchronize with
windows
2. run adb install command

For this I had to install and setup android SDK and HTC sync. Is there
any simple way of installing an app for a normal user, like copying it
to SD card and then selecting it to install?

Thanks
Yasser
--~--~-~--~~~---~--~~
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 dom4j in Eclipse

2009-08-25 Thread Xavier Ducrohet

Don't put it in src/

It's common to put it in libs/ so that if someone wants to compile
your project with the Ant script they can (Ant will import and include
in your final APK any jar files located in libs/), then right click on
it in the Package Explorer view of Eclipse and choose Build Path  Add
to Build Path.. so that eclipse knows it's a library that is part of
the project.

Xav

On Tue, Aug 25, 2009 at 6:22 AM, Zonakusuzonak...@gmail.com wrote:

 Hi!

 I am creating an app that uses a lot of different XML files. Because
 there are so many I don't like the way SAXParser does it, it would
 result in many classes to read all different XML files.

 That's why I want to use a more simple XML parser such as dom4j. Does
 anyone has experience in importing it in Eclipse en running it on
 Android? When I import the .jar file in my /src folder I cant import
 org.dom4j.Document for example.

 Thanks in advance!

 




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

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



[android-beginners] Re: About ERROR: unknown virtual device name: 'myavd'

2009-08-25 Thread Xavier Ducrohet

I see that you have changed the location of the user folders (in S:
instead of C:)

When the user location is not the default one, we have seen some cases
where windows reports the location of the user folder differently
depending on which API you use (the command line tool and Eclipse use
a Java API, while the emulator use a windows C++ API).

You can override the behavior of both by declaring an environment
variable called ANDROID_SDK_HOME
Make it point to your HOME folder (S:\Documents and Settings\Phoenix\
in this case) and both the emulator and the java based tools will read
and write into the same folder.

Xav

On Tue, Aug 25, 2009 at 6:21 AM, Phoenixphoenixsen...@gmail.com wrote:

 I also have the same error.

 I've tried creating the AVD on the command line and via the gui in the
 Eclipse plugin.  Both created the AVD with no problems, but the
 emulator still cannot find it.

 I've tried running with the configuration set to Automatic, and to
 Manual and manually selecting Launch a new Android Virtual Device and
 checking the box next to 'my_avd', and the emulator still cannot find
 it.  I know it exists, I can see it in S:Documents and Settings
 \Phoenix\.android\avd\my_avd.avd

 I've tried stopping and re-starting the ADB server, stopping and re-
 starting Eclipse... nothing has fixed it.

 This is on a new setup, just set up today.  Eclipse Galileo, Android
 SDK 1.5_r3 for Windows, on XP.

 The complete console:
 [2009-08-25 06:11:11 - HelloAndroid] --
 [2009-08-25 06:11:11 - HelloAndroid] Android Launch!
 [2009-08-25 06:11:11 - HelloAndroid] adb is running normally.
 [2009-08-25 06:11:11 - HelloAndroid] Performing
 com.example.helloandroid.HelloAndroid activity launch
 [2009-08-25 06:11:11 - HelloAndroid] Automatic Target Mode: Preferred
 AVD 'my_avd' is not available. Launching new emulator.
 [2009-08-25 06:11:11 - HelloAndroid] Launching a new emulator with
 Virtual Device 'my_avd'
 [2009-08-25 06:11:12 - Emulator] emulator: ERROR: unknown virtual
 device name: 'my_avd'
 [2009-08-25 06:11:12 - Emulator] emulator: could not find virtual
 device named 'my_avd'

 




-- 
Xavier Ducrohet
Android Developer Tools Engineer
Google Inc.

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



[android-beginners] Re: Install app on a device?

2009-08-25 Thread Michael Leung
Yes, that is an  app calls AppsInstaller in the Android Market. It can do
the job you want.
I have written some instructions about this issue in my blog.
http://www.itblogs.info/index.php/2009/07/23/install-android-apps-from-sd-card?blog=6

On Wed, Aug 26, 2009 at 10:08 AM, Yasser yassersiddi...@gmail.com wrote:


 Hi,

 I have HTC Magic and I want to install an android app (APK) on it.
 I did the following:
 1. connected phone to PC and then used HTC sync to synchronize with
 windows
 2. run adb install command

 For this I had to install and setup android SDK and HTC sync. Is there
 any simple way of installing an app for a normal user, like copying it
 to SD card and then selecting it to install?

 Thanks
 Yasser
 



-- 
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: Install app on a device?

2009-08-25 Thread Carmen Delessio
Apkatcher also works. Send your APK to gmail  open with apkatcher
Carmen

On Aug 25, 2009, at 9:02 PM, Michael Leung michaelchi...@gmail.com  
wrote:

 Yes, that is an  app calls AppsInstaller in the Android Market. It  
 can do the job you want.
 I have written some instructions about this issue in my blog.
 http://www.itblogs.info/index.php/2009/07/23/install-android-apps-from-sd-card?blog=6

 On Wed, Aug 26, 2009 at 10:08 AM, Yasser yassersiddi...@gmail.com  
 wrote:

 Hi,

 I have HTC Magic and I want to install an android app (APK) on it.
 I did the following:
 1. connected phone to PC and then used HTC sync to synchronize with
 windows
 2. run adb install command

 For this I had to install and setup android SDK and HTC sync. Is there
 any simple way of installing an app for a normal user, like copying it
 to SD card and then selecting it to install?

 Thanks
 Yasser




 -- 
 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: Install app on a device?

2009-08-25 Thread Michael Leung
That is good, AppsInstall is only from SD card. Therefore, I need to connect
phone by USB.

On Wed, Aug 26, 2009 at 11:23 AM, Carmen Delessio
carmendeles...@gmail.comwrote:

  Apkatcher also works. Send your APK to gmail  open with apkatcher
 Carmen

 On Aug 25, 2009, at 9:02 PM, Michael Leung michaelchi...@gmail.com
 wrote:

   Yes, that is an  app calls AppsInstaller in the Android Market. It can
 do the job you want.
 I have written some instructions about this issue in my blog.

 http://www.itblogs.info/index.php/2009/07/23/install-android-apps-from-sd-card?blog=6

 On Wed, Aug 26, 2009 at 10:08 AM, Yasser yassersiddi...@gmail.com wrote:


 Hi,

 I have HTC Magic and I want to install an android app (APK) on it.
 I did the following:
 1. connected phone to PC and then used HTC sync to synchronize with
 windows
 2. run adb install command

 For this I had to install and setup android SDK and HTC sync. Is there
 any simple way of installing an app for a normal user, like copying it
 to SD card and then selecting it to install?

 Thanks
 Yasser




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



 



-- 
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: hi, I'm the nre comer

2009-08-25 Thread Michael Leung
Welcome!



On Wed, Aug 26, 2009 at 12:04 AM, zero4kevin zero4ke...@gmail.com wrote:


 Hi,
 I am the beginner, hope to learn more with you!
 :)
 zero4kevin

 



-- 
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: why I can't use movieview to play the movie came from the internet?

2009-08-25 Thread yjshi

The code is in the following.
Uri uri=Uri.parse(url);
Intent intent =new Intent();
intent.setDataAndType(uri, video/*);
intent.setClassName(com.android.camera,
com.android.camera.MovieView);
intent.setAction(Intent.ACTION_VIEW);
startActivity(intent);
url is a internet address begin with http://; orrtsp://.
_

On Aug 25, 11:26 pm, Balwinder Kaur (T-Mobile USA) balwinder.k...@t-
mobile.com wrote:
 You have not setup the MediaPlayer properly that is why you have an
 error. Could you please post your code ?
 Also, I guess you mean VideoView not MovieView (although I do some
 references to a MovieView in the documentation for MediaStore)

 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 Aug 25, 3:57 am, yjshi shiyaju...@gmail.com wrote:

  I use the movieview.java to playback the movie comes from the
  internet.In a activity ,I wrote a Intent that jump to the movieview
  and pass the movieview a url.But after several seconds,It  is closed
  because something is wrong.

  
  W/InputManagerService( 1075): Starting input on non-focused client
  com.android.internal.view.iinputmethodclient$stub$pr...@437bc7f0
  (uid=10003 pid=1305)
  W/IInputConnectionWrapper( 1305): showStatusIcon on inactive
  InputConnection
  I/ActivityManager( 1075): Displayed activity
  com.android.stk/.StkDialogActivity: 439 ms (total 439 ms)
  V/VideoView( 1305): reset duration to -1 in openVideo
  W/IInputConnectionWrapper( 1119): showStatusIcon on inactive
  InputConnection
  E/PlayerDriver( 1030): Command PLAYER_PREPARE completed with an error
  or info PVMFFailure
  W/PlayerDriver( 1030): PVMFInfoErrorHandlingComplete
  E/MediaPlayer( 1305): error (1, -1)
  E/MediaPlayer( 1305): Error (1,-1)
  D/VideoView( 1305): Error: 1,-1
  E/MediaPlayer( 1305): stop called in state 0
  E/MediaPlayer( 1305): error (-38, 0)
  W/MediaPlayer( 1305): mediaplayer went away with unhandled events


--~--~-~--~~~---~--~~
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] unexpected error in sms application

2009-08-25 Thread kapil.k

i have trying sms example.in first few times it was running verry well
in eclips.then i tried some modification so its showing error
unexpectedally closed.then i removed that application n imprted pre
one which was running but now that is also not running n showing the
same error.what should i suppose to do?
--~--~-~--~~~---~--~~
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] Ant build error : package R does not exist

2009-08-25 Thread sagar

Hello everyone,

I am trying to build my project using ant. I first generate build.xml
file using android update project command. Now i want to run it
using ant. When i type ant debug commnad it generates error saying
that package R does not exist while it has already been generated in
gen folder by the android update project command.

Plz help.
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
-~--~~~~--~~--~--~---