[android-developers] DrawMyLocation causes Uncaught BitmapDrawable Handler (Cupcake)

2009-09-12 Thread chrispix

Not sure if this is related to the custom build of Cupcake from
CyanogenMod 4.1.7, or DrawMyLocation has been depreciated or something
else.. But hopefully someone can help..
This only happens on 4.1.7, but we have customers who are asking why
this is not working. I did post bug report @ CyanogenMod, but have not
been able to find information on Android.com regarding the
MyLocationOverlay class.
my app extends the MyLocationOverlay class. When Overriding
drawMyLocation and calling super.drawMyLocation, I get a Uncaught
Handler : Here is LogCat :

09-12 00:50:35.825: ERROR/AndroidRuntime(5769): Uncaught handler:
thread
main exiting due to uncaught exception
09-12 00:50:35.865: ERROR/AndroidRuntime(5769):
java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.getLocationDot
(MyLocationOverlay.
java:180)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.drawMyLocation
(MyLocationOverlay.
java:561)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.froogloid.android.gspot.savemaplocation
$MyLocationOverlay1.drawMyLocati
on(savemaplocation.java:472)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.draw(MyLocationOverlay.java:
511)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:45)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MapView.onDraw(MapView.java:476)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.View.draw(View.java:6274)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1526)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1524)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1524)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1524)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.View.draw(View.java:6277)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1526)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.View.draw(View.java:6277)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw
(PhoneWindow.jav
a:1883)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewRoot.draw(ViewRoot.java:1332)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewRoot.performTraversals(ViewRoot.java:1097)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1613)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.os.Handler.dispatchMessage(Handler.java:99)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.os.Looper.loop(Looper.java:123)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
android.app.ActivityThread.main(ActivityThread.java:4203)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
java.lang.reflect.Method.invokeNative(Native Method)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
java.lang.reflect.Method.invoke(Method.java:521)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:
791)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
dalvik.system.NativeStart.main(Native Method)
--~--~-~--~~~---~--~~
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: I want to know to get browse history on android ?

2009-09-12 Thread Miguel Paraz

I continued with my trial code. This one does not retrieve anything,
using the DevPhone on Cupcake.

Then, I read the source for the Browser's BrowserProvider which
suggests that you need to give something to query. (the commented code
below). However, that causes an Exception inside the BrowserProvider
(at the bottom)

Thanks!


package com.paraz.history;

import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Browser;
import android.util.Log;
import android.widget.ListAdapter;
import android.widget.SimpleCursorAdapter;

public class BrowserHistoryActivity extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.list_activity_view);

final String[] proj = new String[] { 
Browser.BookmarkColumns.TITLE,
Browser.BookmarkColumns.URL,
Browser.BookmarkColumns.DATE };
Cursor results = 
getContentResolver().query(Browser.BOOKMARKS_URI,
proj, null, null, null);
//  Cursor results = 
getContentResolver().query(Browser.BOOKMARKS_URI,
//  proj, Browser.BookmarkColumns.TITLE, new 
String[] {google},
null);

ListAdapter adapter = new SimpleCursorAdapter(this, // Context.
android.R.layout.two_line_list_item, // Specify 
the row template
// to use (here, two
// columns bound to the
// two retrieved cursor
// rows).
results, // Pass in the cursor to bind to.
proj, // Array of cursor columns to bind to.
new int[] {0, 1}); // Parallel array of which 
template objects to
bind
// to those columns.
// Bind to our new adapter.
setListAdapter(adapter);
}
}

09-12 14:26:39.294 E/DatabaseUtils( 1022):
android.database.sqlite.SQLiteException: bind or column index out of
range: handle 0x196720
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteProgram.native_bind_string(Native
Method)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:
178)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteQuery.bindString(SQLiteQuery.java:190)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteDirectCursorDriver.query
(SQLiteDirectCursorDriver.java:55)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory
(SQLiteDatabase.java:1118)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteDatabase.queryWithFactory
(SQLiteDatabase.java:1006)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:964)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1078)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
com.android.browser.BrowserProvider.query(BrowserProvider.java:574)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.content.ContentProvider$Transport.bulkQuery
(ContentProvider.java:112)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.content.ContentProviderNative.onTransact
(ContentProviderNative.java:97)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
android.os.Binder.execTransact(Binder.java:287)
09-12 14:26:39.294 E/DatabaseUtils( 1022):  at
dalvik.system.NativeStart.run(Native Method)


--~--~-~--~~~---~--~~
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: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-12 Thread Al Sutton

My guess is that they're running one of Cynogens Donut ROMs that hes'
made available. There's a fair amount of talk about performance
improvements and he is pointing at devs for some issues (a main one
being problems with widgets and rotation).

If you want to use the open-source repo donut SDK to see if you can
reproduce the problem it's available from;

http://andappstore.com/AndroidApplications/sdk/

Al.

On Sep 11, 6:03 pm, chrispix chris...@gmail.com wrote:
 We have had a couple users on the myTouch phone have issues in our
 application. It apparently is force closing on them. I am not sure of
 why it is, and the 1.6 SDK is not out yet. Has 1.6 been released into
 the wild? If so, do you know where I can download the image for my G1
 dev phone to test w/?

 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] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-12 Thread agirardello

A bit late, but here some details about my app... ;-)

Application: Personalytics

Category: Productivity

Desc: Personalytics is a tool for Android that allows the collection
of personal events (i.e. calls and SMS) and their related positions
with a non-invasive approach. Once synchronized (free account on
personalytics.net is required), events can be visualized trough a web-
based dashboard of customized charts and maps.

Website: http://personalytics.net

Here a screenshot of the web-based dashboard to visualize your traced
events: http://personalytics.net/wp-content/uploads/2009/09/dashboard.png

I have also published this application on the Market under the name
Personalytics.net and category Finance.

Andrea ^_^
--~--~-~--~~~---~--~~
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: textview scrolling help.

2009-09-12 Thread prashanth

can you not use marquee attribute of TextView if you want to scroll
text inside textview?

regards


On Sep 11, 10:33 am, m|ch mich3...@gmail.com wrote:
 I want to enable scrolling for textview.
 I set vertical scrollbar which appears but scrolling doesn't work.
 Why?

 I am not using ScrollView because HomeScreen widget doesn't support
 that component.
--~--~-~--~~~---~--~~
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: hi, i need help with a simple counter and timer app for use while refereeing fencing

2009-09-12 Thread Lance Nanek

Neat idea. I fenced back in school, actually, and wouldn't mind
helping. I'll send you an email.

On Sep 11, 1:33 am, jonthebear king_john...@hotmail.com wrote:
 ive installed the sdk and have no idea what to do, so could you either
 give me step by stpp instructions or better yet make the following app
 for me.

 i require an app with a double counter, (green on left, red on right)
 with an + and - button for each and a button which adds 1 and removes
 1 from both values,

 i also require a stopwatch which can be reset to 1 and 3 mins with a
 large start/stop button which beeps at full volume when 0:00 is
 reached.

 if possible(but not nescesarry) please also add red/yellow card
 warnings for each side, disabling the yellow card button when pressed
 and adding 1 to the other side when the red is pressed.

 thankyou, this would be an enormous help both to me and to the fencing
 community on the whole

 p.s sorry if this is not where i should post this, please tell me
 where i might be able to do this if this is the case
--~--~-~--~~~---~--~~
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: Is there any Android Handset which CDMA based?

2009-09-12 Thread javame_android

Hi,

Will the GsmCellLocation give me the proper result in CDMA network. If
my application uses GsmCellLocation, then will I be able to get CellId
and Lac value? If not then how to get those values on CDMA network.


Regards
Sunil
--~--~-~--~~~---~--~~
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: Is there any Android Handset which CDMA based?

2009-09-12 Thread Mark Murphy

 Will the GsmCellLocation give me the proper result in CDMA network. If
 my application uses GsmCellLocation, then will I be able to get CellId
 and Lac value? If not then how to get those values on CDMA network.

Until a version of Android ships with documented CDMA support, there is no
good way to know. You are welcome to putter around the Android open source
repository to try to find an answer (http://source.android.com).

-- 
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 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: problem in acceing sent message from BroaddcastReceiver

2009-09-12 Thread javame_android

Hi,

I really didn't get you what you want to say. Please be specific and
let us know what error do you get and when actually does it occur.
What are you trying to do? If you want to listen for the message then
you can do that using Broadcast Receiver and registering that receiver
in AndroidManfest file with receiver tag. Moreover, dont forget to
include the appropriate permissions for the same.



Regards
Sunil
--~--~-~--~~~---~--~~
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: Checking the user's country

2009-09-12 Thread Anna PS

Thanks Roman, very helpful. Actually, it turns out that the dynamic
method is what I need after all.

best wishes,
Anna

On Sep 12, 3:24 am, Roman ( T-Mobile USA) roman.baumgaert...@t-
mobile.com wrote:
 What do you mean with user's country?

 Static methods:
 - You could use the phone number which is assigned to you. The phone
 number starts with the country code.
 - Also the IMEI has information about in which country your phone was
 approved/registered.

 Dynamic method based on your cellular connection (which you are not
 interested in):
 If you try to get information to which MNC-MCC you are connected use
 the TelephonyManager.getNetworkOperator() API. The MCC (mobile country
 code) is the information you are looking for. You can lookup which MCC
 code belongs to which country 
 athttp://en.wikipedia.org/wiki/List_of_mobile_country_codes.

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

 On Sep 11, 9:49 am, Anna PS annapowellsm...@googlemail.com wrote:



  Hi

  Anyone know how to check the user's country?

  I'm looking for a way that's faster than using GPS and reverse
  geocoding. (I need the country where the phone is registered, not
  their current location, in any case.) Is there any constant in the
  settings?

  Thanks,
  Anna
--~--~-~--~~~---~--~~
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 App with Analytics like Flurry

2009-09-12 Thread GreenRob

Hi,
Do we as developers have to tell the user (via pop up at app start or
eula or so) if an app is using analytics functionalities, like
Flurry's or Admob's? And if yes, how do you let the users know or are
there official regulations? Are there text templates were I can choose
from?
Best Regards,
GreenRob
--~--~-~--~~~---~--~~
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: cant know whats problem with the content provider in my code ... Plz help

2009-09-12 Thread Dexter's Brain

Before calling the function getColumnData(), you should be calling
startManagingCursor(), so that the cursor is initialized.

That should solve your problem,

Dexter.

On Sep 11, 9:14 am, wahib.t...@gmail.com wahib.t...@gmail.com
wrote:
 I am a newbie to android programming. I want to search the name of
 contact member by taking phonenumber from the user. I dont know whats
 the issue and when run it just displays error ..
 Application has stopped unexpectedly !. My code is like this ...

 Uri myperson = Uri.withAppendedPath(People.CONTENT_URI, numtext.getText
 ().toString()); //numtext is the textbox object

 Cursor managedCursor = managedQuery(contacts, projection, null, null,
 People.NAME + ASC);
 getColumnData(managedCursor);

 ///
 String[] projection = new String[] {People.NAME, People._ID};

     private void getColumnData(Cursor cur) {
         if(cur.moveToFirst())
         {
                 String name;
                 String id;
                 int nameColumn = cur.getColumnIndex(People.NAME);
                 int ideColumn = cur.getColumnIndex(People._ID);

                 do
                 {
                         name = cur.getString(nameColumn);
                         id = cur.getString(idColumn);
                         Toast.makeText(searchbynum.this, name, 
 Toast.LENGTH_LONG).show
 ();
                 }
                 while(cur.moveToNext());

         }

     }
--~--~-~--~~~---~--~~
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: Is there any Android Handset which CDMA based?

2009-09-12 Thread Fred Grott(Android Expert)

There should be a similar call for CDMA..

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=telephony/java/android/telephony/cdma/CdmaCellLocation.java;h=7cf8a9a66b0a41533c919a31a7647ea6bd2d9016;hb=c883b143ba2b8bfe2f2033d00dee9ff733f1b59c

Class is CdmaCellLocation.java


You should probably look at CellLocation.java:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=telephony/java/android/telephony/CellLocation.java;h=f4182e169ef33f7fe9a3498f802c5d9e708c3d84;hb=c883b143ba2b8bfe2f2033d00dee9ff733f1b59c



Also, most Moot Android handsets are dual protocol..ie both GSM and
CDMA..

Fred Grott
http://mobilebytes.wordpress.com



On Sep 12, 5:49 am, javame_android su...@saltriver.com wrote:
 Hi,

 Will the GsmCellLocation give me the proper result in CDMA network. If
 my application uses GsmCellLocation, then will I be able to get CellId
 and Lac value? If not then how to get those values on CDMA network.

 Regards
 Sunil
--~--~-~--~~~---~--~~
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: Android App with Analytics like Flurry

2009-09-12 Thread Mark Murphy

 Do we as developers have to tell the user (via pop up at app start or
 eula or so) if an app is using analytics functionalities, like
 Flurry's or Admob's?

If you are distributing through the Android Market, the Android Market
terms and conditions you agreed to has language describing the
requirements for privacy policies and such.

If you are distributing through other markets, they may have similar
terms. You will need to investigate those.

Also, whatever service(s) you are using (Flurry, AdMob, etc.) may have
their own requirements. You will need to investigate those.

 And if yes, how do you let the users know or are
 there official regulations?

The real answer is that you ask that question of qualified legal counsel,
who can advise you on what is and is not required.

That being said, many applications on the market display their own terms
and conditions in what appears to be an AlertDialog on the first run of
the program. If the user declines, the app closes.

-- 
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 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] UI surface Pixel Format inside surface flinger is RGBA_8888, Can this be changed to ARGB_8888.

