[android-developers] Re: Android layout editor is plenty of bugs. Will google fix them?
The Layout Editor is open source. Get cracking and start submitting fixes. I am sure Google would be very grateful. On Feb 5, 9:24 pm, eldruida druida...@gmail.com wrote: Hello, I know that I can create activities writing xml code. However, the layout would be very useful if weren't full of bugs. I don't understand why doesn't do an effort to fix them. It's stressfull Better they improve the actual features than adding new ones. Bye. -- 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: Action Bar icon sizes?
I created a Bug report for this: http://code.google.com/p/android/issues/detail?id=25176 On Feb 6, 1:01 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Mon, Feb 6, 2012 at 12:56 PM, Zsolt Vasvari zvasv...@gmail.com wrote: I guess Google cannot get the story straight: The doc says that the Action Bar icon sizes should be 24, 32, 48 square pixels for MDPI, HDPI and XHDPI, repsectively: http://developer.android.com/guide/practices/ui_guidelines/icon_desig... Those are also the sizes, Android Asset studio generates. http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html But the icon pack (http://developer.android.com/design/static/download/action_bar_icons-... ) has them as 32, 48 and 64 pixels and the LINT gives warning on those sizes. The newly announced design guide, says 32x32dp, which is 32px for mdpi, 48px for hdpi, etc (as above). http://developer.android.com/design/style/iconography.html Which one is correct? I can't be sure, but 32/48/64 are the icon sizes in the actual ICS source tree, so those should be the correct ones. -- 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] [ICS]: CTS test failed: nulljava.lang.VerifyError in opcodes of the android.core.vm-tests
Hello Everyone: When I did CTS test against the package android.core.vm-tests, I got many failures said nulljava.lang.VerifyError in the opcodes. I posted a detail failure log below: nulljava.lang.VerifyError: dot/junit/opcodes/shr_int_2addr/d/ T_shr_int_2addr_6 at dot.junit.opcodes.shr_int_2addr.Main_testN6.main(Main_testN6.java:7) at dalvik.system.NativeStart.main(Native Method) return code: 0 nulljava.lang.RuntimeException: java.lang.VerifyError: dot/junit/ opcodes/shr_int_2addr/d/T_shr_int_2addr_6 at dot.junit.opcodes.shr_int_2addr.Main_testN6.main(Main_testN6.java:7) at dalvik.system.NativeStart.main(Native Method) return code: 0 at dot.junit.DeviceUtil.digestCommand(DeviceUtil.java:49) at dot.junit.DeviceUtil.adbExec(DeviceUtil.java:115) at dot.junit.opcodes.shr_int_2addr.JUnit_Test_shr_int_2addr.testN6(JUnit_Test_shr_int_2addr.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at com.android.cts.HostUnitTestRunner.runTest(HostUnitTestRunner.java: 68) at com.android.cts.HostSideOnlyTest $HostSideTestRunner.run(HostSideOnlyTest.java:53) The log came from the the test case dot.junit.opcodes.shr_int_2addr.JUnit_Test_shr_int_2addr --testN6 in the test package android.core.vm-tests. Had anyone ever encountered this issue? How can I solve this issue? 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: SSL/TLS and ECC (Elliptic curve cryptography)
Thanks for your replay. We try to run this app on a Android 2.2, because it is the minimum target we need to handle, so we don't know if this solution works with other type of clients. We know that the certificates and server configuration are good because we can test the communication with a IE7 or with a Firefox client on a PC. In my previous message I said that there was a link where we can read that there is a way to have EC working on a 2.2 device, but not applied to a HTTPS connection , only related to cyphering functionality. Do you think this is not supported directly by https? 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: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS
I have the same problem and am looking for a soloution =/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: SSL/TLS and ECC (Elliptic curve cryptography)
On Mon, Feb 6, 2012 at 6:12 PM, Kosmo Kosmorum elko...@gmail.com wrote: Thanks for your replay. We try to run this app on a Android 2.2, because it is the minimum target we need to handle, so we don't know if this solution works with other type of clients. If you want maximum compatibility, just use RSA. In my previous message I said that there was a link where we can read that there is a way to have EC working on a 2.2 device, but not applied to a HTTPS connection , only related to cyphering functionality. I wrote that blog post :) You can install an additional JCE provider and use ECC (or any algorithm supported by the provider), even if it is not supported by the platform. However, Do you think this is not supported directly by https? Android's SSL sockets are implemented using native OpenSSL code, and thus JCE providers are not used. I haven't checked in detail, but most probably you can't get it to use ECC for SSL without modifying the platform. In short, just use RSA. If you really, really need to use EC, get someone to look at the source, and possibly modify the platform. -- 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] CountDownTimer
hey all, i want to send an sms after 1 minute, please may you help me with this code please using count down timer -- Be good to not only people but also machines -- 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] SQLiteTable is not inserting
package Database.login; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class DatabaseLogin extends Activity { private EditText edit; private Button login; private DBAdapter db; private Button register; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setUpViews(); } private void setUpViews() { //add the user names and passwords //db.open(); //long id = db.insertUser(srikanth, srikanth); //db.close(); edit = (EditText)findViewById(R.id.edit); login = (Button)findViewById(R.id.login); login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String username = edit.getText().toString(); String password = edit.getText().toString(); } }); register = (Button)findViewById(R.id.register); register.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent in = new Intent(getApplicationContext(),Register.class); startActivity(in); } }); } } package Database.login; import android.content.ContentValues; import android.content.Context; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DBAdapter { public static final String KEY_ROWID = _id; public static final String KEY_NAME = username; public static final String KEY_PASS = password; public static final int DATABASE_VERSION = 1; public static final String DATABASE_NAME = DB; public static final String DATABASE_CREATE = create table login (_id integer primary key autoincrement,+ +name text not null,password text not null); private DatabaseHelper helper; private SQLiteDatabase db; private Context context; public DBAdapter(Context ctx) { this.context = ctx; helper = new DatabaseHelper(context); } class DatabaseHelper extends SQLiteOpenHelper { public DatabaseHelper(Context context) { // TODO Auto-generated constructor stub super(context,DATABASE_NAME , null,DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub try{ db.execSQL(DATABASE_CREATE); } catch (Exception e) { // TODO: handle exception } } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub } } //open the data base public DBAdapter open() throws SQLException{ db = helper.getWritableDatabase(); return this; } //close public void close(){ db.close(); } //insert user name and password public long insertUser(String name,String password) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_NAME, name); initialValues.put(KEY_PASS, password); return db.insert(DATABASE_CREATE, null, initialValues); } } package Database.login; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class Register extends Activity { private Button agree; private EditText userName; private EditText pass; DBAdapter db = new DBAdapter(this); @Override protected void onCreate(Bundle savedInstanceState) {
Re: [android-developers] SQLiteTable is not inserting
public class DBAdapter extends SQLiteOpenHelper { public static final String KEY_ROWID = _id; public static final String KEY_NAME = username; public static final String KEY_PASS = password; public static final int DATABASE_VERSION = 1; public static final String DATABASE_NAME = DB; public static final String DATABASE_CREATE = create table login (_id integer primary key autoincrement,+ +name text not null,password text not null); private DatabaseHelper helper; private SQLiteDatabase db; private Context context; public DatabaseHelper(Context context) { // TODO Auto-generated constructor stub super(context,DATABASE_NAME , null,DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub try{ db.execSQL(DATABASE_CREATE); } catch (Exception e) { // TODO: handle exception } } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub } } //open the data base public DBAdapter open() throws SQLException{ db = helper.getWritableDatabase(); return this; } //close public void close(){ db.close(); } //insert user name and password public long insertUser(String name,String password) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_NAME, name); initialValues.put(KEY_PASS, password); return db.insert(DATABASE_CREATE, null, initialValues); } } 2012/2/6 srikanth chitturi ysrikanth2...@gmail.com package Database.login; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; public class DatabaseLogin extends Activity { private EditText edit; private Button login; private DBAdapter db; private Button register; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setUpViews(); } private void setUpViews() { //add the user names and passwords //db.open(); //long id = db.insertUser(srikanth, srikanth); //db.close(); edit = (EditText)findViewById(R.id.edit); login = (Button)findViewById(R.id.login); login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String username = edit.getText().toString(); String password = edit.getText().toString(); } }); register = (Button)findViewById(R.id.register); register.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent in = new Intent(getApplicationContext(),Register.class); startActivity(in); } }); } } package Database.login; import android.content.ContentValues; import android.content.Context; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DBAdapter { public static final String KEY_ROWID = _id; public static final String KEY_NAME = username; public static final String KEY_PASS = password; public static final int DATABASE_VERSION = 1; public static final String DATABASE_NAME = DB; public static final String DATABASE_CREATE = create table login (_id integer primary key autoincrement,+ +name text not null,password text not null); private DatabaseHelper helper; private SQLiteDatabase db; private Context context; public
[android-developers] does Android market validate unreleased versions?
Hello, I tried running a beta testing campaign during the weekend but all users complained that they couldn't get a valid license. Doors Android market validate unreleased versions of paid apps? Thanks, Gabriel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: can't open keycharmap file
Sent from my BlackBerry® smartphone from !DEA -Original Message- From: Zion ziontil...@gmail.com Sender: android-developers@googlegroups.com Date: Sat, 4 Feb 2012 14:59:54 To: android-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: can't open keycharmap file This Post on StackOverflowhttp://stackoverflow.com/questions/8584733/android-cant-open-keycharmap-fileis really the only other post specifically about this that I sawAnd I am using Zxing library as was asked by one of the replies. However I am not doing anything with the Zxing library at the times I get these messages. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to detect that Force Stop invoked on the application
Hi All, Is there any way for an application to detect that its being stopped by following action performed User. User going to Settings-Applications-Manage Applications-My App- Force Stop? Is there any Callback method when application is Stopped by user as mentioned above? Thanks Rk -- 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 to detect that Force Stop invoked on the application
Hi All, Is there any way for an application to detect that its being stopped by following action performed User. User going to Settings-Applications-Manage Applications-My App- Force Stop? Is there any Callback method when application is Stopped by user as mentioned above? Thanks Rk -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to detect that Force Stop invoked on the application
i too facing the same problem please help me on this. On Mon, Feb 6, 2012 at 6:04 PM, rk ramakrishnar...@gmail.com wrote: Hi All, Is there any way for an application to detect that its being stopped by following action performed User. User going to Settings-Applications-Manage Applications-My App- Force Stop? Is there any Callback method when application is Stopped by user as mentioned above? Thanks Rk -- 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 -- Suresh.K -- 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] ContentProvider Binder Thread
Content provider create many binder thread. I had in AndroidManifest separate process for this ContentProvider because i need to be shure that this component have some bug. I have sometimes 16 binder threads. 1 5906wait820 40 main *2 5907vmwait 449 16 HeapWorker *3 5908vmwait 0 1 Signal Catcher *4 5910running 62 44 JDWP 5 5911native 0 0 Binder Thread #1 6 5912native 0 0 Binder Thread #2 7 5967native 0 0 Binder Thread #3 8 5968native 0 0 Binder Thread #4 9 5975native 0 0 Binder Thread #5 Could be unclosed cursor? Allocation from thread: 394 8 java.lang.Object5 android.database.sqlite.SQLiteClosable init 377 8 java.lang.Object5 android.database.sqlite.SQLiteClosable init 369 8 java.lang.Object5 android.database.AbstractCursor init 355 8 java.lang.Object5 android.database.ContentObserverinit 348 8 java.lang.Object5 android.database.ContentObserverinit 149 8 java.lang.Object5 android.database.sqlite.SQLiteClosable init 132 8 java.lang.Object5 android.database.sqlite.SQLiteClosable init 124 8 java.lang.Object5 android.database.AbstractCursor init 106 8 java.lang.Object5 android.database.ContentObserverinit 99 8 java.lang.Object5 android.database.ContentObserverinit 396 12 android.database.IContentObserver$Stub$Proxy5 android.database.IContentObserver$Stub asInterface 373 12 android.database.DataSetObservable 5 android.database.AbstractCursor init 371 12 android.database.ContentObservable 5 android.database.AbstractCursor init 151 12 android.database.IContentObserver$Stub$Proxy5 android.database.IContentObserver$Stub asInterface 128 12 android.database.DataSetObservable 5 android.database.AbstractCursor init 126 12 android.database.ContentObservable 5 android.database.AbstractCursor init 398 16 android.os.BinderProxy 5 android.os.Parcel readStrongBinder 393 16 android.os.BinderProxy 5 android.os.Parcel readStrongBinder 389 16 android.net.Uri$PathSegmentsBuilder 5 android.net.Uri$PathPart getPathSegments 384 16 android.net.Uri$Part5 android.net.Uri$Partfrom 153 16 android.os.BinderProxy 5 android.os.Parcel readStrongBinder 148 16 android.os.BinderProxy 5 android.os.Parcel readStrongBinder 144 16 android.net.Uri$PathSegmentsBuilder 5 android.net.Uri$PathPart getPathSegments 139 16 android.net.Uri$Part5 android.net.Uri$Partfrom 409 20 char[] 5 android.os.Parcel readString 390 20 android.net.Uri$PathPart5 android.net.Uri$PathPartfrom 386 20 android.net.Uri$PathSegments5 android.net.Uri $PathSegmentsBuilderbuild 383 20 java.lang.StringBuilder 5 android.database.sqlite.SQLiteQueryBuilder buildQueryString 372 20 java.util.ArrayList 5 android.database.Observable init 370 20 java.util.ArrayList 5 android.database.Observable init 365 20 char[] 5 android.database.sqlite.SQLiteQuery native_column_name 168 20 char[] 5 android.os.Parcel readString 145 20 android.net.Uri$PathPart5 android.net.Uri$PathPartfrom 141 20 android.net.Uri$PathSegments5 android.net.Uri $PathSegmentsBuilderbuild 138 20 java.lang.StringBuilder 5 android.database.sqlite.SQLiteQueryBuilder buildQueryString 127 20 java.util.ArrayList 5 android.database.Observable init 125 20 java.util.ArrayList 5 android.database.Observable init 120 20 char[] 5 android.database.sqlite.SQLiteQuery native_column_name 405 22 char[] 5 android.os.Parcel readString 361 22 char[] 5 android.database.sqlite.SQLiteQuery native_column_name 160 22 char[] 5 android.os.Parcel readString 112 22 char[] 5 android.database.sqlite.SQLiteQuery native_column_name 413 24 java.lang.String5 android.os.Parcel readString 410 24 java.lang.String5 android.os.Parcel readString 408 24 java.lang.String5 android.os.Parcel readString 407 24 char[] 5 android.os.Parcel readString 406 24 java.lang.String5 android.os.Parcel readString 404 24
[android-developers] Re: ACTION_POWER_CONNECTED broadcast receiver not recognize by ICS
public boolean isCharging(){ Intent iintent = mContext.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); int status = iintent.getIntExtra(BatteryManager.EXTRA_STATUS, -1); return status == BatteryManager.BATTERY_STATUS_CHARGING; } On 8. Jan, 14:32 h., cl cllam2...@gmail.com wrote: I wanted to detect when the phone is pluged into the charger. I created a BroadcastReceiver as below public class PowerReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_POWER_CONNECTED)) { Log.d(DEBUG, Power connected...); } } } with following in the manifest receiver android:name=.PowerReceiver intent-filter action android:name=android.intent.action.ACTION_POWER_CONNECTED / /intent-filter /receiver Everything work as expected on 2.2 (emulator and phone), but on ICS (emulator 4.0.3 and phone 4.0.1), the LogCat show 01-08 21:02:02.090: W/PowerUI(143): unknown intent: Intent { act=android.intent.action.ACTION_POWER_CONNECTED flg=0x1010 } Anybody know reason, and a solution. 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: OSM integration
Seriously, do some goddamn googling. It took me all of three clicks to get from a google search for openstreetmap android to an open source project with OSM integration ( https://github.com/gkfabs/AndRoad/). If it's urgent for a project and you a) don't know where to start and b) aren't willing to research it yourself then you need to learn to set more realistic targets or push back on requirements from others that you are not able to deal with. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Help!!!
I have HTC but i think there is now way how to literally brick phone. You just dont have right SWare utility,FWare version and amount of information about your phone. Just keep looking. Some where. There are many modes how to turn on the phone and how to put in OSystem. Sorry for this but i cant help you. On 5. Feb, 22:26 h., PIERRE GALOIS GUEVARA DONGO pgueva...@upao.edu.pe wrote: I need help with my Xperia X8, because try to unlock the bootloader and now does not run, as if dead, I connect to the PC and does not work, is literally dead, I can do something to get my phone? I need help please -- 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] 2 Android WebViews on top of each other on OnTouch event
I have 2 webviews in a relative layout. I'm doing so because I need an HTML on a fixed position while HTML list beneath it is scrolling (basically a header that floats on a scrolling list). I want both webviews be in the same size so my HTML developer can control the size of the header dynamically. For this purpose, I need the OnTouch event to propagate between the 2 WebViews. but in my debugging, it doesn't. If I use View's instead - it propagates. Anybody knows of the WebView not propagating the OnTouch events to lower hierarchy views? -- 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] Overlay Images
I have 4 ImageViews one stacked on top of the other all the same size, each ImageView has it's own associated canvas that I can access. Thus allowing me to view layers of a single image on screen. I now wish to save this screen image to a file. How can I merge the canvases into one image? 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: Detect Sent Message!
Yes, but that intent action is not documented, so it may be outdated... I also read this http://stackoverflow.com/questions/5808577/android-listen-outgoing-sms-or-sent-box but that doesn't work, It works if I use content://sms/ but it detects received and sent messages, I just want to detect the sent ones... I can't find the right way of doing this... On 6 feb, 04:31, Kristopher Micinski krismicin...@gmail.com wrote: http://stackoverflow.com/questions/4117701/android-sms-broadcast-rece... ?? kris On Sun, Feb 5, 2012 at 9:32 PM, Pedrito pedrohe...@gmail.com wrote: How can I do to detect a sent message?? I've been trying to do this but it just doesn't work... ContentResolver contentResolver = context.getContentResolver(); contentResolver.registerContentObserver(Uri.parse(content://sms/ out),true, yourObserver); Any idea?? It's drivingme crazy!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
On Sun, Feb 5, 2012 at 10:52 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Well, the unbind() call that threw the Service not registered was originally bound to from a WakefulIntentService, not an Activity. Oh, I'd never bind to a service from any IntentService, regardless of what Context you actually use for the bindService() call. Binding is asynchronous, and IntentServices do not get along with asynchronous operations, since the IntentService shuts down after onHandleIntent() ends. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Overlay Images
Draw each of the bitmaps on one canvas in the ascending order from deepest to topmost. On 6 February 2012 13:18, New Developer secur...@isscp.com wrote: I have 4 ImageViews one stacked on top of the other all the same size, each ImageView has it's own associated canvas that I can access. Thus allowing me to view layers of a single image on screen. I now wish to save this screen image to a file. How can I merge the canvases into one image? 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 -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Secure Element
Any comments...plz respond if you are reading this mail ! rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Wed, Feb 1, 2012 at 1:21 PM, p z ymdo...@gmail.com wrote: I think maybe you can. and plesae share your rom when you finished.thx. On 2月1日, 上午8时15分, malls masubha...@gmail.com wrote: Fernando, I was wondering if I can emulate the card in my application and send it to the terminal. regards malls -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Should I use Action bars
I would head for action bars -- it is better to aim for the future. Using something like ActionBarSherlock lets you keep pace with the newer UI patterns while still working on older devices. On Fri, Feb 3, 2012 at 8:38 PM, Drun m.p.ocon...@gmail.com wrote: I seen that google is trying to get developers to use action bars instead of menus, but also know that action bars were not put in till 3.x, and I am targeting 2.1 as the min SDK. I have seen that there are a few libraries out there to try to imitate action bars for as far back as 1.6. My question is this, is it worth it to force action bars to older version of android, or is it ok just to stay with menues, and use that in the code. -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Overlay Images
Thanks I don't have access to the bitmaps (I don't think) I have access to the ImageView and the Canvas associated with the ImageView Thanks again On 02/06/2012 08:37 AM, Daniel Drozdzewski wrote: Draw each of the bitmaps on one canvas in the ascending order from deepest to topmost. On 6 February 2012 13:18, New Developersecur...@isscp.com wrote: I have 4 ImageViews one stacked on top of the other all the same size, each ImageView has it's own associated canvas that I can access. Thus allowing me to view layers of a single image on screen. I now wish to save this screen image to a file. How can I merge the canvases into one image? 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: NFC Secure Element
Hi Nemik, You wrote : *Yea, that's right. All it does currently is read; at least via the Java API. If you look at the kernel source though, a bunch of ifdefs which allow for emulation were all disabled. So full compliance with the NFC standard will have to wait for a future kernel release. * waht are these JAVA APIs ?Can we use them for reading NFC Secure Element - Mifare 4k? Rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Mon, Feb 6, 2012 at 7:08 PM, s.rawat imsaurabhra...@gmail.com wrote: Any comments...plz respond if you are reading this mail ! rgds, Saurabh ..pain is temporary.quitting lasts forever.. On Wed, Feb 1, 2012 at 1:21 PM, p z ymdo...@gmail.com wrote: I think maybe you can. and plesae share your rom when you finished.thx. On 2月1日, 上午8时15分, malls masubha...@gmail.com wrote: Fernando, I was wondering if I can emulate the card in my application and send it to the terminal. regards malls -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Get broadcast when media is unmounting. Before Media Unmounted
No, Android cannot predict when the user is about to eject/unmount the device. It is hard to save a file when the user has the SD-card in his or her hands :-) The only thing you could do is to save at some other place, e.g. on the internal storage. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Overlay Images
Ok, Create a LayerDrawable object and keep adding to it Drawable objects (LayerDrawable.setDrawableByLayerId (int id, Drawable drawable)) extracted from each of your stacked Views. On 6 February 2012 13:47, New Developer secur...@isscp.com wrote: Thanks I don't have access to the bitmaps (I don't think) I have access to the ImageView and the Canvas associated with the ImageView Thanks again On 02/06/2012 08:37 AM, Daniel Drozdzewski wrote: Draw each of the bitmaps on one canvas in the ascending order from deepest to topmost. On 6 February 2012 13:18, New Developer secur...@isscp.com wrote: I have 4 ImageViews one stacked on top of the other all the same size, each ImageView has it's own associated canvas that I can access. Thus allowing me to view layers of a single image on screen. I now wish to save this screen image to a file. How can I merge the canvases into one image? 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 -- 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 -- Daniel Drozdzewski -- 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 to find amount of data remaining to be uploaded using apache http library
Hi guys, I have written a piece of code in an application that uploads a file to a location, if provided with path of a file. What i am missing is a way to show the percentage of file uploaded. I am using apache's http library for this purpose (found it on the internet). The relevant code is here: final File file = new File(filePathToUpload); final HttpClient client = new DefaultHttpClient(); ... ... String postURL= Constants.BASE_URL; HttpPost post = new HttpPost(postURL); FileBody bin = new FileBody(file); MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart(myFile, bin); post.setEntity(reqEntity); client.execute(post); I need help/suggestions with how do, if i can, get an output stream, if that would help, from the HttpClient and get the number of bytes sent? Is it even possible with httpClient? -- 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] Import javax.xml.* in Android Project
Hello, I must have asked this question a lot of times, but I am still trying to find out a solution. I am using some stub classes, generated from a WSDL and it uses javax.xml.* some packages that are not in Android jar. I created a simple Java Project with those classes and it's working, i have respond from server with data. Trying to make a separate jar that has the packages that are missing is not a good idea, because there are references to other classes and so on. Making a jar of the working Java Project and importing that jar in the android project does not work either. It compiles but at runtime it does not see my class that is the main one from the jar, and it's public. I imported the jar in android project by adding the jar in the build path. I need help, and got nobody to discuss this with. Stuck and I would like a correct path, something... Does anyone have any idea about this? Thank you. -- 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: Import javax.xml.* in Android Project
Hello, the code you are getting generated from the WSDL is obviously designed for desktop Java, not for Android. You will have to find some tool that can generate WSDL stubs for android. I suggest googling for web service android, or something the like, somebody else has probably been there. Importing desktop java classes into android is most certainly not going to work. regards, 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: Should I use Action bars
I've recently fitted my apps that have a menu with action bar. The end result: Running on Gingerbread and earlier, I keep the existing menu structure, no change, but on HC and beyond the apps now sport the ole' menu items in action bar form instead. So I have the cake and eat it too. If you are starting from scratch, I'd recommend you approach it as follows: Develop towards a menu structure as if ActionBar had never happened, with one exception: think which items you'd later want to show in the action bar. You'll need compelling icons for that. When the old school menu is in place, add the relevant tags and hooks to turn the menu items into action bar items when the app runs on HC and later. Depending on how far back you need compatibility, you may have to use reflection to mask away methods introduced with ActionBar that previously didn't exist. That's the part that stinks, especially if you didn't sink you teeth into it before. There's an older blog entry that explains how to do that: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html On Feb 3, 5:38 pm, Drun m.p.ocon...@gmail.com wrote: I seen that google is trying to get developers to use action bars instead of menus, but also know that action bars were not put in till 3.x, and I am targeting 2.1 as the min SDK. I have seen that there are a few libraries out there to try to imitate action bars for as far back as 1.6. My question is this, is it worth it to force action bars to older version of android, or is it ok just to stay with menues, and use that in the code. -- 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: OSM integration
AndRoad is forked off of AndNav. Do some goddam googling (;-), the original project is here: http://code.google.com/p/osmdroid/ On Feb 6, 5:04 am, Oli Wright oli.wri...@gmail.com wrote: Seriously, do some goddamn googling. It took me all of three clicks to get from a google search for openstreetmap android to an open source project with OSM integration (https://github.com/gkfabs/AndRoad/). If it's urgent for a project and you a) don't know where to start and b) aren't willing to research it yourself then you need to learn to set more realistic targets or push back on requirements from others that you are not able to deal with. -- 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] WI-FI Direct Sample Code
I have been trying to compile the WI-FI Direct Sample code in the new SDK and am getting a ton of superclass overide errors, has anyone been able to properly compile the sample code and generate an APK from the SDK? If so I would greatly appreciate it if you could post the apl or contact me directly, 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: Publisher language selection
On Feb 5, 7:33 pm, radadev arava...@gmail.com wrote: I'm an Android developer and I have a publisher account. My publisher page is in Spanish for some reason, and I want to change it back to English. It's not a huge problem because I know Spanish as a second language, but English was my first language, so I'd much rather have it back to that. I can't seem to find the option to do so, though. The Market teams are weird. They should really use your browser setting for language. Try https://market.android.com/publish/Home?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Saving audio to file
Hi everybody! What I'm trying to do is to manipulate a recorded audio file, in this case to reverse it. The temp file (.raw) I create during the recording works fine, but the reversed one doesn't. Pretty sure it's an easy task, I just can't find where the mistake would be. Hope you can help.. Here's the code: byte data[] = new byte[bufferSize]; byte rev_data[] = new byte[bufferSize]; String filename = getTempFilename(); String rev_filename= getTempRevFilename(); FileOutputStream os = null; FileOutputStream os_rev = null; try { os = new FileOutputStream(filename); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { os_rev = new FileOutputStream(rev_filename); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } int read = 0; if(null != os){ while(isRecording){ read = recorder.read(data, 0, bufferSize); if(AudioRecord.ERROR_INVALID_OPERATION != read){ try { os.write(data); } catch (IOException e) { e.printStackTrace(); } } } for(int i=data.length-1, j=0;i=0;i--,j++){ rev_data[j]=data[i]; } try{ os_rev.write(rev_data); } catch (IOException e) { e.printStackTrace(); } Thank you 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
Re: [android-developers] Re: Detect Sent Message!
On Mon, Feb 6, 2012 at 8:26 AM, Pedrito pedrohe...@gmail.com wrote: Yes, but that intent action is not documented, so it may be outdated... I also read this http://stackoverflow.com/questions/5808577/android-listen-outgoing-sms-or-sent-box but that doesn't work, It works if I use content://sms/ but it detects received and sent messages, I just want to detect the sent ones... I can't find the right way of doing this... I believe it's not documented because they don't really want you doing this... content://sms/sent doesn't work? kris -- 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] Odd image issue on API 7 EMulators
During testing of an App for different API's on various emulators I came across an unusual issue. On an HTCLegend emulator, API 7, a particular image would not display, I get no error, simply nothing shown. Works OK on everything else. I had noted that the image, which was a PNG file, was alphabetically the first file in its directory (drawable-mdpi), I added a new dummy image that alphabetically precedes the problem image and the problem has gone away! Clearly a very unsatisfactory solution and I wondered if anyone had any insight into this. The problem and solution is repeatable by the way and also presentst itself on other API 7 emulators. Regards Roy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to detect that Force Stop invoked on the application
On Mon, Feb 6, 2012 at 7:34 AM, rk ramakrishnar...@gmail.com wrote: Hi All, Is there any way for an application to detect that its being stopped by following action performed User. User going to Settings-Applications-Manage Applications-My App- Force Stop? Is there any Callback method when application is Stopped by user as mentioned above? Thanks Rk Why? I don't believe there is, but what is the issue you're facing, like you want to save something from your app when this happens? kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [ICS]: CTS test failed: nulljava.lang.VerifyError in opcodes of the android.core.vm-tests
[android-platform] or perhaps [android-porting] might be more appropriate for this, I doubt you will get too many answers here. kris On Mon, Feb 6, 2012 at 3:53 AM, sawyer jim sawyer...@gmail.com wrote: Hello Everyone: When I did CTS test against the package android.core.vm-tests, I got many failures said nulljava.lang.VerifyError in the opcodes. I posted a detail failure log below: nulljava.lang.VerifyError: dot/junit/opcodes/shr_int_2addr/d/ T_shr_int_2addr_6 at dot.junit.opcodes.shr_int_2addr.Main_testN6.main(Main_testN6.java:7) at dalvik.system.NativeStart.main(Native Method) return code: 0 nulljava.lang.RuntimeException: java.lang.VerifyError: dot/junit/ opcodes/shr_int_2addr/d/T_shr_int_2addr_6 at dot.junit.opcodes.shr_int_2addr.Main_testN6.main(Main_testN6.java:7) at dalvik.system.NativeStart.main(Native Method) return code: 0 at dot.junit.DeviceUtil.digestCommand(DeviceUtil.java:49) at dot.junit.DeviceUtil.adbExec(DeviceUtil.java:115) at dot.junit.opcodes.shr_int_2addr.JUnit_Test_shr_int_2addr.testN6(JUnit_Test_shr_int_2addr.java: 36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at com.android.cts.HostUnitTestRunner.runTest(HostUnitTestRunner.java: 68) at com.android.cts.HostSideOnlyTest $HostSideTestRunner.run(HostSideOnlyTest.java:53) The log came from the the test case dot.junit.opcodes.shr_int_2addr.JUnit_Test_shr_int_2addr --testN6 in the test package android.core.vm-tests. Had anyone ever encountered this issue? How can I solve this issue? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to detect that Force Stop invoked on the application
On Mon, Feb 6, 2012 at 7:34 AM, rk ramakrishnar...@gmail.com wrote: Is there any way for an application to detect that its being stopped by following action performed User. User going to Settings-Applications-Manage Applications-My App- Force Stop? No. Is there any Callback method when application is Stopped by user as mentioned above? No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: OSM integration
Yes. One more click on from the other link, but then I wasn't actively searching for how to implement OSM. My point was that the OP should have been. -- 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] Highlighting items in Listview
I have an Activity that extends ListActivity where I want items selected in the list to remain highlighted in a chosen colour. For test purposes I've tried the approach shown below but I can only get items to flash the required colour when selected and not stay highlighted. The list is bound to an ArrayAdapter and there is no code concerned with highlighting. The XML layout for each list item is: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=top android:background=@drawable/list_item_background TextView android:id=@+id/list_item android:layout_width=fill_parent android:layout_height=wrap_content android:padding=10dip android:textSize=24sp / /LinearLayout A selector is defined in res/drawable/list_item_background.xml: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:drawable=@color/white/ item android:state_pressed=true android:drawable=@color/black/ item android:state_selected=true android:drawable=@color/green/ item android:drawable=@color/red/ /selector Colors are given in res/colors.xml: ?xml version=1.0 encoding=utf-8? resources xmlns:android=http://schemas.android.com/apk/res/android; color name=background#3500/color color name=blue#ffff/color color name=black#ff00/color color name=green#ff00ff00/color color name=red#/color color name=white#/color /resources The colours I've chosen are awful but they are only being used for testing at this stage. Can anyone see what's going wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] inherit Listactivity for listview
On Sun, Feb 5, 2012 at 8:21 AM, nilkumar nilku...@gmail.com wrote: And I want to inherit ListMobileActivity from DropboxSample. Maybe explain what you're trying to do and you'll get some suggestions on how to do it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Reading files in a background thread
openFileInput() is a method on Context (e.g., Activity), not AsyncTask. On Sun, Feb 5, 2012 at 8:32 AM, Dave D admiral.kathl...@gmail.com wrote: I have a class that reads from an input file fine but when I add it to an Async thread it errors on openFileInput with the method being undefined even though I have imported exactly the same classes Am I not allowed to use this method in the background? code snippet is: public class buildcustomer extends AsyncTaskTextView ,Integer ,String { @Override protected String doInBackground(TextView... tv) { try { FileInputStream inFile = openFileInput(customer.csv); InputStreamReader isr = new InputStreamReader(inFile); BufferedReader in = new BufferedReader(isr); while(!end){ String l_line = in.readLine(); -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Battery manager : temperature and voltage
On Mon, Feb 6, 2012 at 12:37 AM, Put_tiMe putt...@gmail.com wrote: Another question. I read it in other posts, but just wanted to clarify: A normal app cannot get details about which app is using how much battery, right? Correct, unfortunately. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Loading and Saving Settings to a file
Hi, I'm not sure what I'm doing wrong here: I have an Override on onPause to save settings to a file and an Override on onResume, and onCreate to load them back up from the file. The onPause method looks like this: @Override public void onPause() { super.onPause(); // save configuration settings if (cfg != null) { byte[] settingsBuffer = cfg.toSerializedBytes(getBaseContext()); Log.v(LogName.onPause, LogName.onPause + : settings Buffer : + settingsBuffer.length); try { FileOutputStream fos = openFileOutput(settingsFile, getBaseContext().MODE_WORLD_READABLE); fos.write(settingsBuffer); fos.getFD().sync(); fos.close(); } catch (FileNotFoundException e) { Log.e(LogName.onPause, LogName.onPause + : File not found. + e.getMessage()); } catch (IOException e) { Log.e(LogName.onPause, LogName.onPause + : IO Error. + e.getMessage()); } } } The load method looks like this: public void loadSettings() { File inputFile = new File(settingsFile); if (inputFile.exists()) { byte[] settingsBuffer = new byte[(int) (inputFile.length())]; try { FileInputStream fis = openFileInput(settingsFile); fis.read(settingsBuffer); cfg = RXConfigurationSettings.fromSerializedBytes(settingsBuffer); if (cfg != null) { cfg.populateTable((TableLayout) findViewById(R.id.tableLayoutConfigurationSettingsTable), getBaseContext()); } fis.close(); } catch (FileNotFoundException e) { Log.e(LogName.onResume, LogName.onResume + : File not found. + e.getMessage()); } catch (IOException e) { Log.e(LogName.onResume, LogName.onResume + : IO Error. + e.getMessage()); } } else { Log.e(LogName.className, Input FILE not found.); } } The loadSettings is called from onCreate and onResume but I seem to always hit the else condition and logcat always shows Input FILE not found.. Can anyone provide insight into this problem? Thanks -jm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] License for open source Android project
On Sun, Feb 5, 2012 at 11:18 PM, Peter Liu tinyee...@gmail.com wrote: Any suggestion on a suitable license or how we can create a new license out of the existing ones? This is offtopic for this list. You can try a google search to compare different licenses and read what each one offers to find one that suits your needs. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] License for open source Android project
On Mon, Feb 6, 2012 at 12:18 AM, Peter Liu tinyee...@gmail.com wrote: Anyone know if there is an open source license that prohibits people from republishing an app? Those are mutually exclusive concepts. I am the author of an open source library called AndroidQuery, and we have a demo app that has many users using it: https://market.android.com/details?id=com.androidquery.simplefeed We want to open source this app, but don't want people to grab the source code and dump it to the Android market with Ads. I understand there's no way to actually stop people from doing that, but we want to at least state that in the license: that you can't republish it. That is not possible with an open source license, by definition. Any suggestion on a suitable license or how we can create a new license out of the existing ones? Consult with qualified legal counsel. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading and Saving Settings to a file
On Mon, Feb 6, 2012 at 11:15 AM, John-Marc Desmarais j...@ieee.org wrote: I have an Override on onPause to save settings to a file Why not just use SharedPreferences? Can anyone provide insight into this problem? When you check the file existing, you use the raw file name, not relative to your data directory. Of course, that does not exist, as the file is relative to your data directory. Your subsequent call to openFileInput would likely succeed. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading and Saving Settings to a file
Hi, Thank you for your reply. I have a couple follow up comments/questions related to the responses. I have included these inline. On Mon, Feb 6, 2012 at 12:25 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:15 AM, John-Marc Desmarais j...@ieee.org wrote: I have an Override on onPause to save settings to a file Why not just use SharedPreferences? I felt it would be quicker to serialize my class into a byte stream than saving each configuration parameter separately and I couldn't find the ability to store a byte stream using SharedPreferences. Can anyone provide insight into this problem? When you check the file existing, you use the raw file name, not relative to your data directory. Of course, that does not exist, as the file is relative to your data directory. Your subsequent call to openFileInput would likely succeed. How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? i.e. How would I figure out in advance the size of the byte buffer I need to receive my file? Or, what path can I append to my open file to allow it to find the settingsFile, or is it not that easy? -jm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading and Saving Settings to a file
On Mon, Feb 6, 2012 at 11:36 AM, John-Marc Desmarais j...@ieee.org wrote: How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? You get the stream of data as the returned value of openFileInput. Then you can then read that into a byte array of the input's length. So your settings buffer would be initialized AFTER you open the input stream, using the stream's length. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Application Database Maintainence
On Sat, Feb 4, 2012 at 6:25 AM, ankit.verma ankitverma...@gmail.com wrote: 1) I want to build an Android app with a database table of 1000-2000 records.Please can anyone guide how this can be done, How I can build table with all data inserted. http://bit.ly/w9G8XT 2) Later if I want to update my database table with 500 more records what is the procedure to do it. Please note the insertion/Updation of data is not to be done programtically by Sqllite in the code rather by the creator of the app himself See #1. Then update your app. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Advance Graphics
I somewhat understand Android and have compelted a few decent apps. Can somone point me too a good guide to understanding how to make some advance graphics for a Android app. From my understanding Android uses Open GL to perform advance gaming graphics? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] voice input for people with tremors (or large fingers)
On Sat, Feb 4, 2012 at 1:04 PM, James Hadley hop1ju...@gmail.com wrote: Suggestions? We'd happily give an award to anyone that makes a keyboard to fix this! Contact your favorite alternative keyboard developer and tell this to them. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading and Saving Settings to a file
On Mon, Feb 6, 2012 at 12:56 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:36 AM, John-Marc Desmarais j...@ieee.org wrote: How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? You get the stream of data as the returned value of openFileInput. Then you can then read that into a byte array of the input's length. So your settings buffer would be initialized AFTER you open the input stream, using the stream's length. Hi Based on your first response I have tried the following: public void onPause() { super.onPause(); // save configuration settings SharedPreferences.Editor settingsEditor = getSharedPreferences(settingsFile, 0).edit(); settingsEditor.putString(RXConfigurationSettings, Base64.encodeToString(cfg.toSerializedBytes(getBaseContext()), Base64.DEFAULT)); } public void loadSettings() { SharedPreferences settings = getSharedPreferences(settingsFile, 0); if (settings.contains(RXConfiguration)) { cfg = RXConfigurationSettings.fromSerializedBytes(Base64.decode(settings.getString(RXConfigurationSettings, ), Base64.DEFAULT)); } else { Log.e(LogName.className, Input settings not found.); } } And am now getting Input settings not found when closing and reopening my application. -jm -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Source not found/ArrayAdapter
On Sat, Feb 4, 2012 at 2:57 PM, Ozone Apps ozoneforandr...@gmail.comwrote: Any ideas? Debug your app. Explain throwing a Serouce Not Found error. Post a logcat. Show some code. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Calling Activity based on Content wrapped in a Activity
On Sat, Feb 4, 2012 at 11:35 PM, Abhishek Singh singh.abhi4...@gmail.comwrote: now i want 1 of those activity to be started only when the text content starts with '@@'and other one for any general text/plain should launch it. how can i do this.??? That's probably a little too specific for Intent Filters. You could have you generic activity that response to anything that first checks the data on getting the Intent. If it starts with @@, it starts the specific activity and closes itself, otherwise continues to process. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] CountDownTimer
On Mon, Feb 6, 2012 at 3:34 AM, Omollo Ateng omollo.at...@gmail.com wrote: hey all, i want to send an sms after 1 minute, please may you help me with this code please using count down timer What do you have working so far that you need help with? You have *something * so far, right? I can't imagine you're just posting here and expecting someone to write your code for you based on some vague requirement, right? * RIGHT*? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] does Android market validate unreleased versions?
2012/2/6 Gabriel Simões gsim...@gmail.com I tried running a beta testing campaign during the weekend but all users complained that they couldn't get a valid license. Doors Android market validate unreleased versions of paid apps? You should clarify. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] 2 Android WebViews on top of each other on OnTouch event
On Mon, Feb 6, 2012 at 7:09 AM, Ori Harel ori.ha...@gmail.com wrote: I have 2 webviews in a relative layout. I'm doing so because I need an HTML on a fixed position while HTML list beneath it is scrolling (basically a header that floats on a scrolling list). You can't do this in one HTML file? With DIVS or something? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get broadcast when media is unmounting. Before Media Unmounted
On Sun, Feb 5, 2012 at 11:22 PM, Vivek Khandelwal vivek.b.khandel...@gmail.com wrote: I need to received intent when the media is unmounting. So that I can save the file in sdcard. Why do you have to wait for the media unmounting? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Loading and Saving Settings to a file
On Mon, Feb 6, 2012 at 12:04 PM, John-Marc Desmarais j...@ieee.org wrote: And am now getting Input settings not found when closing and reopening my application. Read the class overview: http://developer.android.com/reference/android/content/SharedPreferences.Editor.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to call a method from one tab to another?
i have a tabActivity that hold 3 tabs. from one tab i want to open another tab and run a method that refresh the data. i use public void switchTabInActivity(int indexTabToSwitchTo) { MyTabsActivity ParentActivity; ParentActivity = (MyTabsActivity) this.getParent(); ParentActivity.switchTab(indexTabToSwitchTo); } to open the tab but i cant' call the method. any 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
Re: [android-developers] Loading and Saving Settings to a file
Yup. commit() still works as advertised. Thank you, -jm On Mon, Feb 6, 2012 at 1:19 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 12:04 PM, John-Marc Desmarais j...@ieee.org wrote: And am now getting Input settings not found when closing and reopening my application. Read the class overview: http://developer.android.com/reference/android/content/SharedPreferences.Editor.html - TreKing - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Odd image issue on API 7 EMulators
Also noticed that I get the same effect on a physical HTC Wildfire device at 2.2.1. Roy -- 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] FYI ADT r16 hangs running AVD 2.2 on relaunch or debug
This is an update to the problem I encountered and posted on earlier. The fix is scheduled for r17. There are 3 hang cases which apply to AVD 2.2: 1: Relaunching a changed application which hangs at 27% progress. 2: Launching the application in the debugger. Both cases hang when the launch logcat on error is true and logcat level is verbose. 3: Launching the DDMS perspective The workaround is to uncheck launch logcat at window-preferences-android-LogCat The problem report is here: http://code.google.com/p/android/issues/detail?id=24926 -- 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] Preference text item height
Hi guys, I have created an app that also contains a preference activity, that uses the xml/preferences.xml file. Apart from the regular controls, I also want to include some explanatory text, that isn't part of any of the control summaries. I haven't found any good way of doing this, so I decided to create my own preference control. This uses a layout fragment, that looks like this [CODE] ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=_this_should_be_a_namespace_but_no_links_allowd_http_schemas.android.com_apk_res_android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical TextView android:id=@+id/textView android:layout_width=fill_parent android:layout_marginLeft=@dimen/margin_l android:layout_marginRight=@dimen/margin_l android:text=@string/long_explanation android:layout_height=wrap_content android:gravity=center/TextView /LinearLayout [/CODE] I have then created a java class that extends [B]android.preference.Preference[/B] and in the contructors set: [CODE]this.setWidgetLayoutResource(R.layout.preferences_textview_fragment); [/CODE] This works fine... only the text is too long to fit in the preference item. The item does not grow with the amount of text I write. It stays fixed. I then tried to override the getView() method like this, but that didn't make any difference. [CODE]@Override public View getView(final View convertView, final ViewGroup parent) { final View v = super.getView(convertView, parent); final int height = AbsListView.LayoutParams.WRAP_CONTENT; final int width = AbsListView.LayoutParams.FILL_PARENT; final AbsListView.LayoutParams params = new AbsListView.LayoutParams(height, width); v.setLayoutParams(params ); return v; }[/CODE] Can anyone help me out here and tell me what I am doing wrong... apart from wanting to put legal text in the preference section? All help is appreciated! Jay -- 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] no warnings, no errors, and yet, no apk after build
I've already read the workaround, using Run As--Android Application, but why doesn't the normal build process, which used to generate an apk, do so now? Everything looks fine---no warnings, no errors, both Problems and Console are blank after a Build or after a Clean/Build. Is there a setting in Elipse (Helios) that I might have hosed? Or is there something somewhere else that might have been messed up by the SDK (Revision 16) upgrade? Thanks, --jim -- 73 DE N5IAL (/4)| There it was, right in the title bar: spooky1...@gmail.com| Microsoft Operations POS. Running FreeBSD 7.0 | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.56226N 86.52008W | mis-parsed. (alt.sysadmin.recovery) Android Apps Listing at http://www.jstrack.org/barcodes.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] VpnService and simple packet capture mechanism?
I'm considering the possibility of using the new android (4.0) VpnService interface to implement a non-root-required packet capture utility. Would it be possible to implement a VpnService such that each packet it received from the device could be written to a file for subsequent analysis and then simply sent on to the active network device for proper delivery? A normal VPN implementation would have a finite number of connections to a vpn server to which all packets should be written. In my case, I'd just want to send the packets along without the server to talk to. Is this feasible or would OS permissions prevent writing the packet to the active network? If it is possible, what APIs could I use to write to the network device(s)? Advice appreciated. -Mike Ellery -- 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] Eclipse tools don't exist!
I can't get the Eclipse integration to work because the link 404's! http://dl-ssl.google.com/android/eclipse/ Please fix it ASAP Googlers! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse tools don't exist!
This link is only meant to be used inside Eclipse to install new plugins. The complete explanation on how to proceed is available at http://developer.android.com/sdk/eclipse-adt.html#installing On Mon, Feb 6, 2012 at 2:51 PM, Kieran kieran.flem...@gmail.com wrote: I can't get the Eclipse integration to work because the link 404's! http://dl-ssl.google.com/android/eclipse/ Please fix it ASAP Googlers! -- 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 -- Romain Guy Android framework engineer romain...@android.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: License for open source Android project
Yeah, that's not open source. Check out something like the Microsoft Reference Source License. -- 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: does Android market validate unreleased versions?
I have a new version of my app that I´d like to send to beta testers before publishing this. For this test I´d like to have users to use their own license since I ´ve been receiving complains about issues with license checking that I don´t get on my devices (using the dashboard license authorization system). The problem is: from the authorization system everything works fine: tried on 3 different devices and all the registered users were able to validate their license. On the other side, all the beta testers that received the same app are complaining that the validation is always returning a negative answer; This way, I don´t know if my app has a bug, if the license code has a bug that makes it work only with the licensed answer from the dashboard authorization or if android market doesn´t validate licenses for app versions higher than the version published. The last thing I´m thinking of is that I´ve changed my development environment but I´m keep the same passwords and the same license key, so I shouldn´t have problems with this. Any info on what is considered in the validation process? On 6 fev, 16:13, TreKing treking...@gmail.com wrote: 2012/2/6 Gabriel Simões gsim...@gmail.com I tried running a beta testing campaign during the weekend but all users complained that they couldn't get a valid license. Doors Android market validate unreleased versions of paid apps? You should clarify. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Eclipse tools don't exist!
Thanks Romain! After a bit of Wiresharking, playing around and talking to the proxy admin we worked out that the entry for a SOCKS proxy had to be cleared in the Eclipse settings. Eclipse always tries to use a SOCKS proxy if there's an entry and doesn't fall back to the HTTP or HTTPS proxy if it can't connect. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] no warnings, no errors, and yet, no apk after build
On Feb 7, 2012, at 12:22 AM, Jim Graham wrote: I've already read the workaround, using Run As--Android Application, but why doesn't the normal build process, which used to generate an apk, do so now? There's a build flag Skip packaging and dexing until export or launch in Eclipse Android/Build settings (at least on SDK I'm using). I would expect it's checked by default for speed reasons and unchecking it seems to rebuild .apk constantly. -- H -- 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: Publisher language selection
That does seem to be a workaround for the time being, but it's no permanent fix. Thanks for the suggestion. On Feb 6, 10:06 am, Peter Sinnott psinn...@gmail.com wrote: On Feb 5, 7:33 pm, radadev arava...@gmail.com wrote: I'm an Android developer and I have a publisher account. My publisher page is in Spanish for some reason, and I want to change it back to English. It's not a huge problem because I know Spanish as a second language, but English was my first language, so I'd much rather have it back to that. I can't seem to find the option to do so, though. The Market teams are weird. They should really use your browser setting for language. Try https://market.android.com/publish/Home?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 86 Messages in 53 Topics
-- 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] Match_parent after parent has been measured?
I have a RelativeLayout that holds a bunch of views. I'd like to add a semi-transparent overlay on top of it (for a shadowed effect). Currently, my layout looks something like: RelativeLayout android:layout_width=wrap_content android:layout_width=wrap_content !-- lots of stuff -- View android:id=@+id/overlay android:background=# android:layout_width=match_parent android:layout_width=match_parent / /RelativeLayout The problem is this results in the RelativeLayout getting blown up to fill the entire screen. What I would like is for the overlay View to get taken out of the measurement equation, and then added back on top after measurement has been completed so it sits snug on top of the RelativeLayout. My questions are: 1) How do I go about doing this? 2) Am I approaching this problem incorrectly? Thanks for any help! Randy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] no warnings, no errors, and yet, no apk after build
Try to replace the eclipse workspace. On Tue, Feb 7, 2012 at 6:22 AM, Jim Graham spooky1...@gmail.com wrote: I've already read the workaround, using Run As--Android Application, but why doesn't the normal build process, which used to generate an apk, do so now? Everything looks fine---no warnings, no errors, both Problems and Console are blank after a Build or after a Clean/Build. Is there a setting in Elipse (Helios) that I might have hosed? Or is there something somewhere else that might have been messed up by the SDK (Revision 16) upgrade? Thanks, --jim -- 73 DE N5IAL (/4)| There it was, right in the title bar: spooky1...@gmail.com| Microsoft Operations POS. Running FreeBSD 7.0 | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.56226N 86.52008W | mis-parsed. (alt.sysadmin.recovery) Android Apps Listing at http://www.jstrack.org/barcodes.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] no warnings, no errors, and yet, no apk after build
I am not sure this will work. On Tue, Feb 7, 2012 at 9:06 AM, ji fei ufo22940...@gmail.com wrote: Try to replace the eclipse workspace. On Tue, Feb 7, 2012 at 6:22 AM, Jim Graham spooky1...@gmail.com wrote: I've already read the workaround, using Run As--Android Application, but why doesn't the normal build process, which used to generate an apk, do so now? Everything looks fine---no warnings, no errors, both Problems and Console are blank after a Build or after a Clean/Build. Is there a setting in Elipse (Helios) that I might have hosed? Or is there something somewhere else that might have been messed up by the SDK (Revision 16) upgrade? Thanks, --jim -- 73 DE N5IAL (/4)| There it was, right in the title bar: spooky1...@gmail.com| Microsoft Operations POS. Running FreeBSD 7.0 | ICBM / Hurricane: | Never before has a TLA been so appropriately 30.56226N 86.52008W | mis-parsed. (alt.sysadmin.recovery) Android Apps Listing at http://www.jstrack.org/barcodes.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
Ok, but how should I handle calling a bindable service from my IntentService? This is the LVL library, so it's not under my control to make it synchronous. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
Let me extend this? How is binding to a service from an Activity differs from an IntentService? I mean an Activity can be finished() at any time and thus go away also? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
Let me expand on this comment: How is binding to a service from an Activity differs from an IntentService? I mean an Activity can be finished() at any time and thus go away also? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
The big difference between the application context and an activity context or service context is lifecycle. The activity context is valid until the activity's onDestroy(); service until the service's onDestroy(); and Application is never destroyed. If you have bound to a service, and the context you used for that is destroyed, then the framework will clean up that binding (printing a warning message to the log about it being leaked). So if you later try to unbind, the context is already cleaned up, so you crash because the binding doesn't exist. This difference is the main thing driving you to decide whether to use the application context or the activity/service context: if the thing you are doing is supposed to be in... well... the context of the activity/service, then that is the context you should use, and work correctly with the lifecycle. If you need to continue to have an active context outside of the context of the activity/service, then you will want the application context. On Sun, Feb 5, 2012 at 7:52 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Well, the unbind() call that threw the Service not registered was originally bound to from a WakefulIntentService, not an Activity. I bound to the service in doWakefulWork() and unbind() in onDestroy() as well as when I am done with the service. Basically I have a cleanup() method which looks like this: public synchronized void cleanup(Context context) { if (this.serviceConnection != null) { context.getApplicationContext().unbindService(this.serviceConnection); // Used to be just context.unbindService() this.serviceConnection = null; } } I've never even once since this error when I used to use getApplicationContext() and now that I switched to just the WakefulIntentService Context, I got it twice -- once myself and once by a guy who's testing for me. I am now back to using the Application Context, thought I don't understand still why I have to. After all, the Service Context should remain the same throughout the lifecycle of the Service. On Feb 6, 6:48 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Feb 5, 2012 at 5:38 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Well, I made my change, but one of the uses for the Context is bind to a service. This now fails sometimes on unbind() with a Service not registered message. I asuume I still have to use the Application Context to bind to services? Have to is a strong term. However, particularly for activities that you: -- want to have access to a bound service, and -- want to allow Android to destroy and recreate on a configuration change then binding from Application is a good idea. http://commonsware.com/blog/2010/09/29/another-use-getapplicationcont... -- Mark Murphy (a Commons Guy)http://commonsware.com| http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4 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 -- 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] How to debug android project under command line?
I really don't want to start eclipse. I have opened so much application on my computer. If the eclipse is launched, i can can almost do nothing. I heard that jdb can used to debug android project, is it efficient to use. I have used gdb before and quit like 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
Re: [android-developers] Re: getApplicationContext() returns null?
Ok, thanks, Dianne. So it's OK (and desired) to bound to a service from an IntentService using the Application Context, since the bound service is asynchronous and as Mark pointed out, the Intent Service finishes right away? -- 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] Emergent HELP for google checkout banance verify
Dear All, Google help say the payment will between 0.5 and 1.0, but i received 2.22HKD today, it is more then 1.0, so what can i do ? What can i enter the number? 2.22 HKD or I should changed to USD first? Anyone can help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: getApplicationContext() returns null?
Well, it depends. If you actually need to use the application context, that means you are allowing your service to get destroyed while still bound to the other service, and in general I would assume that is a bug in the app. You probably shouldn't be doing stuff after your service is destroyed, and if you aren't implementing the correct management of that binding in your lifecycle, who knows what else is going wrong? So you should definitely not just be switching to the application context because you find your service context being destroyed on you when you don't expect it. You should clearly understand if you are doing something that is supposed to extend from outside the lifecycle of the hosting service (which honestly should be relatively rare). On Mon, Feb 6, 2012 at 5:38 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Ok, thanks, Dianne. So it's OK (and desired) to bound to a service from an IntentService using the Application Context, since the bound service is asynchronous and as Mark pointed out, the Intent Service finishes right away? -- 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 -- 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] ViewPager, change page on page title click
Hi everyone, i'm using a ViewPager with a custom PagerAdapter. The swipe works well but I would like to change the current page when the title is clicked. The Market app has implemented this so I assume it is achievable but I couldn't find a way to do it. 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
Re: [android-developers] no warnings, no errors, and yet, no apk after build
On Tue, Feb 07, 2012 at 01:31:06AM +0200, Harri Sm?tt wrote: On Feb 7, 2012, at 12:22 AM, Jim Graham wrote: I've already read the workaround, using Run As--Android Application, but why doesn't the normal build process, which used to generate an apk, do so now? There's a build flag Skip packaging and dexing until export or launch in Eclipse Android/Build settings And that was, in fact, the problem. MANY THANKS That fixed it. expect it's checked by default for speed reasons and unchecking it seems to rebuild .apk constantly. Except for one thing...I've been using this same install of Eclipse for a long time, and never saw this behavior before. But then, maybe this is new with the new SDK (hadn't thought about that until I was typing this). That's probably it, as I WAS going to ask how this setting magically got set ... it makes sense ... it wasn't there before. :-) Thanks again, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Tux (E Cat): DS B+Wd Y 6 Y L+++ W++ C++/C++ I+++ spooky1...@gmail.com| T++ A E H+ S V- F++ Q+++ P/P+ B++ PA+ PL SC--- Running FreeBSD 7.0 | ICBM / Hurricane: | Tiggerbelle: DS W+S+Bts % 1.5 X L-- W- C+++/C+ 30.44406N 86.59909W | I+++ T A E++ H S++ V+++ Q+++ P B++ PA++ PL+ SC Android Apps Listing at http://www.jstrack.org/barcodes.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
Re: [android-developers] Re: getApplicationContext() returns null?
Well, here's what I am doing: I have a Daily Processing alarm, which among many other (synchronous) things, as the last thing it does is check of the app's license via the LVL service. For this, I bind to the LVL service and then as far as I am concerned, I don't really care what happens and my IntentService can terminate. It SEEMS this is OK, but what's your opinion? -- 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: Source not found/ArrayAdapter
Sorry for being so vague the first time. I was in a rush! Heres the code thats causing the error: CODE String[] spinnerArray = getResources().getStringArray(R.array.a_chords); Spinner spinner = new Spinner(this); ArrayAdapterString spinnerArrayAdapter = new ArrayAdapterString( this, android.R.layout.simple_spinner_item, spinnerArray); spinnerArrayAdapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item ); spinner = (Spinner) findViewById( R.id.choose_key); spinner.setAdapter(spinnerArrayAdapter); setContentView(R.layout.main); CODE The array I'm getting from the resources is here: string-array name=a_chords item A/item item Bm/item item C#m/item item D/item item E/item item F#m/item item E7th/item /string-array Heres the logcat: java.lang.NullPointerException any ideas? On Feb 6, 12:04 pm, TreKing treking...@gmail.com wrote: On Sat, Feb 4, 2012 at 2:57 PM, Ozone Apps ozoneforandr...@gmail.comwrote: Any ideas? Debug your app. Explain throwing a Serouce Not Found error. Post a logcat. Show some code. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help!!!
I was looking but i cant find a way to fix mi X8 =(!!! please someone help me your developers some of you have to know how help me!!! PLEASEE!! 2012/2/6 Mertuarez kamil.javor...@gmail.com I have HTC but i think there is now way how to literally brick phone. You just dont have right SWare utility,FWare version and amount of information about your phone. Just keep looking. Some where. There are many modes how to turn on the phone and how to put in OSystem. Sorry for this but i cant help you. On 5. Feb, 22:26 h., PIERRE GALOIS GUEVARA DONGO pgueva...@upao.edu.pe wrote: I need help with my Xperia X8, because try to unlock the bootloader and now does not run, as if dead, I connect to the PC and does not work, is literally dead, I can do something to get my phone? I need help please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help!!!
Looking through the forum history you will see that asking questions in this way tends to be a bad idea... kris On Mon, Feb 6, 2012 at 10:39 PM, PIERRE GALOIS GUEVARA DONGO pgueva...@upao.edu.pe wrote: I was looking but i cant find a way to fix mi X8 =(!!! please someone help me your developers some of you have to know how help me!!! PLEASEE!! 2012/2/6 Mertuarez kamil.javor...@gmail.com I have HTC but i think there is now way how to literally brick phone. You just dont have right SWare utility,FWare version and amount of information about your phone. Just keep looking. Some where. There are many modes how to turn on the phone and how to put in OSystem. Sorry for this but i cant help you. On 5. Feb, 22:26 h., PIERRE GALOIS GUEVARA DONGO pgueva...@upao.edu.pe wrote: I need help with my Xperia X8, because try to unlock the bootloader and now does not run, as if dead, I connect to the PC and does not work, is literally dead, I can do something to get my phone? I need help please -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Help!!!
On Mon, Feb 06, 2012 at 10:39:22PM -0500, PIERRE GALOIS GUEVARA DONGO wrote: I was looking but i cant find a way to fix mi X8 =(!!! please someone help me your developers some of you have to know how help me!!! PLEASEE!! First, this group is not here to help you unbrick (if it's even possible to unbrick) your mi x8 ... whatever kind of Android device that is. This group is about Android app development using the SDK. I suggest you find a forum specifically for the mi x8 and ask for help there. IF you're VERY LUCKY, someone *MIGHT* be able to help. If not, they can probably suggest some good ideas (paperweight, etc.). Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| Now what *you* need is a proper pint of spooky1...@gmail.com| porter poured in a proper pewter porter Running FreeBSD 7.0 | pot.. ICBM / Hurricane: |--Peter Dalgaard in alt.sysadmin.recovery 30.44406N 86.59909W | Android Apps Listing at http://www.jstrack.org/barcodes.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: Digest Email not working for over a week
Well, would you believe it, the Digest Email has started working again. I just had three come through this morning. Showing the Digest from January 21st... so only two more weeks of backlog to go! On Jan 29, 2:15 am, Dusk Jockeys Android Apps duskjock...@gmail.com wrote: The Android Developers Digest Email, each summarizing around 25 messages to this group, suddenly stopped coming through around a week ago. Does anyone else have the same issue, or is it confined to my account? It happened a few months before, but started again after a few days, so I assumed it was a problem on the Google end. But this has gone on a lot longer. I dont see any emails in my gmail spam directory, anyone got any other ideas, or is it a general issue for everyone? Regards James -- 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] Developing Android App For A Forum
Hi! I have a basic knowledge of android and my friend asked me to develop an application for his forum and I wonder how I do that. That forum is depend on vBulletin 3.7.6. and how I use Activities and can I directly post to forum by using custom made forms or is it only possible to use WebView? -- 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] Fail to connect to camera service - Camera.open();
Even as hundreds of other have made them, i am trying my hand at a flashlight app. I have the basic GUI and widget working and toggling, and i just attempted to implement the actual flash from the phone. I have found many places that this is most easily done with this snippet of code: Camera mCamera = Camera.open(); Parameters params = mCamera.getParameters(); params.setFlashMode( Parameters.FLASH_MODE_TORCH ); mCamera.setParameters( params ); I have tried this code, and every time i run the app it crashes, giving me an output in LogCat of the following: 02-07 00:04:49.130: E/AndroidRuntime(4861): Caused by: java.lang.RuntimeException: Fail to connect to camera service Every other app that uses the camera or flash works fine, and i have no idea what is causing it to fail. In my android manifest i have: uses-permission android:name=android.permission.FLASHLIGHT / uses-parmission android:name=android.permission.CAMERA / uses-feature android:name=android.hardware.camera / uses-feature android:name=android.hardware.camera.flash / Any and all help is greatly appreciated as I am completely stuck after sitting at this for the last several hours... Thanks ~Matt -- 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