[android-developers] [android-developer] How can we register broadcastreceiver dynamically (in java file)
h, I want to send sms but register receiver dynamically. plz send me the source code. Thanks to 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] [android-developer] How can we rotate image
hii I have attached an image which i want to rotate. plz send me source code. thanks to 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=enattachment: dhup_patra.png
Re: [android-developers] [android-developer] How can we rotate image
*Hi* * * *accept invitation,,* * * * * *Regards* *Tushar Sahni* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Memory leaks when using bitmaps in android
When chasing a problem like this a couple of years ago, my testing seemed to indicate that setting a bitmap to null right after a call to recycle() was leaky. It was as though the recycle call needed some time to work, and setting null got in the way. I found it was better to just call recycle on its own, and then let the GC deal with the empty bitmap object in its own time. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The accelerometer reading looks odd
Hi, I am trying to read the device accelerometer when the phone is placed on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at z-axis. But I get x:11,y:-37,z:-24(decimal part ignore) What is this? I read the doc of accelerometer, does not make it clear. Could you please help : 1. Why x and y are non-zero? 2. Why the value is so large? 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] Problem with SQLite Insert command
On Wed, Dec 21, 2011 at 3:49 PM, Gopal amber.gopal...@gmail.com wrote: I am new to andriod. I started creating a sample app using Sqlite databse. When i run the app i m getting this error ERROR/AndroidRuntime(878): Caused by: android.database.sqlite.SQLiteException: table employee has 11 columns but 12 values were supplied: , while compiling: INSERT INTO employee VALUES(null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) Here, you are supplying 12 values (including null). db.execSQL(sql, new Object[]{id,fname, lname, title, skill, DOJ, prc, officePhone, callPhone, email, mid}); But here it seems, you have 11 columns. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can we register broadcastreceiver dynamically (in java file)
http://developer.android.com/reference/android/content/Context.html#registerReceiver%28android.content.BroadcastReceiver,%20android.content.IntentFilter%29 Just use Context's registerReceiver(), e.g. from your application's onCreate(). Remember to unregister the receiver, from an activity the lastest point to unregister would be in onDestroy. registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { // Do something } }, new IntentFilter(SOME INTENT)); On Dec 22, 9:01 am, surabhi jain surabhi17.j...@gmail.com wrote: h, I want to send sms but register receiver dynamically. plz send me the source code. Thanks to 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
Re: [android-developers] In-App Purchase Problem - Market Version 3.4.4
Yes, one of my users reported this exact failure last week, and confirmed having Market 3.4.4. He was able to make the purchase yesterday after trying several times, so either it's fixed on Google's side or is intermettent. -- Kostya 20 декабря 2011 г. 23:50 пользователь Justin jmsconsult...@gmail.com написал: Hey Everybody, Looks like Google has introduced a bug in version 3.4.4 of the Market APK: All in-app purchases fail with the message Error retrieving information from server. I've tested this with my application, and in the Paradise Island app by attempting to purchase 50,000 Island Bucks. Both result in the same error message. Additionally, the folks in Freenode's #android-dev IRC channel mentioned other developers complaining about this same issue, which was isolated to version 3.4.4 of the Market APK. Anybody else experiencing this issue? Is Google working on a fix? Thanks, /Justin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Accessing to Canvas's parent
Thanks for answering Romain Guy. And, how I can access this Canvas shared by all Views in the same window? Why you say I can understand, that the Canvas of bottom View contains the drawing of other Views, is this true? 2011/12/21, Romain Guy romain...@android.com: a All views in a same window share a single Canvas. There's no such thing as a parent Canvas. On Dec 21, 2011 9:37 PM, Gilberto Cuba R gcubar2...@gmail.com wrote: Hello colleagues, I'm trying to simulate the HTML5 Canvas behaviour on Android. In order to achieve this, I have created several classes that inheritate from View, and therefore have THEIR OWN canvas, wich is not shared, (and please correct me if I'm wrong) that is, that all my inherited View classes have a Canvas that is not relationed with other instance classes. So, I've named this classes after the figures, for instance: MyLine, MyCircle, MyRectangle, MyPolygon, etc. When it comes to drawing this figures I have no problem at all because all I do is overwrite the onDraw() method and no harm done. Only that the canvas I'm currently drawing is the same as in the figure. All this mess has its inconveniences, or at least is coming out as so, for I also mean to implement a MyClip() class, allowing it to properly apply to the canvas's drawClip method when it is leveled with the other figures, any other way, it doesn't work out as expected. And well, such like this one I have other troubles for not being able to acces the Canvas of the Parent on my class. Any suggestions on the path I should follow, or at least some reajustment in the classes desing so I can reach my goal? Thank you for advance. Gilberto Cuba -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Saludos, Gilberto Cuba -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How can we register broadcastreceiver dynamically (in java file)
I register receiver like that in my activity class registerReceiver(sendreceiver, new IntentFilter(SMS_SENT)); private BroadcastReceiver sendreceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String info = Send information: ; switch(getResultCode()) { case Activity.RESULT_OK: info += send successful; break; case SmsManager.RESULT_ERROR_GENERIC_FAILURE: info += send failed, generic failure; break; case SmsManager.RESULT_ERROR_NO_SERVICE: info += send failed, no service; break; case SmsManager.RESULT_ERROR_NULL_PDU: info += send failed, null pdu; break; case SmsManager.RESULT_ERROR_RADIO_OFF: info += send failed, radio is off; break; } Toast.makeText(getBaseContext(), info, Toast.LENGTH_SHORT).show(); } }; and in receiver class in which i am extending broadcastReceiver I am getting the action and switch to activity class But my receiver is not registering. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: 4.0 Action Bar - remove app title.
On Thu, Dec 22, 2011 at 1:20 AM, Nathan critter...@crittermap.com wrote: Half of the Actionbar is still set aside for the nonexistent title. And the nonexistent tabs, the nonexistent Spinner, and the nonexistent custom navigation. Probably they are leaving that space in case you enable any of those. My hope was to fit more than two actions on it. Use the split action bar, to put actions on the bottom of the screen. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Corrupted pictures from camera
I am trying to inexpensively get my hands on an HTC Desire S to try to track down what is going on. This may take some time. On Tue, Dec 20, 2011 at 8:34 AM, Dmitri Hrapof yavanna...@gmail.com wrote: Hello! As mentioned here: http://stackoverflow.com/q/8466757/1092612 and here http://stackoverflow.com/q/6967723/1092612 (and I think I've seen this kind of problem on stackoverflow at least once more) there is a problem taking pictures programmatically on some devices. I believe Camera/Picture example by Mark Murphy is written correctly (at least it follows Google documentation). What then? Do offending phones have some private camera interface? Sincerely yours, Dmitri -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Distributing adb
On Wed, Dec 21, 2011 at 4:54 AM, Brian Rowe bripr...@gmail.com wrote: I'm developing a system for which an Android application is a component. I am considering distributing the adb as part of the system. Does the SDK license allow me to do this? Section 3.1 of the license leads me to believe that (re)distributing the adb binary may not be permitted. Is that true? If it is true, am I permitted to distribute a version I've compiled myself? What if it's a modified version? For legal advice, please consult legal counsel. That being said, the source code to adb is available in the Android Open Source Project, and so building from there should be no different than building from any other Apache-licensed code base. Note that I have no idea if the Windows USB driver source code is out there, as I haven't gone looking for that. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Native SIP Supported on all ICS Devices?
The code should be there. SIP support can be disabled by carriers/device manufacturers, as I understand it. On Wed, Dec 21, 2011 at 4:56 PM, Shaun shaun.cl...@a-cti.com wrote: From what I understand ICS is supposed to bring devices up to more or less equal standards, does this include the native SIP library, i.e. as soon as my Galaxy S II gets ICS will I be able to use the native SIP client on it and any other ICS device? Thanks! Shaun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How can we register broadcastreceiver dynamically (in java file)
how do you know it is not registering? and what does getResultCode() do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 pair two devices to transfer file over Bluetooth using NFC
Everything is working fine but i am getting a pairing request or to match the keys on both the phones which should not come. How do you know if both devices support unsecure connections? They may just not. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] GPS Status Listener
Hi, I want to receive Events when GPS is tuned on and off. Here my Class: public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager locMgr = (LocationManager)this.getSystemService(Context.LOCATION_SERVICE); locMgr.addGpsStatusListener(mGPSStatusListener); } public Listener mGPSStatusListener = new GpsStatus.Listener() { public void onGpsStatusChanged(int event) { switch(event) { case GpsStatus.GPS_EVENT_STARTED: Log.d(POWER, GPS ON +event); break ; case GpsStatus.GPS_EVENT_STOPPED: Log.d(POWER, GPS OFF +event); break ; } } }; } Whats wrong here? I don´t receive any Events :-( In the Manifest I´ve set uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?
As no one has responed to this issue yet, I shall try to explain it in more detail. In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model GT-P7500, one could put the following in the Manifest file: uses-feature android:name=android.hardware.telephony android:required=false/ In the app code, one could e.g. use the following too check what features are available: PackageManager pm = getPackageManager(); boolean hasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that method. The problem would be solved if there existed a constant like PackageManager.FEATURE_SMS or similar, but there is no such thing. I think that the Market is still not prepared for the type of products like the Galaxy Tab 10.1 model GT-P7500. Any ideas as to how I can solve this? Terry On 21 Des, 12:38, Terry terb...@gmail.com wrote: I have tried to ask this question elsewhere, but without getting any answer I can use. So I try it here also. I have some apps which send and receive SMSs. They are invisible for the new Galaxy Tablets on the Market, and they cannot be dowloaded to them. WHY? As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio phone calls - but it DOES support sending and receiving SMSs, there should be no problem. In fact, when I download these apps to the GT- P7500 locally, they work as expected. The Market however, sees the permissions to SEND_ and RECEIVE_SMS in the Manifest file of the apps, and interprets this so as to require hardware.telephony from the Galaxy Tabs. Which is does not seem to support. Any idea how to make a work-around for this problem? Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maddening
I have a VIZIO tablet with Android 2.3. I'm trying to get this game for it: https://market.android.com/details?id=com.ea.game.madden12_na When I go into the Market app on the tablet and search, it never shows up. Any ideas why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How can we register broadcastreceiver dynamically (in java file)
I think not sure that getResultCode() gives the status of sms that our sms sent or not (no service), it passes integer value and according to that we can fing out the sms status. when I installed my application on emulator then after sending sms, I want that my another activity should launch, but it would not work and I also used Logs for getting the flow, but nothing I have seen. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maddening
It's most likely not compatible with the vizio tablet. Thanks On Thu, Dec 22, 2011 at 6:26 PM, bob b...@coolfone.comze.com wrote: I have a VIZIO tablet with Android 2.3. I'm trying to get this game for it: https://market.android.com/details?id=com.ea.game.madden12_na When I go into the Market app on the tablet and search, it never shows up. Any ideas why? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maddening
You continue to confuse this group with one that deals with technical support issues for Android devices. It's not. Try this: http://support.google.com/androidmarket/?hl=en - 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] launcher screen like android market
Hi, I want to know if anyone hás a reference for how i make a launcher screen like the features in android marketif this screen use imagebutton ?!...what the type of this layout !? Thanks in advance Igor -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] launcher screen like android market
On Thu, Dec 22, 2011 at 11:17:41AM -0200, Igor Nesralla Ribeiro wrote: I want to know if anyone h?s a reference for how i make a launcher screen like the features in android marketif this screen use imagebutton ?!...what the type of this layout !? 1) Don't hijack an existing thread like you just did. That is not accepted in most, if not all e-mail lists, forums, newsgroups, etc. 2) Check out the sample launcher in the SDK samples, and work through it and the developer's guide. After that, you should be on a better start for writing your launcher app. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W Do not look into waveguide with remaining eye. Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: InputMethodManager and mServedView
On Thu, Dec 15, 2011 at 5:19 AM, Sam peacejo...@gmail.com wrote: No one knows whats going on, what a pity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [android-developer] How can we rotate image
On Thu, Dec 22, 2011 at 2:07 AM, surabhi jain surabhi17.j...@gmail.comwrote: plz send me source code. plz send me cash money. - 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] getColumnIndex exception
Hi All, I am getting the following exception each time I am accessing the columns in Database. Though application is not crashing , but still wants to find out the reason for exception being thrown. 12-22 19:02:38.398: E/Cursor(11669): java.lang.Exception 12-22 19:02:38.398: E/Cursor(11669): at android.database.sqlite.SQLiteCursor.getColumnIndex(SQLiteCursor.java:312) Running it on android 2.3.3 emulator. Warm Regards, Sudeep -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADT 15.0.1 and library dependencies problems (Conversion to Dalvik format failed with error 1)
What if you build JP, put it into a plain JAR and add this JAR to AL1 and AL2? This may be more of an Eclipse issue than an Android one, since being dependent on a java-project will cause the source to be 'imported' (kind-of) and compiled into the depending projects (AL1 and AL2). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADT 15.0.1 and library dependencies problems (Conversion to Dalvik format failed with error 1)
What if you build JP, put it into a plain JAR and add this JAR to AL1 and AL2? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Trouble dismissing custom dialog
On Wed, Dec 21, 2011 at 7:21 PM, Alex Oh alexo...@gmail.com wrote: However, once I press the edit button (dialog opens up, dismisses fine) and click on the Add button, the dialog no longer closes when the Done or Cancel button for the dialog shows up. Why are you adding your own buttons into the dialog instead of using the the default Positive, Negative, and Neutral buttons? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Trouble dismissing custom dialog
Better is to use a DialogFragment. If you can't use Fragments, use the onCreateDialog(...) call-back returning the dialog created in addPCDialog and use 'showDialog(id)' and 'dismissDialog(id)' instead (or dialog.dismiss() in your click-handlers). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 not getting posted
Hello. I've posted a question about the new Nexus phone but it has not gotten posted. Can you explain why? Thanks. Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: question not getting posted
nevermind On Thu, Dec 22, 2011 at 10:51 AM, Steve Geller stevegel...@gmail.com wrote: Hello. I've posted a question about the new Nexus phone but it has not gotten posted. Can you explain why? Thanks. Steve -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Simple File Uploading in Server
On Tue, Dec 20, 2011 at 10:00 PM, 181 pravinmat...@gmail.com wrote: But my APK file is not getting installed in my phone, Why not? 1)should i add any extra codes to this (above) code? You want us to read that code and tell you how to modify it? How about you play with it and determine what modifications you need to make. Try that. 2)How to add permissions to my script on server side? This has nothing to do with Android. 3)Should any changes to be made in Androidmainfest.xml and wot? That would depend on what you're trying to do. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] pagination with numbering
On Tue, Dec 20, 2011 at 4:51 AM, yogesh...@acusis.com yogesh...@acusis.comwrote: i want to do pagination with numbering(dynamically allocating the number of pages) navigate to specific page clicking on number Cool, thanks for sharing. I want to do swipe gestures and sexy animations. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Add target similar to otapackage
On Wed, Dec 21, 2011 at 7:55 PM, 卞磊 mykofz...@gmail.com wrote: How can i build this package? Or is there a guide for how to add a target similar to otapackage? Wrong list. Go to the documentation and find the group most appropriate for what you're trying to do. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
On Wed, Dec 21, 2011 at 10:29 PM, James Black planiturth...@gmail.comwrote: The free version of my application has this error, so it can't create the map overlay, whereas the pay version works properly. The error in the post title is benign - it does and means nothing, AFAIK. I get it all the time. Are they both signed with the same release key? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
Yes, they share the same mapview XML file, where the Google maps key is. That is why I am confused. On Dec 22, 2011 11:19 AM, TreKing treking...@gmail.com wrote: On Wed, Dec 21, 2011 at 10:29 PM, James Black planiturth...@gmail.comwrote: The free version of my application has this error, so it can't create the map overlay, whereas the pay version works properly. The error in the post title is benign - it does and means nothing, AFAIK. I get it all the time. Are they both signed with the same release key? - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 replace GLSurfaceView with TextureView in Android Ice Cream Sandwich?
Thanks Romain. I really just want to swap out the pixel shader on the SurfaceTexture's OpenGL texture so I can do some filtering on the camera preview. But it sounds like that isn't an option. I have used ColorMatrixFilters on the view itself and they work quite well, just not powerful enough for what I want to do. On Dec 21, 8:18 pm, Romain Guy romain...@android.com wrote: There's no need to get the camera preview out of SurfaceTexture. The whole point of SurfaceTexture is to let a producer like the camera render into an OpenGL texture. Just use SurfaceTexture. To draw on top of TextureView, just add another view on top of it. On Dec 21, 2011 9:35 PM, Brad Grimm sna...@gmail.com wrote: Thanks for the post, it has been really helpful. But say I want to draw on top of a SurfaceTexture that is connected to a Camera via setPreviewTexture. I can get the SurfaceTexture by a SurfaceTextureListener. But if I just try to use eglCreateWindowSurface eglMakeCurrent it fails due to the surface already being connected. 1) Is it possible to draw on this surface at all? Or does binding it to the camera make it impossible to do that. 2) If it isn't possible. Can the surface be used (or copied) quickly to an OpenGL texture and used in a separate surface? If so how? 3) If not, what would be the fastest way to get the camera preview out of a SurfaceTexture and into OpenGL? P.S. - I too followed suit and posted to StackOverflow: http://stackoverflow.com/questions/8582090/possible-to-draw-on-surfac... On Nov 23, 11:45 am, plafayette pierre.lafaye...@gmail.com wrote: Thanks for the quick response Romain and the sample code! Will give it a try. On Nov 23, 12:17 pm, Romain Guy romain...@android.com wrote: GLSurfaceView handles GL setup for you, whichTextureViewwill not do. A TextureViewcan be used as the native window when you create an EGL surface. Here is an example (the interesting part is the call to eglCreateWindowSurface()): @Override public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { mRenderThread = new RenderThread(getResources(), surface); mRenderThread.start(); } private static class RenderThread extends Thread { private static final String LOG_TAG = GLTextureView; static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098; static final int EGL_OPENGL_ES2_BIT = 4; private volatile boolean mFinished; private final Resources mResources; private final SurfaceTexture mSurface; private EGL10 mEgl; private EGLDisplay mEglDisplay; private EGLConfig mEglConfig; private EGLContext mEglContext; private EGLSurface mEglSurface; private GL mGL; RenderThread(Resources resources, SurfaceTexture surface) { mResources = resources; mSurface = surface; } private static final String sSimpleVS = attribute vec4 position;\n + attribute vec2 texCoords;\n + varying vec2 outTexCoords;\n + \nvoid main(void) {\n + outTexCoords = texCoords;\n + gl_Position = position;\n + }\n\n; private static final String sSimpleFS = precision mediump float;\n\n + varying vec2 outTexCoords;\n + uniform sampler2D texture;\n + \nvoid main(void) {\n + gl_FragColor = texture2D(texture, outTexCoords);\n + }\n\n; private static final int FLOAT_SIZE_BYTES = 4; private static final int TRIANGLE_VERTICES_DATA_STRIDE_BYTES = 5 * FLOAT_SIZE_BYTES; private static final int TRIANGLE_VERTICES_DATA_POS_OFFSET = 0; private static final int TRIANGLE_VERTICES_DATA_UV_OFFSET = 3; private final float[] mTriangleVerticesData = { // X, Y, Z, U, V -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, }; @Override public void run() { initGL(); FloatBuffer triangleVertices = ByteBuffer.allocateDirect(mTriangleVerticesData.length * FLOAT_SIZE_BYTES).order(ByteOrder.nativeOrder()).asFloatBuffer(); triangleVertices.put(mTriangleVerticesData).position(0); int texture = loadTexture(R.drawable.large_photo); int program = buildProgram(sSimpleVS, sSimpleFS); int attribPosition = glGetAttribLocation(program, position);
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
On Thu, Dec 22, 2011 at 10:50 AM, James Black planiturth...@gmail.comwrote: Yes, they share the same mapview XML file, where the Google maps key is. No, are your apps *signed with the same key*? This is different then the maps API key. This is what you use when you build your APK for distributing on the Android Market. Are you using one signing key for both apps? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to replace GLSurfaceView with TextureView in Android Ice Cream Sandwich?
It is definitely an option, that's what SurfaceTexture is for. It's very simple: Create an OpenGL context Generate an OpenGL texture name Create a SurfaceTexture with the texture name Pass the SurfaceTexture to Camera Listen for updates On SurfaceTexture update, draw the texture with OpenGL using the shader you want Simple :) On Thu, Dec 22, 2011 at 11:59 AM, Brad Grimm sna...@gmail.com wrote: Thanks Romain. I really just want to swap out the pixel shader on the SurfaceTexture's OpenGL texture so I can do some filtering on the camera preview. But it sounds like that isn't an option. I have used ColorMatrixFilters on the view itself and they work quite well, just not powerful enough for what I want to do. On Dec 21, 8:18 pm, Romain Guy romain...@android.com wrote: There's no need to get the camera preview out of SurfaceTexture. The whole point of SurfaceTexture is to let a producer like the camera render into an OpenGL texture. Just use SurfaceTexture. To draw on top of TextureView, just add another view on top of it. On Dec 21, 2011 9:35 PM, Brad Grimm sna...@gmail.com wrote: Thanks for the post, it has been really helpful. But say I want to draw on top of a SurfaceTexture that is connected to a Camera via setPreviewTexture. I can get the SurfaceTexture by a SurfaceTextureListener. But if I just try to use eglCreateWindowSurface eglMakeCurrent it fails due to the surface already being connected. 1) Is it possible to draw on this surface at all? Or does binding it to the camera make it impossible to do that. 2) If it isn't possible. Can the surface be used (or copied) quickly to an OpenGL texture and used in a separate surface? If so how? 3) If not, what would be the fastest way to get the camera preview out of a SurfaceTexture and into OpenGL? P.S. - I too followed suit and posted to StackOverflow: http://stackoverflow.com/questions/8582090/possible-to-draw-on-surfac... On Nov 23, 11:45 am, plafayette pierre.lafaye...@gmail.com wrote: Thanks for the quick response Romain and the sample code! Will give it a try. On Nov 23, 12:17 pm, Romain Guy romain...@android.com wrote: GLSurfaceView handles GL setup for you, whichTextureViewwill not do. A TextureViewcan be used as the native window when you create an EGL surface. Here is an example (the interesting part is the call to eglCreateWindowSurface()): @Override public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { mRenderThread = new RenderThread(getResources(), surface); mRenderThread.start(); } private static class RenderThread extends Thread { private static final String LOG_TAG = GLTextureView; static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098; static final int EGL_OPENGL_ES2_BIT = 4; private volatile boolean mFinished; private final Resources mResources; private final SurfaceTexture mSurface; private EGL10 mEgl; private EGLDisplay mEglDisplay; private EGLConfig mEglConfig; private EGLContext mEglContext; private EGLSurface mEglSurface; private GL mGL; RenderThread(Resources resources, SurfaceTexture surface) { mResources = resources; mSurface = surface; } private static final String sSimpleVS = attribute vec4 position;\n + attribute vec2 texCoords;\n + varying vec2 outTexCoords;\n + \nvoid main(void) {\n + outTexCoords = texCoords;\n + gl_Position = position;\n + }\n\n; private static final String sSimpleFS = precision mediump float;\n\n + varying vec2 outTexCoords;\n + uniform sampler2D texture;\n + \nvoid main(void) {\n + gl_FragColor = texture2D(texture, outTexCoords);\n + }\n\n; private static final int FLOAT_SIZE_BYTES = 4; private static final int TRIANGLE_VERTICES_DATA_STRIDE_BYTES = 5 * FLOAT_SIZE_BYTES; private static final int TRIANGLE_VERTICES_DATA_POS_OFFSET = 0; private static final int TRIANGLE_VERTICES_DATA_UV_OFFSET = 3; private final float[] mTriangleVerticesData = { // X, Y, Z, U, V -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, }; @Override public void run() { initGL(); FloatBuffer triangleVertices =
[android-developers] Soft keyboard issue
Yet another soft keyboard issue...! I start an activity with the following flags: android:windowSoftInputMode=stateHidden|adjustPan This means that upon startup, the soft keyboard is not displayed. Clicking into the EditText brings up the keyboard as expected. From this activity, I open up a new activity (containing a webview which loads an external site, but I think that's irrelevant), then when the transaction is complete it finishes and returns to the original activity. Once back, the soft keyboard will not display any more. The onClick function of the EditText is still working, I'm logging that, but the keyboard doesn't pop up - so what's happened to the keyboard? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Issue with SDK installation
Sorry I meant version 16. Its the latest version available in Andriod website. Let me know if you have any solution for this issue. On Wed, Dec 21, 2011 at 10:08 PM, Michael Leung michaelchi...@gmail.comwrote: 1.6 is too old, please try to install the latest one. On Thu, Dec 22, 2011 at 5:48 AM, Jagadeesh Koganti jagadeesh.koga...@gmail.com wrote: Hello, I have observed that this is a known issue. But still trying to resolve it. I have successfully installed Andriod SDK 1.6 and also plugged in the required software ito my compatible eclipse. But still I am getting an issue saying SDK Platform Tools component is missing. Please use the SDK Manager to install it. I have seen several forums and followed all the things, but could not succeed. Please could somebody let me know the right procedure to get this error resolved. This is blocking me to start any development activity. -- Regards, Jagadeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Jagadeesh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two projects use one library, one fails with Couldn't get connection factory client
Sorry, I misunderstood. In eclipse I will do Debug as on each and put them on my phone, so the same key is used. Then I have Eclipse export and sign, both with the same key. I follow identical steps for both, but only one works. Thank you for any suggestions. On Dec 22, 2011 12:00 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 22, 2011 at 10:50 AM, James Black planiturth...@gmail.comwrote: Yes, they share the same mapview XML file, where the Google maps key is. No, are your apps *signed with the same key*? This is different then the maps API key. This is what you use when you build your APK for distributing on the Android Market. Are you using one signing key for both apps? - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two projects use one library, one fails with Couldn't get connection factory client
I just checked and my JDK version is 6.0.29. On Dec 22, 2011 12:52 PM, James Black planiturth...@gmail.com wrote: Sorry, I misunderstood. In eclipse I will do Debug as on each and put them on my phone, so the same key is used. Then I have Eclipse export and sign, both with the same key. I follow identical steps for both, but only one works. Thank you for any suggestions. On Dec 22, 2011 12:00 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 22, 2011 at 10:50 AM, James Black planiturth...@gmail.comwrote: Yes, they share the same mapview XML file, where the Google maps key is. No, are your apps *signed with the same key*? This is different then the maps API key. This is what you use when you build your APK for distributing on the Android Market. Are you using one signing key for both apps? - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mysterious crash with Android Monkey
I am testing my app with Android Monkey and after a while it crashes. Does anyone have a clue? Here is the log excerpt: . W/WindowManager( 1103): Failed looking up window W/WindowManager( 1103): java.lang.IllegalArgumentException: Requested window null does not exist W/WindowManager( 1103): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 9293) W/WindowManager( 1103): at com.android.server.WindowManagerService.addWindow(WindowManagerService.java: 1891) W/WindowManager( 1103): at com.android.server.WindowManagerService $Session.add(WindowManagerService.java:6771) W/WindowManager( 1103): at android.view.IWindowSession $Stub.onTransact(IWindowSession.java:66) W/WindowManager( 1103): at com.android.server.WindowManagerService $Session.onTransact(WindowManagerService.java:6743) W/WindowManager( 1103): at android.os.Binder.execTransact(Binder.java: 288) W/WindowManager( 1103): at dalvik.system.NativeStart.run(Native Method) W/WindowManager( 1103): Attempted to add window with token that is not a window: null. Aborting. D/AndroidRuntime(10324): Shutting down VM W/dalvikvm(10324): threadid=1: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime(10324): FATAL EXCEPTION: main E/AndroidRuntime(10324): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? E/AndroidRuntime(10324):at android.view.ViewRoot.setView(ViewRoot.java:505) E/AndroidRuntime(10324):at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) E/AndroidRuntime(10324):at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) E/AndroidRuntime(10324):at android.widget.PopupWindow.invokePopup(PopupWindow.java:828) E/AndroidRuntime(10324):at android.widget.PopupWindow.showAtLocation(PopupWindow.java:688) E/AndroidRuntime(10324):at android.inputmethodservice.KeyboardView.showKey(KeyboardView.java:941) E/AndroidRuntime(10324):at android.inputmethodservice.KeyboardView.access$100(KeyboardView.java: 65) E/AndroidRuntime(10324):at android.inputmethodservice.KeyboardView $1.handleMessage(KeyboardView.java:251) E/AndroidRuntime(10324):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(10324):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(10324):at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime(10324):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10324):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(10324):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10324):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/AndroidRuntime(10324):at dalvik.system.NativeStart.main(Native Method) ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
On Thu, Dec 22, 2011 at 11:52 AM, James Black planiturth...@gmail.comwrote: In eclipse I will do Debug as on each and put them on my phone, so the same key is used. Do they both work in this case? When you're debugging using the debug certificate. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Make own voice input method
Yes, I thought that it won't be easy... :) But it would be nice, if I can make it, with a lot of work too... :) On dec. 22, 00:07, Jim Graham spooky1...@gmail.com wrote: On Wed, Dec 21, 2011 at 02:15:46PM -0800, Zwiebel wrote: I have decided, that I will try to start to make a new voice input program, with I can input words in my own language (hungarian). But I don't know how to start, because I haven't seen anything on the internet about these things. Could you give me some advices of this, please? My suggestion: wait for support for Hungarian to be added (if it isn't already there). You are getting into a far, far more complicated project than you may realize. I can't speak for Hungarian, but in English, at least, there are words and phrases which can sound very, very similar, and voice recognition software must take context into account. Sadly, there are also times when taking context into account will cause it to fail. A perfect example comes from a guest speaker at an ICA (International Communications Association) conference I attended (I think it was the same year, 1988, when I had a student paper on broadband packet switching published in the ICA journal, but it might have been the following year). Anyways, this particular guest speaker was doing a presentation on speech recognition. He told us about the various problems, such as different speeds, accents, similar sounding words, etc., and then gave us a little example He said, or we THOUGHT he said, Do you know how to recognize speech? He said this fairly quickly, and there was no real separation between words. As we're all looking around, wondering what on earth he meant, and thinking, Of COURSE we know how to recognize speech!, he stood there, just watching us (no doubt with a big grin). He finally spoke up and said, Now, you may THINK I said, do you know how to RECOGNIZE SPEECH. Well, you're all wrong. I said, do you know how to WRECK A NICE BEACH. [empasis his, all spoken slowly and clearly] When he said that, you could almost see the little cartoon-like light bulbs lighting up over everyone's heads, as our understanding of just how complicated it really is took a major leap forward. We all took his words in context with the topic of the presentation, and our brains all got it completely wrong. So keep that in mind if you really plan on starting this. I'm not saying you won't or can't succeed; I'm just saying that it's not as simple as you might expect, and that you need to take concerns such as this into account. Best of luck if you do go forward with it. Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) | 1) Smoking habanero powder helps defeat that Running FreeBSD 7.0 | off taste' quite nicely. spooky1...@gmail.com | 2) I figure a couple bong hits of [habanero] ICBM/Hurr.: / 30.44406N | powder would defeat just about anything! | 86.59909W --seen in Chile-Heads list Android Apps Listing athttp://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
No, only one works, whether in debug or release. On my map view I see the continents but only on one does it zoom down to the level I requested. On Dec 22, 2011 1:05 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 22, 2011 at 11:52 AM, James Black planiturth...@gmail.comwrote: In eclipse I will do Debug as on each and put them on my phone, so the same key is used. Do they both work in this case? When you're debugging using the debug certificate. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mysterious crash with Android Monkey
On the other hand, this can be a crash in a different app, can't it? Because my app stays running and seems working fine. I am using: adb shell monkey -p my_package -v -v --pct-appswitch 0 --pct-flip 0 --pct-nav 0 -s 1 20 Is this the right way to prevent switching to other apps? On Dec 22, 9:58 am, alexb alexboot...@gmail.com wrote: I am testing my app with Android Monkey and after a while it crashes. Does anyone have a clue? Here is the log excerpt: . W/WindowManager( 1103): Failed looking up window W/WindowManager( 1103): java.lang.IllegalArgumentException: Requested window null does not exist W/WindowManager( 1103): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java: 9293) W/WindowManager( 1103): at com.android.server.WindowManagerService.addWindow(WindowManagerService.java: 1891) W/WindowManager( 1103): at com.android.server.WindowManagerService $Session.add(WindowManagerService.java:6771) W/WindowManager( 1103): at android.view.IWindowSession $Stub.onTransact(IWindowSession.java:66) W/WindowManager( 1103): at com.android.server.WindowManagerService $Session.onTransact(WindowManagerService.java:6743) W/WindowManager( 1103): at android.os.Binder.execTransact(Binder.java: 288) W/WindowManager( 1103): at dalvik.system.NativeStart.run(Native Method) W/WindowManager( 1103): Attempted to add window with token that is not a window: null. Aborting. D/AndroidRuntime(10324): Shutting down VM W/dalvikvm(10324): threadid=1: thread exiting with uncaught exception (group=0x4001d7e0) E/AndroidRuntime(10324): FATAL EXCEPTION: main E/AndroidRuntime(10324): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? E/AndroidRuntime(10324): at android.view.ViewRoot.setView(ViewRoot.java:505) E/AndroidRuntime(10324): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) E/AndroidRuntime(10324): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) E/AndroidRuntime(10324): at android.widget.PopupWindow.invokePopup(PopupWindow.java:828) E/AndroidRuntime(10324): at android.widget.PopupWindow.showAtLocation(PopupWindow.java:688) E/AndroidRuntime(10324): at android.inputmethodservice.KeyboardView.showKey(KeyboardView.java:941) E/AndroidRuntime(10324): at android.inputmethodservice.KeyboardView.access$100(KeyboardView.java: 65) E/AndroidRuntime(10324): at android.inputmethodservice.KeyboardView $1.handleMessage(KeyboardView.java:251) E/AndroidRuntime(10324): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(10324): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(10324): at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime(10324): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10324): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(10324): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10324): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) E/AndroidRuntime(10324): at dalvik.system.NativeStart.main(Native Method) ... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] pool party?
Why do all these modern sound libraries like OpenAL and Android's SoundPool want you to stick your audio in a soundpool? Why can't the audio exist as separate objects? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] debugging on Kindle Fire, sdcard access
Has anyone tried this? Here is the problem: once you connect Kindle Fire to PC via USB, you can access sdcard from PC only. As this is the way to debug on Kindle, my app has no read/write access in this mode thus effectively disabling debugging. Without USB it seems working fine. My several requests to their tech support were not answered in a meaningful way. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two projects use one library, one fails with Couldn't get connection factory client
On Thu, Dec 22, 2011 at 12:21 PM, James Black planiturth...@gmail.comwrote: On my map view I see the continents Wait ... so in both you see the map? But not when you zoom? You're losing me. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] debugging on Kindle Fire, sdcard access
On Thu, Dec 22, 2011 at 1:32 PM, alexb alexboot...@gmail.com wrote: Has anyone tried this? Here is the problem: once you connect Kindle Fire to PC via USB, you can access sdcard from PC only. As this is the way to debug on Kindle, my app has no read/write access in this mode thus effectively disabling debugging. Without USB it seems working fine. My several requests to their tech support were not answered in a meaningful way. Step #1: Plug in your Kindle Fire to USB Step #2: Unmount the drive from your PC Step #3: Click the Disconnect button on the Kindle Fire screen Step #4: Start developing IOW, it is no different than any other Android device, except that it throws you into USB sharing mode immediately rather than on demand. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] simulate hte speed for amdroid phones
On 12/21/2011 05:36 AM, Shabnaz wrote: hi Iam trying to develop an app for accident detection and notification system. For tat I need to get the speed and acceleration of the mobile phione equpped with android how do I simulate ht espeed of the phone using the emulator because the mibile phone does not physically change its location Hi, Not sure about the speed, you can set the location by: telnet localhost 5554 geo fix 32.00 37.00 geo fix 32.00 37.10 geo fix 32.00 37.20 ... If you have more than one emulator the second emulator should be listen on port 5556. Hope this helps /Poncho -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 replace GLSurfaceView with TextureView in Android Ice Cream Sandwich?
Brilliant! I must have been thinking too hard about it, because what you wrote really is simple. I was able to get it working and it works like a charm. Thank you! On Dec 22, 10:16 am, Romain Guy romain...@android.com wrote: It is definitely an option, that's whatSurfaceTextureis for. It's very simple: Create an OpenGL context Generate an OpenGL texture name Create aSurfaceTexturewith the texture name Pass theSurfaceTextureto Camera Listen for updates OnSurfaceTextureupdate, draw the texture with OpenGL using the shader you want Simple :) On Thu, Dec 22, 2011 at 11:59 AM, Brad Grimm sna...@gmail.com wrote: Thanks Romain. I really just want to swap out the pixel shader on the SurfaceTexture'sOpenGL texture so I can do some filtering on the camera preview. But it sounds like that isn't an option. I have used ColorMatrixFilters on the view itself and they work quite well, just not powerful enough for what I want to do. On Dec 21, 8:18 pm, Romain Guy romain...@android.com wrote: There's no need to get the camera preview out ofSurfaceTexture. The whole point ofSurfaceTextureis to let a producer like the camera render into an OpenGL texture. Just useSurfaceTexture. To draw on top of TextureView, just add another view on top of it. On Dec 21, 2011 9:35 PM, Brad Grimm sna...@gmail.com wrote: Thanks for the post, it has been really helpful. But say I want to draw on top of aSurfaceTexturethat is connected to a Camera via setPreviewTexture. I can get theSurfaceTextureby a SurfaceTextureListener. But if I just try to use eglCreateWindowSurface eglMakeCurrent it fails due to the surface already being connected. 1) Is it possible to draw on this surface at all? Or does binding it to the camera make it impossible to do that. 2) If it isn't possible. Can the surface be used (or copied) quickly to an OpenGL texture and used in a separate surface? If so how? 3) If not, what would be the fastest way to get the camera preview out of aSurfaceTextureand into OpenGL? P.S. - I too followed suit and posted to StackOverflow: http://stackoverflow.com/questions/8582090/possible-to-draw-on-surfac... On Nov 23, 11:45 am, plafayette pierre.lafaye...@gmail.com wrote: Thanks for the quick response Romain and the sample code! Will give it a try. On Nov 23, 12:17 pm, Romain Guy romain...@android.com wrote: GLSurfaceView handles GL setup for you, whichTextureViewwill not do. A TextureViewcan be used as the native window when you create an EGL surface. Here is an example (the interesting part is the call to eglCreateWindowSurface()): @Override public void onSurfaceTextureAvailable(SurfaceTexturesurface, int width, int height) { mRenderThread = new RenderThread(getResources(), surface); mRenderThread.start(); } private static class RenderThread extends Thread { private static final String LOG_TAG = GLTextureView; static final int EGL_CONTEXT_CLIENT_VERSION = 0x3098; static final int EGL_OPENGL_ES2_BIT = 4; private volatile boolean mFinished; private final Resources mResources; private finalSurfaceTexturemSurface; private EGL10 mEgl; private EGLDisplay mEglDisplay; private EGLConfig mEglConfig; private EGLContext mEglContext; private EGLSurface mEglSurface; private GL mGL; RenderThread(Resources resources,SurfaceTexturesurface) { mResources = resources; mSurface = surface; } private static final String sSimpleVS = attribute vec4 position;\n + attribute vec2 texCoords;\n + varying vec2 outTexCoords;\n + \nvoid main(void) {\n + outTexCoords = texCoords;\n + gl_Position = position;\n + }\n\n; private static final String sSimpleFS = precision mediump float;\n\n + varying vec2 outTexCoords;\n + uniform sampler2D texture;\n + \nvoid main(void) {\n + gl_FragColor = texture2D(texture, outTexCoords);\n + }\n\n; private static final int FLOAT_SIZE_BYTES = 4; private static final int TRIANGLE_VERTICES_DATA_STRIDE_BYTES = 5 * FLOAT_SIZE_BYTES; private static final int TRIANGLE_VERTICES_DATA_POS_OFFSET = 0; private static final int TRIANGLE_VERTICES_DATA_UV_OFFSET = 3; private final float[] mTriangleVerticesData = { // X, Y, Z, U, V -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
[android-developers] Re: 4.0 Action Bar - remove app title.
On Dec 22, 4:11 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Dec 22, 2011 at 1:20 AM, Nathan critter...@crittermap.com wrote: Half of the Actionbar is still set aside for the nonexistent title. And the nonexistent tabs, the nonexistent Spinner, and the nonexistent custom navigation. Probably they are leaving that space in case you enable any of those. Probably. I'd hope for more sophistication. It seems like they would if I enabled any of that. My hope was to fit more than two actions on it. Use the split action bar, to put actions on the bottom of the screen. My customers would hate me; they are a bit touchy about screen real estate. But here is what I found. By changing some of the menu items from android:showAsAction= ifRoom to always, I can get it to show four action buttons, plus the overflow button when there is no hardware menu key. You'd think ifRoom would work because there *is* room, but this is what works. Good enough for now. But since I can't assume 4.0=phone (it might be tablet), I'll probably need to be more sophisticated in choosing menu styles. Maybe all that screenwidth threshold stuff they were showing at AnDevCon. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two projects use one library, one fails with Couldn't get connection factory client
I see basically a graphic of the world but in one the map zooms in but in the other it has this error and does nothing. I will send two screenshots when I get home to show. On Dec 22, 2011 1:38 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 22, 2011 at 12:21 PM, James Black planiturth...@gmail.comwrote: On my map view I see the continents Wait ... so in both you see the map? But not when you zoom? You're losing me. - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Native SIP Supported on all ICS Devices?
So in order to guarantee SIP support, we need to include our own SIP stack to circumvent a carrier/device maker disabling the native SIP stack written by Google? Doesn't this make it not worth Google's time to write in SIP support, because why write an application that uses a feature that only works on a minority of phones? Isn't this the definition of device fragmentation and isn't that what ICS was supposed to fix? And didn't Eric promise us this: http://www.engadget.com/2011/12/07/eric-schmidt-android-will-be-bigger-than-ios/. If it's true that SIP can be turned off and on at will by device makers and carriers, it seems this is not a redress at all. Maybe I'm missing something...? Thanks! On Dec 22, 4:17 am, Mark Murphy mmur...@commonsware.com wrote: The code should be there. SIP support can be disabled by carriers/device manufacturers, as I understand it. On Wed, Dec 21, 2011 at 4:56 PM, Shaun shaun.cl...@a-cti.com wrote: From what I understand ICS is supposed to bring devices up to more or less equal standards, does this include the native SIP library, i.e. as soon as my Galaxy S II gets ICS will I be able to use the native SIP client on it and any other ICS device? Thanks! Shaun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Native SIP Supported on all ICS Devices?
On Thu, Dec 22, 2011 at 3:03 PM, Shaun shaun.cl...@a-cti.com wrote: So in order to guarantee SIP support, we need to include our own SIP stack to circumvent a carrier/device maker disabling the native SIP stack written by Google? Sorry, what I meant by carriers disabling SIP support is not allowing users to set up SIP accounts through Settings. I have no idea whether you can use the stack in other ways -- I haven't played with the SIP stuff. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: 4.0 Action Bar - remove app title.
On Thu, Dec 22, 2011 at 2:38 PM, Nathan critter...@crittermap.com wrote: But here is what I found. By changing some of the menu items from android:showAsAction= ifRoom to always, I can get it to show four action buttons, plus the overflow button when there is no hardware menu key. You'd think ifRoom would work because there *is* room, but this is what works. How curious. I'd've interpreted things the same way you had. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 4.0 Action Bar - remove app title.
Oh, and using the always tag even works without removing the app title. The app title actually does fit in landscape mode and disappears in portrait mode. So if someone else was thinking of pulling out the title to make room, you can probably skip it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Two projects use one library, one fails with Couldn't get connection factory client
On Thu, Dec 22, 2011 at 3:52 PM, James Black planiturth...@gmail.comwrote: This is what I am seeing, Get rid of the dialog, then use the zoom buttons to zoom in ... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Memory leaks when using bitmaps in android
Working with bitmaps is a little hard on Android. One thing to do is to resize or pack them so that they take up less memory. Another thing you may want to look into is to reuse the bitmap object/memory. You may have to do this in native though. As other have pointed out System.gc() just gives the system a hint that it needs to run the garbage collector. Good luck. On Thu, Dec 22, 2011 at 12:11 AM, String sterling.ud...@googlemail.comwrote: When chasing a problem like this a couple of years ago, my testing seemed to indicate that setting a bitmap to null right after a call to recycle() was leaky. It was as though the recycle call needed some time to work, and setting null got in the way. I found it was better to just call recycle on its own, and then let the GC deal with the empty bitmap object in its own time. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 custom ImageView fade animation
Bump: Can anyone help? If I define an imageview in my activity and then set an animation for it, then it plays fine. But if I define an image view as a member in my custom view and then try to play its animation, it does not play. Any help is appreciated... On Dec 18, 4:59 pm, Seb stsiop...@googlemail.com wrote: I am creating a game. Most of the computation is done in acustomView class which contains a grid ofcustomSquares which extendimageview. Here's some code to describe what's happening: public class GameView extends View { public Square squares[] = null; public GameView(Context context, AttributeSet a) { super(context, a); setFocusable(true); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); squares = new Square[numSquares]; } public void resetGame() { } public void restartGame() { } public boolean onTouchEvent(MotionEvent event) { int eventaction = event.getAction(); int X = (int)event.getX(); int Y = (int)event.getY(); switch (eventaction) { case MotionEvent.ACTION_DOWN: currentTouchIndex = checkForSquareTouch(X, Y); if(currentTouchIndex = 0) { squares[currentTouchIndex].select(); ((MainActivity)this.getContext()).startSquareAnimation(); . return true; } Thats the main View. Square implementation: public class Square extendsImageView{ public Square(Context context, AttributeSet attrs, int x, int y, int squareWidth, boolean operator, int textS, Typeface f) { super(context, attrs); { this.setImageResource(R.drawable.chalkbox); this.getDrawable().setBounds(x, y, x + squareWidth, y + squareWidth); this.setAlpha(10); } protected void onDraw(Canvas canvas) { Paint foreground = new Paint(Paint.ANTI_ALIAS_FLAG); foreground.setStyle(Style.FILL); foreground.setTextSize(textSize); foreground.setColor(Color.WHITE); foreground.setTextScaleX(1); foreground.setTextAlign(Paint.Align.CENTER); foreground.setTypeface(font); int left = this.getDrawable().getBounds().left; int right = this.getDrawable().getBounds().right; int top = this.getDrawable().getBounds().top; int bottom = this.getDrawable().getBounds().bottom; if (invalidMove) { } if (isOperator) { if (text.equals(+)) bottom += 10; if (text.equals(/)) bottom += 5; if (text.equals(x) || text.equals(/)) foreground.setTextSize(textSize - 5); else foreground.setTextSize(textSize); } this.getDrawable().draw(canvas); canvas.drawText(text, (left + right) / 2, ((top + bottom) / 2) + 10, foreground); } Hope that gives you a view of the structure. I'm trying to animate the Square, so that when a player presses on a Square, the Square brightens and then fades again when they lift their finger off. The problem is that the call to square[0].startAnimation() does not seem to be working and theanimationis not playing. Am I doing something wrong? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
The program doesn't continue so it wouldn't help to get rid of the dialog. Once that section finishes getting some routes it will get rid of the dialog and zoom. This is where I get and nada. On Dec 22, 2011 5:03 PM, TreKing treking...@gmail.com wrote: On Thu, Dec 22, 2011 at 3:52 PM, James Black planiturth...@gmail.comwrote: This is what I am seeing, Get rid of the dialog, then use the zoom buttons to zoom in ... - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Data written to SQLite database not immediately available
My app has a content provider which stores its data in a SQLite db. I have a thread which is busy inserting rows into this content provider. I have another thread which inserts some rows into the content provider and then signals the first thread. When the first thread sees the signal, it stops inserting and queries for the data the other thread inserted. But what I'm finding is that often the cursor the query returns doesn't contain all of the rows the other thread inserted. If I sleep the thread for a second and query again, then all the rows are there. It seems like the database is reporting that it has successfully stored the data, but it hasn't been flushed to the backing store yet. And the query that happens shortly after doesn't see the data that is waiting to be flushed. Has anyone else seen this problem? Is this a bug in SQLite? Any suggestions on how to deal with 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] Can't see Hello World on hello_avd screen ?????????
I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell optiplex 755 has 4GB Memory. I had no issue to compile Hello World program and to create my_avd. When I ran program, my emulator only took a few minutes to show up then I saw lock icon Android, after I click menu from the right panel of the emulator's screen, I can see default android screen. It seems everything went well but I just can't see Hello world text in the grey bar is actually the application title of screen. It's not like from tutorial Hello World. Pleas see below my log file: 2011-12-22 15:06:26 - Hello] -- [2011-12-22 15:06:26 - Hello] Android Launch! [2011-12-22 15:06:26 - Hello] adb is running normally. [2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity activity launch [2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new emulator with compatible AVD 'hello_avd' [2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual Device 'hello_avd' [2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554 [2011-12-22 15:07:00 - Hello] Waiting for HOME ('android.process.acore') to be launched... [2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554' [2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device 'emulator-5554' [2011-12-22 15:07:59 - Hello] Installing Hello.apk... I thought it's very simple and easy android tutorial program. Do I miss something ? Help / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 convert .jre games into android format
how to convert .jre games into android format. Can i get some help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] emulator: WARNING: Unable to create sensors port: Unknown error
Hi all I keeping getting this message very time i try and run my app. I've had my app running but know i keeping get this mess!! Please please please help!! Thanks Snowgoon , PS I've un-installed everything and re stalled (I am going to create a new work space see what happens) ;-( [2011-12-22 07:43:53 - Cells] -- [2011-12-22 07:43:53 - Cells] Android Launch! [2011-12-22 07:43:53 - Cells] adb is running normally. [2011-12-22 07:43:53 - Cells] Performing cells.pack.CellsActivity activity launch [2011-12-22 07:43:53 - Cells] Automatic Target Mode: Preferred AVD 'cell' is not available. Launching new emulator. [2011-12-22 07:43:53 - Cells] Launching a new emulator with Virtual Device 'cell' [2011-12-22 07:44:04 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ClassNotFoundException on Market developer console
android app fails to load on some phones in pathclassloaderhttp://stackoverflow.com/questions/5769377/android-app-fails-to-load-on-some-phones-in-pathclassloader -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] adk SGS2
somone know how to rebuild ADK libraries for arduino ?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Password app
Hello, I have some experience in Android development but this time I would like to create some kind of password app. Basically I need to show the app when the user clicks on the power button. Do you have any idea where should I begin ? I tried to browse the documentation but I could not find any example. Thank you poiuytrez -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] simulating mouse on gingerbread 2.3.3
Hi guys, I'm interested in simulating a mouse on a mobile device, but unfortunately, as far as i can tell, there is no support for a mouse pointer on gingerbread. so i was wondering, is it achievable on the service-app level ( i mean, without applying it on the android source and recompiling the whole thing). making a transparent activity with a pointer image is not a big deal, but i don't see anyway of preforming a click on the activity underneath my own.. so this road is closed.. maybe there's someway of doing it using IMF? anyways, if anyone has an idea, i would be more than glad to hear it :) thanks, vlad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 set property of gsm phone number
In Settings-- About Phone-- Status -- My Phone Number is showing as unknown i am a newbie tried installing a terminal on my rooted android phone(2.3.7) and have checked getprop there are many properties available but I don't find any property that stores the sim phone number in this list. could you please let me know where the modification has to go for changing it ? Application is available called MY PHONE NUMBER but unfortunately not installing on my cell if some one has any idea how this can be done please let me know thanks in advance cheers, Ravi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding Web Services Development in Android
hi, How to search a record in database using Web Services, while I used Android as client side application in which i need to enter some text in edit-text (as name of records) such that if it match with that(which we entered) record it has display the all records from the data base. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] passing data between browser's javascript and activity
How do we pass and receive data between browser's html/javascript and an Activity? I am able to call an activity from an html file from the Android browser app by using a scheme in manifest. i-e . data android:scheme=mysch / Now I want the activity to return data which I can then display/use on the web page's html. I am aware that you can use a Web View with in your app and call javascript functions etc to pass/receive data. Is it something I can also do from the Android Browser app and my app (Activity)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hardware sensors information required
I am looking at implementing few hardware sensor with android on a custom board based on Ti - OMAP processor. Below is the list of sensors that I want to implement : Accelerometer Compass Humidity Pressure Light / Ambient proximity FastIrDA Where can I locate a list of hardware sensor chipset information that work with android and linux kernel (ubuntu). Preferably the linux drivers should be open source and the chipsets should be readily available. Basically I want a list of part numbers for the above sensors that work with android and linux. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Offline Maps Request
I keep looking around and running into dead ends. Back in June I read a few posts about how Google was working on making their maps available offline and was hoping someone had new insight into how this was progressing. The project I am working on will be deployed on tablets that will not have any access to the internet. But we will still need to render a map of the state and be able to drill down to street level and pinpoint specific addresses as well as apply layers ontop of the map. Is there any way to get this done on Android in general and in specific do so with Google Maps? On Windows based tablets, we can do the job with Mappoint and I'm sure we could liscense something if we decided to head down the iOS road. 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] Publishing a APK created with Dreamweaver 5.5
I have developed an app with dreamweaver5.5 and have added my private key and the public key. However the apk just hangs in Chrome when I try to upload and comes up with a message saying The server could not process your apk. Try again. I have searched the net and loads of people are having the same problem. Eventually, I have at last worked out how to do this. The link to my tutorial on how to overcome this problem as well as how to create a private key and sign the apk is here http://www.acrobatmedia.net/android.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Email settings and device admin
Hi, this is in reference to another post - I tried to put it in that thread but it didn't seem to stick: http://groups.google.com/group/android-developers/browse_thread/thread/6470376d0a2f39f9/b2f88a95364f235d?lnk=gstq=exchange+server#b2f88a95364f235d I need to do the same thing as progtad. I understand the reasons why this is difficult, so Dianne, are you saying that the only way to do this is to use an intent to set the configuration of the email client (and live with the fact that there may be a different email client on some devices)? Or does this go in through the addAccountOptions parameter of AccountManager.addAccount? Also, String, I realize that Google plays things close to the chest, but this is a big issue for corporate accounts, where the buying cycles are measured in years, but the money is big and buyers are willing to make decisions based on future plans. Unfortunately, this is already convenient on the iPhone so it's a bit of an issue for the Android platform. Is there any way to find out if there is a definite plan for this, even if it is under NDA? Thanks in advance for any help / advice, Allan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How can apps sending and receiving SMSs be visible on the market for the new Galaxy Tablets?
While I don't have a workaround - sorry - but this particular device is quite weird... FWIW, this is what I recently ran into, it has to do with WiFi: http://wp.me/pSrdQ-lg Have you tried calling SmsManager.getDefault() and checking for null? -- Kostya 22 декабря 2011 г. 16:48 пользователь Terry terb...@gmail.com написал: As no one has responed to this issue yet, I shall try to explain it in more detail. In order to DO make an app visible for e.g. the Galaxy Tab 10.1 model GT-P7500, one could put the following in the Manifest file: uses-feature android:name=android.hardware.telephony android:required=false/ In the app code, one could e.g. use the following too check what features are available: PackageManager pm = getPackageManager(); boolean hasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); However, the Galaxy Tab 10.1 model GT-P7500 returns a false on that method. The problem would be solved if there existed a constant like PackageManager.FEATURE_SMS or similar, but there is no such thing. I think that the Market is still not prepared for the type of products like the Galaxy Tab 10.1 model GT-P7500. Any ideas as to how I can solve this? Terry On 21 Des, 12:38, Terry terb...@gmail.com wrote: I have tried to ask this question elsewhere, but without getting any answer I can use. So I try it here also. I have some apps which send and receive SMSs. They are invisible for the new Galaxy Tablets on the Market, and they cannot be dowloaded to them. WHY? As e.g. the Galaxy Tablet 10.1, model GT-P7500 does NOT support audio phone calls - but it DOES support sending and receiving SMSs, there should be no problem. In fact, when I download these apps to the GT- P7500 locally, they work as expected. The Market however, sees the permissions to SEND_ and RECEIVE_SMS in the Manifest file of the apps, and interprets this so as to require hardware.telephony from the Galaxy Tabs. Which is does not seem to support. Any idea how to make a work-around for this problem? Terry -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 4.0 Emulator issue
Hi All, I have successfully built the Android 4.0.3 master branch downloaded on 21st December 2011. The compilation completes without any issues after following the steps mentioned at http://source.android.com/source/downloading.html and http://source.android.com/source/building.html. However, on running the build on emulator, the screen of the emulator remains blank. The output of adb logcat remains at : Waiting for device.. After around 1 hr when I closed the emulator, at that time the output of adb logcat seemed to be fine (when compared with the successful run of 2.3.3_r1 emulator). I have tried it with generic build and maguro build. With generic build I am getting a warning on running the emulator: Data partition is already in use, changes would not persist. This warning is not present in the maguro build. Thanks, Manish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Cancelar ligacao
Estou fazendo ligacao para um numero usando a chamada : startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(tel: + ph_number.getText(; Gostaria de saber como eu cancelo a chamada durante a ligacao só que via codigo e nao pelo botao de desligar ligacao do cel. att -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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't see Hello World text on hello_avd screen ?
I use Eclipse 3.6.1 and Android 4.0.3 (API 15) on Windows XP/Dell optiplex 755 has 4GB Memory. I had no issue to compile Hello World program and to create my_avd. When I ran program, my emulator only took a few minutes to show up then I saw lock icon Android, after I click menu from the right panel of the emulator's screen, I can see default android screen. It seems everything went well but I just can't see Hello world text in the grey bar is actually the application title of screen. It's not like from tutorial Hello World. Pleas see below my log file: 2011-12-22 15:06:26 - Hello] -- [2011-12-22 15:06:26 - Hello] Android Launch! [2011-12-22 15:06:26 - Hello] adb is running normally. [2011-12-22 15:06:26 - Hello] Performing com.cvc.hello.HelloActivity activity launch [2011-12-22 15:06:26 - Hello] Automatic Target Mode: launching new emulator with compatible AVD 'hello_avd' [2011-12-22 15:06:26 - Hello] Launching a new emulator with Virtual Device 'hello_avd' [2011-12-22 15:07:00 - Hello] New emulator found: emulator-5554 [2011-12-22 15:07:00 - Hello] Waiting for HOME ('android.process.acore') to be launched... [2011-12-22 15:07:59 - Hello] HOME is up on device 'emulator-5554' [2011-12-22 15:07:59 - Hello] Uploading Hello.apk onto device 'emulator-5554' [2011-12-22 15:07:59 - Hello] Installing Hello.apk... I thought it's very simple and easy android tutorial program. Do I miss something ? Help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] record video from screen activites in android
is it possible in android to create a video from screen activities? in my app i am running animations for some time i need to create all these things as video Please give me some suggestions to do that -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Error while Creating the Two tables in Single DataBAse Android Application?
i have Created a database in Sqllite Android Application.and i try to add two tables in my Database But i have problem to create that Database.First Table only Created.AnyBody Help me Thanks in Advance! package com.android.cdtech; import java.sql.SQLException; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class saveData { public static final String KEY_ROWID = rowid; public static final String KEY_DATE = Date;public static final String KEY_NAME = CustomerName;public static final String KEY_AMOUNT = Amount;public static final String KEY_BANK = Banks; private static final String TAG = DBAdapter; public static final String KEY_BUSNAME=BusinessName;public static final String KEY_ADD=Address;public static final String KEY_CPERSON=ContactPerson;public static final String KEY_PNUM=PhoneNumber;public static final String KEY_MAIL=EmailID; public static final String KEY_TINUMBER=TINNumber;public static final String KEY_CREDITLIMIT=CreditLimit;public static final String KEY_CREDITDAYS=CreditDays; private static final String DATABASE_NAME = EXPORTDETAILS; private static final String DATABASE_TABLE = Payment; private static final String DATABASE_TABLE2 = Customer; private static final int DATABASE_VERSION = 1; // private static final String DATABASE_CREATE = ; // private static final String DATABASE_CREATECUS = // ; private final Context context; private DatabaseHelper DBHelper; private SQLiteDatabase db; public saveData(Context ctx) { this.context = ctx; DBHelper = new DatabaseHelper(context); } private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL( create table Customer (_id1 integer primary key autoincrement, + BusinessName text not null,+Address text not null,+ContactPerson text not null,+PhoneNumber text not null,+EmailID text not null,+TINNumbertext not null,+CreditLimit text not null,+CreditDays text not null);); db.execSQL(create table Payment (_id integer primary key autoincrement, + Date text not null,+CustomerName text not null,+Amount text not null,+Banks text not null);); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS titles); onCreate(db); } } public saveData open()throws SQLException { db=DBHelper.getWritableDatabase(); return this; } public void close() { DBHelper.close(); } public long insert(String Date,String CustomerName,String Amount,String Banks) { // TODO Auto-generated method stub ContentValues cv=new ContentValues(); cv.put(KEY_DATE,Date); cv.put(KEY_NAME,CustomerName); cv.put(KEY_AMOUNT,Amount); cv.put(KEY_BANK,Banks); return db.insert(DATABASE_TABLE, null,cv); } public long insertForm(String BusinessName ,String Address ,String ContactPerson,String PhoneNumber,String EmailID,String TINNumber,String CreditLimit,String CreditDays) { // TODO Auto-generated method stub ContentValues cv=new ContentValues(); cv.put(KEY_BUSNAME,BusinessName); cv.put(KEY_ADD,Address); cv.put(KEY_CPERSON,ContactPerson); cv.put(KEY_PNUM,PhoneNumber); cv.put(KEY_MAIL,EmailID); cv.put(KEY_TINUMBER,TINNumber); cv.put(KEY_CREDITLIMIT,CreditLimit); cv.put(KEY_CREDITDAYS,CreditDays); return db.insert(DATABASE_TABLE2, null,cv); } public Cursor getlatlng() { Cursor latlngCursor =
[android-developers] Messaging APP force close
Hi all, i use messaging app that it happened a problem. When phone has above a message, user use operation:(Messaging APP-New message-rotate phone from Anti-clockwise 90 degrees and Clockwise 90 degrees-Press Back key to Home screen) Operation Repeatedly about 70 times, phone has found - The application Messaging (process com.android.mms) has stopped unexpectedly please try again By the way, i attach the log 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.createView(LayoutInflater.java:518) 12-13 10:43:23.731 E/AndroidRuntime( 537): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java: 56) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.inflate(LayoutInflater.java:408) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 12-13 10:43:23.731 E/AndroidRuntime( 537): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 224) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.app.Activity.setContentView(Activity.java:1657) 12-13 10:43:23.731 E/AndroidRuntime( 537): at com.android.mms.ui.ConversationList.onCreate(ConversationList.java: 135) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 12-13 10:43:23.731 E/AndroidRuntime( 537): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) Please help to resolve this issue. thank you very much I use MAT Tool for eclipse Check to Memory leak I have provided info Class Name | Shallow Heap | Retained Heap | Percentage | | | class com.android.mms.data.Contact @ 0x40599d58 System Class | 24 | 2,630,432 | 48.67% |- java.util.HashSet @ 0x4059a288 | 16 | 2,629,936 | 48.66% | '- java.util.HashMap @ 0x4059a298 | 48 | 2,629,920 | 48.66% | '- java.util.HashMap$HashMapEntry[128] @ 0x40537b70 | 528 | 2,629,872 | 48.65% ||- java.util.HashMap$HashMapEntry @ 0x40735678 | 24 | 178,208 | 3.30% || |- java.util.HashMap$HashMapEntry @ 0x408fa0c8 | 24 | 133,656 | 2.47% || | |- java.util.HashMap$HashMapEntry @ 0x407a6cf0 | 24 |89,104 | 1.65% || | | |- java.util.HashMap$HashMapEntry @ 0x407368b8 | 24 |44,552 | 0.82% || | | | '- com.android.mms.ui.ConversationListItem @ 0x405d8990 | 376 |44,528 | 0.82% || | | |- com.android.mms.ui.ConversationListItem @ 0x406c7b70 | 376 |44,528 | 0.82% || | | '- Total: 2 entries | | | || | |- com.android.mms.ui.ConversationListItem @ 0x408f2d78 | 376 |44,528 | 0.82% || | '- Total: 2 entries | | | || |- com.android.mms.ui.ConversationListItem @ 0x40821ef8 | 376 |44,528 | 0.82% || '- Total: 2 entries | | | ||- java.util.HashMap$HashMapEntry @ 0x408cb880 | 24 | 133,656 | 2.47% || |- java.util.HashMap$HashMapEntry @ 0x40929028 | 24 |89,104 | 1.65% || | |- java.util.HashMap$HashMapEntry @ 0x4080d038 | 24 |44,552 | 0.82% || | | '- com.android.mms.ui.ConversationListItem @ 0x4091e300 | 376 |44,528 | 0.82% || | |- com.android.mms.ui.ConversationListItem @ 0x4088b090 | 376 |44,528 | 0.82% || | '- Total: 2 entries | | | || |- com.android.mms.ui.ConversationListItem @ 0x408a2678 | 376 |44,528 | 0.82% || '- Total: 2 entries | | | ||- java.util.HashMap$HashMapEntry @ 0x409f4710 | 24 | 133,656 | 2.47% || |- java.util.HashMap$HashMapEntry @ 0x408cf520 | 24 |89,104 | 1.65% || | |- java.util.HashMap$HashMapEntry @
[android-developers] Fetching a GPS Network Location within a short time frame (10 seconds)
I'm trying to set up a quick and dirty GPS lookup via LocationManager which fetches a network location (within 500 meters) every half second for ten seconds. In other words, I'm just trying to find the correct coarse Criteria settings and the correct logic to stop checking after 10 seconds of no better locations within my Handler thread. I'm thinking my main loop should look something like this: /** * Iteration step time. */ private static final int ITERATION_TIMEOUT_STEP = 500; public void run(){ boolean stop = false; counts++; if(DEBUG){ Log.d(TAG, counts= + counts); } //if timeout (11 secs) exceeded, stop tying if(counts 22){ stop = true; } //location from my listener if(bestLocation != null){ //remove all network and handler callbacks } else { if(!stop){ handler.postDelayed(this, ITERATION_TIMEOUT_STEP); // half-sec intervals } else { //remove callbacks } } } What I want to know is after I fetch the last known location as my initial best location and kick off my thread, how do I set up the coarse criteria so that I receive a more accurate one than the initial one (in order to compare the two), which is diametrically different from my current location? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data written to SQLite database not immediately available
it's not a bug, that's how SQLite works. You can't have concurrent writes. Not sure how the content provider buffers this but if you do plain SQLite you are basically blocking the database with each write, and you need to use semaphores to manage that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 - Why does my first App say it is only available to 18 devices?
Can anyone help me on this? I get this message, but I want my app on all devices. Supported Devices This application is only available to devices with these features, as defined in your application manifest. Screen layouts: SMALL NORMAL LARGE XLARGE Required device features android.hardware.touchscreen This application is available to over 18 devices. Show devices The manifest reads like this: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=stuart.test.com android:versionCode=2 android:versionName=1.1 uses-sdk android:minSdkVersion=14 / application android:icon=@drawable/ic_launcher android:label=Nav Lights activity android:name=.AndroidtestActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Many thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: uses-feature glEsVersion
Have you been able to solve this issue? I'm having the same issue right now. I don't find a matching android:name so I don't think that's the solution. I want to create two apk's, one supporting openGL 2:0 (having a higher version) and a second one for the others. But the android market says that both apk's support the same set of devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Offline Maps Request
Offline maps are only available in the Google Maps application. This is totally unrelated to the Google API which currently explicitly forbids cacheing. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Accessing to Canvas's parent
Hey guys good work On Dec 21, 11:28 pm, Gilberto Cuba R gcubar2...@gmail.com wrote: Hello colleagues, I'm trying to simulate the HTML5 Canvas behaviour on Android. In order to achieve this, I have created several classes that inheritate from View, and therefore have THEIR OWN canvas, wich is not shared, (and please correct me if I'm wrong) that is, that all my inherited View classes have a Canvas that is not relationed with other instance classes. So, I've named this classes after the figures, for instance: MyLine, MyCircle, MyRectangle, MyPolygon, etc. When it comes to drawing this figures I have no problem at all because all I do is overwrite the onDraw() method and no harm done. Only that the canvas I'm currently drawing is the same as in the figure. All this mess has its inconveniences, or at least is coming out as so, for I also mean to implement a MyClip() class, allowing it to properly apply to the canvas's drawClip method when it is leveled with the other figures, any other way, it doesn't work out as expected. And well, such like this one I have other troubles for not being able to acces the Canvas of the Parent on my class. Any suggestions on the path I should follow, or at least some reajustment in the classes desing so I can reach my goal? Thank you for advance. Gilberto Cuba -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Client Rtsp in Android
I'm triying design a Client for Rtsp Streamming (Not Http Streamming), but I get a Error Msge and I don't know what happen. That is my Code: Class: VideoViewActivity http://www.pastie.org/3059760 18 Lines XML: Manifiest File http://www.pastie.org/3059773 23 Lines that is all !!! any one have any suggestion? :P -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Password app
On Thu, Dec 22, 2011 at 11:09 AM, poiuytrez guillaumechar...@gmail.com wrote: Hello, I have some experience in Android development but this time I would like to create some kind of password app. Basically I need to show the app when the user clicks on the power button. Do you have any idea where should I begin ? I tried to browse the documentation but I could not find any example. Thank you poiuytrez Nope, this is impossible. You can possibly (?) catch the power key when the user is using your app, but outside of it this is impossible.. http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android You could try that, but it's still not going to let you get key presses when the user is outside your app Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Two projects use one library, one fails with Couldn't get connection factory client
On Thu, Dec 22, 2011 at 4:36 PM, James Black planiturth...@gmail.comwrote: The program doesn't continue so it wouldn't help to get rid of the dialog. Once that section finishes getting some routes it will get rid of the dialog and zoom. This is where I get and nada. So ... this has nothing to do with the map key ... ? Yes or no: can you see map tiles? Or is it all grid lines? Regardless of zoom level. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market - Why does my first App say it is only available to 18 devices?
Minimum sdk version is set to 14 Android 4.0), is that what you really intended? 23.12.2011 3:10 пользователь Stuart B stuartbat...@yahoo.co.uk написал: Can anyone help me on this? I get this message, but I want my app on all devices. Supported Devices This application is only available to devices with these features, as defined in your application manifest. Screen layouts: SMALL NORMAL LARGE XLARGE Required device features android.hardware.touchscreen This application is available to over 18 devices. Show devices The manifest reads like this: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=stuart.test.com android:versionCode=2 android:versionName=1.1 uses-sdk android:minSdkVersion=14 / application android:icon=@drawable/ic_launcher android:label=Nav Lights activity android:name=.AndroidtestActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Many thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android Market - Why does my first App say it is only available to 18 devices?
The problem is with android:minSdkVersion=14 . API 14 is Ice Cream Sandwich...which is not available to many devices right now (actually officially I only know 2..Galaxy Nexus and Nexus S). You can lower the minSdkVersion to 3 or 4 (Android 1.5 or 1.6), but make sure you are not using any APIs that are ICS only..otherwise...VerifyError :P On Thu, Dec 22, 2011 at 3:51 PM, Stuart B stuartbat...@yahoo.co.uk wrote: Can anyone help me on this? I get this message, but I want my app on all devices. Supported Devices This application is only available to devices with these features, as defined in your application manifest. Screen layouts: SMALL NORMAL LARGE XLARGE Required device features android.hardware.touchscreen This application is available to over 18 devices. Show devices The manifest reads like this: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=stuart.test.com android:versionCode=2 android:versionName=1.1 uses-sdk android:minSdkVersion=14 / application android:icon=@drawable/ic_launcher android:label=Nav Lights activity android:name=.AndroidtestActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Many 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to convert .jre games into android format
On Thu, Dec 22, 2011 at 5:50 AM, Samron samkit...@gmail.com wrote: how to convert .jre games into android format. Port it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en