2009-09-12 Thread sreedhar b
Hi,

The UI surface Pixel Format inside surface flinger is  RGBA_, Can this
be changed to  ARGB_.

Currently my hardware supports ARGB_ pixel format.

Is it possible that the surface flinger is made to give UI surfaces in the
ARGB_ pixel format whcih my hardware supports?

Thanks and Regards,
Sreedhar

--~--~-~--~~~---~--~~
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] Persistent setRepeating

2009-09-12 Thread Nick

I have a basic setRepeating alarm to update my widget. Currently the
repeat is set when the user makes the widget and when the user boots
the device. It seems that during the course of the day the
AlarmManager will just decide to stop updating.

Also, what is the best way to re-set an alarm after a user has updated
the program?
--~--~-~--~~~---~--~~
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] MeidaPlayer IlleglStateException thrown

2009-09-12 Thread manigault

Hi,
I have the following issue i have an application that uses
android.media.MediaPlayer and got this exception:

09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler:
thread main exiting due to uncaught exception
09-12 16:21:06.101: ERROR/AndroidRuntime(9890):
java.lang.IllegalStateException
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.media.MediaPlayer._reset(Native Method)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.media.MediaPlayer.reset(MediaPlayer.java:856)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.predictsystems.media.SongPlayer.play(SongPlayer.java:185)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.predictsystems.media.SongPlayer.playSong(SongPlayer.java:287)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.predictsystems.media.SongPlayer.playCurrent(SongPlayer.java:276)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.predictsystems.player.activity.SongListActivity.onListItemClick
(SongListActivity.java:198)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.predictsystems.player.activity.AbstractInstinctivActivity
$1.onItemClick(AbstractInstinctivActivity.java:83)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.widget.AdapterView.performItemClick(AdapterView.java:283)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.widget.ListView.performItemClick(ListView.java:3132)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.widget.AbsListView$PerformClick.run(AbsListView.java:1620)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.os.Handler.handleCallback(Handler.java:587)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.os.Handler.dispatchMessage(Handler.java:92)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.os.Looper.loop(Looper.java:123)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
android.app.ActivityThread.main(ActivityThread.java:3948)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
java.lang.reflect.Method.invokeNative(Native Method)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
java.lang.reflect.Method.invoke(Method.java:521)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
09-12 16:21:06.101: ERROR/AndroidRuntime(9890): at
dalvik.system.NativeStart.main(Native Method)

in the documentation there are no invalid states for the reset method.
From the stack trace it seems that the exception is thrown by the
native call.
i read about some issues about the same problem but this time for
setDataSource method and the solution is the surround with try catch
http://code.google.com/p/android/issues/detail?id=957.
Any suggestions ? 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: New Screen

2009-09-12 Thread Boozel

i had the line in the manifest in the wrong place. thanks for the
help.

On Sep 11, 7:30 pm, Mark Murphy mmur...@commonsware.com wrote:
 Boozel wrote:
  I know this is probably a really stupid question but have tried for
  ages and searched but cant get it to work. I'm trying to create anew
 screenwhen an item in a list in my firstscreenis selected.  i use
  the code
  Intent intent =newIntent();
           intent.setClass(this, Ingredients.class);
           startActivity(intent);}

  to try get the Ingredients.java file to run the file looks like this

  package com.example.easychef;
  import android.app.Activity;
  import android.os.Bundle;

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

  and i added this line to the manifest
  activity android:name=com.example.easychef
  android:label=com.example.easychef.Ingredients/activity

  The program just crashes as i select an item in the list. Please can
  someone tell me what im doing wrong.

 What is the exception? You can get a stack trace via adb logcat, DDMS,
 or the DDMS perspective in Eclipse.

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

 Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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: Struggling -- Getting exception when clicked on HelloItemizedOverlay

2009-09-12 Thread Theo K

Hey guys, i'm quite interested in knowing this too.  Let me know if
you have any further info on the topic.
cheers
Theo
--~--~-~--~~~---~--~~
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: Activity Vs View

2009-09-12 Thread Gopal Biyani
Thanks guys for clearing my doubt.
On Fri, Sep 11, 2009 at 5:30 PM, Jason Proctor 
jason.android.li...@gmail.com wrote:


 for me the activity granularity is where
 functionality can be broken down to discrete
 tasks. is this piece of the program standalone?
 does it have defined inputs and outputs that
 could be used by other activities? etc.



 Generally speaking, it's better to design for simplicity and
 maintainability of code rather than optimize for speed from the
 outset, especially in the case (like this one) where either approach
 works. There is no Android rule-of-thumb that says don't use multiple
 activities, although I've seen a number of people on this list get
 that impression from the documentation you quote. Lots of Android apps
 have many Activities and that's fine.
 
 So in your case I would recommend that at least for the screens that
 share nothing in common, use different activities.
 
 
 
 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 Sep 11, 1:49 pm, Gopal Biyani gopalbiy...@gmail.com wrote:
   Hello Guys,
   I have confusions over View and Activity which one we should use. In my
   application there are lots of different screens with lots of different
   functionalities. In some of the screen they share common task bar and
 in
   another screen they have different task bar and nothing in common.
 
   At present, I have only single activity and what I am doing, I just
 adding
   and removing view from the main layout to show different screens.
 
   Reason for doing this is according to document Designing for
 Performance, it
   says to
   Launch an empty activity
 3,000,000
   Inflate 1 LinearLayout containing 6 TextView Objects  135,000
 
   Then, I was going through the open project Shelves, in which Romain Guy
 used
   more then one activity,so, it just confused me.
 
   Any suggestions will be highly appreciable.
 
   Thanks
 
   Regards
   Gopal
 

 --
 jason.vp.engineering.particle

 


--~--~-~--~~~---~--~~
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] image in Edittext

2009-09-12 Thread mmkr

Hai Sir,

I am developing an application in which i want to insert
image in editext with wrap feature
will any body help me , with some example
--~--~-~--~~~---~--~~
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] Split Method

2009-09-12 Thread Boozel

can some one please tell me how i can implement this method

static String[]  split(String text, Pattern pattern)

http://developer.android.com/reference/android/text/TextUtils.html#split(java.lang.String,
java.util.regex.Pattern)

public static String[] split (String text, String expression)

String.split() returns [''] when the string to be split is empty. This
returns []. This does not remove any empty strings from the result.
For example split(a,, , ) returns {a, }.
Parameters
textthe string to split
expression  the regular expression to match
Returns
an array of strings. The array will be empty if text is empty
Throws
NullPointerExceptionif expression or text is null

i've imported import android.text.TextUtils; but eclips desnt
recognise any method i type in.
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: Map Overlays

2009-09-12 Thread Theo K

Hi Neilz,
regarding adding a Toast message, it is quite straightforward to do.
Mark Murphy gives a great tutorial which shows the details of how to
do this here:
http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

Regarding Question 1 specifically, the title and snippet is not the
same as the title and description that you give to the markers when
you create these yourself in a My Maps Editor on a browser.  Make sure
you don't confuse the two!

Unfortunately the native googlemaps implementation on the android is
not very 'feature-rich', to put it lightly.  I saw a Google keynote
video which was recommending that implementors should just use the
browser-based version of Google Maps rather than using the native
android or iphone Google Maps implementations.  They recommended this
because they update the browser-based api far more often than the
native implementations.  I'm disappointed that Google is resting on
it's laurels, expecting everybody to come up with the extra
implementations themselves.  They've actually already done the work:
check out the My Maps Editor that's been released by Google on
Android.  They have an info-window popping up like you'd expect -
shame that they haven't given us the source code so that we can learn
from the implementation and do something of our own.

I'm in the process of implementing an info window with map
descriptions when a user taps on a marker, and it's taking me an age.
If you or any one else has had any joy then please let me know. .
cheers
Theo
--~--~-~--~~~---~--~~
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: how to post something thing on Facebook profile?

2009-09-12 Thread http://books.google.com/books?id=ifqnAAAACAAJdq=inauthor:%22Russ+Manning%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2



On 2 Wrz, 19:49, Chris Stratton cs07...@gmail.com wrote:
 I think that's really a facebook API or facebook application
 development question not an android one, for which you want to consult
 facebook's application developer, API, etc documentation.

 In other words:

 1) figure out the generic algorithm for interacting with facebook's
 servers on behalf of one of its users to accomplish your goal

 2) Implement that using programming methods consistent with The
 Android Way

 On Sep 2, 1:02 am, Y2U usman@gmail.com wrote:



  Hi guys,

  Im developing an application related to daily horoscopes. I have to
  add a functionality that allows user to post his/her horoscope on his/
  her facebook profile. as far as i know we have to get some permissions
  from the user to post things to their profiles. but i dont know how to
  do that from android.

  any help would be highly appreciated.

  thanks in advance.

  -Y2U
  TkXel [Technology Accelerated]www.tkxel.com
--~--~-~--~~~---~--~~
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: how to post something thing on Facebook profile?

2009-09-12 Thread http://books.google.com/books?id=ifqnAAAACAAJdq=inauthor:%22Russ+Manning%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2



On 2 Wrz, 12:39, Bartłomiej Nowak barnows...@gmail.com wrote:
 2009/9/2 Y2U usman@gmail.com





  Hi guys,

  Im developing an application related to daily horoscopes. I have to
  add a functionality that allows user to post his/her horoscope on his/
  her facebook profile. as far as i know we have to get some permissions
  from the user to post things to their profiles. but i dont know how to
  do that from android.

  any help would be highly appreciated.

  thanks in advance.

  -Y2U
  TkXel [Technology Accelerated]
 www.tkxel.com
--~--~-~--~~~---~--~~
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: how to post something thing on Facebook profile?

2009-09-12 Thread http://books.google.com/books?id=ifqnAAAACAAJdq=inauthor:%22Russ+Manning%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2



On 2 Wrz, 07:02, Y2U usman@gmail.com wrote:
 Hi guys,

 Im developing an application related to daily horoscopes. I have to
 add a functionality that allows user to post his/her horoscope on his/
 her facebook profile. as far as i know we have to get some permissions
 from the user to post things to their profiles. but i dont know how to
 do that from android.

 any help would be highly appreciated.

 thanks in advance.

 -Y2U
 TkXel [Technology Accelerated]www.tkxel.com
--~--~-~--~~~---~--~~
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: how to post something thing on Facebook profile?

2009-09-12 Thread http://books.google.com/books?id=ifqnAAAACAAJdq=inauthor:%22Russ+Manning%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2



On 2 Wrz, 19:49, Chris Stratton cs07...@gmail.com wrote:
 I think that's really a facebook API or facebook application
 development question not an android one, for which you want to consult
 facebook's application developer, API, etc documentation.

 In other words:

 1) figure out the generic algorithm for interacting with facebook's
 servers on behalf of one of its users to accomplish your goal

 2) Implement that using programming methods consistent with The
 Android Way

 On Sep 2, 1:02 am, Y2U usman@gmail.com wrote:



  Hi guys,

  Im developing an application related to daily horoscopes. I have to
  add a functionality that allows user to post his/her horoscope on his/
  her facebook profile. as far as i know we have to get some permissions
  from the user to post things to their profiles. but i dont know how to
  do that from android.

  any help would be highly appreciated.

  thanks in advance.

  -Y2U
  TkXel [Technology Accelerated]www.tkxel.com
--~--~-~--~~~---~--~~
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: how to post something thing on Facebook profile?

2009-09-12 Thread http://books.google.com/books?id=ifqnAAAACAAJdq=inauthor:%22Russ+Manning%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2



On 12 Wrz, 17:03, http://books.google.com/books?
id=ifqnCAAJdq=inauthor:%22Russ+Manning
%22lr=as_brr=0rview=1source=gbs_book_other_versions_rcad=2
barnows...@gmail.com wrote:
 On 2 Wrz, 12:39, Bartłomiej Nowak barnows...@gmail.com wrote:



  2009/9/2 Y2U usman@gmail.com

   Hi guys,

   Im developing an application related to daily horoscopes. I have to
   add a functionality that allows user to post his/her horoscope on his/
   her facebook profile. as far as i know we have to get some permissions
   from the user to post things to their profiles. but i dont know how to
   do that from android.

   any help would be highly appreciated.

   thanks in advance.

   -Y2U
   TkXel [Technology Accelerated]
  www.tkxel.com
--~--~-~--~~~---~--~~
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: Soft keyboard in Fullscreen/extract mode

2009-09-12 Thread Howard M. Harte



On Sep 11, 9:52 am, Dianne Hackborn hack...@android.com wrote:
 When in landscape, you aren't seeing -any- of your application, the IME is
 running in fullscreen mode and completely covering it (so there is no reason
 to do more work and resize the app to...  nothing).


There is a flag (forgot what it is at the moment) that allows the app
to remain visible above the IME in fullscreen mode.  But is there a
way to make the standard soft keyboard IME not go into fullscreen mode
in Landscape?

You can see what I mean, if you try my app: Better Terminal Emulator
Magic which is a free app.

the Better Terminal Emulator Pro version has the hack to force
resize the app, but is not a free app.

