[android-developers] Looking for help testing an app
Hey everyone, I don't know if this is kosher, but I wanted to see if anyone would want to test an app I built. I don't want to release an app to the market without getting out all the bugs I can, but I'm a lone developer trying to build apps on the side in my free time. I don't know many people with Droids, so I'm trying to reach out to the community. I built an app I call Next Track on Shake. Not a good name, (and I'm up for suggestions for a better name) but I can't think of anything else to explain its function. I listen to alot of music, usually on shuffle, and I hate having to wake the phone up, unlock the screen, open the music player, and change the track. The new versions of Android require PIN or Password when you use a corporate account, and that adds another step in changing tracks. I built an app that allows you to shake the phone, whether awake or not, and it will move to the next track for you. I also added the ability to customize the shake; you can set how hard or how fast you need to shake the phone to change the track. The default shake is a good setting for most people, but alot of people jog with the phone on their arm or hip and would need to adjust the strength of the shake so as to not accidentally change tracks. I've also added the ability to stop/start the service when needed, and I display an ongoing notification when the service is running. When the phone is rebooted, the app checks the preferences, and only starts the app if you had the service running before reboot. That's my app in a nutshell. As I said, I'd love it to be as bug-free as possible when I release it, so I'm looking for some help. Please leave comments with any feedback, issues, or suggestions you have. I appreciate everyone's help. Here's the link to the app: http://www.megaupload.com/?d=E1YXV89X Thanks, Mike M -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Anybody experiencing a boost in sales since opening up to other countries?
@Tom Right on, I'll give that a try. Nice sales pitch if you did work for them though ;-) On Oct 9, 11:19 am, Tom / HyperBees tomek.ml...@gmail.com wrote: @Jon You could give mopapp.com a try. They use Checkout API to get the data and present it in a very Analytics-like way. The service is in beta, I'm testing it at the moment. My first impression is they are quite accurate (I'm about to start data validation) and analytical tools are good. Support is also above average. Great feature is that they are able to combine sales from other markets (app store, handango etc.) too. Analytical dashboard works fine on handset's browser. I'm willing to pay for this. I'm not affiliated with mopapp in any way :) I found them by accident on CrunchBase. There is also an app called Checkout Check by Polyclef Software it didn't work for me but I know it works fine for others. Hope it helps. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android - landscape-right and landscape-left orientation
Sorry, there is no full-screen 180 degree rotation. The best you can do is manually rotate the drawing in your own window. On Fri, Oct 8, 2010 at 6:59 PM, DanH danhi...@ieee.org wrote: Can you draw a screen upside-down? On Oct 8, 6:02 pm, Dianne Hackborn hack...@android.com wrote: Sorry, there currently isn't any way to do this. Even if you were to monitor the orientation yourself, there isn't a constant to set the screen to the alternative landscape orientation. (Also trying to use the orientation listener for this would be very tricky since to do this correctly you need to know how to deal with screens that are landscape when not rotated etc.) A future version of the platform should have APIs to help with this. On Fri, Oct 8, 2010 at 5:07 AM, neha neha31gu...@gmail.com wrote: I have an application, that looks good in landscape orientation only and i want to support both landscape-left and landscape-right orientation. If use setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE), my application gets restricted to landscape-right orientation (home key is in the right direction) and does not go to landscape-left orientation on device rotation. If use setRequestedOrientation(SCREEN_ORIENTATION_SENSOR), application goes to both landscape-left and landscape-right orientation but the problem is that it goes to portrait orientation also, on device rotation. Can somebody please highlight, how can both landscape-right and landscape-left orientations be supported without moving to portrait orientation? Are there are API to set the orientation to both landscape-left and landscape right orientation or some mechanism to prevent application from moving to portrait orientation when setRequestedOrientation(SCREEN_ORIENTATION_SENSOR) is used. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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.comandroid-developers%2bunsubscr...@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] Re: positioning problem with canvas.drawBitmap()
update for anyone interested. i found some more info about the problem ... i get the same results if i change my call to drawBitmap to: surfaceCanvas.drawBitmap(sprite, (int)x, (int)y, null); after looking thru the android source, the underlying native call appears to take floats for position too ... so still not sure, ultimately, what's going on, but the draw position is clearly being rounded to the nearest pixel ... On Oct 4, 9:49 pm, newbyca newb...@gmail.com wrote: i recently tried using a SurfaceView to draw a large collection of circles to a Canvas arranged in a ring shape. just to prototype the idea i originally wrote some code that effectively went like this: Paint paint = new Paint(); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(1); paint.setAntiAlias(true); paint.setStrokeCap(Cap.ROUND); paint.setColor(0x); int circleSize = 20; int circleCount = 50; double theta = 0; double thetaDelta = 2*Math.PI/circleCount; int ringRadius = 100; for(int idx = 0; idx circleCount; idx++){ float x = (float)(ringRadius * Math.cos(theta) + (surfaceWidth - circleSize)/2); float y = (float)(ringRadius * Math.sin(theta) + (surfaceHeight - circleSize)/2); surfaceCanvas.drawCircle(x + circleSize/2, y + circleSize/2, circleSize/2 - 2, paint); theta += thetaDelta; } [this code sits in a draw method being called by a non-ui thread] for the number of iterations above it works great. but as circleCount gets higher, the performance penalty of canvas.drawCircle() because noticeable. so, i decided to try using a sprite instead. i changed the code to draw a single circle to a bitmap first, then draw that bitmap to the canvas for each iteration instead. here's the new code: Paint paint = new Paint(); paint.setStyle(Paint.Style.STROKE); paint.setStrokeWidth(1); paint.setAntiAlias(true); paint.setStrokeCap(Cap.ROUND); paint.setColor(0x); int circleSize = 20; int circleCount = 50; Bitmap sprite = Bitmap.createBitmap(circleSize, circleSize, Config.ARGB_); Canvas spriteCanvas = new Canvas(sprite); spriteCanvas.drawCircle(circleSize/2, circleSize/2, circleSize/2 - 2, paint); double theta = 0; double thetaDelta = 2*Math.PI/circleCount; int ringRadius = 100; for(int idx = 0; idx circleCount; idx++){ float x = (float)(ringRadius * Math.cos(theta) + (surfaceWidth - circleSize)/2); float y = (float)(ringRadius * Math.sin(theta) + (surfaceHeight - circleSize)/2); surfaceCanvas.drawBitmap(sprite, x, y, null); theta += thetaDelta; } sprite.recycle(); sprite = null; this code performed significantly better ... but then i noticed that there was something off about the visual result. it's a little hard to explain, but it basically looked like there was a rounding error happening when drawing the sprite to surfaceCanvas: the rendered circles did not appear to be spaced evenly as they did in the initial code. here's a picture of what i get using the first code:http://www.1908media.com/wp-content/shaperendered.jpg here's a picture of what i get using the sprite code:http://www.1908media.com/wp-content/spriterendered.jpg i tried several things to get my sprite code to come out right ... the only thing that eventually worked for me was to position *as well as rotate* the sprite and paint it to the canvas using a separate Paint object with anti-aliasing and filterBitmap enabled. i implemented this using canvas.drawBitmap( bmp, matrix, paint ). but this incurred an even greater performance penalty than canvas.drawCircle()! i'm only barely knowledgeable of openGL, so hoping someone can enlighten me as to what's not right with the second code block above ... thoughts anyone? fwiw, i saw the same results on my n1 running 2.2 as i did on an emulator running 1.6 tia// -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to
[android-developers] Regarding Image View
Hi All, I have a query i want to set my ImageView over the Gallery,How to do this? One more thing is there any possibility to display images in android app without using Gallery view. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Follow up for the active install count problem
On Oct 9, 7:41 pm, TreKing treking...@gmail.com wrote: On Sat, Oct 9, 2010 at 1:34 AM, Doug beafd...@gmail.com wrote: Please explain to me how exactly you know what normal is given that the stat has a long reputation for being inaccurate over the past few months. :-) I'm going for what the numbers were before this whole fiasco started and we started seeing the numbers plummeting. That's what I'm insinuating -- the before numbers, as nice as they were, just don't have any kind of veracity for me any more. At least today my numbers are stable and in between the highs and lows I experienced over the past year. (Currently 45%, high 70%, low 30%.) Truly normal would be matching Google Checkout, but I doubt that will ever happen (if it even ever did before). Google Checkout doesn't report uninstalls after the purchase clears, so as far as I'm concerned, those numbers will never match. I am very curious to know what happens when devices are decommissioned. Assuming they check for that, presumably the only non- evil way to know would be to wait until a devices fails to phone home after a long amount of time. If that's the case, is it considered an uninstall for your app on that phone? If so, your install % has nowhere to go but down unless your sales consistently exceed decommissions. If not, then the app is essentially installed for life on decommissioned devices and boosts your numbers till the end of time. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Regarding Image View
One more thing I would like to ask,does android support gif format? I tried once in my app but it was not showing any flash image effect, instead it just gave the effect of a jpg or any other image. So ,how to get flash image effects in android. thanks On Oct 10, 12:52 pm, Jitesh mishra jitesh...@gmail.com wrote: Hi All, I have a query i want to set my ImageView over the Gallery,How to do this? One more thing is there any possibility to display images in android app without using Gallery view. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Market misery !!
I interviewed with Yahoo a while back, and their strategy is to product mobile apps and SDKs that are primarily web driven with an Android/iOS shim to access the device-specific features. Honestly, I think this is a smart move because it leverages all their web content, infrastructure, and talent while minimizing the time to market for a mobile app. FWIW, I turned them down because hybrid mobile-web apps aren't my interest and I'm trying to abandon my prior track as a web app developer. :-) That said, leverage any web content you have because the web isn't going away any time soon! On Oct 9, 2:32 pm, Lance Nanek lna...@gmail.com wrote: Some of the companies I've seen move away from writing full native apps still get listed in the app stores by writing a launcher app. The launcher app just shows the web site in a WebView and lets them get listed in the app stores. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Unable to sign jar
Actually I cleaned the project, but it didn't help. It's a pity that I cannot reproduce it. Otherwise would have reported the bug. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Checkbox are not getting selected
Probably you need this http://developer.android.com/intl/de/reference/android/widget/ListView.html#getCheckedItemIds() On 9 Жов, 06:32, pramod.deore deore.pramo...@gmail.com wrote: Now I want to add selected checkboxes to array. Normally we checked whether checkbox is selected or not as if (checkBox.isChecked()) { //do something } but now I don't have reference to checkBox, then how to check whether it is selected or not? On Oct 9, 8:05 am, pramod.deore deore.pramo...@gmail.com wrote: Hey Rocky it works. Thanks On Oct 8, 5:25 pm, Rocky rkjhaw1...@gmail.com wrote: Hey Pramod, just add this line getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); On Fri, Oct 8, 2010 at 4:39 PM, pramod.deore deore.pramo...@gmail.comwrote: Here is my .java file import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.CheckBox; import android.widget.ListView; import android.widget.Toast; public class MyList extends ListActivity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { super.onCreate(icicle); // Create an array of Strings, that will be put to our ListActivity String[] names = new String[] { Linux, Windows7, Eclipse, Suse, Ubuntu, Solaris, Android, iPhone}; // Create an ArrayAdapter, that will actually make the Strings above // appear in the ListView this.setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_multiple_choice, names)); } �...@override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); // Get the item that was clicked Object o = this.getListAdapter().getItem(position); String keyword = o.toString(); Toast.makeText(this, You selected: + keyword, Toast.LENGTH_LONG) .show(); } } and xml file is just auto generated main.xml file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Software Developer Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030274295 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Image View
On Sun, Oct 10, 2010 at 3:52 AM, Jitesh mishra jitesh...@gmail.com wrote: I have a query i want to set my ImageView over the Gallery,How to do this? What do you mean? One more thing is there any possibility to display images in android app without using Gallery view. Use ImageView. One more thing I would like to ask,does android support gif format? Not animated GIFs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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
[android-developers] Re: QuickContact works fine on 2.2 but not on 2.1
Nevermind, I just see I was using an insert-uri instead of a lookup. Nevertheless, despite the wrong uri, it worked ok in 2.2 before. On Oct 10, 11:08 am, Mathias Lin m...@mathiaslin.com wrote: I have a ListView where I want to show the QuickContact (like in the default Contacts android app when you click on the photo of a contact). It works fine on my Nexus One 2.2 or the emulator with avd 2.2, but doesn't work on my Samsung Galaxy S 2.1update1 or emulator 2.1. On 2.1, I'm getting the error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act= com.android.contacts.action.QUICK_CONTACT dat=content://contacts/people/2177 This is the call in the code: public final void onItemClick(final AdapterView? parent, final View view, final int position, final long id) { ContactSummary summary = (ContactSummary) parent.getItemAtPosition(position); // Quick Contact Badge ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, summary.formattedName); Uri uri = getContentResolver().insert(Contacts.People.CONTENT_URI, values); ContactsContract.QuickContact.showQuickContact(this.getApplicationContext() , view, uri, ContactsContract.QuickContact.MODE_MEDIUM, null); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to change the e-mail address programmatically?
After studying more in detail ContactMethods, I realized that I was using the wrong ID. Below is the code excerpt which does the job correctly. Hope it helps someone else as well. -Ali . . private static final int PEOPLE__ID_COLUMN_INDEX = 0; private static final int PEOPLE_NAME_COLUMN_INDEX = 1; private static final int CONTACTMETHODS_ID_COLUMN_INDEX = 0; . . . String[] projectionPeople = new String[] { People._ID, People.NAME }; Cursor peopleCur = getContentResolver().query(People.CONTENT_URI, projectionPeople, null, null, People.NAME); Uri.Builder builder = People.CONTENT_URI.buildUpon(); if (null != peopleCur) { if (peopleCur.moveToFirst()) { String peopleID = peopleCur.getString(PEOPLE__ID_COLUMN_INDEX); String where = Contacts.ContactMethods.PERSON_ID + == + peopleID + AND + Contacts.ContactMethods.KIND + == + Contacts.KIND_EMAIL; String[] projectionContactMethods = new String[] { Contacts.ContactMethods._ID }; Cursor addrCur = getContentResolver().query(Contacts.ContactMethods.CONTENT_URI, projectionContactMethods, where, null, null); if (null != addrCur) { if ( addrCur.moveToFirst() ) { String contactMethodsID = addrCur.getString(CONTACTMETHODS_ID_COLUMN_INDEX); ContentValues contentValues = new ContentValues(); contentValues.put( People.ContactMethods.KIND, Contacts.KIND_EMAIL); contentValues.put( People.ContactMethods.DATA, j...@company.com ); contentValues.put( People.ContactMethods.TYPE, People.ContactMethods.TYPE_WORK ); builder.encodedPath(People.ContactMethods.CONTENT_DIRECTORY + / + contactMethodsID); getContentResolver().update( builder.build(), contentValues, null, null ); } addrCur.close(); } } peopleCur.close(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Is it possible
If the server is addressable from the Internet (i.e. not under a NAT or firewall that hides it), then it should work (provided you code uses its public IP address to connect to it). On Sat, Oct 9, 2010 at 4:57 AM, Jatin D Patel depo.ja...@gmail.com wrote: I have developed an android app which calls the web service which runs smoothly on my emulator. Will the same appl work if i installed the same application on android mobile device and call the webservice. (server running on my laptop) -- Thanks, Jatin D N Patel Masters, Computer Sci. Suny Binghamton Univ, NY. You Got To Think HIGH to RISE. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: How to use getContentResolver().update in combination with getContentResolver().query?
This is what I was trying to do: . . private static final int PEOPLE__ID_COLUMN_INDEX = 0; private static final int PEOPLE_NAME_COLUMN_INDEX = 1; . . . String[] projectionPeople = new String[] { People._ID, People.NAME }; Cursor peopleCur = getContentResolver().query(People.CONTENT_URI, projectionPeople, null, null, People.NAME); Uri.Builder builder = People.CONTENT_URI.buildUpon(); if (null != peopleCur) { if (peopleCur.moveToFirst()) { String id = peopleCur.getString(PEOPLE__ID_COLUMN_INDEX); ContentValues contentValues = new ContentValues(); contentValues.put( People.Phones.NUMBER, 1234567890); builder.encodedPath(People.Phones.CONTENT_DIRECTORY + / + id); getContentResolver().update( builder.build(), contentValues, null, null ); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Market misery !!
On 10/10/10 10:48 , Doug wrote: I interviewed with Yahoo a while back, and their strategy is to product mobile apps and SDKs that are primarily web driven with an Android/iOS shim to access the device-specific features. Honestly, I think this is a smart move because it leverages all their web content, infrastructure, and talent while minimizing the time to market for a mobile app. FWIW, I turned them down because hybrid mobile-web apps aren't my interest and I'm trying to abandon my prior track as a web app developer. :-) That said, leverage any web content you have because the web isn't going away any time soon! I second both point - that is, for some publisher the model might make sense, and I don't like it either :-) Indeed, this is due to an architectural deficiency, I mean if people exposing a web app had a good modular architecture, they could expose it by means of REST as well and easily connecting any kind of client to it... -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. java.net/blog/fabriziogiudici - www.tidalwave.it/people fabrizio.giud...@tidalwave.it -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Results from Alert Dialog inline
Is there a way to get alert dialog results inline (like you can with most dialogs)? I want to determine what to do next inwith a dialog, but I can't figure out how to get the results back in the same method that I create the dialog from thus allowing me to continue in my logic flow. void doStuff() { dlg = CreateDialog() dlg.show(); // shows the dialog and doesn't return till the dialog is dismissed if dlg.getResults() == this) { doThis(); } else { doThat(); } } Theoretically this is the reason you pop up a dialog, to get an answer so you can continue on. I know I can redirect the results with OnClickListener, but this doesn't do any good because show() doesn't actually show the dialog until the calling method (or I would guess thread) pauses. I want to keep it all in the same method. Any ideas? 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
Re: [android-developers] Results from Alert Dialog inline
On Sun, Oct 10, 2010 at 9:12 AM, ecforu ecforus...@gmail.com wrote: Is there a way to get alert dialog results inline (like you can with most dialogs)? Some platforms offer dialogs that block code execution in situ, others do not. Android does not. I want to determine what to do next inwith a dialog, but I can't figure out how to get the results back in the same method that I create the dialog from thus allowing me to continue in my logic flow. You don't. I want to keep it all in the same method. Sorry, but AFAIK that is not possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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] Results from Alert Dialog inline
On 10/10/2010 03:18 PM, Mark Murphy wrote: On Sun, Oct 10, 2010 at 9:12 AM, ecforuecforus...@gmail.com wrote: Is there a way to get alert dialog results inline (like you can with most dialogs)? Some platforms offer dialogs that block code execution in situ, others do not. Android does not. I want to determine what to do next inwith a dialog, but I can't figure out how to get the results back in the same method that I create the dialog from thus allowing me to continue in my logic flow. You don't. I want to keep it all in the same method. Sorry, but AFAIK that is not possible. Well, I guess it is a matter of taste, but you CAN put all the logic in one method if you really want with something like this: // Up here is some logic that suddenly needs to ask something, // then: new AlertDialog.Builder(this).setTitle(Important!) .setMessage(The question); .setPositiveButton(Go ahead, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) { // Do the verified stuff } }) .setNegativeButton(No way, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) { // Do some alternative stuff } }).show(); Maybe not exactly what you wanted and some may call it unreadable, but I'd still mark it possible... YMMV / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AppWidgetProvider - Multiple widgets
If an app provides multiple widgets, e.g. 1x1, 3x1 etc., does each widget need its own AppWidgetProvider or can they share one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Results from Alert Dialog inline
Sorry -- I took the OP literally, based on the sample code the OP provided. Inlining anonymous inner classes is a fine solution, if the only issue is keeping the code in close proximity to the code that configures the dialog. On Sun, Oct 10, 2010 at 9:38 AM, Jonas Petersson jonas.peters...@xms.se wrote: On 10/10/2010 03:18 PM, Mark Murphy wrote: On Sun, Oct 10, 2010 at 9:12 AM, ecforuecforus...@gmail.com wrote: Is there a way to get alert dialog results inline (like you can with most dialogs)? Some platforms offer dialogs that block code execution in situ, others do not. Android does not. I want to determine what to do next inwith a dialog, but I can't figure out how to get the results back in the same method that I create the dialog from thus allowing me to continue in my logic flow. You don't. I want to keep it all in the same method. Sorry, but AFAIK that is not possible. Well, I guess it is a matter of taste, but you CAN put all the logic in one method if you really want with something like this: // Up here is some logic that suddenly needs to ask something, // then: new AlertDialog.Builder(this).setTitle(Important!) .setMessage(The question); .setPositiveButton(Go ahead, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) { // Do the verified stuff } }) .setNegativeButton(No way, new DialogInterface.OnClickListener() { public void onClick(DialogInterface arg0, int arg1) { // Do some alternative stuff } }).show(); Maybe not exactly what you wanted and some may call it unreadable, but I'd still mark it possible... YMMV / Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 3.0.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
[android-developers] Buying numbers vs developing numbers
It would be interesting to know if the number of people buying apps is growing as fast as the number developing them. Has anyone seen data about either? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] zxing bar-code scanner onActivityResult in not called
thank you TerKing for your reply, I had the problem in my code, the following line shows the scan mode is 2D bar code, but I was trying with 1D bar code. after changing the mode, its working file intent.putExtra(SCAN_MODE, QR_CODE_MODE); thanks regards sathees -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Image View
Actually sir I am using Image view, but my requirement is to use some GIF images. But when I am using it, it works like a normal JPG image, there is no animation working. Can't we use GIF images? I come to know that android 2.2 supports gif format.Mine is same but its not working.Please help me. Thanks for your kind reply. On Sun, Oct 10, 2010 at 4:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Oct 10, 2010 at 3:52 AM, Jitesh mishra jitesh...@gmail.com wrote: I have a query i want to set my ImageView over the Gallery,How to do this? What do you mean? One more thing is there any possibility to display images in android app without using Gallery view. Use ImageView. One more thing I would like to ask,does android support gif format? Not animated GIFs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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.comandroid-developers%2bunsubscr...@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] scrollbar drawable not appearing properly
Hi All, I am setting a drawable to scrollbar of a list view.But scrollbar image is not appearing properly.It appears strecthed. I tried to use 9 patch image.But still same problem. Anybody ahs used image to scrollbar successfully? Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] custom border for gallery item
Hi all, I want to set custom border for gallery item. When i zoom a image which is selected in gallery,I want to change border only for selected item. How to do that? It is very urgent. Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] usb connection issues
my platform is vista 64 + droid. it connects and i can download apps 3-4 times and then cannot send - times out. i cannot even restart vista - the shutdown screen just hangs. i have to shut it down manually. any help appreciate - this is throwing a real kink in my dev cycle. i have usb driver #3. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: What's on earth the SAX Parser changes between 2.1 and 2.2
So if I read your blog post correctly, the problem is not a new bug introduced in 2.2, it is that your test code only worked because of a bug present in 2.1, but fixed in 2.2. But I have to admit I didn't spend that much time studying the blog post. I might have if I did not find the misuse of English verb tenses so off-putting. Also, your blog will show up better in searches if you fix the spelling of 'exception': you wrote 'excpetion'. On Oct 9, 7:42 am, Jun Jiang jiangjun.jk...@gmail.com wrote: Thanks, frank, I have found the cause of my problem, you can refer my blog post for more detail: http://mmmyddd.freeshell.net/blog/Computer/Android/saxcompatibility On Thu, Oct 7, 2010 at 11:58 PM, Frank Weiss fewe...@gmail.com wrote: The bug report sheds no more light on the problem than you did. I've used the same SAX parser code on 2.1 as on 2.2 without issues. I suspect there's either an issue in your default handler code or in the XML being read. Have you tried to step through the code on 2.1-update1? Did you implement the characters callback correctly? Did you look at the changes in the library code, as the bug report suggested? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Simulating USB connection
That would be a bug, probably a hardware bug. But on my phone, I see no such problem: I -always- get a notification on the phone screen that USB debugging connected: A computer is connected to your phone when I hook up the USB cable to the phone -- if the other end is connected to a powered-up computer (if it isn't, of course, nothing happens). My phone is a lowly HTC dream running 1.6. On Oct 7, 5:36 am, Kostya Vasilyev kmans...@gmail.com wrote: Sometimes the charger can be seen by a phone as a computer connection. My Galaxy S sometimes does this - I guess it depends on the angle at which the usb cable is inserted. -- Kostya 07.10.2010 16:26, DanH пишет: You sure the problem doesn't only occur when the USB is attached in SD sharing mode? Do you get the same failure with just a charger? Are you accessing files on the SD chip? On Oct 7, 6:28 am, { Devdroid }webnet.andr...@gmail.com wrote: Hi, Our app seem to misbehave sometimes when user plug USB cable to the device. Is there any way to simulate this event using Android simulator? Since it does not matter what type of USB connection is set (SD card access or just charging) I may just need the OS to think the USB cable has been connected and do what it does on the device. Can I achieve this in any sane way? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.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: scrollbar drawable not appearing properly
I am not sure, but I think you should be using an image with square dimensions. The Listview might be trying to stretch it do a squarish dimension. On Oct 10, 9:02 pm, kavitha b kkavith...@gmail.com wrote: Hi All, I am setting a drawable to scrollbar of a list view.But scrollbar image is not appearing properly.It appears strecthed. I tried to use 9 patch image.But still same problem. Anybody ahs used image to scrollbar successfully? Please help. Thanks Kavitha -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: onPause not being followed by onStop and onDestroy...
As Kostya obliquely pointed out, it is onPause() that should be called, not onStop(). There is the natural pair: onResume() and onPause(). If you are in the Resumed state, you should expect the phone to call onPause() before it ever calls onStop() (as it will when the Activity goes invisible). Theoretically (that is, according to the strict wording of the lifecycle document), there are exceptions (onPause is killable), but they are very rare. Even on my memory-starved phone I have always seen onPause() called first. Many Activities will have nothing to do for onStop() anyway: serious data saving should have already been done on onPause(). But if you are using a BroadcastReceiver unique to your app, then you would unregister it in onStop(). On Oct 7, 7:51 am, sdphil phil.pellouch...@gmail.com wrote: it should at least call onStop -- because the activity is no longer visible. On Oct 7, 7:10 am, Prakash Iyer thei...@gmail.com wrote: It is not required that an onPause is always followed by onStop - in fact if you press the home key that's what I have seen as the default behavior. This way if the user goes back to your app, thru the home key press or from launchpad, the onResume will be called and it will all be much faster than doing an onCreate which would otherwise have been required. On Thu, Oct 7, 2010 at 10:06 AM, sdphil phil.pellouch...@gmail.com wrote: I am seeing an issue where when I hit the back button, I get the onPause call, but it isn't followed by onStop and onDestroy. On most phones, I see this, but on one particular phone (Droid-X), I don't Any ideas? tia. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Regarding Image View
On Sun, Oct 10, 2010 at 4:24 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Oct 10, 2010 at 3:52 AM, Jitesh mishra jitesh...@gmail.com wrote: I have a query i want to set my ImageView over the Gallery,How to do this? What do you mean? Sir actually i mean that i don't want any thumbnails shown by gallery i want to scroll between the images with the help of a button. Is it possible to use ImageView without using Gallery view.? I am sorry if i am not able to clearly define my question hope now you will get me. One more thing is there any possibility to display images in android app without using Gallery view. Use ImageView. One more thing I would like to ask,does android support gif format? Not animated GIFs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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.comandroid-developers%2bunsubscr...@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: usb connection issues
I have Vista 64 and the Google phone (forget the name). Have not seen this problem. I do have assorted shutdown problems, but generally of the opposite nature -- powers off (hard) rather than hibernating. On Oct 10, 11:07 am, dashman erjdri...@gmail.com wrote: my platform is vista 64 + droid. it connects and i can download apps 3-4 times and then cannot send - times out. i cannot even restart vista - the shutdown screen just hangs. i have to shut it down manually. any help appreciate - this is throwing a real kink in my dev cycle. i have usb driver #3. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Buying numbers vs developing numbers
You figuring that if we each bought each other's apps it would improve business?? On Oct 10, 10:25 am, Bret Foreman bret.fore...@gmail.com wrote: It would be interesting to know if the number of people buying apps is growing as fast as the number developing them. Has anyone seen data about either? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible
(provided you code uses its public IP address to connect to it). That is the key. The internal Android-to-host IP address (I forget what it is) cannot be used. On Oct 10, 6:22 am, David Turner di...@android.com wrote: If the server is addressable from the Internet (i.e. not under a NAT or firewall that hides it), then it should work (provided you code uses its public IP address to connect to it). On Sat, Oct 9, 2010 at 4:57 AM, Jatin D Patel depo.ja...@gmail.com wrote: I have developed an android app which calls the web service which runs smoothly on my emulator. Will the same appl work if i installed the same application on android mobile device and call the webservice. (server running on my laptop) -- Thanks, Jatin D N Patel Masters, Computer Sci. Suny Binghamton Univ, NY. You Got To Think HIGH to RISE. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: Looking for help testing an app
Sounds like a worthwhile concept, but I don't listen to music on my phone (or iPod or anything else). On Oct 10, 1:04 am, Mike M mike.mos...@gmail.com wrote: Hey everyone, I don't know if this is kosher, but I wanted to see if anyone would want to test an app I built. I don't want to release an app to the market without getting out all the bugs I can, but I'm a lone developer trying to build apps on the side in my free time. I don't know many people with Droids, so I'm trying to reach out to the community. I built an app I call Next Track on Shake. Not a good name, (and I'm up for suggestions for a better name) but I can't think of anything else to explain its function. I listen to alot of music, usually on shuffle, and I hate having to wake the phone up, unlock the screen, open the music player, and change the track. The new versions of Android require PIN or Password when you use a corporate account, and that adds another step in changing tracks. I built an app that allows you to shake the phone, whether awake or not, and it will move to the next track for you. I also added the ability to customize the shake; you can set how hard or how fast you need to shake the phone to change the track. The default shake is a good setting for most people, but alot of people jog with the phone on their arm or hip and would need to adjust the strength of the shake so as to not accidentally change tracks. I've also added the ability to stop/start the service when needed, and I display an ongoing notification when the service is running. When the phone is rebooted, the app checks the preferences, and only starts the app if you had the service running before reboot. That's my app in a nutshell. As I said, I'd love it to be as bug-free as possible when I release it, so I'm looking for some help. Please leave comments with any feedback, issues, or suggestions you have. I appreciate everyone's help. Here's the link to the app: http://www.megaupload.com/?d=E1YXV89X Thanks, Mike M -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Buying numbers vs developing numbers
Well, yeah, and we each buy our own too. So everybody gets two downloads. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Rotate bitmap in opengl
I am trying to rotate a bitmap in OpenGL. I have searched around and come up with this public void drawTexture(Texture texture, int index, float x, float y, float angle) { int[] ids = texture.getTextureIds(); if (ids != null) { surface.glEnable(GL10.GL_TEXTURE_2D); surface.glBindTexture(GL10.GL_TEXTURE_2D, ids[index]); // Draw using the DrawTexture extension. int drawWidth = texture.getDrawWidth(); int drawHeight = texture.getDrawHeight(); surface.glPushMatrix(); surface.glLoadIdentity(); surface.glRotatef(angle, 0.0f, 0.0f, 1.0f); ((GL11Ext) surface).glDrawTexfOES(x, screenHeight - drawHeight - y, 0, drawWidth, drawHeight); surface.glPopMatrix(); surface.glDisable(GL10.GL_TEXTURE_2D); } } Drawing the bitmaps indicated with the ids works fine but no rotation happens. I am no expert at openGL. Is is possible I need to set some sort of mode prior to the rotation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Find Friend Location Java Example - Latitude?
Hello: Does anyone have any simple java source examples on how to find a GPS friend, determine if they are sharing their location via Latitude and then get their location? I found some obscure python code. Seems to me this would be a common thing to do but have found no simple ways to do it with Latitude and Java. Thanks, Chris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The dreaded error: Error parsing XML: XML or text declaration not at start of entity
I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8. Anyone know of it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] http POST request problem
in the following code - i get an http response code 400 - BAD REQUEST. if i comment out the post.setEntity() line - then it works fine - response code 200. of course i've got internet permission params is a list of 1 entry - string2string mapping. URI uri = new URI(urlPath); HttpPost post = new HttpPost(uri); UrlEncodedFormEntity entity = new UrlEncodedFormEntity(params, UTF-8); post.setEntity(entity); // if this line is commented out - the post results in status 200 OK DefaultHttpClient client = new DefaultHttpClient(); HttpResponse res = client.execute(post); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] The dreaded error: Error parsing XML: XML or text declaration not at start of entity
Project Clean from the main menu, or delete the contents of your gen/ directory. On Sun, Oct 10, 2010 at 1:51 PM, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8. Anyone know of it? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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] The dreaded error: Error parsing XML: XML or text declaration not at start of entity
Not sure if it's the same error, but for XML parsing errors I have usually been able to simply delete them from the error window after fixing the file so it does not reappear. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.10.2010 21:51 пользователь Bret Foreman bret.fore...@gmail.com написал: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8. Anyone know of 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.comandroid-developers%2bunsubscr...@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: Buying numbers vs developing numbers
I think it was shown - by the NASDAQ crash in March 2000 - that this particular economic model does not work for too long... :) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.10.2010 21:06 пользователь Bret Foreman bret.fore...@gmail.com написал: Well, yeah, and we each buy our own too. So everybody gets two downloads. -- You received this message because you are subscribed to the Google Groups Android Developers ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Is it possible
The special address you probably are referring to only comes into play in the emulator (mapped to the host computer's localhost). Right about the possibility of NAT(s) between the phone and the internet, though. So accepting connections works on a local network (wifi), but in the general case, you need a centralized server to dispatch data connections to client devices. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.10.2010 21:01 пользователь DanH danhi...@ieee.org написал: (provided you code uses its public IP address to connect to it). That is the key. The internal Android-to-host IP address (I forget what it is) cannot be used. On Oct 10, 6:22 am, David Turner di...@android.com wrote: If the server is addressable from the... On Sat, Oct 9, 2010 at 4:57 AM, Jatin D Patel depo.ja...@gmail.com wrote: I have developed... android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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] usb connection issues
Might want to try Motorola's drivers... -- Kostya Vasilyev -- http://kmansoft.wordpress.com 10.10.2010 20:07 пользователь dashman erjdri...@gmail.com написал: my platform is vista 64 + droid. it connects and i can download apps 3-4 times and then cannot send - times out. i cannot even restart vista - the shutdown screen just hangs. i have to shut it down manually. any help appreciate - this is throwing a real kink in my dev cycle. i have usb driver #3. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Singleton object with context?
Hi, I often run into the following dilemma: I need some singleton-like object in my app (typically some central manager-like thing) and this object needs a context for various things. This means that I either have to pass a context to all methods needing one or have some sort of init-pattern to the object. Neither is pretty I think. What is the correct way of doing this? Or is this simply (even the definition of) a Service? Anyone have any thoughts on this? /Chuck -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: automotive related project ideas
we discuss automotive applications such as offline-routing anti-speeding on this google group. http://groups.google.com/group/wikispeedia CHEERS On Oct 8, 12:23 pm, MB manoj.bi...@gmail.com wrote: How about an app that does offline routing? You would get a lot of ATT, T-mobile customers. On Oct 8, 9:59 am, DanH danhi...@ieee.org wrote: The automotive test tool business is fairly big. Mostly they use specialized equipment, but there may be a niche for using a phone with some sort of dongle to read computer info, do ignition analysis, etc. Trucking companies may be in the market for specialized apps for tracking their routes, etc. Otherwise, how about an app that just shoots the driver if he attempts to text while driving? ;) On Oct 8, 8:55 am, kalyan kumar kalyankumar2...@gmail.com wrote: Hi Guys, Can any one help me by providing some innovative automobile(car ) related projects. -- k.kalyankumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AppWidgetProvider - Multiple widgets
Alex, The widget_info.xml file can only specify one particular minimum size, and this is fixed at application build time. Since widget_info.xml files are referenced from the app widget provider declarations in the application manifest, there have to be separate receiver blocks there declaring widgets. Essentially, you're creating what looks to Android (and the users) as two separate widgets. You could maybe have one AppWidgetProvider for both widgets, but then your widget class would have to know which widget size it's working with. What I ended up doing for my application is this: ### The manifest receiver android:name=.WifiWidget_3x1 android:label=@string/widget_name_3x1 intent-filter snipped meta-data android:name=android.appwidget.provider android:resource=@xml/widget_info_3x1 / /receiver receiver android:name=.WifiWidget_2x1 android:label=@string/widget_name_2x1 intent-filter snipped meta-data android:name=android.appwidget.provider android:resource=@xml/widget_info_2x1 / /receiver ### widget_info_3x1 ?xml version=1.0 encoding=utf-8? appwidget-provider xmlns:android=http://schemas.android.com/apk/res/android; android:minWidth=220dp android:minHeight=72dp android:initialLayout=@layout/appwidget_3x1 android:configure=org.kman.WifiManager.WifiWidget_3x1 /appwidget-provider ### widget_info_2x1 is similar, but has different minWidth / minHeight values The widget providers, WifiWidget_3x1 and WifiWidget_2x1, are dervied from a common base class that does most of the work. So are the config activities, WifiWidget_3x1 and WifiWidget_2x1. If you use a ComponentName to access your widgets from the base class, you should be careful to call getClass() to get the actual Java class known to Android (3x1 or 2x1) instead of using the common base class (WifiWidgetBase.class). -- Kostya 10.10.2010 17:58, Alex пишет: If an app provides multiple widgets, e.g. 1x1, 3x1 etc., does each widget need its own AppWidgetProvider or can they share one? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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
Re: [android-developers] Singleton object with context?
On Sun, Oct 10, 2010 at 2:44 PM, Chuck Lega chuck.l...@gmail.com wrote: I often run into the following dilemma: I need some singleton-like object in my app (typically some central manager-like thing) and this object needs a context for various things. This means that I either have to pass a context to all methods needing one or have some sort of init-pattern to the object. Neither is pretty I think. What is the correct way of doing this? Or is this simply (even the definition of) a Service? Anyone have any thoughts on this? You really really really need to be careful about putting a Context in a static data member, as you can run into memory leaks if Android wants to destroy that context later. I recommend that you either pass in the Context as needed, convert it into a Service that your activities bind to, or make it a custom Application object (which is a Context, though you may still find times when you'll need an Activity's context). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.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
[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity
Export the project, delete it, then import it? On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8. Anyone know of it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The dreaded error: Error parsing XML: XML or text declaration not at start of entity
Though seems like cleaning the project should work. On Oct 10, 12:51 pm, Bret Foreman bret.fore...@gmail.com wrote: I accidentally imported a resource file with a capital letter in the name (SDK 8) and as we all know, that corrupts the R.java file in a way that rebuilding the project doesn't fix (I renamed the file to something legal from within Eclipse, of course). So now the build chokes with the error above when it hits the first xml file in res. In SDK 7 the only fix was to build a fresh project and move everything over. I'm hoping there is something better in SDK 8. Anyone know of it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Does android support .gif format??
Hello everybody, I want to know whether android 2.2(froyo) supports .gif or not. If not then what is the substitute of this. I want to use some animated images, and as for as my knowledge is concerned it neither support .gif nor .swf. I am a bit new to android. Please help me out. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 support .gif format??
Not yet, I suppose. Look at transition drawables. On Mon, Oct 11, 2010 at 12:53 AM, Jitesh mishra jitesh...@gmail.com wrote: Hello everybody, I want to know whether android 2.2(froyo) supports .gif or not. If not then what is the substitute of this. I want to use some animated images, and as for as my knowledge is concerned it neither support .gif nor .swf. I am a bit new to android. Please help me out. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.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: zlib / inflate / partial sync / hanging
I've finally found the problem: /** * Returns 0 when when this stream has exhausted its input; and 1 otherwise. * A result of 1 does not guarantee that further bytes can be returned, * with or without blocking. * * pAlthough consistent with the RI, this behavior is inconsistent with * {...@link InputStream#available()}, and violates the a * href=http://en.wikipedia.org/wiki/ Liskov_substitution_principleLiskov * Substitution Principle/a. This method should not be used. * * @return 0 if no further bytes are available. Otherwise returns 1, * which suggests (but does not guarantee) that additional bytes are * available. * @throws IOException if this stream is closed or an error occurs */ @Override public int available() throws IOException { if (closed) { // archive.1E=Stream is closed throw new IOException(Messages.getString(archive.1E)); // $NON-NLS-1$ } if (eof) { return 0; } return 1; } Google YMMD! (The official oracle javadoc isn't that clear about the violation) So what was happening? The kXML happily checked for available bytes, always received 1 and happily got stuck reading the input. I've now wrapped the available method like this @Override public int available() throws IOException { if (inf.needsInput()) { return 0; } return super.available(); } and everything is working as expected -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 support .gif format??
Not yet. Have a look at transition drawables On Oct 11, 12:23 am, Jitesh mishra jitesh...@gmail.com wrote: Hello everybody, I want to know whether android 2.2(froyo) supports .gif or not. If not then what is the substitute of this. I want to use some animated images, and as for as my knowledge is concerned it neither support .gif nor .swf. I am a bit new to android. Please help me out. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The dreaded error: Error parsing XML: XML or text declaration not at start of entity
But it's not really a parsing error. It's a quirk R.java. Removing the error does nothing. Even removing the particular file does nothing, since the error simply moves to the next xml file in res. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does android support .gif format??
Thanks for your kind reply sir. On Mon, Oct 11, 2010 at 2:06 AM, Kumar Bibek coomar@gmail.com wrote: Not yet. Have a look at transition drawables On Oct 11, 12:23 am, Jitesh mishra jitesh...@gmail.com wrote: Hello everybody, I want to know whether android 2.2(froyo) supports .gif or not. If not then what is the substitute of this. I want to use some animated images, and as for as my knowledge is concerned it neither support .gif nor .swf. I am a bit new to android. Please help me out. Thanks and regards, Jitesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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: The dreaded error: Error parsing XML: XML or text declaration not at start of entity
The fundamental problem is that Eclipse will allow you to import files into /res that do not have legal Android names. In my case I had a capital letter the name of a PNG file. Once you do it, then R.java won't build right. I'm sure there's some broken project file somewhere but I can't find anything that looks unusual. This is not the first time it's happened to me so I'd like to find an easier solution than building a new project and importing all the old files. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: The dreaded error: Error parsing XML: XML or text declaration not at start of entity
Clearing the error manually in this case has worked for me (after renaming the file and refreshing the source tree). -- Kostya Vasilyev -- http://kmansoft.wordpress.com 11.10.2010 1:06 пользователь Bret Foreman bret.fore...@gmail.com написал: The fundamental problem is that Eclipse will allow you to import files into /res that do not have legal Android names. In my case I had a capital letter the name of a PNG file. Once you do it, then R.java won't build right. I'm sure there's some broken project file somewhere but I can't find anything that looks unusual. This is not the first time it's happened to me so I'd like to find an easier solution than building a new project and importing all the old files. -- You received this message because you are subscribed to the Google Groups Android Developers group... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MoPub - Mobile Advertising Platform
Hi guys - We are developing an ad management solution for publishers that's optimized for Android. It supports banner ads that you might be working with already but also adds interstitial support and other advanced features. We are looking for some developers who'd be interested in working with us to test the system over the next week or two. Currently we are in private beta but if you'd like to integrate shortly our developer relations team can help you get it done -- so far, implementations have taken about 30-45 minutes total. Send me a note if you are interested, jpa...@mopub.com Thanks Jim -- Jim Payne | MoPub, Inc. | www.mopub.com | m 310-721-6838 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Connection problem
Hi everybody, for some time now, I'm facing a problem I can't solve. I'm having a method getJSONObject (see below) that - given a url as the parameter - returns the requested JSON object. I'm connecting to an API, but that's not important to know, as the mistake won't be there (I tested it a lot of times with a REST client, the API works fine). Now the problem that appears is the following: Whenever I use the method below for the first time, it works all fine. Even within a certain time span, it still works. So, for example, if I use getJSONObject a second / third / ... time within the next seconds, it all still works fine. BUT: When I wait (let's say) a minute and run getJSONObject again, a connection cannot be established anymore. Via getResponseCode() I get -1. And even more strange: After that, when I run getJSONObject again, it all works fine again. I hope I described the problem well enough - And I so hope you can help me! Thank you for your time! [code] public static JSONObject getJSONObject(String url) { try { SSLContext sslContext = SSLContext.getInstance(TLS); sslContext.init(null, new TrustManager[] { new MyTrustManager() }, new SecureRandom()); HttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory()); HttpsURLConnection.setDefaultHostnameVerifier(new MyHostnameVerifier()); HttpsURLConnection httpsUrlConnection = (HttpsURLConnection) new URL(url).openConnection(); httpsUrlConnection.setRequestMethod(GET); httpsUrlConnection.addRequestProperty(ApiData.getHeader1(), ApiData.getHeader1Value()); httpsUrlConnection.setDoOutput(true); httpsUrlConnection.setDoInput(true); httpsUrlConnection.connect(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpsUrlConnection.getInputStream())); StringBuffer stringBuffer = new StringBuffer(); String readLine; while((readLine = bufferedReader.readLine()) != null) { stringBuffer.append(readLine); } bufferedReader.close(); httpsUrlConnection.disconnect(); return new JSONObject(stringBuffer.toString()); } catch(Exception e) { e.printStackTrace(); } return null; } [/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] How to pause game on pop-ups.
Dear All, I am working on an application and I want to be able to detect when a pop-up (e.g Charger notification, task switcher or the dialog that pops up when you hold the power button) is obscuring the game so that I can bring up the pause menu. These notifications do not produce an onPause event. Does anyone know the correct way to do this? I know it can be done by detecting the focus loss from the surfaceview, however views can be added and removed I was wondering if there is a better way of doing this than adding a focus handler to each one and trying to keep track. Thanks in advance, Tim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can any one help me to break large Html file to small html files in java
Hi all, Presently am displaying html file in web view and my emulator size 1024*600. if the html file is large then user is scrolling down to see bottom part of the html. I Need to break these html file in equal parts so that it fits exactly in my screen size. i don't want USER to SCROLL DOWN but load remaining part (next page) next time. thanks and regards Santhosh Ejanthkar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Custom Scroll bar
Hi, Is there any chance of making Scroll bar like this by using existing android's Scroll view s . Thanks, sagar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: Screenshot.png
[android-developers] Buttons on Scroll bar
How to make scroll bar with buttons on it . Can you please suggest -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Advertising network
Hello everyone, i want to add promotion in my app to get earn money in this way. What is your experience with this? which advertising network would you recommend? 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] Android group
Hi, I am a beginner in writing Android apps and would like to be a part of the group to get a more in depth understanding. regards, Karthik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question about writing Events into Google Calendar in Android
Hello, All: when I insert one new Calendar Event into Google calendar from my app, the log message was given: 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): Error inserting transparency=0 dtstart=128589120 title=TestCalendar _sync_dirty=1 dtend=128589120 visibility=0 allDay=1 lastDate=1285950628697 hasAlarm=0 eventStatus=1 into table Events 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): at android.database.sqlite.SQLiteStatement.native_execute(Native Method) would you please tell me how to solve it? Best Regards, Kapuddi Next is my sample code: // Platform: android 2.2 froyo private static final String calendarcontentStr = content://com.android.calendar/events; ContentValues event = new ContentValues(); //event.put(title, mAct.getString(R.string.read) + : + title); event.put(title, TestCalendar); long startTime = startC.getTimeInMillis(); long endTime = endC.getTimeInMillis(); event.put(dtstart, startTime); event.put(dtend, endTime); //event.put(allDay, 1); event.put(eventStatus, 1); event.put(visibility, 0); event.put(transparency, 0); event.put(hasAlarm, 0); Uri eventsUri = Uri.parse(calendarcontentStr); Uri uri = mAct.getContentResolver().insert(eventsUri, event); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Market crashes after uploading an upgrade of my app at market
I uploaded an upgrade to my application and opened it again to see if everything is correct or not. I was surprised to see 8 screen shots instead of 2. I deleted 6 images and save it. but when ever I reopen I see 8 images. When I tried to download updated version of my app on my device thorough Android Market, it kept crashing. Did any one else faced same problem? version of the last upgrade is 4. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Accessing the apk-signing certificate from inside the program
Hi. I've posted this on Android Security as well, but that group does not appear to have as much activity, so I'm hoping someone here can help me. Actually I guess my question belongs in this group anyway, even though it touches on some of the security aspects of android packages. My goal is to access the certificate that was used to sign the apk package; and ordinarily, I would do that from inside the program like this Certificates[] signingCertificates = getClass().getProtectionDomain().getCodeSource().getCertificates(); Unfortunately it appears that getProtectionDomain() returns null on android - according to the specs http://developer.android.com/reference/java/lang/Class.html#getProtectionDomain%28%29 this method might return null (to converse space?), but only for system classes. Since I'm calling this from one of my own classes, I would expect to get a non-null value, but unfortunately not :( I have tried from the emulator, and from an application deployed on my phone using adb through a USB cable. I'm using the latest SDK (2.2) and targeting android 1.6. So I guess I have two questions, the first being: why does getProtectionDomain return null, and have anyone had any success using this method from inside an android application. And the second: Is there some other way to access the certificate that a given apk package was signed with (I can live with the restriction that only a given package can know its own certificate). Kind regards Brian Graversen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] startService an unusual way results in a a NullPointerException
Hi everyone! I am trying to start a service an unusual way. The reason for this is to keep at least some parts of the program platform independent. The startService() function is called from the Service class itself and there I get a NullPointerException. I made a small example to show the problem (see below). Any ideas? Thanks! /* HelloAndroid.java */ package com.example.helloandroid; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; package com.example.helloandroid; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; public class HelloAndroid extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // start buttons findViewById(R.id.start).setOnClickListener(new OnClickListener() { public void onClick(View v) { startService(new Intent(com.example.helloandroid.UnusualService)); } }); // stop buttons findViewById(R.id.stop).setOnClickListener(new OnClickListener() { public void onClick(View v) { stopService(new Intent(com.example.helloandroid.UnusualService)); } }); // unusual start findViewById(R.id.unusual).setOnClickListener(new OnClickListener() { public void onClick(View v) { UnusualService myService = new UnusualService(); myService.startService(); } }); } } /* UnusualService */ package com.example.helloandroid; import android.app.Service; import android.content.Intent; import android.os.IBinder; public class UnusualService extends Service { @Override public IBinder onBind(Intent intent) { return null;// TODO make something } public void startService() { // the folowing line will throw the exception startService(new Intent(com.example.helloandroid.UnusualService)); } public void stopService() { stopSelf(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MoPub - Mobile Advertising Platform Private Beta
Hi guys - We are developing an ad management solution for publishers that's optimized for Android. It supports banner ads that you might be working with already but also adds interstitial support and other advanced features. We are looking for some developers who'd be interested in working with us to test the system over the next week or two. Currently we are in private beta but if you'd like to integrate shortly our developer relations team can help you get it done -- so far, implementations have taken about 30-45 minutes total. Send me a note if you are interested, jpa...@mopub.com Thanks Jim -- Jim Payne | MoPub, Inc. | www.mopub.com | m 310-721-6838 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scrollbar
how to keep buttons on the scroll bar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Androidpedia collaborative project...
Hi Android Developers, I wanted to share an idea with you and get your feedback about it. I own the domain androidpedia.com initially I got the domain because I was going to start an android development division in one of my companies. Fortunately business went extreme well on other divisions and my other companies and due to the lack of resources and time to take on the android endeavor we had to drop the project. Few month ago I received a couple of offers for the domain but I thought that being a good domain there could be a better use for it than just simply selling it. So, My idea is to start a site (it could be a wiki or a collaborative blog) about all things Android related... either for developers, end users or both. In other words the wikipedia of anything Android. I'll be more than happy to host the project and provide all the necessary resources to maintain the site online but Of course a project like this wouldn't work without the collaboration of a community. And that's where all of you come in play. Needless to say... this is a collaborative project and not a for-profit project for me or my companies. So, the idea of this discussion is to get your feedback... does a project like this make any sense? Is there something similar out there that is already providing this information on a collaborative environment to help anybody interested in information about android? Would you participate on a project like this? Do you think something like this could be beneficial for you, the android community or android users? Is this just a bad idea and I should just sell the domain now that i can... :D ? Like I said, without a community willing to share their knowledge with the world... a project like this wouldn't make any sense and for sure wouldn't work... so any feedback that you have would be highly appreciated. Thanks for taking the time to read this and I'll keep an eye in this conversation to read anything that you have to say. - Emerson Quevedo. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Customised border for the imageView in gallery
How to design custom border for the imageview used in gallery?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Flash games for Android is it possible?
I have several games I have developed for flash and use as google gadgets. I want to package them for the addroid market. Is this possible? Can you package flash games for use on android phones. I can play them if i like directly to the swfs on my server. Can you point out any tutorials on how to do this in the sdk? Im a complete newbie in this realm. Thanks for your help Josh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Web Server
We had apache web server running in nokia s60 phones. Google for raccoon or Johan Wikman. A gw handled the nat issue. The battery ran out quite fast but because we can is a good reason to give ita try! br, risto On 7 loka, 20:19, Bret Foreman bret.fore...@gmail.com wrote: I've run a web server from a PC using my phone as a gateway and the results were mixed. Some carriers will sense and block the inbound connection and others will not. But it's against the TOS for all carriers. That is set to change as more people do pier-to-pier web services, but it's not reliable now unless you buy a special phone plan that allows it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wireless settings dialog
Hello, i am checking networking connection using the below code: public static boolean haveInternet(Context ctx) { NetworkInfo info = (NetworkInfo) ((ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo(); if (info == null || !info.isConnected()) { return false; // no connection } return true; // true if having connection } Now, on no connection , i am launching Wireless settings dialog using the below code: context.startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS)); but, user is being able to on/off the wireless, now how do i come to know whether the user has made on the wi-fi or not? what result is returned by the above intent on the successful wireless connection. how do i check it ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HelloWorld.... now what?
I've just started here. I downloaded the SDK did the HelloWorld tutorial and I don't no what to do next. This is the first Java programing I've ever done. I want to start making my own apps but how Please clear this up for me! Cheers Josh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Location debbuging on device
TreKing is right. You should enable GPS on your test device (Settings Location and Security). Then in your onLocationChanged, you can put in a Toast or Log to display to you the current location. If you don't get location updates, try setting Use Wireless Networks (also in Settings Location and Security). - Zarah. On Oct 7, 9:27 am, TreKing treking...@gmail.com wrote: On Tue, Sep 28, 2010 at 10:22 PM, Luiz Felipe Puccinelli Glingani luizfelip...@gmail.com wrote: When I tried to do the same thing on debugging device, didn't work and on DDM5 I can't send this information. I don't think this is possible. A physical device should have a GPS built in to let you get GPS data. The DDMS controls are for faking it in the emulator which lacks a GPS. --- -- 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] Application Testing Group anyone?
Would anyone be interested in setting up an application testing group where various beta apps could be tested by individuals on DIFFERENT phone models to help ensure the stability of new apps + provide concise feedback to the developer... I ran into this problem because for some types of apps the emulator setting dont seem to be a good enough and reliable indication of whether the app will ACTUALLY work on different phones... Anyone interested? It should be easy enough to get to the downloads to share and I would be happy to provide feedback on other's apps for a little more constructive + informed criticism of my own, espcially infroming of exceptions more descriptively Comments? Sanjay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Proper way to use Non-Extended Classes?
I have an app I am working on and being new to Android Dev I am running into a situation I have a Scores class not extended from anything (Activity,Service, etc) but in the same package that needs to access SharedPreferences public class Scores { Context ctcx; public Scores(Context context) { ctcx = context; } public void resetScores(){ SharedPreferences pref = getSharedPreferences(MyPref,ctcx.MODE_PRIVATE); } } Always results in constructor not defined? All the imports are there and Eclipse doesnt flag until it tries to run on emulator. Does everything have to extend something in android? Thx for any guidance Eric -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: TextView height not collapsing
Duh, I missed that somehow. Thanks! On Oct 6, 9:00 pm, TreKing treking...@gmail.com wrote: On Thu, Sep 30, 2010 at 2:25 PM, Tim S taschmidt1...@gmail.com wrote: How exactly do you get them to go away without removing them altogether? http://developer.android.com/reference/android/view/View.html#GONE --- -- 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] Moderators: Where did my post go?
24 hours ago I posted a message with the subject View.computeScroll(): How to implement it correctly?. It was never published. Where did it go? Thanks, -Jonas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Droid 2 Fast Web Installer
I've seen all the posts claiming the Droid ID is the problem with why apps cannot push. However, why is it that I can uninstall apps via the Appbrain website and they will automatically uninstall on my Droid 2, but I just cannot install apps? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] onPrepareDialogBuilder, onClick setItemChecked for multi choice
Hi, I've spent over a week trying to figure out a way to do a Limited Multi Selection Preference list. Meaning I want to limit how many of the items a user can check. Nothing I've tried works. I'm ready to give up on Android if something seemingly simple is so hard. I've been programming a long time and don't remember being beaten up this badly by something like this. I have to assume I am not understanding something basic. I hope someone can point me in the right direction. Here is the simplest code I can think off that should work. It does not clear the checkbox even when setting it to false, I've tried true as well. Why doesn't that work? If that will not work, what will? Any help would be most appreciated. @Override protected void onPrepareDialogBuilder(Builder builder) { CharSequence[] entries = getEntries(); CharSequence[] entryValues = getEntryValues(); if (entries == null || entryValues == null || entries.length ! = entryValues.length ) { throw new IllegalStateException( ListPreference requires an entries array and an entryValues array which are both the same length); } // Added by WJT since we are loading the entries values after instantiation // we need the clicked indexes to be setup now, they would not have been // set up in the constructor if ((mClickedDialogEntryIndices == null) || (mClickedDialogEntryIndices.length == 0)) mClickedDialogEntryIndices = new boolean[getEntries().length]; restoreCheckedEntries(); builder.setMultiChoiceItems(entries, mClickedDialogEntryIndices, new DialogInterface.OnMultiChoiceClickListener() { public void onClick(DialogInterface dialog, int which, boolean val) { mDlg = (AlertDialog)getDialog(); mListView = (ListView)mDlg.getListView(); if (val) { if (mSelectedCount mLimit) { mClickedDialogEntryIndices[which] = val; mSelectedCount++; } else { mListView.setItemChecked(which, false); Toast.makeText(getContext(), R.string.newsLimitExceededMessage, Toast.LENGTH_LONG).show(); } // (mSelectedCount mLimit) } else { mClickedDialogEntryIndices[which] = val; mSelectedCount--; } // (val) } // void onClick(DialogInterface dialog, int which, boolean val) }); // DialogInterface.OnMultiChoiceClickListener() } // void onPrepareDialogBuilder(Builder builder) Thanks, \ ^ / i l l -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Launch camera app with an intent?
Please check android.provider.MediaStore.ACTION_IMAGE_CAPTURE Zeljko On Oct 8, 12:23 am, Ozymandias jor...@gmail.com wrote: I can't find any intent which opens the camera. The closest I've found is ACTION_CAMERA_BUTTON but that breaks if the phone has no hardware button for the camera. Anyone know? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Aplicação criação d e arquivo PDF.
To ask in english you can use following service of GOOGLE Translator http://www.google.co.in/language_tools?hl=en THANKS, SAGAR BORSE BE IT GECA Registered Linux User #500860 स्वताः मुक्त व्हा , अन नंतर स्वॅाफ्टवेअर मुक्त करा. 2010/10/8 Paul Turchenko paul.turche...@gmail.com Try asking is English... this way you'll have more chances to get answer On Oct 6, 11:55 pm, Erick erickbrit...@gmail.com wrote: Ola a todos! Estou com uma solicitação de desenvolvimento de uma aplicação que crie um arquivo PDF, tentei usar o IText mas na hora de fazer o PdfWriter.getInstance(doc, os); apresenta erro ERROR/dalvikvm(223): Could not find method java.awt.Color.equals, referenced from method com.lowagie.text.Font.compareTo. Alguém já escreveu algum código para criação de PDF para Android? Att, Érick. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] post processing dgps
Hi, I need to do Post processing DGPS in android app. I tried the 'gps logger for android' app to collect gps data in gpx format. In order to do post processing i need the gps data to be in RINEX format. I cudnt find any tools to convert into rinex file format. how do i do it? Is there any other way to achieve post processing dgps in android? Your help is greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SMS Sent but Not Received
I have an app that listening to the incoming text msg. When it comes, the app replies a msg to the sender. On emulator, it seems working fine as designed. After deployed on phone, the incoming msg comes, the app still can be notified. So the app sends a reply to the sender. The problem is the reply msg is never received. This is the line that does the send: SmsManager.getDefault().sendTextMessage(incomingPhoneNumber, null, application.getMessage(), null, null); According to the document, I can send with two intents as the last two params, so I could be assured that the msg is actually sent and/ delivered. So I added following: Intent sentIntent = new Intent(context, SmsResultReceiver.class); sentIntent.putExtra(INCOMING_PHONE_NUMBER, incomingPhoneNumber); sentIntent.setAction(SMS_SENT); Intent deliverIntent = new Intent(context, SmsResultReceiver.class); deliverIntent.putExtra(INCOMING_PHONE_NUMBER, incomingPhoneNumber); deliverIntent.setAction(SMS_DELIVER); PendingIntent sentPendingIntent = PendingIntent.getBroadcast(application.getApplicationContext(), 0, sentIntent, PendingIntent.FLAG_CANCEL_CURRENT); PendingIntent deliverPendingIntent = PendingIntent.getBroadcast(application.getApplicationContext(), 0, deliverIntent, PendingIntent.FLAG_CANCEL_CURRENT); SmsManager.getDefault().sendTextMessage(incomingPhoneNumber, null, application.getMessage(), sentPendingIntent, deliverPendingIntent); In SmsResultReceiver, I received the notification the sms is sent; but I never received the notification that sms is delivered. In the phone that I sent the text msg never receives the reply msg from android. Is therer something I simply overlooked? I have the following permissions: uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.SEND_SMS/ uses-permission android:name=android.permission.RECEIVE_SMS/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 connect internet in Android Emulator???
I dont know, how to connect internet in Android Emulator??? I am currently working on Final year android project based on GPS. Please help me out!!! THANKS, SAGAR BORSE BE IT GECA Registered Linux User #500860 स्वताः मुक्त व्हा , अन नंतर स्वॅाफ्टवेअर मुक्त करा. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] X Axis Sensor Correction - Flipped Sensor Detection - Froyo
We are trying to determine the best way to patch InputDevice.java to correct a sensor issue. The touchscreen is detecting the location opposite of the pressure. For instance, to unlock the device, I have to put my finger in the exact spot on the left side of the screen for it to register on the right side. The same thing happens for buttons, press right to touch the left button, and vice versa. We thought it might be possible to half the absolute value, but that may not work as the absX range is 0-4095. From debug: Left Side D/InputDevice( 1062): reportData[j + MotionEvent.SAMPLE_X] = 3708.0 D/InputDevice( 1062): absX.minValue = 0 D/InputDevice( 1062): absX.range = 4095 D/InputDevice( 1062): w = 799 D/InputDevice( 1062): reportData[j + MotionEvent.SAMPLE_X] = 3711.0 D/InputDevice( 1062): absX.minValue = 0 D/InputDevice( 1062): absX.range = 4095 D/InputDevice( 1062): w = 799 Right Side /InputDevice( 1062): reportData[j + MotionEvent.SAMPLE_X] = 256.0 D/InputDevice( 1062): absX.minValue = 0 D/InputDevice( 1062): absX.range = 4095 D/InputDevice( 1062): w = 799 Would adjusting currentmove be the place? or is there a better way to correct this issue in Froyo? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 programatically Pan one image over another using a seekbar to control Pan?
Hi All, I'm wanting to implement a seekbar to control the horizontal position of an image. I have tried to use a matrix.postTranslate but it doesnt appear to do what I want. Snippet below: private void drawMatrix(){ Matrix matrix = new Matrix(); matrix.postTranslate(panX, panY); Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, bmpWidth, bmpHeight, matrix, true); myImageView.setImageBitmap(resizedBitmap); } Any help would be greatly appreciated. Thanks Grade -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hiring Experienced Android Developers - SF Bay Area / NYC
Hello, I am from MoPub, the mobile monetization platform for iOS and Android. We are actively hiring Android developers to grow out our developer relations and outreach teams. If you have experience building Android apps and have some apps that are live in the Market, we'd like to talk to you. Please send me a resume directly on my work account (jpa...@mopub.com) if you are interested and a little bit about the apps that you've developed. Thanks Jim -- Jim Payne | MoPub, Inc. | www.mopub.com | m 310-721-6838 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gallery view problems - external memory
Hi all, I have developed a very simple gallery (it started as the hello gallery example) where I have added code to get the images from the content provider. It should return all images from the SD card but it is returning no images, my gallery view is blank. I am a fairly new developer, just working my way around the tutorials online. Here is the code. package com.tutorials; import java.util.ArrayList; import android.app.Activity; import android.content.ContentResolver; import android.content.Context; import android.content.res.TypedArray; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore.Images.Media; import android.provider.MediaStore.Images.Thumbnails; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.BaseAdapter; import android.widget.Gallery; import android.widget.ImageView; import android.widget.Toast; public class HelloGallery extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Gallery g = (Gallery)findViewById(R.id.gallery); g.setAdapter(new ImageAdapter(this)); g.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView parent, View v, int position, long id){ Toast.makeText(HelloGallery.this, + position, Toast.LENGTH_SHORT).show(); } }); } public class ImageAdapter extends BaseAdapter{ int mGalleryItemBackground; private Context mContext; //get images from phone public ArrayListUri getImageTable(){ ArrayListUri arrayList = new ArrayListUri(); try{ ContentResolver cr = getContentResolver(); String imageId = Media._ID; Toast toast = Toast.makeText(mContext,imageId,Toast.LENGTH_LONG); toast.show(); String [] images = new String[]{imageId}; //Get Uri of ContentProvider MediaStore.Images.ImageColumns Uri mediaUri = Thumbnails.EXTERNAL_CONTENT_URI; Cursor managedCursor = managedQuery(mediaUri, images, null, null, null); startManagingCursor(managedCursor); int columnIndex = managedCursor.getColumnIndexOrThrow(imageId); for(int i=0;imanagedCursor.getCount();i++){ managedCursor.moveToPosition(i); int id = managedCursor.getInt(columnIndex); arrayList.add(Uri.withAppendedPath(mediaUri, + imageId)); } }catch(Exception e){ Toast toast = Toast.makeText(mContext,e.toString(),Toast.LENGTH_LONG); toast.show(); } return arrayList; } public ImageAdapter(Context c){ mContext = c; TypedArray a = obtainStyledAttributes(R.styleable.HelloGallery); mGalleryItemBackground = a.getResourceId( R.styleable.HelloGallery_android_galleryItemBackground, 0); a.recycle(); } @Override public int getCount() { // TODO Auto-generated method stub return 0; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { // TODO Auto-generated method stub ImageView i = new ImageView(mContext); //i.setImageResource(mImageIds[position]); i.setImageURI(getImageTable().get(position)); i.setLayoutParams(new Gallery.LayoutParams(150, 100)); i.setScaleType(ImageView.ScaleType.FIT_XY); i.setBackgroundResource(mGalleryItemBackground); return i; } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] writing Events into Google Calendar in Android failed
Hello, All: when I insert one new Calendar Event into Google calendar from my app, the log message was given: 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): Error inserting transparency=0 dtstart=128589120 title=TestCalendar _sync_dirty=1 dtend=128589120 visibility=0 allDay=1 lastDate=1285950628697 hasAlarm=0 eventStatus=1 into table Events 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed 10-05 00:30:44.171: ERROR/DatabaseUtils(8479): at android.database.sqlite.SQLiteStatement.native_execute(Native Method) would you please tell me how to solve it? Best Regards, Kapuddi Next is my sample code: // Platform: android 2.2 froyo private static final String calendarcontentStr = content://com.android.calendar/events; ContentValues event = new ContentValues(); //event.put(title, mAct.getString(R.string.read) + : + title); event.put(title, TestCalendar); long startTime = startC.getTimeInMillis(); long endTime = endC.getTimeInMillis(); event.put(dtstart, startTime); event.put(dtend, endTime); //event.put(allDay, 1); event.put(eventStatus, 1); event.put(visibility, 0); event.put(transparency, 0); event.put(hasAlarm, 0); Uri eventsUri = Uri.parse(calendarcontentStr); Uri uri = mAct.getContentResolver().insert(eventsUri, event); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 create Custom AutoCompleteTextView ?
Hi all, I want to display List of Contact Names with the respective phone numbers like --- Vikas Patidar 99 --- Rahul Patidar 99 --- using AutoCompleteTextView when a user type text in the mobile number field. In default style i can only display the list of names. Can anyone please tell me how can I implement this so that when a user select any item in list and i can display number of that in Mobile number field. Thanks All -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hiring Experienced Android Developers - SF Bay Area / NYC
Hello, I am from MoPub, the mobile monetization platform for iOS and Android. We are actively hiring Android developers to grow out our developer relations and outreach teams. If you have experience building Android apps and have some apps that are live in the Market, we'd like to talk to you. Please send me a resume directly if you are interested and a little bit about the apps that you've developed. Thanks Jim -- Jim Payne | MoPub, Inc. | www.mopub.com | m 310-721-6838 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Architectural question
I'm new to Android and I'm porting an iPhone app I did. I've been reading up on Android services and they look very useful for the network component of my app. I assume there is a common pattern for what I'm trying to do, so here are the details: 1. User1 and User2 agree to enter a virtual room. 2. They send messages to each other and get notified when they receive a messages. I'm using a remote server to handle the communication. So basically, I need three methods. One to add the users to a room, one to send messages and one to get messages. Nothing special. What I'd like to do is have one service that accepts a few paramaters. One being which web service method to call, the rest being the parameters that need to be passed to the respective web services. I'd prefer this approach to having a different service for each method call. Any suggestions on the best approach? I'm not clear on how to pass parameters to services. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en