[android-developers] Re: Obsolete proguard file

2011-12-31 Thread Droid
proguard is some type of 3rd party file for version checking or
similar.
I normally ignore them or just delete them.

On Dec 31, 5:38 am, bob b...@coolfone.comze.com wrote:
 Can someone explain in a nutshell what this means?

 Obsolete proguard file; use -keepclasseswithmembers instead of -
 keepclasseswithmembernames

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


[android-developers] Recording By AudioRecord API

2011-12-31 Thread Amit Mangal
Hi there,

I want to do recording using AudioRecord API. please let me know how to do
recording with AudioRecord API and save file in desired location.

Any code willbe highly appreciated.

thanks

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

[android-developers] Re: A question regarding AsyncTask

2011-12-31 Thread String
How about using publishProgress() and onProgressUpdate() to notify the 
user? You may already be using it to keep the user updated to the progress 
of the download, but seems to me you could use it to let them know about 
post-download processing too.

String

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

[android-developers] Re: Full bleed, no border in art

2011-12-31 Thread String
I'd say so.

String

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

[android-developers] Help need in game development

2011-12-31 Thread common user
Hi, Am new to android i want to create a 3D games for Android Mobile

Pls help me how to start the games apps

Adv Thanks,

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

[android-developers] Re: Notification Background Color (ICS)

2011-12-31 Thread Zsolt Vasvari
Maybe it's a 4.0.2 vs 4.0.3 problem.  You could try it in an emulator
and if it's a regression in 4.0.3, create a bug report.

On Dec 31, 1:45 am, Brad Grimm sna...@gmail.com wrote:
 Note:  I just noticed this happens only on the Nexus S (upgraded to
 Android 4.0).  On the Galaxy Nexus the colors appear just fine.

 On Dec 30, 10:41 am, Brad Grimm sna...@gmail.com wrote:



  We have a custom notification that uses a linear layout through a
  RemoteView.  On Android 4.0 (Ice Cream Sandwich) the background color
  of our notification is an ugly gray.  The problem is that this isn't
  the theme black background that the rest of the notifications have.
  Is there a way to access this color through a style or some other
  snippet of code to set our notification background to that color?

  Note, we've run into issues before with background colors, but they
  were easily fixed by using styles
  TextAppearance.StatusBar.EventContent and
  TextAppearance.StatusBar.EventContent.Title.  In this case it appears
  to be a background problem, not a text problem.  The background
  doesn't appear to follow the theme at all; in fact using the above
  styles give a gray text color that is really close to the gray
  background color, making them hard to see.

  Thanks,
  Brad- Hide quoted text -

 - Show quoted text -

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


[android-developers] Re: Help need in game development

2011-12-31 Thread Zsolt Vasvari
And I am new to investing and want to become a millionare investor.
Will you help me?

On Dec 31, 5:05 pm, common user commonval...@gmail.com wrote:
 Hi, Am new to android i want to create a 3D games for Android Mobile

 Pls help me how to start the games apps

 Adv Thanks,

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


[android-developers] can use ATM cum debit card of State Bank of India (SBI) for registration.

2011-12-31 Thread Mohd Arshi Khan
I'm student. so i don't have credit card. so
it is possible to use ATM cum Debit Card of State Bank of India (SBI) for
registration on android Market for publish my App.

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

[android-developers] Re: Obsolete proguard file

2011-12-31 Thread al
Proguard is a tool to shrink and obfuscate apps. For details, see
http://proguard.sourceforge.net/#FAQ.html . The proguard documentation
is very good. You might want to take a look.

On 31 Dez., 09:15, Droid rod...@gmail.com wrote:
 proguard is some type of 3rd party file for version checking or
 similar.
 I normally ignore them or just delete them.

 On Dec 31, 5:38 am, bob b...@coolfone.comze.com wrote:


  Can someone explain in a nutshell what this means?

  Obsolete proguard file; use -keepclasseswithmembers instead of -
  keepclasseswithmembernames

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


Re: [android-developers] Re: Expandedlistview

2011-12-31 Thread TreKing
On Fri, Dec 30, 2011 at 9:00 PM, Sean751 sean...@gmail.com wrote:

 If I
 add getExpandableListView().setOnGroupClickListener((OnGroupClickListener) 
 this);
 it asks me to type cast 'this'.