Thanks,
Howard

 On Fri, Sep 11, 2009 at 8:27 AM, Howard M. Harte hhar...@gmail.com wrote:







  When Android is in portrait mode and the soft keyboard IME is shown,
  my app is resized properly.  When in landscape mode, the soft keyboard
  IME is always in fullscreen/extract mode, and even though I can see
  the top portion of my app, it doesn't resize my app.  I couldn't find
  any way to make the IME not come up in fullscreen mode.  So instead, I
  detect this condition, and manually resize my app.  This works, but
  unfortunately, to make this work well, I need to know the height of
  the IME, or the portion of my app that remains visible.  But it seems
  there is no way to get this information, and the soft keyboard IME's
  height varies on different devices.  As a hack, I put in options for
  the user to be able to adjust these parameters, and set the defaults
  for the G1.  I can live with this for now, but is there a more
  appropriate way to handle this?

  In addition, even in portrait mode, if the status bar is hidden, the
  IME also does not resize my app.  This clearly seems like a bug to me.

  Any suggestions?

  Thanks,
  Howard

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: MeidaPlayer IlleglStateException thrown

2009-09-12 Thread Marco Nelissen

What does your code look like?


On Sat, Sep 12, 2009 at 6:41 AM, manigault manig...@gmail.com wrote:

 Hi,
 I have the following issue i have an application that uses
 android.media.MediaPlayer and got this exception:

 09-12 16:21:05.921: ERROR/AndroidRuntime(9890): Uncaught handler:
 thread main exiting due to uncaught exception
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):
 java.lang.IllegalStateException
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.media.MediaPlayer._reset(Native Method)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.media.MediaPlayer.reset(MediaPlayer.java:856)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.play(SongPlayer.java:185)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.playSong(SongPlayer.java:287)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.media.SongPlayer.playCurrent(SongPlayer.java:276)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.player.activity.SongListActivity.onListItemClick
 (SongListActivity.java:198)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.predictsystems.player.activity.AbstractInstinctivActivity
 $1.onItemClick(AbstractInstinctivActivity.java:83)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.AdapterView.performItemClick(AdapterView.java:283)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.ListView.performItemClick(ListView.java:3132)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.widget.AbsListView$PerformClick.run(AbsListView.java:1620)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Handler.handleCallback(Handler.java:587)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Handler.dispatchMessage(Handler.java:92)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.os.Looper.loop(Looper.java:123)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 android.app.ActivityThread.main(ActivityThread.java:3948)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 java.lang.reflect.Method.invokeNative(Native Method)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 java.lang.reflect.Method.invoke(Method.java:521)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:782)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
 09-12 16:21:06.101: ERROR/AndroidRuntime(9890):     at
 dalvik.system.NativeStart.main(Native Method)

 in the documentation there are no invalid states for the reset method.
 From the stack trace it seems that the exception is thrown by the
 native call.
 i read about some issues about the same problem but this time for
 setDataSource method and the solution is the surround with try catch
 http://code.google.com/p/android/issues/detail?id=957.
 Any suggestions ? 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: Recommended uses of a class extending android.app.Application

2009-09-12 Thread Gustav Mauer

I store my application config data in preferences:
http://developer.android.com/guide/topics/data/data-storage.html#pref
And have a singleton class to read and write (aka wrap) them. That way
it is also maintained even if the application is killed.

On Sep 11, 8:21 pm, Tom Gibara m...@tomgibara.com wrote:
 I hesitate to raise a word against any of Dianne's advice (ever) - and it
 clearly depends on the nature of your application. But what I find with my
 code is that most of the global state I want to keep depends on a Context.
 For example, anything that loads resources, or anything that needs to
 generate user readable messages.
 As a consequence I end up with a number of 'helper' classes that hold a
 reference to a context so that they can do their work. I find that the
 Application instance is the obvious context for these helpers.

 Furthermore, a specialization of the Application class seems the natural
 place for application code to access these objects, since the Application
 can instantiate them with itself (eagerly in onCreate or lazily behind
 accessors).

 Tom

 2009/9/11 Dianne Hackborn hack...@android.com

  On Fri, Sep 11, 2009 at 8:10 AM, Mark Murphy mmur...@commonsware.comwrote:

  The four main options I have used are:

  1. Custom application class, like you are proposing

  2. Static data (e.g., singleton class instance holding your configuration)

  3. A service

  4. Shared preferences

  Best is somewhat subjective -- I certainly do not have a definitive
  always use X recommendation.

  There isn't a best, it's very much dependent on what semantics you want --
  shared preferences will remain after the process is gone, a service's state
  is tied to the process but tells the system to try to keep the process
  around, and Application and static data are tied directly to the lifetime of
  the process and allow the system to remove them without guilt when the
  process isn't in active use.  (So Application and static are redundant, and
  static data lets you better modularize your code instead of stuffing
  everything in to Application, which is why I recommend statics.)

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

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


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Trouble with GLSurfaceView

2009-09-12 Thread David Minor

What do you mean by stops working?

I had a problem with coming back from sleeping where my app was
unresponsive, which went away when I handled orientation config
changes myself. Since my app was in landscape, there was an
orientation change coming back from sleep and something in
GLSurfaceView was getting stuck.

On Sep 11, 10:25 pm, SChaser crotalistig...@gmail.com wrote:
 I've been messing around with GLSurfaceView, first with just my own
 code, and then with the demo framework from Pro Android.

 In both cases, the view stops working after the application has been
 paused (say, by bringing up the home screen, and then selecting the
 application and running it again). I am calling the onPause and
 onResume methods on the GLSurface view object, but it still doesn't
 restart. The rest of the app recovers - the buttons are visible and
 they work.

 Ideas?
--~--~-~--~~~---~--~~
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: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-12 Thread chrispix

I will check out the SDK and see if I can reproduce. This was the
LogCat of the error : Essentially I was trying to extend a map
overlay, and draw the location circle on the screen.

09-12 00:50:35.825: ERROR/AndroidRuntime(5769): Uncaught handler:
thread
main exiting due to uncaught exception
09-12 00:50:35.865: ERROR/AndroidRuntime(5769):
java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.getLocationDot
(MyLocationOverlay.
java:180)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.drawMyLocation
(MyLocationOverlay.
java:561)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.froogloid.android.gspot.savemaplocation
$MyLocationOverlay1.drawMyLocati
on(savemaplocation.java:472)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.MyLocationOverlay.draw(MyLocationOverlay.java:
511)
09-12 00:50:35.865: ERROR/AndroidRuntime(5769): at
com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:45)


--~--~-~--~~~---~--~~
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 buddies content provider

2009-09-12 Thread Arno den Hond

So are there any plans on making this API public?
My app would like to use the display names and locations of latitude
buddies.


On Sep 10, 1:27 am, Dianne Hackborn hack...@android.com wrote:
 This is not a public API.  Any attempts you make at using it will break in
 the future.

 On Wed, Sep 9, 2009 at 3:54 PM, Arno den Hond arnodenh...@gmail.com wrote:



  Perhaps a developer who worked on the maps app can answer this
  question?
  would appreciate it a lot!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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] appending video files

2009-09-12 Thread JoyLakh

Dear All,

My intention is to add pause and resume functionality to my video
recording app, for which on selecting pause I am releasing the
recorder and on selecting resume I am starting a new recorder and
writing to a new file. After selecting stop I want to add all these
individual files and store as a single file in the database. Right now
I am following the below code. The second file contents are getting
added ( I suppose, as the first file size is updated ), but while
trying to play only first file contents are being played.

FileInputStream lFile = new FileInputStream(secondFile);
int lFileSize = lFile.available();
byte[] lBuffer = new byte[lFile.available()];
lFile.read(lBuffer);
lFile.close();

FileOutputStream lOut = new FileOutputStream(firstFile,true);
lOut.write(lBuffer);
lOut.flush();
lOut.close();

Thanks and Regards.

--~--~-~--~~~---~--~~
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: Is the limit of memory heap only 6M?

2009-09-12 Thread abliss

On Aug 27, 10:54 pm, Ramesh uthir...@gmail.com wrote:
 08-28 11:16:26.785: ERROR/AndroidRuntime(1433): Uncaught handler:
 thread main exiting due to uncaught exception
 08-28 11:16:26.825: ERROR/AndroidRuntime(1433):
 java.lang.OutOfMemoryError: bitmap size exceeds VM budget
 08-28 11:16:26.825: ERROR/AndroidRuntime(1433): at
 android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

If you are creating a lot of big bitmaps from compressed data (e.g.
PNGs or JPEGs), you should look at the new
BitmapFactory.Options.inPurgeable flag in Donut.  This allows the
native-heap memory to be managed by ashmem, which means it won't be
charged against your 16MB java heap.  The price you pay is that the
pixel buffer may be ejected during low-memory conditions, which means
the next time you draw the bitmap it will be re-decoded (and thus it
will draw slightly slower).

This has proved very handy in Maps for dealing with OOM errors;
unfortunately the technique is not yet included in the framework that
MapView uses.

--Adam Bliss

--~--~-~--~~~---~--~~
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: How to open or close the soft keyboard by code

2009-09-12 Thread permafrost91

For the life of me, I cannot figure out how to implement
InputMethodManager. Every time I include it anywhere in my code, the
SDK (Eclipse plug-in) complains it doesn't exist and whether I would
not want to implement a new class, interface, enum, etc. instead.

All I want to do is show the soft keyboard for a dialog window which
requires text input via an EditView. How exactly do I need to go about
this?

Thanks!

On Jul 27, 3:50 am, Rain rainli1...@gmail.com wrote:
 Thanks for your response.
 I've tried to use the IInputMethod.showsoftinput/hidesoftinput in
 Ubuntu for compiling,but it can't go through and feeds back that the
 class IInputMethod can not be found. Else i search the class in
 source code and find it.So could you tell me why?

 On 7月27日, 下午2时07分, Zsolt Váradi karma...@gmail.com wrote:



  On Mon, Jul 27, 2009 at 4:59 AM, Rainrainli1...@gmail.com wrote:

   Thanks Evan

   I'm sorry to forgot to say that may SDK is 0.9 Beta,so the inputmethod
   class is not inclued,besides that,i want toopenorclosethe key
   board not using in an activity.Could you tell me some way else to
   solve my problem?
   Thanks for your response.

  You have to update your SDK to 1.5. There was nosoftkeyboardbefore that :P

  Zsolt

--~--~-~--~~~---~--~~
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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-12 Thread Miles

It's probably about time we introduced our app to the world, here
goes...

Application: AugSatNav
Category: Travel
Description: AugSatNav is the world’s first “true” augmented reality
application to overlay navigation information directly upon a live
video feed of the road ahead.
Extended description and screenshots are available at our website:
http://www.phyora.com/

Please excuse the reflections on the screen of my HTC Hero (its very
hard taking photos of your screen outside)
The app itself works great on foot, the compass in our HTC Hero
suffers from interference when used inside a vehicle.
It was a challenging app to build but I think it has the wow factor we
were going for!

As with most other devs, we have made significant improvements since
the deadline; ultimately though, the app still works as intended.

--~--~-~--~~~---~--~~
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: AVD for Motorola Cliq?

2009-09-12 Thread lrathjens

There's a closely related article on screen orientations (handling
screen rotation) on the MB200 (CLIQ) that you might also find useful.
You can find it at  
http://developer.motorola.com/docstools/library/Handle_Screen_Rotation/

Cheers, Lisa

On Sep 11, 2:27 pm, Carl Whalley carl.whal...@googlemail.com wrote:
 Ok, sorry for posting before I read the link - the DPAD does adjust as
 you'd expect and it is explained further at the page Anna pointed to..

 On Sep 11, 10:21 pm, Carl Whalley carl.whal...@googlemail.com wrote:

  Small point raised in my original post: if you do as you suggest and
  keep the app in portrait mode when the keyboard is opened, assuming
  the user turns the handset so they are holding it in portrait mode is
  the DPAD to the lower right or upper left of the screen? Also,
  thinking about this further, is the UP/DOWN of the DPAD itself
  adjusted to reflect this?

  --
  Android Academy:http://www.androidacademy.com

  On Sep 11, 7:35 pm, anna.schal...@motorola.com

  anna.schal...@motorola.com wrote:
   As Dianne stated, it works very much like the G1. The short answer is
   that there are still only two modes: portrait and landscape.  The
   DPAD, or 5-way navigation, on the keyboard is only available when you
   open the keyboard.  By default this automatically rotates the display
   to landscape. You can override this and keep your application in
   portrait mode by specifying android:screenOrientation=portrait in
   your manifest. There is an article on coding for 5-way on our MOTODev
   Android Technical Library (http://developer.motorola.com/docstools/
   library/Navigating_Around_Your_Application/) that may answer your
   question in more detail.

   On Sep 11, 10:02 am, Dianne Hackborn hack...@android.com wrote:

I am pretty sure it is basically like the G1, except you can only 
access the
DPAD when the screen is open instead of it being on the front.  So 
opening
the screen would rotate it unless an application has explicitly forced 
an
orientation, and the platform should rotate the DPAD key events for you
based on the current orientation like it does for the trackball on other
devices.

On Fri, Sep 11, 2009 at 12:57 AM, Carl Whalley
carl.whal...@googlemail.comwrote:

 Anything around?
 In particular, exactly what do those buttons do and are we to assume
 to use the DPAD in portrait mode the phone is turned 180 from what
 you'd expect normal portrait mode to be (see the pic, you'll see
 what I mean:http://ota.cc/az). I'm just guessing here but as a
 developer would like to know how to handle this.
 Do we need to code for a new orientation: keyboard closed portrait,
 keyboard open portrait and landscape?

 --
 Android Academy:http://www.androidacademy.com

--
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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] Development on the MyTouch 3G

2009-09-12 Thread Sid

I just ordered a myTouch 3G from T-Mobile (it will come locked). My
main motivation is to do Android Development on this phone. I just
read on the Android Development Site 
http://developer.android.com/guide/developing/device.html
that one can develop Android apps on the Developer Phone or the
Classic G1.

