[android-developers] Re: Radio buttons with items in a ListView bound to a data table
Correction to original post: the reference to built-in layouts should, of course, read as android.R.layout.simple_list_item_single_choice or android.R.layout.simple_list_item_multiple_choice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help regarding development of my app
If you learn android application development first, I hope all your problems will vanish. Cheers On Feb 2, 7:20 am, gaurav prashar gauravprasha...@gmail.com wrote: sir, i am trying to develop an android application for my college as my final year engineering project. this will be an applicaton that consists of following features 1) campus news 2) events 3)campus maps 4)directories 5)social media 6) photos of the campus i want to ask how do i go ahead with this project. as in how do i start developing this how do i connect this project to the server. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: speex or jspeex support on android
Use jspeex just like you would if you were writing a regular java problem. If you need help with jspeex, you are asking in the wrong place. You would get more help from the creators of jspeex. Doug On Jan 31, 11:31 pm, hemant metalia hmeta...@argusoft.com wrote: Hi, please can anybody help me how use speex or jspeex in android? I need to encode and decode bytestream of audio file using this codec. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Regarding Auto Text application of android
Auto Text? Do you mean Auto complete? If yes, http://developer.android.com/resources/tutorials/views/hello-autocomplete.html Cheers On Feb 3, 5:02 am, Tajinderpal Singh aulakh0...@gmail.com wrote: hi everyone!!! i need help regarding my undertaking project Auto TexT. I interested to know what features i can add to it. Should i make it online or offline. Please help me. Regards Tajinderpal Singh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 examine resources in R programatically - Ignoring InnerClasses attribute
hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. i can sorta get at the fields using reflection, but i get a warning (please see below) about: Ignoring InnerClasses attribute. also i really want their values. i.e. if there are a bunch of R.string.foo.*'s, i want each of their *string* values. is there any way to do this? thanks [2012-02-04 00:14:48 - jata] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (com.tayek.jat.hmr.android$_mainxml_closure7) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any -target type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Better UI Designing
On Sat, Feb 4, 2012 at 1:19 AM, Brad Stintson geek.bin...@gmail.com wrote: But would it help me design apps built for android 2.1+? You can apply some of the concepts, if not outright implementation, for older versions. Or hire a designer - this stuff if hard. :) - 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: how to examine resources in R programatically - Ignoring InnerClasses attribute
At 12:54 AM 2/4/2012, Ray Tayek wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources found some clues in: http://stackoverflow.com/questions/3545196/android-programatically-iterate-through-resource-ids thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MS SQL connection
am using java script in titanium n am not allowed to use php.so help me in it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: MS SQL connection
Dear Anand, There is no need to write layers of convoluted middleware using PHP, SOAP or REST. Android supports full JDBC connectivity to remote databases. There are many free JDBC drivers such as JTDS that can be embedded in your Android app to enable direct access to a remote SQL Server database. You then use the SQL Server's native listener service rather than creating an extra one yourself and communicate in simple SQL from your app back to SQL Server. This is exactly what we do with our MobiForms Developer tool for creating mobile database apps. The MobiForms Developer is a rapid application development tool which dramatically speeds up the development of mobile database apps automating database cursor and resultset management. For offline apps we also offer the MobiForms Sync Server where you can create an app with an embedded mobile database synchronising when comms permit to just about any remote database including SQL Server, MySQL, Oracle etc. For more information go to: http://www.mobiforms.com Kind regards, Tim @ MobiForms On Jan 30, 1:21 pm, anand jh jhanan...@gmail.com wrote: I need to develop a android application in that I want to access MS SQL from my android application.Can some help as by giveing some code.Advance 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] imageview changing
package sample.deneme; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.widget.ImageView; public class imageS extends ImageView { private Timer _destroy; public imageS(Context context) { super(context); // TODO Auto-generated constructor stub _destroy = new Timer(); _destroy.schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub setBackgroundResource(R.drawable.ic_launcher); } }, 5000, 5000); } } i use this cod but not changing. What is wrong? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Unable to open database file?
When are you doing this? Perhaps a bit too early? I've not had any issues with opening database files from inside a content provider. My CP opens the db on demand, deferring the actual database open until the first call to the CP's query, etc. -- Kostya 3 февраля 2012 г. 5:08 пользователь Zsolt Vasvari zvasv...@gmail.comнаписал: Hi, I am using ACRA and get an average of one report of this kind a day: android.database.sqlite.SQLiteException: unable to open database file at android.database.sqlite.SQLiteDatabase.dbopen(Native Method) at android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java:1956) at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:902) This is a one time error, if the user tries again, it works. It seems to come from all kinds of users on all kinds of devices on different SDK levels. I open my database once and I store the connection in a static object. I suspect a bug in my code somehow, but I am at a loss. Anybody with any ideas, or seen this error happen? 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] Re: Newly installed widgets are not runnable on Honeycomb
Yes, this changed starting with 3.1: http://developer.android.com/sdk/android-3.1.html#launchcontrols The end result is: App widget can't be added to the home screen immediately after the installation. The application's package needs to be moved from stopped to started state first. You can do this by providing an activity that the user can launch from Launcher. This is not the same as the widget config activity. -- Kostya 4 февраля 2012 г. 5:30 пользователь David Ross grand...@vacuumpunk.comнаписал: But that's not how it works in 2.3.x. Install the App (Widget), say from market. Don't run it when given the Open option in the market after download completes. Don't launch it from the Launcher either. Just navigate back to the Home Screen. Long press on home screen and select Widgets. Hey presto, it's there! No need to launch the App for it to be available as a Widget. The Android install process parses the manifest and places the new widget in the list of available Widgets without having to be launched first. And while you need to have the configuration Activity in the manifest and the widget config file, that Activity does not have to do anything at all really, you can just return RESULT_OKAY and handle the widget configuration in your WidgetProvider onEnabled() and onUpdate() when you get the APPWIDGET_xxx Intents. Has that changed in 3.0+? Am I missing something here? As I said before, this approach handles the bad use-cases that Android does not handle cleanly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 examine resources in R programatically - Ignoring InnerClasses attribute
On Sat, Feb 4, 2012 at 3:54 AM, Ray Tayek rta...@ca.rr.com wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. Whatever you are trying to do, there is probably a better solution. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 loading HTML file from android_asset in Browser
You have two problems. First, you are using setClassName() with packages and classes that are not your own. Second, you are telling the opened activity to find a help.html file in its own application assets. file:///android_asset/help.html will be interpreted in the context of the app trying to use it. I am not aware of a Uri syntax that will work to have files in one app's assets be addressable by another app. On Fri, Feb 3, 2012 at 9:45 PM, Julian Bunn jjb...@gmail.com wrote: I am trying to launch the browser to show an HTML help file that is in the assets directory of my .apk. My code is: Uri uri = Uri.parse(file:///android_asset/help.html); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setClassName(com.android.browser,com.android.browser.BrowserActivity); startActivity(intent); The browser starts up and displays the error message that it can't find the help.html file. I've run out of ideas as to what may be wrong - can anyone please point out where I'm doing this incorrectly? Thanks! Julian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Encoder???
Muhammad UMER wrote: Hi pskink, 4:ftyp 32:mdat 324042:ftyp 324070:moov Ok 4 is starting bytes of ftyp, 324070 is starting bytes of moov, 32 is starting bytes of mdat etc. so it means that subtract the starting position of mdat from starting position of moov. then converts the bytes to hexadecimal form. that is our offset. moov - mdat == offset 324070 - 32 == 0x0004f1c6 but if it is true, then our moov starting bytes changes every time how can find that? Regards, umer yes, it's true: you have to find moov index each time you write your file on the server side pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 32bit PNG in CS5
I am trying to make an icon for my android app. In the developers guide it says: Launcher icons should be 32-bit PNGs with an alpha channel for transparency. I've made the icon in CS5 but i cannot save it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in PNG. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Image comparison problem: getPixel() in android and getRGB() in JDK return different values for the same image
Thanks. I've thought about it. And I tried to change the format _after_ loading the image. I created a new image IMG2 with new BufferedImage(width, hight, IMAGE_TYPE) and copied old image (also IMG1) into the new image as IMG2.createGraphics().drawRenderedImage(IMG1,null) Then i've tested all the formats in Java2D (all constans of IMAGE_TYPE). All in vain. Also, f I remember correctly, Java2D can apply color profiles when loading a bitmap. That would be perfect. But I found no method to make it. I'll try it again in the evening... On 3 Feb., 22:21, Romain Guy romain...@android.com wrote: First make sure that both return values in the same format (Android returns ARGB not RGBA.) Also, f I remember correctly, Java2D can apply color profiles when loading a bitmap. On Feb 3, 2012 11:05 AM, Ergen andv...@googlemail.com wrote: Hi. I want to compare two images. One image is on the android client and another image is on the server (with Tomcat, JDK). I need also to calculate two histograms - one for each image - and to compare they The problem is: getPixel (x, y) (on Android) and getRGB (x, y) (JDK) return different rgb color numbers for the point with the same coordinates (x, y). The images are here identical (JPG, Size: 3x3). Why are the results different? And what to do? I've been looking for the answer everywhere, but... *** Pseudocode for Androids Activity *** BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inPreferredConfig = Bitmap.Config.ARGB_; mBitmap = BitmapFactory.decodeFile(imageSource, opt); int intColor = 0; for (int x = 0; x mBitmap.getWidth(); x++) { for (int y = 0; y mBitmap.getHeight(); y++) { intColor = mBitmap.getPixel(x, y); System.out.print( (+ x + ,+ y +) c: + intColor); } }System.out.println(); Result for example image 3x3: (0,0)c:-7882802 (0,1)c:-9859138 (0,2)c:-6507579 (1,0)c:-12883825 (1,1)c:-6574388 (1,2)c:-7948604 (2,0)c:-7489593 (2,1)c:-10579009 (2,2)c:-6573359 Pseudocode for JDK BufferedImage img = ImageIO.read( file ); int intColor = 0; for ( int x = 0; x img.getWidth(); x++ ) { for ( int y = 0; y img.getHeight(); y++ ) { intColor = img.getRGB( x, y ); System.out.print( (+ x + ,+ y +) c: + intColor); } }System.out.println(); Result for the same image: (0,0)c:-7883056 (0,1)c:-9728065 (0,2)c:-6507579 (1,0)c:-12818030 (1,1)c:-6377523 (1,2)c:-7883323 (2,0)c:-7424055 (2,1)c:-10513470 (2,2)c:-6573358 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Re: Encoder???
I think, my server have to edit this file through RandomAccessFile after when the server handle the inputstream form android. So i have to put a condition to check the moov atom, when the moov atom find it get it's index. then edit the file through RandomAccessFile to write bytes [0..27] and the offset of moov atom at [28...31]. please tell me how can i copy these [0...27] bytes. is it in the form of string? Thanks Regards, umer Date: Sat, 4 Feb 2012 04:03:46 -0800 Subject: [android-developers] Re: Encoder??? From: psk...@gmail.com To: android-developers@googlegroups.com Muhammad UMER wrote: Hi pskink, 4:ftyp 32:mdat 324042:ftyp 324070:moov Ok 4 is starting bytes of ftyp, 324070 is starting bytes of moov, 32 is starting bytes of mdat etc. so it means that subtract the starting position of mdat from starting position of moov. then converts the bytes to hexadecimal form. that is our offset. moov - mdat == offset 324070 - 32 == 0x0004f1c6 but if it is true, then our moov starting bytes changes every time how can find that? Regards, umer yes, it's true: you have to find moov index each time you write your file on the server side pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Image comparison problem: getPixel() in android and getRGB() in JDK return different values for the same image
Thanks. I tried it once, but that changed nothing. I'll try it again. I need solve the problem somehow. :) On 4 Feb., 01:42, gjs garyjamessi...@gmail.com wrote: Hi, Also maybe try .png format if possible. Regards On Feb 4, 8:21 am, Romain Guy romain...@android.com wrote: First make sure that both return values in the same format (Android returns ARGB not RGBA.) Also, f I remember correctly, Java2D can apply color profiles when loading a bitmap. On Feb 3, 2012 11:05 AM, Ergen andv...@googlemail.com wrote: Hi. I want to compare two images. One image is on the android client and another image is on the server (with Tomcat, JDK). I need also to calculate two histograms - one for each image - and to compare they The problem is: getPixel (x, y) (on Android) and getRGB (x, y) (JDK) return different rgb color numbers for the point with the same coordinates (x, y). The images are here identical (JPG, Size: 3x3). Why are the results different? And what to do? I've been looking for the answer everywhere, but... *** Pseudocode for Androids Activity *** BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inPreferredConfig = Bitmap.Config.ARGB_; mBitmap = BitmapFactory.decodeFile(imageSource, opt); int intColor = 0; for (int x = 0; x mBitmap.getWidth(); x++) { for (int y = 0; y mBitmap.getHeight(); y++) { intColor = mBitmap.getPixel(x, y); System.out.print( (+ x + ,+ y +) c: + intColor); } }System.out.println(); Result for example image 3x3: (0,0)c:-7882802 (0,1)c:-9859138 (0,2)c:-6507579 (1,0)c:-12883825 (1,1)c:-6574388 (1,2)c:-7948604 (2,0)c:-7489593 (2,1)c:-10579009 (2,2)c:-6573359 Pseudocode for JDK BufferedImage img = ImageIO.read( file ); int intColor = 0; for ( int x = 0; x img.getWidth(); x++ ) { for ( int y = 0; y img.getHeight(); y++ ) { intColor = img.getRGB( x, y ); System.out.print( (+ x + ,+ y +) c: + intColor); } }System.out.println(); Result for the same image: (0,0)c:-7883056 (0,1)c:-9728065 (0,2)c:-6507579 (1,0)c:-12818030 (1,1)c:-6377523 (1,2)c:-7883323 (2,0)c:-7424055 (2,1)c:-10513470 (2,2)c:-6573358 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Encoder???
Muhammad UMER wrote: I think, my server have to edit this file through RandomAccessFile after when the server handle the inputstream form android. So i have to put a condition to check the moov atom, when the moov atom find it get it's index. then edit the file through RandomAccessFile to write bytes [0..27] and the offset of moov atom at [28...31]. please tell me how can i copy these [0...27] bytes. is it in the form of string? Thanks Regards, umer http://docs.oracle.com/javase/tutorial/essential/io/ pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sample of using Protobuff.net in android using eclipse
Have you tried http://lmgtfy.com/?q=protobufl=1 ...? Code, samples, documentation, all you need. On Feb 1, 10:24 pm, Zanjani gholipour@gmail.com wrote: Hi guys, I am new in android developing and need to use protobuff.net because the web services already written in this way. could you please send me a sample and help me through it. thanks heap guys. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SSL/TLS and ECC (Elliptic curve cryptography)
On Fri, Feb 3, 2012 at 6:14 PM, Kosmo Kosmorum elko...@gmail.com wrote: I'm developing an android application which communicates with a web server. We use HTTPS for this communication and we have also a client certificate inside the android application for authentication. We created SSL certificates using ECC (ANSI x9.62) in order to have very small certificates so we can reduce the transmission cost during handshake. The problem is that when we try to connect we have errors like: E/NativeCrypto(4744): Unknown error 5 during connect W/System.err(4744): java.io.IOException: SSL handshake failure: I/O error during system call, Connection reset by peer Does it work with other clients? What does the server log say? What is the Android version you are using? Most build prior to ICS don't support EC, so that is probably your problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-App Billing always fails with “Reason: Took too long to deliver”
On Sat, Feb 4, 2012 at 7:18 AM, John Coryat cor...@gmail.com wrote: Seeing that too on a couple of orders. Not a huge number though. A couple today. Bad deal that. I also see the same users trying again and hitting the same error. It's been said that the cause of this is payment gateways failing to respond withing the allotted time. Apparently they increased the Google checkout timeout, but it still happens. While this may be unavoidable, at least the message should be made more understandable, i.e., describing the real problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Animation Sound
Hi all, I need to start playing sound at a specific frame. Is it possible in android.? For eg, I have 10 frames which animates one after the other. I need to start my sound file at frame 4. Is it possible.? Thanking in advance for help. -- Thanks, Jatin D N Patel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: In-App Billing always fails with “Reason: Took too long to deliver”
4 февраля 2012 г. 18:17 пользователь Nikolay Elenkov nikolay.elen...@gmail.com написал: On Sat, Feb 4, 2012 at 7:18 AM, John Coryat cor...@gmail.com wrote: Seeing that too on a couple of orders. Not a huge number though. A couple today. Bad deal that. I also see the same users trying again and hitting the same error. It's been said that the cause of this is payment gateways failing to respond withing the allotted time. Interesting. It seems plausible. Apparently they increased the Google checkout timeout, but it still happens. While this may be unavoidable, Unavoidable? Does the rest of the world's e-commerce suffer the same failures? at least the message should be made more understandable, i.e., describing the real problem. Yes, that'd be great if it happened - and its counterpart with regular app purchases Cancellation requested from phone. Not telling users that the seller canceled your order would also be good, as that'd spare me the angry emails from users asking why I took their money and keep canceling their orders. Can't imagine I'm the only one getting these. How long will it take for Google support to mention this issue to the management? For Google product management to realize it's a real nuisance that needs to be fixed? For Google engineering team to change a few text literals? But that's only half the story. When this happens, some users get stuck unable to retry by placing a new order, with Market saying You already have a pending order for this item. This last item is listed on the known issues page, so the good part is, it's possible to refer users there -- the bad part, it's been there for a month and a half, and the issue is much older than this. -- Kostya -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Audio Latency big problem on some devices
You wouldn't think 1024 samples at 22050 samples per second was especially low latency. And on most devices, using the AudioRecord class I have no trouble in getting individual buffers of 1024 samples (about 20 buffers per second) evenly spaced in time. But on at least one device, the timing seems to be very irregular. My application is a musical instrument tuner, and it is important to get small buffers in a timely manner. So I tested the timing by logging the time between reads. Here is the timing in milliseconds using an original Motorola Droid: 37 36 62 46 42 31 62 47 41 31 Nice! But here is the same info from a no-name Chinese tablet running 2.3.1: 359 0 0 0 0 1 0 0 366 0 0 ... It is apparent that the no-name tablet is batching the audio data into blocks of 8192 samples. So I get 8 buffers in rapid succession and then have to wait another 360 milliseconds for the next buffer. Most devices behave more like the Droid, with latency low enough to deliver evenly-spaced buffers of 1024 samples. But I sure hope there aren't too many devices like that no-name tablet. Anyone have any updated insight into the problem of audio latency? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Audio Latency big problem on some devices
For devices that legitimately have the Android Market, audio latency has had requirements in the CDD since Android 2.2: http://source.android.com/compatibility/downloads.html I am not expert enough on the topic to know whether the requirements specified in the CDD meet your needs or not. You will have two potential problems with a no-name Chinese tablet: 1. It might not have the Market at all 2. It might have a pirated copy of the Market In either case, they did not necessarily meet the CDD for their specific version of Android, and all bets are off. On Sat, Feb 4, 2012 at 11:16 AM, RLScott fixthatpi...@yahoo.com wrote: You wouldn't think 1024 samples at 22050 samples per second was especially low latency. And on most devices, using the AudioRecord class I have no trouble in getting individual buffers of 1024 samples (about 20 buffers per second) evenly spaced in time. But on at least one device, the timing seems to be very irregular. My application is a musical instrument tuner, and it is important to get small buffers in a timely manner. So I tested the timing by logging the time between reads. Here is the timing in milliseconds using an original Motorola Droid: 37 36 62 46 42 31 62 47 41 31 Nice! But here is the same info from a no-name Chinese tablet running 2.3.1: 359 0 0 0 0 1 0 0 366 0 0 ... It is apparent that the no-name tablet is batching the audio data into blocks of 8192 samples. So I get 8 buffers in rapid succession and then have to wait another 360 milliseconds for the next buffer. Most devices behave more like the Droid, with latency low enough to deliver evenly-spaced buffers of 1024 samples. But I sure hope there aren't too many devices like that no-name tablet. Anyone have any updated insight into the problem of audio latency? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Audio Latency big problem on some devices
Thanks for that link! It says there in section 6.3 that: Using the above definitions, device implementations SHOULD exhibit each of these properties: • cold output latency of 100 milliseconds or less • warm output latency of 10 milliseconds or less • continuous output latency of 45 milliseconds or less • cold input latency of 100 milliseconds or less • continuous input latency of 50 milliseconds or less which would be fine for me (continuous input latency). So I guess my no-name Chinese tablet is non-conforming, having a latency of around 360 msec.! On Feb 4, 11:25 am, Mark Murphy mmur...@commonsware.com wrote: For devices that legitimately have the Android Market, audio latency has had requirements in the CDD since Android 2.2: http://source.android.com/compatibility/downloads.html I am not expert enough on the topic to know whether the requirements specified in the CDD meet your needs or not. You will have two potential problems with a no-name Chinese tablet: 1. It might not have the Market at all 2. It might have a pirated copy of the Market In either case, they did not necessarily meet the CDD for their specific version of Android, and all bets are off. On Sat, Feb 4, 2012 at 11:16 AM, RLScott fixthatpi...@yahoo.com wrote: You wouldn't think 1024 samples at 22050 samples per second was especially low latency. And on most devices, using the AudioRecord class I have no trouble in getting individual buffers of 1024 samples (about 20 buffers per second) evenly spaced in time. But on at least one device, the timing seems to be very irregular. My application is a musical instrument tuner, and it is important to get small buffers in a timely manner. So I tested the timing by logging the time between reads. Here is the timing in milliseconds using an original Motorola Droid: 37 36 62 46 42 31 62 47 41 31 Nice! But here is the same info from a no-name Chinese tablet running 2.3.1: 359 0 0 0 0 1 0 0 366 0 0 ... It is apparent that the no-name tablet is batching the audio data into blocks of 8192 samples. So I get 8 buffers in rapid succession and then have to wait another 360 milliseconds for the next buffer. Most devices behave more like the Droid, with latency low enough to deliver evenly-spaced buffers of 1024 samples. But I sure hope there aren't too many devices like that no-name tablet. Anyone have any updated insight into the problem of audio latency? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Audio Latency big problem on some devices
On Sat, Feb 4, 2012 at 11:43 AM, RLScott fixthatpi...@yahoo.com wrote: Thanks for that link! It says there in section 6.3 that: Using the above definitions, device implementations SHOULD exhibit each of these properties: • cold output latency of 100 milliseconds or less • warm output latency of 10 milliseconds or less • continuous output latency of 45 milliseconds or less • cold input latency of 100 milliseconds or less • continuous input latency of 50 milliseconds or less which would be fine for me (continuous input latency). So I guess my no-name Chinese tablet is non-conforming, having a latency of around 360 msec.! Well... The use of SHOULD in specs like this is fairly literal. If the device must support those latencies, the spec would have used MUST. Now, I don't know if Google will fail a device that whiffs on too many SHOULDs or not. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: LogCat not displaying TAG “SMS”
Hmm..., I had remembered seeing that a while back, but it's good of you to mention it again, thanks! kris On Tue, Jan 31, 2012 at 11:30 AM, PewterHydra pewter.hy...@gmail.com wrote: There are some tags that don't go to the default buffer, as has been stated. You can view them by specifying which buffer to view with the -b logcat option. For example, to see the SMS logcat messages, start logcat with: adb logcat -b radio See here for documentation: http://developer.android.com/guide/developing/tools/adb.html#logcat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: In-App Billing always fails with “Reason: Took too long to deliver”
2012/2/5 Kostya Vasilyev kmans...@gmail.com: 4 февраля 2012 г. 18:17 пользователь Nikolay Elenkov nikolay.elen...@gmail.com написал: Apparently they increased the Google checkout timeout, but it still happens. While this may be unavoidable, Unavoidable? Does the rest of the world's e-commerce suffer the same failures? They must be :) I was referring to the answer I quoted. It says that when credit authorization is put on hold at the credit company or carrier (if using carrier billing) for some reason, Google checkout will eventually time out and cancel the transaction. Quote: It's not a bug, it's the spec. Since it's actually out of their control, some orders will be cancelled occasionally. The problem is that apparently it's happening rather often for some people. No time for a full translation right now, but this is the original thread (in Japanese): (some Google employees are actually nice enough to follow up on Market issues, and report back to public forums) https://groups.google.com/forum/?hl=jafromgroups#!topic/android-sdk-japan/aDNeowfQD84 But that's only half the story. When this happens, some users get stuck unable to retry by placing a new order, with Market saying You already have a pending order for this item. I haven't seen this one for a while, too bad it's back :(. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 examine resources in R programatically - Ignoring InnerClasses attribute
On Sat, Feb 4, 2012 at 6:51 AM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Feb 4, 2012 at 3:54 AM, Ray Tayek rta...@ca.rr.com wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. Whatever you are trying to do, there is probably a better solution. Right, you really shouldn't be looking in R for this.. kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adb refuses to recognize devices
Hi, I'm using debian linux, and suddenly (after months of successful development), adb refuses to recognize any of the hardware devices that I plug into the USB ports. adb shell, and adb logcat no longer work. And adb devices shows the following. List of devices attached no permissions I've rebooted my development machine, rebooted my devices, switch USB ports, started and stopped the adb server, and adb still refuses to recognize the device, and consequently prevents installing packages on them. Has anyone encountered this situation, and found a way to resolve it. Your advice would be much appreciated, since this has pretty much ground my development to a halt. Thanks, Chad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] adb refuses to recognize devices
Usually when I see this I have to change my udev rules... For example, this morning I had to do this with my Motorola Triumph, adding some udev rules for it to recognize. http://conjurecode.com/udev-rules-for-android-development-on-motorola-triumph/ I assume you have to do something similar for your device, modulo the vendor id... kris On Sat, Feb 4, 2012 at 1:39 PM, Chad A. calb...@neomantic.com wrote: Hi, I'm using debian linux, and suddenly (after months of successful development), adb refuses to recognize any of the hardware devices that I plug into the USB ports. adb shell, and adb logcat no longer work. And adb devices shows the following. List of devices attached no permissions I've rebooted my development machine, rebooted my devices, switch USB ports, started and stopped the adb server, and adb still refuses to recognize the device, and consequently prevents installing packages on them. Has anyone encountered this situation, and found a way to resolve it. Your advice would be much appreciated, since this has pretty much ground my development to a halt. Thanks, Chad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to examine resources in R programatically - Ignoring InnerClasses attribute
At 03:51 AM 2/4/2012, you wrote: On Sat, Feb 4, 2012 at 3:54 AM, Ray Tayek rta...@ca.rr.com wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. Whatever you are trying to do, there is probably a better solution. i am looking at walking the layout tree. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 examine resources in R programatically - Ignoring InnerClasses attribute
On Sat, Feb 4, 2012 at 2:03 PM, Ray Tayek rta...@ca.rr.com wrote: On Sat, Feb 4, 2012 at 3:54 AM, Ray Tayek rta...@ca.rr.com wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. Whatever you are trying to do, there is probably a better solution. i am looking at walking the layout tree. What is a layout tree? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] adb refuses to recognize devices
That works! You, sir, have saved my sanity, and my development machine from being smashed by a hard object. Thank you so much! Chad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] adb refuses to recognize devices
I've seen this with a device or two, with Linux Mint Debian Edition. To fix this, I changed the android udev rules to use my own login and group rather than the predefined plugindev: SUBSYSTEM==usb, ATTR{idVendor}==0fce, MODE=0666, OWNER=kman, GROUP=kman etc. Also, one of my devices wouldn't work without an entry in ~/.android/adb_usb.ini: http://kmansoft.com/2011/11/18/getting-a-sony-tablet-s-to-work-with-android-tools-under-ubuntu/ This second issue may have manifested itself in a different way, I don't remember now, but perhaps it's worth trying as well. -- Kostya On 02/04/2012 10:39 PM, Chad A. wrote: Hi, I'm using debian linux, and suddenly (after months of successful development), adb refuses to recognize any of the hardware devices that I plug into the USB ports. adb shell, and adb logcat no longer work. And adb devices shows the following. List of devices attached no permissions I've rebooted my development machine, rebooted my devices, switch USB ports, started and stopped the adb server, and adb still refuses to recognize the device, and consequently prevents installing packages on them. Has anyone encountered this situation, and found a way to resolve it. Your advice would be much appreciated, since this has pretty much ground my development to a halt. Thanks, Chad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TranslateAnimation and ImageView
im = ImageView im.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub setBackgroundResource(R.drawable.red); } }); TranslateAnimation anim = new TranslateAnimation(wOld, w, hOld, h); anim.setDuration(200); anim.setFillAfter(true); im.startAnimation(anim); When i create animation, onClick doesn't run. What is wrong? Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application - tool) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] 32bit PNG in CS5
In PS 8 bits means 8 bits per channel. So 8 bits * 4 (RGBA) = 32 bits. On Sat, Feb 4, 2012 at 4:07 AM, Oliviu Vais oliviu.v...@gmail.com wrote: I am trying to make an icon for my android app. In the developers guide it says: Launcher icons should be 32-bit PNGs with an alpha channel for transparency. I've made the icon in CS5 but i cannot save it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in PNG. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to examine resources in R programatically - Ignoring InnerClasses attribute
At 11:10 AM 2/4/2012, you wrote: On Sat, Feb 4, 2012 at 2:03 PM, Ray Tayek rta...@ca.rr.com wrote: On Sat, Feb 4, 2012 at 3:54 AM, Ray Tayek rta...@ca.rr.com wrote: hi, newbie here, i am trying to programmatically look at stuff in R. i want to see how many names match match a simple regex. these will refer to string and string array resources. Whatever you are trying to do, there is probably a better solution. i am looking at walking the layout tree. What is a layout tree? i think it's what's in your main.xml. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem loading HTML file from android_asset in Browser
Thanks, Mark - now I understand what is going wrong. I suppose if the help file were on the sdcard it would work. Is there a recommended way of showing a help file in assets from within an app - I've searched around and can't find anything appropriate. Using WebView seems like overkill. Julian On Feb 4, 3:54 am, Mark Murphy mmur...@commonsware.com wrote: You have two problems. First, you are using setClassName() with packages and classes that are not your own. Second, you are telling the opened activity to find a help.html file in its own application assets. file:///android_asset/help.html will be interpreted in the context of the app trying to use it. I am not aware of a Uri syntax that will work to have files in one app's assets be addressable by another app. On Fri, Feb 3, 2012 at 9:45 PM, Julian Bunn jjb...@gmail.com wrote: I am trying to launch the browser to show an HTML help file that is in the assets directory of my .apk. My code is: Uri uri = Uri.parse(file:///android_asset/help.html); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setClassName(com.android.browser,com.android.browser.BrowserActivity); startActivity(intent); The browser starts up and displays the error message that it can't find the help.html file. I've run out of ideas as to what may be wrong - can anyone please point out where I'm doing this incorrectly? Thanks! Julian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem loading HTML file from android_asset in Browser
What type of help file. If it's an HTML based file, then what else *could* you use besides a WebView? Alternatively you could just display it in a regular layout with some nice styling, and make it a bit more native within your app, why not just do that? kris On Sat, Feb 4, 2012 at 3:57 PM, Julian Bunn jjb...@gmail.com wrote: Thanks, Mark - now I understand what is going wrong. I suppose if the help file were on the sdcard it would work. Is there a recommended way of showing a help file in assets from within an app - I've searched around and can't find anything appropriate. Using WebView seems like overkill. Julian On Feb 4, 3:54 am, Mark Murphy mmur...@commonsware.com wrote: You have two problems. First, you are using setClassName() with packages and classes that are not your own. Second, you are telling the opened activity to find a help.html file in its own application assets. file:///android_asset/help.html will be interpreted in the context of the app trying to use it. I am not aware of a Uri syntax that will work to have files in one app's assets be addressable by another app. On Fri, Feb 3, 2012 at 9:45 PM, Julian Bunn jjb...@gmail.com wrote: I am trying to launch the browser to show an HTML help file that is in the assets directory of my .apk. My code is: Uri uri = Uri.parse(file:///android_asset/help.html); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.setClassName(com.android.browser,com.android.browser.BrowserActivity); startActivity(intent); The browser starts up and displays the error message that it can't find the help.html file. I've run out of ideas as to what may be wrong - can anyone please point out where I'm doing this incorrectly? Thanks! Julian -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem loading HTML file from android_asset in Browser
On Sat, Feb 4, 2012 at 3:57 PM, Julian Bunn jjb...@gmail.com wrote: Thanks, Mark - now I understand what is going wrong. I suppose if the help file were on the sdcard it would work. Or if you served it up by a ContentProvider. Is there a recommended way of showing a help file in assets from within an app - I've searched around and can't find anything appropriate. Using WebView seems like overkill. 1. WebView 2. TextView (with light HTML content) in a ScrollView 3. Launch the default browser on your Web site 4. Launch the default browser on a help file (and images, JS, CSS, etc.) you serve from a ContentProvider 5. Launch the default browser on a help file (and images, JS, CSS, etc.) you stick on external storage -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 examine resources in R programatically - Ignoring InnerClasses attribute
On Sat, Feb 4, 2012 at 3:57 PM, Ray Tayek rta...@ca.rr.com wrote: i am looking at walking the layout tree. What is a layout tree? i think it's what's in your main.xml. Um, OK. You don't need R to walk that. After you call setContentView(), call findViewById(android.R.id.content) to get the ViewGroup that holds your inflated layout. Iterate over its children, and for those that are themselves ViewGroups, use recursion. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] imageview changing
why do you need write a whole new class just to change image on an imageView? If this is all that you need to do, just set imageView's background drawable... something like this while(true){ imageView.setBackgroundDrawable(R.drawable.something); Thead.sleep(5000); } 2012/2/4 Salih Selametoglu barbooni...@gmail.com package sample.deneme; import java.util.Timer; import java.util.TimerTask; import android.content.Context; import android.widget.ImageView; public class imageS extends ImageView { private Timer _destroy; public imageS(Context context) { super(context); // TODO Auto-generated constructor stub _destroy = new Timer(); _destroy.schedule(new TimerTask() { @Override public void run() { // TODO Auto-generated method stub setBackgroundResource(R.drawable.ic_launcher); } }, 5000, 5000); } } i use this cod but not changing. What is wrong? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] HELP
http://developer.android.com/sdk/index.html This should help :) On Sat, Feb 4, 2012 at 12:47 AM, TreKing treking...@gmail.com wrote: On Wed, Feb 1, 2012 at 7:57 PM, Mark McDonald mcdonaldphoe...@gmail.comwrote: I was hoping that I could get some advice on which software to use for my windows environment. I have downloaded Java and the SDK tools package Add Eclipse to that and you're pretty much set. I would apreciate any advice that the wizards may be so kindly to offer. Yelling HELP as your post title is likely to make most people immediately dismiss your post. Try a relevant, descriptive title next time. - 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] timer,thread,imageview in android
explain your requirements please... from what i can get from your subject, what you could do is have an async task download images and update an imageView. Call that imageView from a thread that sleeps for 5 seconds in a while loop... something rughly like this (it has a Lot of errors, wrote it just to give you an idea, hope it helps) public class ImageSetter extends Activity{ public void onCreate(){ imageView = (ImageView) findViewById(R.id.myImageView); while(true){ new MyAsyncDownloader(url).execute(); Thread.sleep(5000); } } private class MyAsyncDownloader extends ASyncTaskVoid,Void,Void{ private Bitmap bitmap; private String url; public MyASyncDownloader(String url){ this.url = url; } doInBackground(){ bitmap = downloadImage(url); } onPostExecute(){ // set bitmap as background of imageView } } } 2012/2/4 Salih Selametoglu barbooni...@gmail.com hello my friends, i wanna create image every five secends and destroy it after 3 seconds. How can i do it? can you help me? -- Salih SELAMETOĞLU Teknopalas RFID Yazılım Çözümleri / Yazılım Uzman Yardımcısı İstanbul Üni. Bil. Müh. 4. Sınıf http://www.linkgizle.com http://selametoglu.blogspot.com/ http://slideme.org/application/light-show (first application) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] help me out in TimeTable APP
Be more specific about the problem you are having. On Wed, Feb 1, 2012 at 4:05 PM, Sam mailme2s...@gmail.com wrote: Hi frnz, I have to submit the timetable app to my Professor as an assignment, so please can any1 send me the code(java,xml,manifest etc) which creates the timetable of an individual professor and displays the timetable of the desired professor. Main activity shud contain two Buttons(create, Display). In create Activity, there shud be fields to add Professor name, subject name, time, day, and add button to add the details delete/ modify butoon to delete/modify the particular details. In Display Activity, there shud be a spinner according to the professor name we created, and after selecting or clicking on that particular professor item, it shud show the timetable of that particular professor. I have tried it, but I am getting a lot of errors. So please help me out frnz... Thanks in advance Sam. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] i need to have code for reading a imae from url
try finding it on stackoverflow.com On Fri, Feb 3, 2012 at 4:53 PM, raju iloveindia@gmail.com wrote: i need some help in getting an image with the help of url bhai -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: tabs onbackPressed
alert, I am guessing, is static, and when you rotate the device, your activity is destroyed, but alert is kept. You'll probably want to do something like alert.dismiss() in your onDestroy. Then you need to remember to start it up again in onCreate. Though it would be highly recommended to move towards Fragments (with the support library) and use DialogFragments instead - higher learning curve, but a lot less headache. On Feb 2, 3:40 pm, vani reddy vani.reddy.bl...@gmail.com wrote: Hi friends,, Under tabs when onBackPressed i am showing a dialog box, but its throwing the below exception ERROR/WindowManager(979): Activity com.amplyfyme.android.HomeScreen has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40678fb0 that was originally added here Toast.makeText(getParent(), inside back prss, Toast.LENGTH_SHORT).show(); AlertDialog.Builder builder = new AlertDialog.Builder(getParent()); builder.setMessage(Are you sure you want to exit?) .setCancelable(false) .setPositiveButton(Yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { UserProfileActivity.this.finish(); } }) .setNegativeButton(No, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); alert= builder.create(); alert.show(); //line where exception is thrown -- Regards, Vani Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: 32bit PNG in CS5
I dont get it. So what do i have to do? On Feb 4, 10:38 pm, Romain Guy romain...@android.com wrote: In PS 8 bits means 8 bits per channel. So 8 bits * 4 (RGBA) = 32 bits. On Sat, Feb 4, 2012 at 4:07 AM, Oliviu Vais oliviu.v...@gmail.com wrote: I am trying to make an icon for my android app. In the developers guide it says: Launcher icons should be 32-bit PNGs with an alpha channel for transparency. I've made the icon in CS5 but i cannot save it as PNG if i select 32 bit. If i select 16 or 8 bit i can save in PNG. Any ideas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to examine resources in R programatically - Ignoring InnerClasses attribute
At 01:04 PM 2/4/2012, you wrote: On Sat, Feb 4, 2012 at 3:57 PM, Ray Tayek rta...@ca.rr.com wrote: i am looking at walking the layout tree. What is a layout tree? i think it's what's in your main.xml. Um, OK. You don't need R to walk that. After you call setContentView(), call findViewById(android.R.id.content) to get the ViewGroup that holds your inflated layout. Iterate over its children, and for those that are themselves ViewGroups, use recursion. yes, that's what i am tring now. i think i can get everything i need from that. thanks --- co-chair http://ocjug.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Newly installed widgets are not runnable on Honeycomb
Thank you. Sigh, this sort of change is so very, very irritating. Who makes these decisions? Why change working behaviour? This is the sort of code bomb drop nonsense that is making it so very hard for Android developers to make robust software. No cogent explanation as the 'why' of this decision in the release note you linked to. I don't own a 3.x or 4.x device and the 3.x emulator sucks, I can't get it to run on my modest laptop, so I have trouble even testing on the later platforms. I don't want my user to access functionality from the launcher at all, I want them to only access functionality from the Widget. All my Launcher Activity does is display a splash screen telling the user how to install the Widget. What was wrong with the old behaviour? Why not allow an installed application with a Widget be installed as Widget without Launching an Activity first? It makes no sense to me. In fact, aside from that mention you linked to of an Application's state as stopped or started, there seems to be no real explanation of this behaviour at the Application level anywhere in the developer documentation. How are we supposed to know and understand this sort of undocumented behaviour? Anyway, thanks for the info. On Feb 4, 7:40 pm, Kostya Vasilyev kmans...@gmail.com wrote: Yes, this changed starting with 3.1: http://developer.android.com/sdk/android-3.1.html#launchcontrols The end result is: App widget can't be added to the home screen immediately after the installation. The application's package needs to be moved from stopped to started state first. You can do this by providing an activity that the user can launch from Launcher. This is not the same as the widget config activity. -- Kostya 4 февраля 2012 г. 5:30 пользователь David Ross grand...@vacuumpunk.comнаписал: But that's not how it works in 2.3.x. Install the App (Widget), say from market. Don't run it when given the Open option in the market after download completes. Don't launch it from the Launcher either. Just navigate back to the Home Screen. Long press on home screen and select Widgets. Hey presto, it's there! No need to launch the App for it to be available as a Widget. The Android install process parses the manifest and places the new widget in the list of available Widgets without having to be launched first. And while you need to have the configuration Activity in the manifest and the widget config file, that Activity does not have to do anything at all really, you can just return RESULT_OKAY and handle the widget configuration in your WidgetProvider onEnabled() and onUpdate() when you get the APPWIDGET_xxx Intents. Has that changed in 3.0+? Am I missing something here? As I said before, this approach handles the bad use-cases that Android does not handle cleanly. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Lock screen customization
I wanted to put my app icon on the lock screen. So without unlocking the device i can fire my app. Plz help me to solve this issue.or provide some link from which i can learn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lock screen customization
On Sat, Feb 4, 2012 at 11:02 PM, Dhaval Varia dhavalkva...@gmail.comwrote: I wanted to put my app icon on the lock screen. You can't do that with the SDK. - 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] Lock screen customization
it is possible or not ? for android application-- Ever+ Never- @kh!l R@v@l (+91-96388-66691) (+91-74052-63600) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lock screen customization
I have seen one app named : ICE: In Case of Emergency http://www.appventive.com/ice Which provides this facility... Would you please guide me how this people did it?? On 2/5/12, akhil raval akhil.andr...@gmail.com wrote: it is possible or not ? for android application-- Ever+ Never- @kh!l R@v@l (+91-96388-66691) (+91-74052-63600) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Best Regards. Dhaval varia Assistant Professor Govt Engineering College,Modasa (9924343883) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lock screen customization
sure contact u at ni8 for sure -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en