What do you mean it asks you to typecast 'this'  ?
What is this?
Is it an OnGroupClickListener?


 Then the application crashes on run. I suppose onclick must be used for
 changing the display could the conflict be the problem?


Posting the crash would help.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] single_apk_On_multiple_devices

2011-12-31 Thread TreKing
On Sat, Dec 31, 2011 at 1:09 AM, Teena sharma sharma.teena...@gmail.comwrote:

 Thanks .I have read whole doc  but didn't got  accurate solution.


OK. Then read this whole thing and try again:
http://www.catb.org/~esr/faqs/smart-questions.html

You still didn't explain what starched means and I, for one, have no idea
what you're getting at.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Recording By AudioRecord API

2011-12-31 Thread Teena sharma
rcd.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {


recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(Environment
.getExternalStorageDirectory()
+ / + give name of the file to store+ .3gp);


try {
recorder.prepare();
mPlayer.start();
recorder.start();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
}

}

});

rcd is a  button   to start recording.








On Sat, Dec 31, 2011 at 2:21 PM, Amit Mangal forum.amit.man...@gmail.comwrote:

 Hi there,

 I want to do recording using AudioRecord API. please let me know how to do
 recording with AudioRecord API and save file in desired location.

 Any code willbe highly appreciated.

 thanks

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

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

[android-developers] single_apk_On_multiple_devices

2011-12-31 Thread Teena sharma
Can  any one please explain
 I am trying to make.apk for Galaxy Tab in that it takes images from
drawable-large  folder but still  in emulator  image size is very small,
why images are not in  proper size.

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

Re: [android-developers] single_apk_On_multiple_devices

2011-12-31 Thread TreKing
On Sat, Dec 31, 2011 at 3:53 AM, Teena sharma sharma.teena...@gmail.comwrote:

 in emulator  image size is very small, why images are not in  proper size.


How is your emulator configured?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Expandedlistview

2011-12-31 Thread Sean751
I mean Eclipse suggests that as a fix.
There is an example for using the onChildClick and in onCreate the
line getExpandableListView().setOnChildClickListener(this); is
included so if I want to also have onGroup click I assumed that I need
getExpandableListView().setOnGroupClickListener(this); but that causes
an error the suggestion in Eclipse is to change it to
getExpandableListView().setOnGroupClickListener((OnGroupClickListener)
this);
I am after any item click if there is another way, the code that I
want to run onClick is the same for Group or Child. I can see in the
parent class there is an event but I don't know how to use it, I am
new to this.
Thanks again
Sean

On Dec 31, 4:40 am, TreKing treking...@gmail.com wrote:
 On Fri, Dec 30, 2011 at 9:00 PM, Sean751 sean...@gmail.com wrote:
  If I
  add getExpandableListView().setOnGroupClickListener((OnGroupClickListener) 
  this);
  it asks me to type cast 'this'.

 What do you mean it asks you to typecast 'this'  ?
 What is this?
 Is it an OnGroupClickListener?

  Then the application crashes on run. I suppose onclick must be used for
  changing the display could the conflict be the problem?

 Posting the crash would help.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Help me....

2011-12-31 Thread RAJU V
pls help me.. how to fix this issues in eclipse pls




[2011-12-31 17:58:34 - DDMS] DDMS files not found:
D:\Eclipse\eclipse\platform-tools\adb.exe
D:\Eclipse\eclipse\tools\hprof-conv.exe
D:\Eclipse\eclipse\tools\traceview.bat

~~RAJU~~
~~www.itdoall.co.cc~~

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

[android-developers] Re: Re: Packing data onto socket stream ?

2011-12-31 Thread SL@maxis



If you're doing web dev and don't know about json, you're probably doing
something wrong.
Anyway, good luck with your odd approach.



OK, OK, I shall look at it. May be it can simplify some of my tasks.

You see there are always so many things to look into it that ends up  
looking a few things only.


Java alone has so large a library it will probably take quite a while to  
get acquited with them, or at least read them very quickly just leave an  
impression.


I have done a lot of C/C++, even then there are areas that I think are  
hair-raising.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


[android-developers] Re: Re: Re: Re: Re: Packing data onto socket stream ?

2011-12-31 Thread SL@maxis





If it's a trusted library such as apache (for example, the dynamically
linked org.apache harmony system...) that's an entirely irrational
fear.  If it's a random jar you pull off a forum that's more
understandable.  If you want one, go find a trusted jar, make sure
your download matches the checksum, and you'll be fine.