Can I develop apps using my myTouch 3G? I guess it boils down to 2
things:

- Can I use the myTouch 3G to test apps that I develop using Eclipse?

- Can I use the myTouch 3G device itself as an app development
platform?

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] how can i refresh my adapter

2009-09-12 Thread leela

i am developing  file browser to my media player UI
i have written in my OnItemClickListener()
in that i called the method like adapter.notifyDataSetInvalidated()
method
but it is not working
please help me
to refresh my list.based on onItemClickListener() method

please help me


thanks in advance...

--~--~-~--~~~---~--~~
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] Zoom of android

2009-09-12 Thread Dantu

Please can I have the numerical value of the zoom capacity in
android.i.e maximum amount of zoom that can be made.

Thanks in advance

--~--~-~--~~~---~--~~
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: Drawable tilemode repat only vertically

2009-09-12 Thread xiaowei guo
hi,
only repeat vertically,u can use BitmapDrawable.setTileModeX(int TileMode);

2009/8/19 Klaus Kartou kar...@gmail.com

 Hi!
 Is there a way to specify that a drawable should only be repeated
 vertically and then stretched horizontally?
 At the momemt I use the following which repeates the drawable both in the
 vertical and horizontal direction:

 ?xml version=1.0 encoding=utf-8?
 bitmap xmlns:android=http://schemas.android.com/apk/res/android;
android:src=@drawable/wallpaper
android:tileMode=repeat
 
 /bitmap


 Best regards,
 Klaus


 


--~--~-~--~~~---~--~~
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 buddies content provider

2009-09-12 Thread Dianne Hackborn
I don't know, it is owned by the Google maps people.

On Sat, Sep 12, 2009 at 10:27 AM, Arno den Hond arnodenh...@gmail.comwrote:


 So are there any plans on making this API public?
 My app would like to use the display names and locations of latitude
 buddies.


 On Sep 10, 1:27 am, Dianne Hackborn hack...@android.com wrote:
  This is not a public API.  Any attempts you make at using it will break
 in
  the future.
 
  On Wed, Sep 9, 2009 at 3:54 PM, Arno den Hond arnodenh...@gmail.com
 wrote:
 
 
 
   Perhaps a developer who worked on the maps app can answer this
   question?
   would appreciate it a lot!
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Development on the MyTouch 3G

2009-09-12 Thread Dianne Hackborn
You can develop on any phone that comes with Market.  That is one of the
requirements for being able to ship Market.

On Sat, Sep 12, 2009 at 7:12 AM, Sid sida...@gmail.com wrote:


 I just ordered a myTouch 3G from T-Mobile (it will come locked). My
 main motivation is to do Android Development on this phone. I just
 read on the Android Development Site
 http://developer.android.com/guide/developing/device.html
 that one can develop Android apps on the Developer Phone or the
 Classic G1.

 Can I develop apps using my myTouch 3G? I guess it boils down to 2
 things:

 - Can I use the myTouch 3G to test apps that I develop using Eclipse?

 - Can I use the myTouch 3G device itself as an app development
 platform?

 Thanks,


 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Development on the MyTouch 3G

2009-09-12 Thread Mark Murphy

Sid wrote:
 - Can I use the myTouch 3G to test apps that I develop using Eclipse?

Yes.

 - Can I use the myTouch 3G device itself as an app development
 platform?

Yes.

Quoting from the page you linked to:

While developers can use regular consumer devices purchased at retail
to test and use their apps, some developers may choose not to use a
retail device, preferring an unlocked or no-contract device. Here are
some options for obtaining devices capable of testing your applications.

The myTouch 3G is a regular consumer device, and developers can use
regular consumer devices purchased at retail to test and use their apps.

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

_Beginning Android_ from Apress Now 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
-~--~~~~--~~--~--~---



[android-developers] Re: How to open or close the soft keyboard by code

2009-09-12 Thread Dianne Hackborn
Um.  Why don't you do your development on a version of Android that is
actually in use?  0.9 Beta, as the name implies would be BEFORE 1.0.  It's
not even compatible with 1.0.  And the input method feature wasn't added
until 1.5.
And beyond that, IInputMethod is not part of the SDK; the API for
applications is InputMethodManager.  The main input method APIs are all
described in the associated package:

http://developer.android.com/reference/android/view/inputmethod/package-summary.html

On Mon, Jul 27, 2009 at 12:50 AM, Rain rainli1...@gmail.com wrote:


 Thanks for your response.
 I've tried to use the IInputMethod.showsoftinput/hidesoftinput in
 Ubuntu for compiling,but it can't go through and feeds back that the
 class IInputMethod can not be found. Else i search the class in
 source code and find it.So could you tell me why?

 On 7月27日, 下午2时07分, Zsolt Váradi karma...@gmail.com wrote:
  On Mon, Jul 27, 2009 at 4:59 AM, Rainrainli1...@gmail.com wrote:
 
   Thanks Evan
 
   I'm sorry to forgot to say that may SDK is 0.9 Beta,so the inputmethod
   class is not inclued,besides that,i want toopenorclosethe key
   board not using in an activity.Could you tell me some way else to
   solve my problem?
   Thanks for your response.
 
  You have to update your SDK to 1.5. There was nosoftkeyboardbefore that
 :P
 
  Zsolt
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: 【招聘】Androi d开发工程师 15-20w-北京

2009-09-12 Thread L D
北京的职位

2009/9/10 xii stan stan@gmail.com

 在深圳可以吗?
 本人熟悉java. c++ 开发10年经验。


 2009/9/9 何斌斌 hbbs...@gmail.com

 hi,
 如何联系,
 本人的msn:hbbs...@hotmail.com
 从事android开发:1.5 年

 2009/9/8 IDA yydl...@gmail.com

 职位描述:
 从事Android或OMS平台手机终端应用的开发。

 职位要求:
 1、计算机及相关专业本科以上学历;
 2、良好的Java技术功底;
 3、熟悉Android系统架构及相关技术,1年以上实际Android平台开发经验;
 4、熟悉无线网络及多媒体应用开发;
 5、思路清晰,思维敏捷,快速的学习能力,良好的英文资料阅读能力;
 6、能承担较大工作压力,具备良好的沟通能力和团队合作精神;
 7、有手机输入法软件开发经验者优先。

 MSN  email: ida@live.cn






 


--~--~-~--~~~---~--~~
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: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-12 Thread chrispix

I downloaded the 1.6SDK. Unfortunately my includes are not working for
com.google.*
in particular import com.google.android.maps.GeoPoint;

Chris.

On Sep 12, 3:55 am, Al Sutton a...@funkyandroid.com wrote:
 My guess is that they're running one of Cynogens Donut ROMs that hes'
 made available. There's a fair amount of talk about performance
 improvements and he is pointing at devs for some issues (a main one
 being problems with widgets and rotation).

 If you want to use the open-source repo donut SDK to see if you can
 reproduce the problem it's available from;

 http://andappstore.com/AndroidApplications/sdk/

 Al.

 On Sep 11, 6:03 pm, chrispix chris...@gmail.com wrote:



  We have had a couple users on the myTouch phone have issues in our
  application. It apparently is force closing on them. I am not sure of
  why it is, and the 1.6 SDK is not out yet. Has 1.6 been released into
  the wild? If so, do you know where I can download the image for my G1
  dev phone to test w/?

  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] Re: Our app force closes on 1.6, Is SDK or image available yet?

2009-09-12 Thread chrispix

Ok, never mind.  So the Google APIs are still on the 1.5 platform, The
android 1.6 public SDK does not have the Google APIs 1.6. I am
guessing that is my compile issue.. hrrm..
Any other thoughts?

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] Re: Soft keyboard in Fullscreen/extract mode

2009-09-12 Thread Dianne Hackborn
No, it is generally up to the IME to decide what it needs to do; you
certainly can't guarantee that it won't go fullscreen, because it just may
need to do so it have enough space to interact with the user.
One thing you will want to do is use flagNoExtractUi to tell it that full
extract mode is not needed:

http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions

http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptionsHowever,
I think this was broken in 1.5.

On Sat, Sep 12, 2009 at 8:44 AM, Howard M. Harte hhar...@gmail.com wrote:




 On Sep 11, 9:52 am, Dianne Hackborn hack...@android.com wrote:
  When in landscape, you aren't seeing -any- of your application, the IME
 is
  running in fullscreen mode and completely covering it (so there is no
 reason
  to do more work and resize the app to...  nothing).
 

 There is a flag (forgot what it is at the moment) that allows the app
 to remain visible above the IME in fullscreen mode.  But is there a
 way to make the standard soft keyboard IME not go into fullscreen mode
 in Landscape?

 You can see what I mean, if you try my app: Better Terminal Emulator
 Magic which is a free app.

 the Better Terminal Emulator Pro version has the hack to force
 resize the app, but is not a free app.

 Thanks,
 Howard

  On Fri, Sep 11, 2009 at 8:27 AM, Howard M. Harte hhar...@gmail.com
 wrote:
 
 
 
 
 
 
 
   When Android is in portrait mode and the soft keyboard IME is shown,
   my app is resized properly.  When in landscape mode, the soft keyboard
   IME is always in fullscreen/extract mode, and even though I can see
   the top portion of my app, it doesn't resize my app.  I couldn't find
   any way to make the IME not come up in fullscreen mode.  So instead, I
   detect this condition, and manually resize my app.  This works, but
   unfortunately, to make this work well, I need to know the height of
   the IME, or the portion of my app that remains visible.  But it seems
   there is no way to get this information, and the soft keyboard IME's
   height varies on different devices.  As a hack, I put in options for
   the user to be able to adjust these parameters, and set the defaults
   for the G1.  I can live with this for now, but is there a more
   appropriate way to handle this?
 
   In addition, even in portrait mode, if the status bar is hidden, the
   IME also does not resize my app.  This clearly seems like a bug to me.
 
   Any suggestions?
 
   Thanks,
   Howard
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: how can i refresh my adapter

2009-09-12 Thread Jack Ha

Try notifyDataSetChanged(). notifyDataSetInvalidated() will cause the
entire content of ListView to disappear.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

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 Sep 11, 10:09 pm, leela morampudile...@gmail.com wrote:
 i am developing  file browser to my media player UI
 i have written in my OnItemClickListener()
 in that i called the method like adapter.notifyDataSetInvalidated()
 method
 but it is not working
 please help me
 to refresh my list.based on onItemClickListener() method

 please help me

 thanks in advance...
--~--~-~--~~~---~--~~
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: Zoom of android

2009-09-12 Thread Jack Ha

Assuming you are referring to the MapView, the maximum zoom in level
is 21 and the minimum is 1.

--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The coverage you need at the price you want

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 Sep 12, 1:08 am, Dantu dantu.swar...@gmail.com wrote:
 Please can I have the numerical value of the zoom capacity in
 android.i.e maximum amount of zoom that can be made.

 Thanks in advance
--~--~-~--~~~---~--~~
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: Trouble with GLSurfaceView

2009-09-12 Thread Robert Green

Same here.  I had problems until I put orientation in the
configuration changes field of the manifest for the 3D activity.  My
app is also landscape.

On Sep 12, 11:27 am, David Minor davemi...@gmail.com wrote:
 What do you mean by stops working?

 I had a problem with coming back from sleeping where my app was
 unresponsive, which went away when I handled orientation config
 changes myself. Since my app was in landscape, there was an
 orientation change coming back from sleep and something in
 GLSurfaceView was getting stuck.

 On Sep 11, 10:25 pm, SChaser crotalistig...@gmail.com wrote:

  I've been messing around with GLSurfaceView, first with just my own
  code, and then with the demo framework from Pro Android.

  In both cases, the view stops working after the application has been
  paused (say, by bringing up the home screen, and then selecting the
  application and running it again). I am calling the onPause and
  onResume methods on the GLSurface view object, but it still doesn't
  restart. The rest of the app recovers - the buttons are visible and
  they work.

  Ideas?


--~--~-~--~~~---~--~~
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] HTC Magic as dev phone

2009-09-12 Thread dashman


i'd like to buy the HTC Magic for my dev phone - i don't want the
physical sliding keyboard.

with the HTC magic work as the dev phone.

does HTC provide updated android updates for it.

--~--~-~--~~~---~--~~
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: HTC Magic as dev phone

2009-09-12 Thread Mark Murphy

dashman wrote:
 i'd like to buy the HTC Magic for my dev phone - i don't want the
 physical sliding keyboard.
 
 with the HTC magic work as the dev phone.

You can test SDK applications using an HTC Magic.

 does HTC provide updated android updates for it.

Please contact your mobile provider for details regarding device updates.

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

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

--~--~-~--~~~---~--~~
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: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-12 Thread JoaJP

Not taking away from app functionality or presentation... inside
vehicles you'll probably find that the earth magnetic field is
disturbed to a degree that the compass readings are off for about any
combination of device and vehicle. The ongoing proliferation of
vehicles with electric propulsion systems, at least here in the Bay
Area... won't make things easier going forward. Good luck though.
JP

On Sep 12, 9:02 am, Miles milesco...@gmail.com wrote:
 It's probably about time we introduced our app to the world, here
 goes...

 Application: AugSatNav
 Category: Travel
 Description: AugSatNav is the world’s first “true” augmented reality
 application to overlay navigation information directly upon a live
 video feed of the road ahead.
 Extended description and screenshots are available at our 
 website:http://www.phyora.com/

 Please excuse the reflections on the screen of my HTC Hero (its very
 hard taking photos of your screen outside)
 The app itself works great on foot, the compass in our HTC Hero
 suffers from interference when used inside a vehicle.
 It was a challenging app to build but I think it has the wow factor we
 were going for!

 As with most other devs, we have made significant improvements since
 the deadline; ultimately though, the app still works as intended.