Though I have to admit, the questions you're asking could easily be
resolved if you set aside two or three days worth of time, read
through basic socket tutorials outside of the context of your current
questions, and came back to this issue.

For what you're doing, this sounds like you're trying to implement
something similar to IRC.  IRC has messages, and also incorporates a
mechanism for file transfer, if you look at the newer CTCP. However
you won't be able to read and implement these (well, or your reduction
to it) unless you have background socket programming knowledge, which
you should get...



I have done some pretty simple socket programing with C/C++. In this case,  
with pointers I have quite a free hand to encode my data using a scheme  
onto a memory buffer. At the receiving end once I get socket data into a  
memory buffer I can easily decode the data.


As of now, I am just not certain how to encode my data onto a bytearray  
with java tools. For example given an integer, with C, just obtain a  
pointer to the integer then pack the 4 bytes one by one onto my buffer. In  
java, I think, as of now, I have to use the 'shift' operator and be  
careful with the sign bit.


For you info, the file I/O and byte stream features in java are  
bewildering to a new comer. For one with a lot time they are no much of a  
problem. Thus advice help of gurus are essential to cut down learning time.









--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


[android-developers] Re: Database not created after insert, causing test to fail

2011-12-31 Thread barry
Hi James,

I think I have fixed the problem. The following may answer your
question:

In the onCreate() in my ContentProvider, I was leaving the database
open:

@Override
public boolean onCreate()
{
UKMPGDataProvider.init(getContext(), Constants.DATABASE_NAME);
return (UKMPGDataProvider.getWritableDatabase() == null) ? false :
true;
}
(In my defence, this was copied from a tutorial on the net.)

In my test, the addVehicle() would result in a call the
getWriteableDatabase() on SQLiteOpenHelper, which looks like this
(shortened for clarity):

public synchronized SQLiteDatabase getWritableDatabase() {
if (mDatabase != null  mDatabase.isOpen()  !
mDatabase.isReadOnly()) {
return mDatabase;  // The database is already open for
business
}

//lots more initialisation here, omitted
int version = db.getVersion();
if (version != mNewVersion) {
db.beginTransaction();
try {
if (version == 0) {
//DATABASE CREATED HERE
onCreate(db);
//END
} else {
onUpgrade(db, version, mNewVersion);
}
db.setVersion(mNewVersion);
db.setTransactionSuccessful();
} finally {
db.endTransaction();
}
}
//omitted code again
}
As I had left the database open, execution would not get passed the
first if statement and the onCreate(db) line would never be reached.

In my code, I would close the database after inserting a vehicle, so
next call to getWriteableDatabase() (getVehicles()) would get passed
the first if statement and execute the onCreate(db).

It doesn't really explain why the first insertion was successful
though. And it doesn't explain why the test passed in 'run' mode. I
added some logging to the onCreate() in my ContentProvider and
SQLiteOpenHelper and in run mode the ContentProvider onCreate() is
called twice.

I don't know if this made the difference or not... If anyone can shed
any light on what the difference is between run and debug when unit
testing, I'd be interested to learn more.

Thanks,
Barry

On Dec 31, 3:28 am, James Black planiturth...@gmail.com wrote:
 Where is the database table created?
 On Dec 30, 2011 6:54 PM, barry barry.drinkwa...@gmail.com wrote:







  I have an app which uses a sqlite database and a ContentProvider to
  serve up data. The eclipse project has a unit test which adds a record
  to a database, retrieves it and asserts against the retrieved data:

  public void testAddNewVehicle() { Vehicle vehicle1 = new
  Vehicle(xyz, my car, 111f); long result =
  VehicleProvider.addVehicle(getContext(), vehicle1);

  assertTrue(1 == result);

  ArrayListVehicle vehicles =
  VehicleProvider.getVehicles(getContext()) ;

  assertEquals(1, vehicles.size()); assertEquals(xyz,
  vehicles.get(0).getRegistrationNo()); assertEquals(my car,
  vehicles.get(0).getDescription()); assertEquals(111.0f,
  vehicles.get(0).getInitialMileage()); }

  My setup method deletes the database:

  @Override protected void setUp() throws Exception { super.setUp();
  deleteTestDatabase(); }

  The test passes when I choose 'run', but if I choose debug, it fails
  at theassertEquals(1, vehicles.size()); line. After stepping through
  the code I have noticed something strange: even though the data
  insertion succeeds and assertTrue(1 == result); passes, the database
  does not exist on the file system at this point. It is only created
  when VehicleProvider.getVehicles(getContext()); is called.

  Both addVehicle() and getVehicles() result in a call
  togetWritableDatabase(), so I don't see why the first call does not
  create the database on disk. The addVehicle() method will eventually
  call insert() (irrelevant code omitted):

  @Override public Uri insert(Uri uri, ContentValues values) { String
  table = table = Constants.VEHICLE_TABLE_NAME;

  long rowID = UKMPGDataProvider.getWritableDatabase().in sert(table,
  null, values);

  // ---if added successfully---if (rowID  0) { Uri insertedRowUri =
  insertedRowUri = ContentUris.withAppendedId(VEHICLE_CONTENT _URI,
  rowID);

  getContext().getContentResolver().notifyC hange(insertedRowUri, null);
  return insertedRowUri; } throw new SQLException(Failed to insert row
  into  + uri); }

  And the getVehicle() will eventually call query():

  @Override public Cursor query(Uri uri, String[] projection, String
  selection, String[] selectionArgs, String sortOrder)
  { SQLiteQueryBuilder sqlBuilder = new SQLiteQueryBuilder();

  sqlBuilder.setTables(uri.getPathSegments( ).get(0));

  if (uriMatcher.match(uri) == VEHICLE_ID) // ---if getting a particular
  vehicle

  sqlBuilder.appendWhere(BaseColumns._ID +  =  +
  uri.getPathSegments().get(1));

  if (sortOrder == null || sortOrder == ) { sortOrder =
  BaseColumns._ID; }

  Cursor c = sqlBuilder.query(UKMPGDataProvider.getWri tableDatabase(),
  projection, 

[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread lbendlin
you're probably using network location which gives you the illusion of a 
quicker GPS fix. Switch that off, then start the camera app, and see how 
long it takes to get a real GPS fix. We're talking tens of seconds here.

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

[android-developers] Running keytool for MD5 Fingerprint

2011-12-31 Thread John Raftery
Hi, I've got keytool sitting in the jdk, and it works when I use
eclipse to automatically sign an application package. However, I'm
struggling to run keytool to get an MD5 Fingerprint. When I go to the
jdk bin folder and try to run keytool, a command prompt window opens
and then closes after a second. It's probably something really simple
I'm missing. Could I have some help please? I'm using Windows.

Thanks,
John

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


Re: [android-developers] Running keytool for MD5 Fingerprint

2011-12-31 Thread Nikolay Elenkov
On Sat, Dec 31, 2011 at 11:08 PM, John Raftery john.rafte...@gmail.com wrote:
 Hi, I've got keytool sitting in the jdk, and it works when I use
 eclipse to automatically sign an application package. However, I'm
 struggling to run keytool to get an MD5 Fingerprint. When I go to the
 jdk bin folder and try to run keytool, a command prompt window opens
 and then closes after a second. It's probably something really simple
 I'm missing. Could I have some help please? I'm using Windows.

Open a command prompt window, and run the keytool command
(with appropriate parameters) from there. It's a command line utility,
so if you just double-click it, it will display a usage message and
exit, closing the command prompt window.

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


Re: [android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread James Black
If you start the gps fix early on in the application, perhaps have an
activity they go to before they take the picture, or, at least, let them
know there is no GPS fix, then you can get the time to get that before they
take the picture.

On Sat, Dec 31, 2011 at 8:56 AM, lbendlin l...@bendlin.us wrote:

 you're probably using network location which gives you the illusion of a
 quicker GPS fix. Switch that off, then start the camera app, and see how
 long it takes to get a real GPS fix. We're talking tens of seconds here.

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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

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

Re: [android-developers] Intent for opening activity.

2011-12-31 Thread Baba Shanker
Thank you.



On Fri, Dec 30, 2011 at 6:19 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Fri, Dec 30, 2011 at 4:40 AM, Baba Shanker baba.andr...@gmail.com
 wrote:
  How  to open com.android.systemui/.usb.UsbStorageActivity activity
  using intent.

 That is an internal system activity. Android SDK applications should
 not be opening it.

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

 Android Training...At Your Office: http://commonsware.com/training

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


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

[android-developers] Localization Question

2011-12-31 Thread Tom Opgenorth
Hi all, I think I have a misunderstanding on my part about
localization/resource location that I'm hoping someone can clarify for
me.

So I have a simple layout, which will has an ImageView (will display
just a flag).  I have the following folders/files in my res folder:

drawable/flag.png (the flag of the United Nations)
drawable-de/flag.png (the Bundesdienstflagge of Germany)
drawable-en-rCA/flag.png (the Maple Leaf of Canada)
drawable-fr/flag.png (the French Tricolor).

Here is the layout for my ImageView:
ImageView android:id=@+id/flagImage
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:src=@drawable/flag200
/

Now, I run the app in the emulator.  The first time it runs, the
locale is set to en-US, and I see the flag of the United Nations. This
is what I would expecte as this is the default resource.  Now I change
the locale (via the Default Locale) app in the emulator, and change
the locale to de.  I see the German flag. This is also expected.

Now here is where I'm confused. I change the locale to just en, and
now my app shows the Canadian flag. Should my app not be displaying
the UN Flag?

i.e. is not the localization path/chain as follows for a locale of en:

1. Look for drawable/en folder (not found)
2. Use the default resources in drawable

TIA for any help.

-- 
http://www.opgenorth.net

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


[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread Lew
lbendlin wrote:

 you're probably using network location which gives you the illusion of a 
 quicker GPS fix. Switch that off, then start the camera 


On what do you base such a statement?  I gave absolutely zero information 
about what I experience.  Probably?
 

 app, and see how long it takes to get a real GPS fix. We're talking tens 
 of seconds here.


Well, for me it's five seconds, and all the times I've used geo location 
for photos that five seconds has never bothered me much.  It's comparable 
to the time to do a local search from Google Maps for Mobile, for example. 
 Perhaps I am unique.  Perhaps I measure latency against what other apps 
provide, and since they are all in that five-second range it seems normal.

There are a couple of us now who suggested prefetch.  Is that an idea that 
would work for you?

What evidence have you gathered to find the threshold at which [y]our 
users may not be willing to wait?  Are users generally bothered by a 
five-second delay for GPS?  

I'm thinking you have a tendency to leap to conclusions, well, assumptions 
disguised as conclusions.  You might have fallen into Knuth's famous 
premature optimization trap.  You assumed things (probably) about my 
configuration and even what I experience on my phone.  Have you assumed 
things about what users typically experience and can tolerate?  Shouldn't 
you have some facts in hand before investing, possibly wasting effort 
solving a tier-2 or -3 problem?

That said, some sort of coordinate prefetch-and-cache strategy might make 
your app the new standard that has people impatient with all the others.

-- 
Lew

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

[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread Lew


On Saturday, December 31, 2011 10:11:04 AM UTC-8, Lew wrote:

 lbendlin wrote:

 you're probably using network location which gives you the illusion of a 
 quicker GPS fix. Switch that off, then start the camera 


 On what do you base such a statement?  I gave absolutely zero information 
 about what I experience.  Probably?


I take that back, I did say that I never noticed the delay.  Still, how you 
get from that to my configuration is a reach.  As it happens I never turn 
on network location.

-- 
Lew

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

[android-developers] Re: Help me....

2011-12-31 Thread Lew
RAJU wrote:

 pls help me.. how to fix this issues in eclipse pls


I'll get to your question in a minute, but I have to object to this use of 
pls to spell please.  It's only three letters difference.  Is it really 
that much trouble to spell it out?

 [2011-12-31 17:58:34 - DDMS] DDMS files not found:
 D:\Eclipse\eclipse\platform-tools\adb.exe
 D:\Eclipse\eclipse\tools\hprof-conv.exe
 D:\Eclipse\eclipse\tools\traceview.bat 

You don't give a whole lot of information, but this snippet suggests that 
you might not have set up the Eclipse ADT plugin, or at least not correctly.
http://developer.android.com/sdk/eclipse-adt.html

Or perhaps Eclipse itself is not installed correctly.  The missing Eclipse 
tools suggest that.

Speaking of not spelling things out (spell things out is a colloquialism 
meaning to provide all the details), people might be able to offer better 
help if you give more details.  What sort of things were you doing?  Does 
this happen with Eclipse generally or only for a specific project?  At what 
phase?  How is the project set up?

Anyway, check your plugins and other related installations.  If things 
remain broken maybe additional details will uncover the mystery then.

-- 
Lew

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

[android-developers] Using image from gallery in application

2011-12-31 Thread mr.winky
I am writing an intent to allow the user to pull an image from the
gallery:

Intent getImage = new Intent(Intent.ACTION_GET_CONTENT);

getImage.setType(image/*);
getImage.putExtra(outputX, width);
getImage.putExtra(outputY, height);
getImage.putExtra(aspectX, width);
getImage.putExtra(aspectY, height);
getImage.putExtra(noFaceDetection, true);
getImage.putExtra(scale, true);
getImage.putExtra(crop, true);
getImage.putExtra(setWallpaper, false);

startActivityForResult(Intent.createChooser(getImage, Select
Background Image), 0x10);

Everything is working fine and a new image is generated from the
gallery except it looks like the image that comes back cropped is in a
lower quality format from the original image, like 16 bit color format
instead of 32 bit.

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


[android-developers] Android Support package, as described on Android site, not found in SDK Manager

2011-12-31 Thread David Karr
I was looking at the new Android Training section on the Android 
Developer's site. One of the first required steps is installing the 
Android Support package.

In the Downloading the Support Package section, it first says to Launch 
the SDK and AVD Manager.  This is curious, as my Eclipse has two options, 
called Android SDK Manager and AVD Manager. These instructions refer 
specifically to a choice called Android SDK and AVD Manager.  I assume 
they really mean the SDK Manager, so that's what I'm looking at.

The instructions next say Expand the Android Repository, check Android 
Support package.

My Android SDK Manager dialog has a pane labeled Packages. I see 
nothing labeled Android Repository. I also see nothing like Android 
Support.

What am I missing?

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

Re: [android-developers] Android Support package, as described on Android site, not found in SDK Manager

2011-12-31 Thread Mark Murphy
On Sat, Dec 31, 2011 at 2:19 PM, David Karr davidmichaelk...@gmail.com wrote:
 I was looking at the new Android Training section on the Android
 Developer's site. One of the first required steps is installing the Android
 Support package.

 In the Downloading the Support Package section, it first says to Launch
 the SDK and AVD Manager.  This is curious, as my Eclipse has two options,
 called Android SDK Manager and AVD Manager. These instructions refer
 specifically to a choice called Android SDK and AVD Manager.  I assume
 they really mean the SDK Manager, so that's what I'm looking at.

The tutorials were written before the split of the SDK and AVD Manager
into two windows, apparently.

 The instructions next say Expand the Android Repository, check Android
 Support package.

 My Android SDK Manager dialog has a pane labeled Packages. I see nothing
 labeled Android Repository. I also see nothing like Android Support.

 What am I missing?

In the SDK Manager, it is called Android Compatibility package, and
it appears in the Extras category.

The name of this component has varied from Android Compatibility
Library to Android Support package to Android Compatibility
package. If you see any of those names, they should all be referring
to the same thing.

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

_Android Programming Tutorials_ Version 4.1 Available!

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


Re: [android-developers] Recording By AudioRecord API

2011-12-31 Thread Amit Mangal
Hi i need AudioRecord Api not MediaRecorder.

thanks

On Sat, Dec 31, 2011 at 3:12 PM, Teena sharma sharma.teena...@gmail.comwrote:





 rcd.setOnClickListener(new OnClickListener() {

 @Override
 public void onClick(View v) {


 recorder.setAudioSource(MediaRecorder.AudioSource.MIC);

 recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

 recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 recorder.setOutputFile(Environment
 .getExternalStorageDirectory()
 + / + give name of the file to store+
 .3gp);


 try {
 recorder.prepare();
 mPlayer.start();
 recorder.start();
 } catch (IllegalStateException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
 } catch (Exception e) {
 // TODO Auto-generated catch block
 }

 }

 });

 rcd is a  button   to start recording.








 On Sat, Dec 31, 2011 at 2:21 PM, Amit Mangal 
 forum.amit.man...@gmail.comwrote:

 Hi there,

 I want to do recording using AudioRecord API. please let me know how to
 do recording with AudioRecord API and save file in desired location.

 Any code willbe highly appreciated.

 thanks

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


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

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

[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread lbendlin
You do realise that I am not the OP, right?

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

Re: [android-developers] Re: Expandedlistview

2011-12-31 Thread TreKing
On Sat, Dec 31, 2011 at 6:21 AM, Sean751 sean...@gmail.com wrote:

 There is an example for using the onChildClick and in onCreate the line
 getExpandableListView().setOnChildClickListener(this); is included


That implies that in this example the class referred to by this
implements the OnGroupClickListener interface. Does it?


 so if I want to also have onGroup click I assumed that I
 need getExpandableListView().setOnGroupClickListener(this);


You need an OnGroupClickListener, where you get it from, whether it is
this or another instance, is fairly irrelevant.


 but that causes an error the suggestion in Eclipse is to change it
 to getExpandableListView().setOnGroupClickListener((OnGroupClickListener) 
 this);


Eclipse doesn't know any better. You should. This will get it to compile
but will crash as you saw.


 I am after any item click if there is another way, the code that I want to
 run onClick is the same for Group or Child. I can see in the parent class
 there is an event but I don't know how to use it, I am new to this.


You may need to take a step back and learn some Java first, as it appears
you're getting hung up on some basic semantics of the language.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] faster android games

2011-12-31 Thread bob
Can I make my android games faster by somehow telling proguard not to
obfuscate my stuff?

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


Re:[android-developers] faster android games

2011-12-31 Thread Marcin Orlowski
You should read what obfuscation is and how proguard works first.
 On Dec 31, 2011 11:39 PM, bob b...@coolfone.comze.com wrote:

 Can I make my android games faster by somehow telling proguard not to
 obfuscate my stuff?

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


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

Re: [android-developers] faster android games

2011-12-31 Thread Kristopher Micinski
You can interpret this as:

No, this doesn't make any sense, there is no way proguard is going to
make things slower, only faster..

Kris

On Sat, Dec 31, 2011 at 6:20 PM, Marcin Orlowski
webnet.andr...@gmail.com wrote:
 You should read what obfuscation is and how proguard works first.

 On Dec 31, 2011 11:39 PM, bob b...@coolfone.comze.com wrote:

 Can I make my android games faster by somehow telling proguard not to
 obfuscate my stuff?

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

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

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


[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2011-12-31 Thread Lew
I was responding to your posts.  You don't have to be the OP for me to 
answer what you wrote.  Perhaps I erred in thinking your comments were a 
response to my post, though, in which case I apologize.

-- 
Lew

On Saturday, December 31, 2011 1:11:00 PM UTC-8, lbendlin wrote:

 You do realise that I am not the OP, right?


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

[android-developers] Why isn't layoutopt in my sdk?

2011-12-31 Thread David Karr
I noticed the mention of the layoutopt tool in the Android Training 
pages.  I see that I don't have that in my sdk distro anywhere. I've kept 
the SDK installed from the ADT pretty up to date, but perhaps that's 
separate from this.

Why might it be missing?

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

Re: [android-developers] can use ATM cum debit card of State Bank of India (SBI) for registration.

2011-12-31 Thread TreKing
On Sat, Dec 31, 2011 at 3:17 AM, Mohd Arshi Khan arshikha...@gmail.comwrote:

 it is possible to use ATM cum Debit Card of State Bank of India (SBI) for
 registration on android Market for publish my App.


Why don't you just try it and see ... ?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Why isn't layoutopt in my sdk?

2011-12-31 Thread Mark Murphy
On Sat, Dec 31, 2011 at 7:57 PM, David Karr davidmichaelk...@gmail.com wrote:
 I noticed the mention of the layoutopt tool in the Android Training
 pages.  I see that I don't have that in my sdk distro anywhere. I've kept
 the SDK installed from the ADT pretty up to date, but perhaps that's
 separate from this.

 Why might it be missing?

My guess is that it has been subsumed into the lint utility.

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


Re: [android-developers] Why isn't layoutopt in my sdk?

2011-12-31 Thread Tor Norbye
On Sat, Dec 31, 2011 at 5:17 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Dec 31, 2011 at 7:57 PM, David Karr davidmichaelk...@gmail.com
 wrote:
  I noticed the mention of the layoutopt tool in the Android Training
  pages.  I see that I don't have that in my sdk distro anywhere. I've kept
  the SDK installed from the ADT pretty up to date, but perhaps that's
  separate from this.
 
  Why might it be missing?

 My guess is that it has been subsumed into the lint utility.


Correct. Lint includes all the layoutopt rules (and more).
http://tools.android.com/tips/lint

We'll try to get the training docs updated.

-- Tor



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

 Warescription: Three Android Books, Plus Updates, One Low Price!

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


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

[android-developers] Setting TabSpec Content using Source Code

2011-12-31 Thread Dancing Fingers
Hi Guys,
I've created a custom game keyboard that I want to share with several
windows so I decided to give TabActivity a try.  I created a layout
for each tab, for example:

// Plain text input layout
inputLayout = new LinearLayout(this);
inputLayout.setOrientation(LinearLayout.VERTICAL);
mainText.setHeight(120);
inputLayout.addView(mainText);
inputLayout.addView(keyboard);

host.addTab(host.newTabSpec(Text
Input).setIndicator(Input).setContent(inputLayout));

I get an change inputLayout to int compile error.  This seems
inconsistent with the Activity class.  Is there a workaround or do I
have to use xml?

Thanks.

Chris

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


[android-developers] NPE in Pre Compiler using Eclipse 3.7.1

2011-12-31 Thread James Black
I recently updated my SDK, and in one project I am getting this error:

!ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
!MESSAGE Unknown error: java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPath(AaptParser.java:721)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptParser.java:473)
at
com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParser.java:370)
at
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:599)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:321)
at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at
org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:124)
at
com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementalDebugBuild(ProjectHelper.java:961)
at
com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(LaunchConfigDelegate.java:146)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I have this in project.properties:
android.library.reference.1=../BookTrackerLib

java.runtime.version=1.6.0_29-b11

[image: image.png]

For my project, everything is done in the library, so here is my main
activity:
public class BookTrackerActivity extends BookTrackerLibActivity {
public void onCreate(Bundle savedInstanceState) {
mContext = this;
super.onCreate(savedInstanceState);
}

}

I don't know what else may be needed to help solve this problem.  I have
cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
the main project, still have the same error.
-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

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

[android-developers] Re: NPE in Pre Compiler using Eclipse 3.7.1

2011-12-31 Thread James Black
I looked at another two projects that use a different library and I
have a different problem that is new, as I had recently built this and
put it on the market:
R cannot be resolved to a variable

For this line:
case R.id.clear_menu:

I have the ids defined in the library, as they are shared for both
projects, and this used to work.

So, I think the fact that I am not copying the res files from the
library to the actual projects may be the problem, which to me seems
to be a bug.

On Dec 31, 10:20 pm, James Black planiturth...@gmail.com wrote:
 I recently updated my SDK, and in one project I am getting this error:

 !ENTRY com.android.ide.eclipse.adt 4 0 2011-12-31 22:08:11.403
 !MESSAGE Unknown error: java.lang.NullPointerException
 !STACK 0
 java.lang.NullPointerException
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.getResourceFromFullPa 
 th(AaptParser.java:721)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.checkAndMark(AaptPars 
 er.java:473)
 at
 com.android.ide.eclipse.adt.internal.build.AaptParser.parseOutput(AaptParse 
 r.java:370)
 at
 com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.bui 
 ld(PostCompilerBuilder.java:599)
 at
 org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
 199)
 at
 org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java: 
 321)
 at
 org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:396)
 at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
 at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
 at
 org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
 at org.eclipse.core.internal.resources.Project.build(Project.java:124)
 at
 com.android.ide.eclipse.adt.internal.project.ProjectHelper.doFullIncrementa 
 lDebugBuild(ProjectHelper.java:961)
 at
 com.android.ide.eclipse.adt.internal.launch.LaunchConfigDelegate.launch(Lau 
 nchConfigDelegate.java:146)
 at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
 ion.java:854)
 at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfigurat 
 ion.java:703)
 at
 org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.ja 
 va:928)
 at
 org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

 I have this in project.properties:
 android.library.reference.1=../BookTrackerLib

 java.runtime.version=1.6.0_29-b11

 [image: image.png]

 For my project, everything is done in the library, so here is my main
 activity:
 public class BookTrackerActivity extends BookTrackerLibActivity {
 public void onCreate(Bundle savedInstanceState) {
 mContext = this;
 super.onCreate(savedInstanceState);

 }
 }

 I don't know what else may be needed to help solve this problem.  I have
 cleaned both projects, rebuilt the library, then restarted Eclipse, rebuilt
 the main project, still have the same error.
 --
 I know that you believe you understand what you think I said, but I'm not
 sure you realize that what you heard is not what I meant.
 - Robert McCloskey

  image.png
 14KViewDownload

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