--~--~-~--~~~---~--~~
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] noob Question button functions

2009-09-12 Thread MarQuel Middleton

Hey im a new developer ans im having trouble with button functions i
have a menu created but how do i give them functions so when there
pressed they can actually do something?

--~--~-~--~~~---~--~~
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: noob Question button functions

2009-09-12 Thread Mark Murphy

MarQuel Middleton wrote:
 Hey im a new developer ans im having trouble with button functions i
 have a menu created but how do i give them functions so when there
 pressed they can actually do something?

If you implemented an options menu, override onOptionItemSelected() in
your activity.

If you implemented a context menu, override onContextItemSelected() in
your activity.

If you implemented one or more Button widgets, not a menu, call
setOnClickListener() on the widget and supply a listener object to be
notified when the button is clicked.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

--~--~-~--~~~---~--~~
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: Trouble with GLSurfaceView

2009-09-12 Thread SChaser



On Sep 12, 9:27 am, David Minor davemi...@gmail.com wrote:
 What do you mean by stops working?


When the application becomes visible again, everything is okay except
that the GLSurfaceVIew is invisible. It's normal red background
doesn't show, and none of the graphics objects are visible. Even so,
the TouchListener on that GLSurfaceView is still active (it still
generates appropriate callbacks to the listener object - see trace).

Here is a trace starting with a restart of the 1.5 EMulator. Lines
starting with D/== are my logging of events in the (very simple)
application. The PID of the application is 713.

D/AndroidRuntime(  706):
D/AndroidRuntime(  706):  AndroidRuntime START

D/AndroidRuntime(  706): CheckJNI is ON
D/AndroidRuntime(  706): --- registering native functions ---
I/jdwp(  706): received file descriptor 19 from ADB
I/ActivityManager(  570): Starting activity: Intent { flags=0x1000
comp={com.tinyvital.android.apps.arotatingshapes/
com.tinyvital.android.apps.arotatingshapes.MainActivity} }
D/AndroidRuntime(  706): Shutting down VM
D/dalvikvm(  706): DestroyJavaVM waiting for non-daemon threads to
exit
I/ActivityManager(  570): Start proc
com.tinyvital.android.apps.arotatingshapes for activity
com.tinyvital.android.apps.arotatingshapes/.MainActivity: pid=713
uid=10031 gids={}
D/dalvikvm(  706): DestroyJavaVM shutting VM down
D/dalvikvm(  706): HeapWorker thread shutting down
D/dalvikvm(  706): HeapWorker thread has shut down
D/jdwp(  706): JDWP shutting down net...
D/jdwp(  706): +++ peer disconnected
I/dalvikvm(  706): Debugger has detached; object registry had 1
entries
D/dalvikvm(  706): VM cleaning up
D/dalvikvm(  706): LinearAlloc 0x0 used 639228 of 4194304 (15%)
I/jdwp(  713): received file descriptor 10 from ADB
D/===jrm  (  713): onCreate(null)
D/===jrm  (  713): Main.onStart
D/===jrm  (  713): onResume
E/GLLogger(  713): couldn't load libhgl.so library (Cannot find
library)
D/SurfaceFlinger(  570): pid 713 requesting gpu surface (current owner
= -1)
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu0: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu1: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/hw3d: No such file or
directory
D/SurfaceFlinger(  570): pid 713 requesting gpu surface (current owner
= -1)
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu0: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu1: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/hw3d: No such file or
directory
I/ActivityManager(  570): Displayed activity
com.tinyvital.android.apps.arotatingshapes/.MainActivity: 968 ms
I/ARMAssembler(  713): generated
scanline__0077:03010144__ [ 11 ipp] (45 ins) at
[0x1a6328:0x1a63dc] in 5069638 ns
D/dalvikvm(  612): GC freed 2491 objects / 143496 bytes in 86ms
D/===jrm  (  713):  onTouch:MotionEvent{435b4d70 action=0 x=25.0
y=138.0 pressure=1.0 size=0.0}
D/===jrm  (  713):  onTouch:MotionEvent{435b4d70 action=1 x=25.0
y=138.0 pressure=1.0 size=0.0}
I/ActivityManager(  570): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x1020 comp=
{com.android.launcher/com.android.launcher.Launcher} }
D/===jrm  (  713): onSaveInstanceState(Bundle
[{android:viewHierarchyState=Bundle
[{android:views=android.util.sparsear...@435c71c0}]}])
D/===jrm  (  713): Main.onPause
D/===jrm  (  713): Main.onStop

[NOTE: Activity stopping when Home button pressed]

D/dalvikvm(  713): GC freed 2812 objects / 144792 bytes in 162ms
I/ActivityManager(  570): Starting activity: Intent
{ action=android.intent.action.MAIN categories=
{android.intent.category.LAUNCHER} flags=0x1020 comp=
{com.tinyvital.android.apps.arotatingshapes/
com.tinyvital.android.apps.arotatingshapes.MainActivity} }

[NOTE: Activity restarting when selected from applications menu]

D/===jrm  (  713): onCreate(null)
D/===jrm  (  713): Main.onStart
D/===jrm  (  713): onResume
D/SurfaceFlinger(  570): pid 713 requesting gpu surface (current owner
= -1)
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu0: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu1: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/hw3d: No such file or
directory
D/SurfaceFlinger(  570): pid 713 requesting gpu surface (current owner
= -1)
W/IInputConnectionWrapper(  612): showStatusIcon on inactive
InputConnection
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu0: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/pmem_gpu1: No such file or
directory
E/MemoryHeapBase(  570): error opening /dev/hw3d: No such file or
directory
I/ActivityManager(  570): Displayed activity
com.tinyvital.android.apps.arotatingshapes/.MainActivity: 405 ms
D/===jrm  (  713):  onTouch:MotionEvent{435b4d70 action=0 x=163.0
y=52.0 pressure=1.0 size=0.0}
D/===jrm  (  713):  

[android-developers] Re: Publishing Upgrades on Android Market ... Still Relevant?

2009-09-12 Thread Ken H

I noticed this error too. None of m installed apps have ever told me
that a new version was in the Market. I always got a notice from the
Android Market.

On Aug 31, 7:13 am, Jason Van Anden jason.van.an...@gmail.com wrote:
 A developer's time is a terrible thing to waste.

 This really ought to be revised.

 :(

 On Sun, Aug 30, 2009 at 8:56 PM, Streets Of



 Bostonflyingdutc...@gmail.com wrote:

  This documentation is old.

  Users of Android phones with the Market installed get a notification
  (in the top bar) that one or more applications have been updated by
  their developer.
  Then, when the user opens this notification and clicks on it, it
  brings the user to the Market app showing which app(s) have been
  updated.

  On Aug 30, 1:28 pm, jonna rjo...@gmail.com wrote:
  Could someone answer this question please?

  On Aug 29, 8:46 am, Jason Van Anden jason.van.an...@gmail.com wrote:

   Are the docs on the Developer site regardingPublishingout of date?
   In other words, is the Market still considered Beta and do users
   actually need a web service to compare their versions with so they can
   query the Market for updates?

   This is what is on the Android Developer site:

  http://developer.android.com/guide/publishing/publishing.html

   j- 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: noob Question button functions

2009-09-12 Thread MarQuel Middleton

Thank You!!

On Sep 12, 3:01 pm, Mark Murphy mmur...@commonsware.com wrote:
 MarQuel Middleton wrote:
  Hey im a new developer ans im having trouble with button functions i
  have a menu created but how do i give them functions so when there
  pressed they can actually do something?

 If you implemented an options menu, override onOptionItemSelected() in
 your activity.

 If you implemented a context menu, override onContextItemSelected() in
 your activity.

 If you implemented one or more Button widgets, not a menu, call
 setOnClickListener() on the widget and supply a listener object to be
 notified when the button is clicked.

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

 Android Training in Germany, 18-22 January 2010:http://bignerdranch.com
--~--~-~--~~~---~--~~
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] 1.5 Example GLSurfaceViewActivity.java fails after stop/resume

2009-09-12 Thread SChaser

I am having trouble with the example for use of GLSurfaceView (see
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/GLSurfaceViewActivity.html
).

I created a normal Android project in the Eclipse IDE, added the
GLSurfaceViewActivity class and related from the sample directory, set
the activity to GLSurfaceViewActivity, and ran it on the emulator.

It worked. Then I hit the home button, launched another app, hit home
again, and launched my test app again. This time, I got a blank screen
(with now exceptions thrown in logcat);.

Any ideas?

I was motivated to try this example because if have been having the
same trouble with my own app - discussed
iathttp://groups.google.com/group/android-developers/browse_thread/thread/b1b97aa8e18e6b04
.

My application has Log.d calls that show the following sequence:
onCreate
onStart
onResume
...working app with rendering on the GLSurface...
onStop
onCreate
onStart
onResume
...everything works but the GLSurfaceView rendering. (see related
discussion)
(onStop-onCreate-onStart-onResume).

That app is careful to call the notification methods on the surface
when when system state change callbacks in the view are called.



--~--~-~--~~~---~--~~
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] Context Menu

2009-09-12 Thread MarQuel Middleton

Im trying to set my application menus up and i cant seem to do it  can
someone help me out i would really appreciate it im real confused!! I
just want to be able to press my exit button and it close the app or
something of that nature.

package com.example.menu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class LimeDroid extends Activity {
/** Called when the activity is first created.

 * @return */

public boolean onCreateOptionsMenu(Menu menu){

MenuInflater inflater = getMenuInflater();

inflater.inflate(R.menu.menu, menu);

return true;

}

 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
  super.onOptionsItemSelected(item);


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

Intent intent = new Intent(Reverse);
String variableToPass = null;
intent.putExtra(INFO_TO_PASS, variableToPass);

}

}

--~--~-~--~~~---~--~~
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: 1.5 Example GLSurfaceViewActivity.java fails after stop/resume

2009-09-12 Thread SChaser

I take it back! Now it works (but my app doesn't - it has a big
difference - see the discussion at
http://groups.google.com/group/android-developers/browse_thread/thread/b1b97aa8e18e6b04.
Go figure. I'd delete the thread if I could :-(

On Sep 12, 3:08 pm, SChaser crotalistig...@gmail.com wrote:
 I am having trouble with the example for use of GLSurfaceView 
 (seehttp://developer.android.com/guide/samples/ApiDemos/src/com/example/a...
 ).

 I created a normal Android project in the Eclipse IDE, added the
 GLSurfaceViewActivity class and related from the sample directory, set
 the activity to GLSurfaceViewActivity, and ran it on the emulator.

 It worked. Then I hit the home button, launched another app, hit home
 again, and launched my test app again. This time, I got a blank screen
 (with now exceptions thrown in logcat);.

 Any ideas?

 I was motivated to try this example because if have been having the
 same trouble with my own app - discussed
 iathttp://groups.google.com/group/android-developers/browse_thread/threa...
 .

 My application has Log.d calls that show the following sequence:
 onCreate
 onStart
 onResume
 ...working app with rendering on the GLSurface...
 onStop
 onCreate
 onStart
 onResume
 ...everything works but the GLSurfaceView rendering. (see related
 discussion)
 (onStop-onCreate-onStart-onResume).

 That app is careful to call the notification methods on the surface
 when when system state change callbacks in the view are called.
--~--~-~--~~~---~--~~
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: Trouble with GLSurfaceView (more info: works if only view, but not as one of several)

2009-09-12 Thread SChaser

More information:

It works if it is the ONLY view on the page, as done by

_surfaceView = new GLSurfaceView(this);
setContentView(_surfaceView);

However, if I make it part of the app framework, it fails as described
above in this discussion:
setContentView(R.layout.main);
_surfaceView = (GLSurfaceView)this.findViewById(R.id.SurfaceView);

See below for main.xml

Odd, eh?

Thanks in advance

-- main.xml --
?xml version=1.0 encoding=utf-8?
LinearLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:orientation=vertical
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  TextView
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Put text here /
  LinearLayout
android:id=@+id/LinearLayout01
android:layout_width=wrap_content
android:layout_height=wrap_content
Button
  android:text=Solid
  android:id=@+id/SolidWireButton
  android:layout_width=wrap_content
  android:layout_height=wrap_content/Button
Button
  android:text=Sphere
  android:id=@+id/SphereButton
  android:layout_width=wrap_content
  android:layout_height=wrap_content/Button
Button
  android:text=Cube
  android:id=@+id/CubeButton
  android:layout_width=wrap_content
  android:layout_height=wrap_content/Button

  /LinearLayout
  android.opengl.GLSurfaceView
android:id=@+id/SurfaceView
android:layout_height=fill_parent
android:layout_width=fill_parent/android.opengl.GLSurfaceView
/LinearLayout



--~--~-~--~~~---~--~~
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: Context Menu

2009-09-12 Thread Mark Murphy

MarQuel Middleton wrote:
 Im trying to set my application menus up and i cant seem to do it  can
 someone help me out i would really appreciate it im real confused!!

Here is a link to the menu documentation:

http://developer.android.com/guide/topics/ui/menus.html

There are many samples available.

http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/MenuInflateFromXml.html

This example shows menu inflation, where you define the menu via an XML
file. There are many other samples showing onOptionsItemSelected() in
your SDK (platforms/android-1.5/samples wherever your SDK was installed).

http://www.androidguys.com/2008/09/29/whats-your-preference-part-one/

This example is really of how to use the preference system, but the
sample code shows onOptionsItemSelected() as well.

Here are two more samples:

http://www.androidsnippets.org/snippets/40/
http://www.androidsnippets.org/snippets/31/

Beyond that, you can search Google for onOptionsItemSelected(). Or, you
can pick up a good book or three:

http://wiki.andmob.org/books

 I
 just want to be able to press my exit button and it close the app or
 something of that nature.

You do not need a menu for that. The user can click the BACK button to
exit your activity.

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

Android Training in Germany, 18-22 January 2010: http://bignerdranch.com

--~--~-~--~~~---~--~~
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] Signed vs. Unsigned

2009-09-12 Thread Ken H

Ok, stupid question time: what's the difference being Export Signed
Application Package and Export Unsigned Application Package? Under
'Signing for Public Release' in the dev guide it says you must:

1. Compile the application in release mode
2. Obtain a suitable private key
3. *Sign* the application with your private key

But then it continues:

To prepare your application for release...To export an unsigned .apk
from Eclipse, right-click the project in the Package Explorer and
select Android Tools  Export Unsigned Application Package.

But below this under Compiling and signing with Eclipse ADT it says
to To create a signed .apk, right-click the project in the Package
Explorer and select Android Tools  Export Signed Application
Package...When you complete the Export Wizard, you'll have a
signed .apk that's ready for distribution

Huh? Do I need my app signed or unsigned for distribution on market
place?
--~--~-~--~~~---~--~~
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 Market: Screenshot/Promo images heavily compressed. Images become ugly

2009-09-12 Thread Streets Of Boston

Is it just me or does anybody else notice as well that the images
uploaded to ones Android Market's publishing site are heavily
compressed.

When I look at them after they're uploaded, i can clearly see ugly
JPEG-compression artifacts.

Is there a way to make sure that the quality of the images stored on
Android Market's servers is better?

--~--~-~--~~~---~--~~
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: Signed vs. Unsigned

2009-09-12 Thread Jack Ha

Your app needs to be digitally signed.

If you use Eclipse with the ADT plugin, skip to the Compiling and
signing with Eclipse ADT section. Otherwise, follow the instructions
to export an unsigned .apk and then sign it with jarsigner.

--
Jack Ha
Open Source Development Center
·T· · ·Mobile· stick together
The coverage you need at the price you want

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 Sep 12, 3:40 pm, Ken H hunt1...@gmail.com wrote:
 Ok, stupid question time: what's the difference being Export Signed
 Application Package and Export Unsigned Application Package? Under
 'Signing for Public Release' in the dev guide it says you must:

 1. Compile the application in release mode
 2. Obtain a suitable private key
 3. *Sign* the application with your private key

 But then it continues:

 To prepare your application for release...To export an unsigned .apk
 from Eclipse, right-click the project in the Package Explorer and
 select Android Tools  Export Unsigned Application Package.

 But below this under Compiling and signing with Eclipse ADT it says
 to To create a signed .apk, right-click the project in the Package
 Explorer and select Android Tools  Export Signed Application
 Package...When you complete the Export Wizard, you'll have a
 signed .apk that's ready for distribution

 Huh? Do I need my app signed or unsigned for distribution on market
 place?
--~--~-~--~~~---~--~~
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: Get the file path from a URI instance

2009-09-12 Thread Bill

Actually this doesn't work.

On Sep 2, 11:38 am, Dianne Hackborn hack...@android.com wrote:
 I'm sorry, but did you even try looking at the documentation?  It's not
 given a tricky name: getPath().  (If you are meaning you have put a relative
 path in, and want to get an absolute one back, well you can't, URI knows
 nothing about the semantics of a path in it nor how to do that kind of
 manipulation, it just knows what was put into it.)

 On Wed, Sep 2, 2009 at 6:35 AM, Pablo Szyrko pablo.szy...@gmail.com wrote:

  Hi,
  I need to get the absolute path of the file associated with a specific
  android.net.Uri instance. I know how to get the URI instance based on
  the file instance (with Uri.fromFile(file)) and i need the inverse
  action.
  Thanks in avance, Pablo

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Signed vs. Unsigned

2009-09-12 Thread Ken H

Thank you. That part is starting to sink in after reading it 10
times :)

My next problem/question is this: when I fix some bugs in the app do I
need to re-sign it? I just assumed I did, but when I do Export Signed
Application Package, give it the password for the keystore (the
keystore location is the path to my .apk), I always run into a wall
that says invalid keystore format. Am I doing something wrong?

Oh, by the way, I work at the FSC :)

Ken

On Sep 12, 4:53 pm, Jack Ha jack...@t-mobile.com wrote:
 Your app needs to be digitally signed.

 If you use Eclipse with the ADT plugin, skip to the Compiling and
 signing with Eclipse ADT section. Otherwise, follow the instructions
 to export an unsigned .apk and then sign it with jarsigner.

 --
 Jack Ha
 Open Source Development Center
 ·T· · ·Mobile· stick together
 The coverage you need at the price you want

 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 Sep 12, 3:40 pm, Ken H hunt1...@gmail.com wrote:



  Ok, stupid question time: what's the difference being Export Signed
  Application Package and Export Unsigned Application Package? Under
  'Signing for Public Release' in the dev guide it says you must:

  1. Compile the application in release mode
  2. Obtain a suitable private key
  3. *Sign* the application with your private key

  But then it continues:

  To prepare your application for release...To export an unsigned .apk
  from Eclipse, right-click the project in the Package Explorer and
  select Android Tools  Export Unsigned Application Package.

  But below this under Compiling and signing with Eclipse ADT it says
  to To create a signed .apk, right-click the project in the Package
  Explorer and select Android Tools  Export Signed Application
  Package...When you complete the Export Wizard, you'll have a
  signed .apk that's ready for distribution

  Huh? Do I need my app signed or unsigned for distribution on market
  place?
--~--~-~--~~~---~--~~
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: Split Method

2009-09-12 Thread Jack Ha

Here is an example:

String[] list = TextUtils.split(a:b:c, :);

You need to import android.text.TextUtils like you said.

--
Jack Ha
Open Source Development Center
·T· · ·Mobile· stick together
The coverage you need at the price you want

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 Sep 12, 6:57 am, Boozel boozelcl...@gmail.com wrote:
 can some one please tell me how i can implement this method

 static String[]  split(String text, Pattern pattern)

 http://developer.android.com/reference/android/text/TextUtils.html#sp...,
 java.util.regex.Pattern)

 public static String[] split (String text, String expression)

 String.split() returns [''] when the string to be split is empty. This
 returns []. This does not remove any empty strings from the result.
 For example split(a,, , ) returns {a, }.
 Parameters
 text    the string to split
 expression      the regular expression to match
 Returns
 an array of strings. The array will be empty if text is empty
 Throws
 NullPointerException    if expression or text is null

 i've imported import android.text.TextUtils; but eclips desnt
 recognise any method i type in.
 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: MediaRecorder does'n work with incoming calls stream

2009-09-12 Thread Eric Wong (hdmp4.com)

Read and comment here
http://code.google.com/p/android/issues/detail?id=2117

Eric

On Sep 12, 3:21 am, jsdf jasons...@gmail.com wrote:
 On Sep 6, 10:05 am, fritzZz franzi...@gmail.com wrote:

  I have founded some app that records incoming calls, how do they
  work?

 Are you sure they record incoming calls from both ends?
 I would think they can only record what the application owner is
 saying, and not what is coming down the call pipe.
 After extensive research, I don't believe it is possible to record
 what is coming down the call pipe.

 And, I don't think it's a bug, I think it's by design.
--~--~-~--~~~---~--~~
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: Android Market: Screenshot/Promo images heavily compressed. Images become ugly

2009-09-12 Thread CraigsRace

Yes.  I noticed that too.  Both my screenshots were around 40Kb,
however, when I viewed them they were compressed down to around 20Kb.

I tried compressing one down to 19Kb then uploading it.  When I viewed
it, it actually went to 20Kb again.

On Sep 13, 8:43 am, Streets Of Boston flyingdutc...@gmail.com wrote:
 Is it just me or does anybody else notice as well that the images
 uploaded to ones Android Market's publishing site are heavily
 compressed.

 When I look at them after they're uploaded, i can clearly see ugly
 JPEG-compression artifacts.

 Is there a way to make sure that the quality of the images stored on
 Android Market's servers is better?
--~--~-~--~~~---~--~~
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: Get the file path from a URI instance

2009-09-12 Thread Dianne Hackborn
Doesn't work in what way?  It is used all over the system -- for example
this is how ContentResolver returns an InputStream to you from a file: URI:

return new FileInputStream(uri.getPath());


On Sat, Sep 12, 2009 at 5:00 PM, Bill wrobb...@gmail.com wrote:


 Actually this doesn't work.

 On Sep 2, 11:38 am, Dianne Hackborn hack...@android.com wrote:
  I'm sorry, but did you even try looking at the documentation?  It's not
  given a tricky name: getPath().  (If you are meaning you have put a
 relative
  path in, and want to get an absolute one back, well you can't, URI knows
  nothing about the semantics of a path in it nor how to do that kind of
  manipulation, it just knows what was put into it.)
 
  On Wed, Sep 2, 2009 at 6:35 AM, Pablo Szyrko pablo.szy...@gmail.com
 wrote:
 
   Hi,
   I need to get the absolute path of the file associated with a specific
   android.net.Uri instance. I know how to get the URI instance based on
   the file instance (with Uri.fromFile(file)) and i need the inverse
   action.
   Thanks in avance, Pablo
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: Signed vs. Unsigned

2009-09-12 Thread Ken H

I think I got it figured. I just have to do it the way the dev guide
says do it -- create a key in the keystore and apply that to the
application. I'm new to the whole signing thing and using the Export
Signed Application Package confused me because there is no keystore
created (at least not one I can find...and I search the whole
computer), so I was confused on how to re-deploy my app.

Unfortunately I think the users of my app will have to reinstall.

Ken

On Sep 12, 4:53 pm, Jack Ha jack...@t-mobile.com wrote:
 Your app needs to be digitally signed.

 If you use Eclipse with the ADT plugin, skip to the Compiling and
 signing with Eclipse ADT section. Otherwise, follow the instructions
 to export an unsigned .apk and then sign it with jarsigner.

 --
 Jack Ha
 Open Source Development Center
 ·T· · ·Mobile· stick together
 The coverage you need at the price you want

 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 Sep 12, 3:40 pm, Ken H hunt1...@gmail.com wrote:



  Ok, stupid question time: what's the difference being Export Signed
  Application Package and Export Unsigned Application Package? Under
  'Signing for Public Release' in the dev guide it says you must:

  1. Compile the application in release mode
  2. Obtain a suitable private key
  3. *Sign* the application with your private key

  But then it continues:

  To prepare your application for release...To export an unsigned .apk
  from Eclipse, right-click the project in the Package Explorer and
  select Android Tools  Export Unsigned Application Package.

  But below this under Compiling and signing with Eclipse ADT it says
  to To create a signed .apk, right-click the project in the Package
  Explorer and select Android Tools  Export Signed Application
  Package...When you complete the Export Wizard, you'll have a
  signed .apk that's ready for distribution

  Huh? Do I need my app signed or unsigned for distribution on market
  place?
--~--~-~--~~~---~--~~
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: Lesson from ADC2 - Polish Your App!

2009-09-12 Thread gjs

Hi,

I also agree with these sentiments, getting the polish compromise
right is one of the hardest  most time consuming parts of this type
of app development. Aspiring to have or development some the skills of
a graphic designer is challenging in itself.
To me its a triple constraint for which you must carefully balance
quality of graphic elements  applying them consistently across your
whole app, the size those (static) elements occupy in the apk and the
speed with which the elements are loaded and rendered.
When I have the time, which I didn't for ADC2, I find myself
repeatedly going through the loop of trying to enhance the quality of
graphic elements, deciding they look ok but then being dissatisfied
with the resulting size of the apk and/or increased lag time in
rendering.
Despite the emphasis on polish for ADC2 I also thought that trying to
keep the size of the apk down might prove important where end user
judges may become impatient waiting for larger apk to download and
install and also having to fit into limited memory space already taken
by a users existing apps. Particularly as ADC2 apps are thrown away
after judging is concluded. I'm dissatisfied with the level of polish
I applied in my ADC2 app but for me it was mostly a time  budget
constraint.

I think some of Tom's apps have exemplary polish -
http://www.tomgibara.com/android/daisy/garden/

http://www.tech.youvox.fr/Cooking-Capsules-en-savoir-plus,1162.html

Another I'd seen recently is -

http://tracklet.appspot.com/

It is easy to see why it pays to use graphic designers, look at any
good console app with their $N,000,000 budgets - given you've got the
time and money.

Regards

On Sep 12, 2:41 pm, ernestw ernest...@gmail.com wrote:
 I agree with you 100% Craig.  I've been focusing primarily on games
 and have spent a lot of time going through older games; reading
 comments and ratings.
 I'm quite amazed at the number of games where force close is a
 complaint and that menus are difficult to navigate.

 I spent some extra time making sure menus, dialogs, buttons, etc.
 behaved like an Android app in my game.  One of my pet peeves is a UI
 that forces you to use the touchscreen only (similar to a desktop app
 that doesn't have keyboard shortcuts or even allow tab-navigation).  I
 guess that would lead to my other suggestion that if you are writing a
 game, that's no excuse to make the UI needlessly difficult to
 navigate!

 UI work (and general polish) is rote work I admit; it takes a lot of
 effort and the only measurable payback is people _not_ complaining
 about it.  But it's still worth it IMO.

 I think it would help other developers to point out apps with
 exemplary polish.  A lot of the top apps in each category are really
 spiffy and it would benefit others to know just how high that bar is
 set.

   Ernest Woo
   Woo Games
  http://www.woogames.com

 On Sep 11, 10:18 pm, CraigsRace craig...@gmail.com wrote:

  My first game, I got bombarded with e-mails from people asking me to
  add features.  As a result, the game became cluttered with features
  and options.

  My ADC2 entry, I kept very simple and spent a lot of time creating
  themed dialogs etc.  IMO, the end result is much better.

  A library of views and widgets is an excellent idea!

  On Sep 12, 8:46 am, Robert Green rbgrn@gmail.com wrote:

   I'm in the same camp.  I was just happy to get a 3D multiplayer game
   working correctly by the deadline.  I spent the next week polishing it
   up and man have I found a ton of things that I wish I had gotten done
   in time for the contest.  Obvious stuff like VBOs, mipmaps, better
   orientation handling, etc.. The game looks WAY better and runs 10-15
   FPS faster on my G1 this week than it did when I submitted.  Too bad I
   couldn't get it all in before the contest deadline!

   On Sep 11, 4:36 pm, Tom Gibara m...@tomgibara.com wrote:

I think lack of polish is a significant shortcoming in a large number 
of the
applications that are now available in the Android Market. There are 
lots of
great apps, and great apps that have very little polish (and perhaps 
don't
need it), but in general I think it's a quality that's in deficit.
Interestingly I think your blog post nails one the key reasons but which
your suggestions above won't remedy:

Polish is better than feature. I found myself continually being tempted 
to

 add one more feature to my entry, rather than spending what limited 
 time
 that I did have working on smoothing out the UI bumps, testing, 
 creating
 docs, designing appealing logos, making videos, testing, and oh yes,
 testing.

I think authors really need to care about the user and their sum 
experience
of the application. And since resources are always finite, time spent 
adding
new features very soon subtracts significant time away from everything
that actually makes the features valuable to the user

[android-developers] Re: appending video files

2009-09-12 Thread Marco Nelissen

You can't just concatenate multiple video files like that.

On Sat, Sep 12, 2009 at 7:07 AM, JoyLakh sivarajend...@gmail.com wrote:

 Dear All,

 My intention is to add pause and resume functionality to my video
 recording app, for which on selecting pause I am releasing the
 recorder and on selecting resume I am starting a new recorder and
 writing to a new file. After selecting stop I want to add all these
 individual files and store as a single file in the database. Right now
 I am following the below code. The second file contents are getting
 added ( I suppose, as the first file size is updated ), but while
 trying to play only first file contents are being played.

 FileInputStream lFile = new FileInputStream(secondFile);
 int lFileSize = lFile.available();
 byte[] lBuffer = new byte[lFile.available()];
 lFile.read(lBuffer);
 lFile.close();

 FileOutputStream lOut = new FileOutputStream(firstFile,true);
 lOut.write(lBuffer);
 lOut.flush();
 lOut.close();

 Thanks and Regards.

 


--~--~-~--~~~---~--~~
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] GL DEBUG_CHECK_GL_ERROR throwing UnsupportedOperationExceptions for things that work

2009-09-12 Thread Robert Green

I'm confused by this.  I turned on DEBUG_CHECK_GL_ERROR for my
GLSurfaceView to try to figure out why I'm having a problem on pause/
resume/reload everything, and when I turned it on, I got an
UnsupportedOperationException when calling GL11.glGenBuffers() (for
creating Vertex Buffer Objects).

Why is it saying that operation is unsupported when:

1)  The vertex_buffer_object extension is listed on the target device
and my code checks for it before trying to use VBOs.
2)  VBOs are working correctly (and really well might I add).

This is on a G1.  Yes, I know the G1 is only OpenGL ES 1.0 compliant
and I'm trying to use a 1.1 extension, but if the phone lists the
extension, doesn't that mean I can use it?  Also - the extension
works!  Does this mean that it works but use-at-your-own-risk, kinda
like how SoundPool was in Android 1.0?


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

2009-09-12 Thread Jack Ha

Specify something like this in your AndroidManifest file:

activity android:name=ActivityA
intent-filter
action android:name=android.intent.action.MAIN/

category
android:name=android.intent.category.LAUNCHER/
/intent-filter
meta-data android:name=android.app.default_searchable
   android:value=.ActivityB /
/activity
activity android:name=ActivityB
intent-filter
action android:name=android.intent.action.SEARCH/
category
android:name=android.intent.category.DEFAULT /
/intent-filter
meta-data android:name=android.app.searchable
   android:resource=@xml/searchable /

/activity


Create a searchable.xml file in the res/xml folder:

searchable xmlns:android=http://schemas.android.com/apk/res/
android
android:label=@string/search_label
android:hint=@string/search_hint
/searchable


In onCreate() function in ActivityB, handle the ACTION_SEARCH intent:

final Intent queryIntent = getIntent();
final String queryAction = queryIntent.getAction();
if (Intent.ACTION_SEARCH.equals(queryAction)) {
String s = queryIntent.getStringExtra
(SearchManager.QUERY));
}

--
Jack Ha
Open Source Development Center
·T· · ·Mobile· stick together
The coverage you need at the price you want

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 Sep 11, 3:56 am, mardah hans.martin.d...@gmail.com wrote:
 Hi

 I'm trying to understand how the SearchManager works. I have one
 activity Activity A from which I would like to invoke the Search UI.
 When the user enters a query and clicks search I would like to start a
 new activity Activity B that handles the query. How should I
 implement this?

 In the 
 documentation,http://developer.android.com/reference/android/app/SearchManager.html

 1) If the user launched a search, and this required switching to
 another activity to receive and process the search Intent, your
 activity will receive the normal sequence of activity pause or stop
 notifications.

 2) If the user launched a search, and the current activity is the
 recipient of the search Intent, you will receive notification via the
 onNewIntent() method.

 The second use case works but I would like to specify another activity
 to receive and process the search Intent.

 BR
 Martin
--~--~-~--~~~---~--~~
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: GL DEBUG_CHECK_GL_ERROR throwing UnsupportedOperationExceptions for things that work

2009-09-12 Thread Robert Green

After looking through the Cupcake source tree, I found that in
projects / platform/frameworks/base.git / tree
[platform/frameworks/base.git] / opengl / java / android / opengl /

It appears as though when I enable DEBUG_CHECK_GL_ERROR, GL gets
wrapped with GLErrorWrapper which extends GLWrapperBase.
GLWrapperBase throws the exception for everything.  GLErrorWrapper
overrides many of the functions but not the VBO stuff.  How
unfortunate.  What's funny is that it looks like there are different
sets of methods supported by GLErrorWrapper and GLLogWrapper.  Either
the developers never got around to syncing everything up or they just
decided that those of us using any extensions beyond GL10 are to be
totally unsupported.

I keep arguing that Android can be competitive to iPhone with gaming
but some days I just feel like it's an uphill battle...

Guess I'll just manually check for glErrors in a few key spots.

On Sep 12, 10:34 pm, Robert Green rbgrn@gmail.com wrote:
 I'm confused by this.  I turned on DEBUG_CHECK_GL_ERROR for my
 GLSurfaceView to try to figure out why I'm having a problem on pause/
 resume/reload everything, and when I turned it on, I got an
 UnsupportedOperationException when calling GL11.glGenBuffers() (for
 creating Vertex Buffer Objects).

 Why is it saying that operation is unsupported when:

 1)  The vertex_buffer_object extension is listed on the target device
 and my code checks for it before trying to use VBOs.
 2)  VBOs are working correctly (and really well might I add).

 This is on a G1.  Yes, I know the G1 is only OpenGL ES 1.0 compliant
 and I'm trying to use a 1.1 extension, but if the phone lists the
 extension, doesn't that mean I can use it?  Also - the extension
 works!  Does this mean that it works but use-at-your-own-risk, kinda
 like how SoundPool was in Android 1.0?
--~--~-~--~~~---~--~~
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: MediaRecorder does'n work with incoming calls stream

2009-09-12 Thread Dianne Hackborn
It's kind-of pointless to request this in the bug, because most of the
current hardware Android runs on simply doesn't support this -- as far as I
know, the standard Qualcomm chipset does all of the phone audio handling in
the baseband, and the application processor running Android has no access to
it.

I am sure at some point in the future when hardware supports this there will
be platform APIs to use it, but that isn't going to magically add the
feature to existing phones.

On Sat, Sep 12, 2009 at 5:50 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com
 wrote:


 Read and comment here
 http://code.google.com/p/android/issues/detail?id=2117

 Eric

 On Sep 12, 3:21 am, jsdf jasons...@gmail.com wrote:
  On Sep 6, 10:05 am, fritzZz franzi...@gmail.com wrote:
 
   I have founded some app that records incoming calls, how do they
   work?
 
  Are you sure they record incoming calls from both ends?
  I would think they can only record what the application owner is
  saying, and not what is coming down the call pipe.
  After extensive research, I don't believe it is possible to record
  what is coming down the call pipe.
 
  And, I don't think it's a bug, I think it's by design.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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] OpenGL SegFaults after GLSurfaceView onPause/onResume

2009-09-12 Thread Robert Green

On my G1 running standard 1.5.

I'm using an activity with the content view being a GLSurfaceView.

When the activity onPause is called, it calls onPause on the
glsurfaceview
When the activity onResume is called, it calls onResume on the
glsurfaceview

When the renderer's onSurfaceChanged is called, I set a flag to tell
it to load resources on the next frame draw.
When the next frame draw happens, it draws an ortho quad w/a loading
graphic on it, which always works correctly.  It then uploads textures
again, just like the first initialization.

I'm working off of the knowledge that any time onSurfaceChanged is
called, VRAM has been wiped and your texture IDs are invalid so you
must reload everything.  That's correct, no?

I thought maybe my VBOs were the problem but after disabling them, I
still had the same issue so it's something else.

I added some glGetError() calls anywhere I thought it might help, like
after loading a texture, but it's always GL_NO_ERROR.

Any ideas?

Here's my nasty stack trace:

I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   32): Build fingerprint: 'tmobile/kila/dream/trout:1.5/
CRC1/150275:user/ota-rel-keys,release-keys'
I/DEBUG   (   32): pid: 605, tid: 617   net.rbgrn.mytestglapp 
I/DEBUG   (   32): signal 7 (SIGBUS), fault addr 
I/DEBUG   (   32):  r0 6a6a6a6a  r1 0021f450  r2 0001  r3 
I/DEBUG   (   32):  r4 454cbdc0  r5 00220450  r6 0021f450  r7 
I/DEBUG   (   32):  r8 fffe  r9   10 0001  fp deadbeef
I/DEBUG   (   32):  ip   sp 454cbd70  lr 80433bf8  pc
804280b8  cpsr 2010
I/DEBUG   (   32):  #00  pc 000280b8  /system/lib/libhgl.so
I/DEBUG   (   32):  #01  lr 80433bf8  /system/lib/libhgl.so
I/DEBUG   (   32): stack:
I/DEBUG   (   32): 454cbd30  002bc4a0  [heap]
I/DEBUG   (   32): 454cbd34  afe39dd0
I/DEBUG   (   32): 454cbd38  00239028  [heap]
I/DEBUG   (   32): 454cbd3c  00220c18  [heap]
I/DEBUG   (   32): 454cbd40  ffeb
I/DEBUG   (   32): 454cbd44  
I/DEBUG   (   32): 454cbd48  
I/DEBUG   (   32): 454cbd4c  80433bf8  /system/lib/libhgl.so
I/DEBUG   (   32): 454cbd50  00220c18  [heap]
I/DEBUG   (   32): 454cbd54  80433b4c  /system/lib/libhgl.so
I/DEBUG   (   32): 454cbd58  454cbdc0
I/DEBUG   (   32): 454cbd5c  00220450  [heap]
I/DEBUG   (   32): 454cbd60  0021f450  [heap]
I/DEBUG   (   32): 454cbd64  
I/DEBUG   (   32): 454cbd68  df002777
I/DEBUG   (   32): 454cbd6c  e3a070ad
I/DEBUG   (   32): #00 454cbd70  454cbdc0
I/DEBUG   (   32): 454cbd74  
I/DEBUG   (   32): 454cbd78  ad31af9c  /system/lib/
libandroid_runtime.so
I/DEBUG   (   32): 454cbd7c  4104beb0
I/DEBUG   (   32): 454cbd80  454cbda0
I/DEBUG   (   32): 454cbd84  4104bea8
I/DEBUG   (   32): 454cbd88  4104be94
I/DEBUG   (   32): 454cbd8c  0001
I/DEBUG   (   32): 454cbd90  ac708c9c
I/DEBUG   (   32): 454cbd94  804527c0  /system/lib/libhgl.so
I/DEBUG   (   32): 454cbd98  454cbdc0
I/DEBUG   (   32): 454cbd9c  ad00e3b8  /system/lib/libdvm.so
I/DEBUG   (   32): 454cbda0  4109bc20
I/DEBUG   (   32): 454cbda4  002014f0  [heap]
I/DEBUG   (   32): 454cbda8  ad31af9c  /system/lib/
libandroid_runtime.so
I/DEBUG   (   32): 454cbdac  
I/DEBUG   (   32): 454cbdb0  3072
I/DEBUG   (   32): 454cbdb4  002014f0  [heap]

--~--~-~--~~~---~--~~
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: MediaRecorder does'n work with incoming calls stream

2009-09-12 Thread Chris Stratton

I dont think the baseband firmware is exactly mask programmed, so the
technical challenge is probably conquerable unless the audio really
never passes in reach of that cpu either (even on its way to/from the
bluetooth - that something may usually be done via peripheral to
peripheral dma does not mean that it has to be).   However the narrow
utility and location-dependent legality of recording calls suggest
that its probably not a high priority.

On Sep 13, 12:12 am, Dianne Hackborn hack...@android.com wrote:
 It's kind-of pointless to request this in the bug, because most of the
 current hardware Android runs on simply doesn't support this -- as far as I
 know, the standard Qualcomm chipset does all of the phone audio handling in
 the baseband, and the application processor running Android has no access to
 it.

 I am sure at some point in the future when hardware supports this there will
 be platform APIs to use it, but that isn't going to magically add the
 feature to existing phones.

 On Sat, Sep 12, 2009 at 5:50 PM, Eric Wong (hdmp4.com) ericwon...@gmail.com





  wrote:

  Read and comment here
 http://code.google.com/p/android/issues/detail?id=2117

  Eric

  On Sep 12, 3:21 am, jsdf jasons...@gmail.com wrote:
   On Sep 6, 10:05 am, fritzZz franzi...@gmail.com wrote:

I have founded some app that records incoming calls, how do they
work?

   Are you sure they record incoming calls from both ends?
   I would think they can only record what the application owner is
   saying, and not what is coming down the call pipe.
   After extensive research, I don't believe it is possible to record
   what is coming down the call pipe.

   And, I don't think it's a bug, I think it's by design.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android 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: KXML and Android

2009-09-12 Thread JavaNut

I did some more searching.  The KXML classes are in dalvik/libcore,
and they are not in android.jar, and thus they are not visible to me
as an app developer.  Of course they are used internally for various
things.

Is there some way to use classes in libcore?  Or are those separated,
and I shouldn't use them?  Will they conflict with my application's
classes?  For instance, there is a class in libcore called
org.kxml2.io.KXmlParser.  If I include the KXML classes in my
application, I'll have a class with the same name.  Which one will be
found by my application?

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: OpenGL SegFaults after GLSurfaceView onPause/onResume

2009-09-12 Thread CraigsRace

Not too sure about GLSurfaceView (I'm still using EGLContext.getEGL
() ... ).

However, I use the surfaceDestroyed and surfaceCreated methods to flag
a cleanup or reload of the textures.  This works ok (Ie: If a phone
call occurs during the game, the user can continue after the call),
however, I have a noticed a lower FPS when it does reload the
textures.


On Sep 13, 2:28 pm, Robert Green rbgrn@gmail.com wrote:
 On my G1 running standard 1.5.

 I'm using an activity with the content view being a GLSurfaceView.

 When the activity onPause is called, it calls onPause on the
 glsurfaceview
 When the activity onResume is called, it calls onResume on the
 glsurfaceview

 When the renderer's onSurfaceChanged is called, I set a flag to tell
 it to load resources on the next frame draw.
 When the next frame draw happens, it draws an ortho quad w/a loading
 graphic on it, which always works correctly.  It then uploads textures
 again, just like the first initialization.

 I'm working off of the knowledge that any time onSurfaceChanged is
 called, VRAM has been wiped and your texture IDs are invalid so you
 must reload everything.  That's correct, no?

 I thought maybe my VBOs were the problem but after disabling them, I
 still had the same issue so it's something else.

 I added some glGetError() calls anywhere I thought it might help, like
 after loading a texture, but it's always GL_NO_ERROR.

 Any ideas?

 Here's my nasty stack trace:

 I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
 *** *** ***
 I/DEBUG   (   32): Build fingerprint: 'tmobile/kila/dream/trout:1.5/
 CRC1/150275:user/ota-rel-keys,release-keys'
 I/DEBUG   (   32): pid: 605, tid: 617   net.rbgrn.mytestglapp 
 I/DEBUG   (   32): signal 7 (SIGBUS), fault addr 
 I/DEBUG   (   32):  r0 6a6a6a6a  r1 0021f450  r2 0001  r3 
 I/DEBUG   (   32):  r4 454cbdc0  r5 00220450  r6 0021f450  r7 
 I/DEBUG   (   32):  r8 fffe  r9   10 0001  fp deadbeef
 I/DEBUG   (   32):  ip   sp 454cbd70  lr 80433bf8  pc
 804280b8  cpsr 2010
 I/DEBUG   (   32):          #00  pc 000280b8  /system/lib/libhgl.so
 I/DEBUG   (   32):          #01  lr 80433bf8  /system/lib/libhgl.so
 I/DEBUG   (   32): stack:
 I/DEBUG   (   32):     454cbd30  002bc4a0  [heap]
 I/DEBUG   (   32):     454cbd34  afe39dd0
 I/DEBUG   (   32):     454cbd38  00239028  [heap]
 I/DEBUG   (   32):     454cbd3c  00220c18  [heap]
 I/DEBUG   (   32):     454cbd40  ffeb
 I/DEBUG   (   32):     454cbd44  
 I/DEBUG   (   32):     454cbd48  
 I/DEBUG   (   32):     454cbd4c  80433bf8  /system/lib/libhgl.so
 I/DEBUG   (   32):     454cbd50  00220c18  [heap]
 I/DEBUG   (   32):     454cbd54  80433b4c  /system/lib/libhgl.so
 I/DEBUG   (   32):     454cbd58  454cbdc0
 I/DEBUG   (   32):     454cbd5c  00220450  [heap]
 I/DEBUG   (   32):     454cbd60  0021f450  [heap]
 I/DEBUG   (   32):     454cbd64  
 I/DEBUG   (   32):     454cbd68  df002777
 I/DEBUG   (   32):     454cbd6c  e3a070ad
 I/DEBUG   (   32): #00 454cbd70  454cbdc0
 I/DEBUG   (   32):     454cbd74  
 I/DEBUG   (   32):     454cbd78  ad31af9c  /system/lib/
 libandroid_runtime.so
 I/DEBUG   (   32):     454cbd7c  4104beb0
 I/DEBUG   (   32):     454cbd80  454cbda0
 I/DEBUG   (   32):     454cbd84  4104bea8
 I/DEBUG   (   32):     454cbd88  4104be94
 I/DEBUG   (   32):     454cbd8c  0001
 I/DEBUG   (   32):     454cbd90  ac708c9c
 I/DEBUG   (   32):     454cbd94  804527c0  /system/lib/libhgl.so
 I/DEBUG   (   32):     454cbd98  454cbdc0
 I/DEBUG   (   32):     454cbd9c  ad00e3b8  /system/lib/libdvm.so
 I/DEBUG   (   32):     454cbda0  4109bc20
 I/DEBUG   (   32):     454cbda4  002014f0  [heap]
 I/DEBUG   (   32):     454cbda8  ad31af9c  /system/lib/
 libandroid_runtime.so
 I/DEBUG   (   32):     454cbdac  
 I/DEBUG   (   32):     454cbdb0  3072
 I/DEBUG   (   32):     454cbdb4  002014f0  [heap]
--~--~-~--~~~---~--~~
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: KXML and Android

2009-09-12 Thread Lance Nanek

I see a generic XML Pull Parser in the public APIs. Is that good
enough?

For example, copying the XML Pull Parser example out of this reference
page, putting it into an Activity subclass, and tweaking the exception
handling and output method seems to work fine for me:
http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html

It's even possible it is using kXML for the implementation, just using
the generic API to access it.

On Sep 13, 1:01 am, JavaNut i...@chiralsoftware.net wrote:
 I did some more searching.  The KXML classes are in dalvik/libcore,
 and they are not in android.jar, and thus they are not visible to me
 as an app developer.  Of course they are used internally for various
 things.

 Is there some way to use classes in libcore?  Or are those separated,
 and I shouldn't use them?  Will they conflict with my application's
 classes?  For instance, there is a class in libcore called
 org.kxml2.io.KXmlParser.  If I include the KXML classes in my
 application, I'll have a class with the same name.  Which one will be
 found by my application?

 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: OpenGL SegFaults after GLSurfaceView onPause/onResume

2009-09-12 Thread Robert Green

Well I figured out what is was.  My fault, of course.  I messed up on
one of the texture re-inits and skipped it, causing the bind call to
bind to -1, which apparently crashes OpenGL well :)

The moral of the story - Don't bind to textureId -1.  :)

The other moral - debug more before assuming it may be a problem with
the platform and posting questions here.

On Sep 13, 12:24 am, CraigsRace craig...@gmail.com wrote:
 Not too sure about GLSurfaceView (I'm still using EGLContext.getEGL
 () ... ).

 However, I use the surfaceDestroyed and surfaceCreated methods to flag
 a cleanup or reload of the textures.  This works ok (Ie: If a phone
 call occurs during the game, the user can continue after the call),
 however, I have a noticed a lower FPS when it does reload the
 textures.

 On Sep 13, 2:28 pm, Robert Green rbgrn@gmail.com wrote:

  On my G1 running standard 1.5.

  I'm using an activity with the content view being a GLSurfaceView.

  When the activity onPause is called, it calls onPause on the
  glsurfaceview
  When the activity onResume is called, it calls onResume on the
  glsurfaceview

  When the renderer's onSurfaceChanged is called, I set a flag to tell
  it to load resources on the next frame draw.
  When the next frame draw happens, it draws an ortho quad w/a loading
  graphic on it, which always works correctly.  It then uploads textures
  again, just like the first initialization.

  I'm working off of the knowledge that any time onSurfaceChanged is
  called, VRAM has been wiped and your texture IDs are invalid so you
  must reload everything.  That's correct, no?

  I thought maybe my VBOs were the problem but after disabling them, I
  still had the same issue so it's something else.

  I added some glGetError() calls anywhere I thought it might help, like
  after loading a texture, but it's always GL_NO_ERROR.

  Any ideas?

  Here's my nasty stack trace:

  I/DEBUG   (   32): *** *** *** *** *** *** *** *** *** *** *** *** ***
  *** *** ***
  I/DEBUG   (   32): Build fingerprint: 'tmobile/kila/dream/trout:1.5/
  CRC1/150275:user/ota-rel-keys,release-keys'
  I/DEBUG   (   32): pid: 605, tid: 617   net.rbgrn.mytestglapp 
  I/DEBUG   (   32): signal 7 (SIGBUS), fault addr 
  I/DEBUG   (   32):  r0 6a6a6a6a  r1 0021f450  r2 0001  r3 
  I/DEBUG   (   32):  r4 454cbdc0  r5 00220450  r6 0021f450  r7 
  I/DEBUG   (   32):  r8 fffe  r9   10 0001  fp deadbeef
  I/DEBUG   (   32):  ip   sp 454cbd70  lr 80433bf8  pc
  804280b8  cpsr 2010
  I/DEBUG   (   32):          #00  pc 000280b8  /system/lib/libhgl.so
  I/DEBUG   (   32):          #01  lr 80433bf8  /system/lib/libhgl.so
  I/DEBUG   (   32): stack:
  I/DEBUG   (   32):     454cbd30  002bc4a0  [heap]
  I/DEBUG   (   32):     454cbd34  afe39dd0
  I/DEBUG   (   32):     454cbd38  00239028  [heap]
  I/DEBUG   (   32):     454cbd3c  00220c18  [heap]
  I/DEBUG   (   32):     454cbd40  ffeb
  I/DEBUG   (   32):     454cbd44  
  I/DEBUG   (   32):     454cbd48  
  I/DEBUG   (   32):     454cbd4c  80433bf8  /system/lib/libhgl.so
  I/DEBUG   (   32):     454cbd50  00220c18  [heap]
  I/DEBUG   (   32):     454cbd54  80433b4c  /system/lib/libhgl.so
  I/DEBUG   (   32):     454cbd58  454cbdc0
  I/DEBUG   (   32):     454cbd5c  00220450  [heap]
  I/DEBUG   (   32):     454cbd60  0021f450  [heap]
  I/DEBUG   (   32):     454cbd64  
  I/DEBUG   (   32):     454cbd68  df002777
  I/DEBUG   (   32):     454cbd6c  e3a070ad
  I/DEBUG   (   32): #00 454cbd70  454cbdc0
  I/DEBUG   (   32):     454cbd74  
  I/DEBUG   (   32):     454cbd78  ad31af9c  /system/lib/
  libandroid_runtime.so
  I/DEBUG   (   32):     454cbd7c  4104beb0
  I/DEBUG   (   32):     454cbd80  454cbda0
  I/DEBUG   (   32):     454cbd84  4104bea8
  I/DEBUG   (   32):     454cbd88  4104be94
  I/DEBUG   (   32):     454cbd8c  0001
  I/DEBUG   (   32):     454cbd90  ac708c9c
  I/DEBUG   (   32):     454cbd94  804527c0  /system/lib/libhgl.so
  I/DEBUG   (   32):     454cbd98  454cbdc0
  I/DEBUG   (   32):     454cbd9c  ad00e3b8  /system/lib/libdvm.so
  I/DEBUG   (   32):     454cbda0  4109bc20
  I/DEBUG   (   32):     454cbda4  002014f0  [heap]
  I/DEBUG   (   32):     454cbda8  ad31af9c  /system/lib/
  libandroid_runtime.so
  I/DEBUG   (   32):     454cbdac  
  I/DEBUG   (   32):     454cbdb0  3072
  I/DEBUG   (   32):     454cbdb4  002014f0  [heap]


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