[android-developers] Re: Android developer in Brazil
Hi, This is Maqsood from Avenue Social. Do subscribe to my blog, "The Android Corner": http://www.maxood-android-corner.blogspot.com/ Maqsood On Jul 6, 12:56 pm, Vinicius De Carvalho Freitas wrote: > Hi! > > I´m a software developer and I couldn't be out of this so > important platform. I have an android aplicattion developed totally by > me and I have too much to contribute and many questions to 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: Can load html from assets but loading JS, CSS from within that HTML is another story ...
Look into the WebViewDemo here: http://code.google.com/p/apps-for-android/ Maqsood On Jul 7, 10:21 pm, Connick wrote: > I'm loading html into a webview from my assets folder, works no problem. In > my second experiment I've loaded HTML from a database (after pulling from > remote source) and displayed in a webview (also no prob) ...Now I'm trying > to change the baseref inside the html to have all JS and CSS references > point to source files under assets. This part doesn't seem to work. I get > warnings from the web console that it can't load these files due to security > issue. > > Now I've resorted back to a content provider and overriding openFile (and > setting base ref with content://...) but now I'm hitting another problem > with the JS and CSS files in assets being compressed. > > Before I dig deeper, am I over-complicating this? > > Cheers, > Stace -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Water ripple effect
Mansoor, The effect that comes on the N1/Droid is a pixel shader program written using the RenderScript library. There are several algorithms to simulate fluid dynamics, which include but are not limited to: 1) Radius ripples using a pixel shader 2) Fluid dynamics either in a vertex shader or pixel shader or calculated on CPU If you don't know where to start, you'll want to check out a few graphics programming books and opengl books. I implemented a fluid dynamics algorithm as a live wallpaper and called it live waterpaper. It has a few issues at the moment (I haven't had any time to work on it in months) but the algorithm works well. It's a CPU-side fluid dynamics algorithm which manipulates a grid of textured verts on a full-screen perspective projection. It's fairly convincing, especially when using a watery texture like coral. Start slow, get little things working and build your way up. If you stick with it long enough, you'll figure it out. On Jul 8, 1:14 am, metal mikey wrote: > Ah, typical wipro employee...here's an idea: if you have no clue about > IT, don't get a job in IT. > > Now, about the issue you mentioned above: apart from perhaps doing an > IT degree whereby you learn how to learn, have a look for old > javascript ripple effects and learn to port them to JAVA for Android. > Also, please don't put any of your Apps on Android Market as there's > already too much crap on there. > > On Jul 8, 3:02 pm, Mansoor wrote: > > > > > hi treking, > > i am expecting some technical advice to acheive ripple effect ...if > > anyone know it please share.. > > Thanks and regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Calculating Hash Value
In java I used the following: SHA1CreateDigest Shash = new SHA1CreateDigest(); byte [] tog = Shash.SHA1Encode(test); => test is the string of which I want to create the hash value Any idea how do I do this in Android? Thanks In Advance, Perumal On Jul 7, 4:50 pm, perumal316 wrote: > Hi All, > > I want to calculate the hash value of the all the folders in a > particular directory. I am able to do it in a java application. > > Any idea how to do it in Android? > > Thanks in Advance, > Perumal -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Calculating Hash Value
Hi All, In java I used the following: SHA1CreateDigest Shash = new SHA1CreateDigest(); byte [] tog = Shash.SHA1Encode(test); => test is the string of which I want to create the hash value Any idea how do I do this in Android? Thanks In Advance, Perumal On Jul 7, 4:50 pm, perumal316 wrote: > Hi All, > > I want to calculate the hash value of the all the folders in a > particular directory. I am able to do it in a java application. > > Any idea how to do it in Android? > > Thanks in Advance, > Perumal -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it normal that a real device fps is much different then emulator?
The speed in the emulator is related to the performance of your computer. I do e.g. get a very bad refresh rate on my laptop, and better refresh rates on my desktop. Rendering on my phone (nexus one) has always performed better than the emulator in my case. On 8 Juli, 08:29, kevin0228ca wrote: > btw, I also noticed that emulator with smaller resolution(HVGA) has > better fps than WVGA. > does this imply I should not trust the fps on emulators? > > On 7 July, 23:01, kevin0228ca wrote: > > > > > Hi everyone, > > I developed a game. On the emulator (not froyo) I am getting like less > > than 10 fps. > > But on my Nexus One with froyo I am getting 50 fps. > > Is this normal? Which one should I trust, I want my game to perform > > good on phones without froyo > > 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: what hardware platform do you use?
G1 obsolete? Well, almost. But take a look at the famous Platform Version 'dashboard' at http://developer.android.com/resources/dashboard/platform-versions.html. It shows that as many as 21.3% of phones connecting to the market are still on 1.5. 45% are running 1.6 or 1.5. So by that standard the G1 is not obsolete, since it is already on 1.6. Now sure, the hardware is slow and the runtime memory limited compared to the hot new phones running 2.1 and accounting for 53% of the market. But it would be a mistake to design your app -- or test your app -- on only the latest and greatest (unless, of course, your app relies on features only available on the latest hardware). Especially when 45% of the market is still running 1.6 or earlier. When you are looking for development hardware, and are limited in budget, there is really no point in buying "the most popular one". You need a more general test platform than that. The G1 meets that description since an application that runs correctly on the G1 will run correctly on many other platforms as well. One cannot say the same for the Droid. On Jul 7, 3:28 pm, "Maps.Huge.Info (Maps API Guru)" wrote: > My personal opinion here... > > Don't get a G1 - they are obsolete, hardly any of them exist in the > real world and they are stuck on Android 1.6. > > If you want to get a good device that is the most popular one, get a > Motorola Droid, the one with the keyboard. There are more of these in > the wild than any other device. If you app runs on this one, then you > are pretty much good to go. The Droid should get an update to Froyo > starting on the 15th of this month, if the rumors can be believed, > right now it's on 2.1-update1. You can get a used Droid on eBay for > about $200 or so. It doesn't run on AT&T but so what? > > AT&T will be offering the Samsung Galaxy S line at some point, you > might want to wait for that one to be released. The only downside is > AT&T will offer a crippled version that can't accept non-market apps. > AT&T sucks, what else can you say? > > The bottom line is for app development, pretty much any device will > do. You don't need a "development" device, but you absolutely will > need a real one to debug your app. The emulator is nice for quick > checks but it isn't much use in finding out if your app will really > work, or for figuring out why it doesn't. The sensors on the emulator > leave a lot to be desired as well, obviously, shaking your computer > isn't going to do much. > > -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it normal that a real device fps is much different then emulator?
btw, I also noticed that emulator with smaller resolution(HVGA) has better fps than WVGA. does this imply I should not trust the fps on emulators? On 7 July, 23:01, kevin0228ca wrote: > Hi everyone, > I developed a game. On the emulator (not froyo) I am getting like less > than 10 fps. > But on my Nexus One with froyo I am getting 50 fps. > Is this normal? Which one should I trust, I want my game to perform > good on phones without froyo > Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to do occur hardware keyboard event using software keyboard
Hi all I have question.! How to do occur hardware keyboard event using software keyboard? 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 to start animation automatically
Unless you've ensured that anim_record is an AnimationDrawable, your attempts to start an animation are doomed. Aside from that, I've encountered some buggy behaviour regarding the starting of AnimationRecordables within onCreate before. I suggest you try using a Handler to start the animation after a little delay. On Jul 8, 3:15 pm, cindy wrote: > In my application, when activity is start, I want to automatically > start animation without user click. I called anim_record.start() in > onCreate function. But nothing happened. > > When and where should I start animation? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Water ripple effect
Ah, typical wipro employee...here's an idea: if you have no clue about IT, don't get a job in IT. Now, about the issue you mentioned above: apart from perhaps doing an IT degree whereby you learn how to learn, have a look for old javascript ripple effects and learn to port them to JAVA for Android. Also, please don't put any of your Apps on Android Market as there's already too much crap on there. On Jul 8, 3:02 pm, Mansoor wrote: > hi treking, > i am expecting some technical advice to acheive ripple effect ...if > anyone know it please share.. > Thanks and regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is it normal that a real device fps is much different then emulator?
Hi everyone, I developed a game. On the emulator (not froyo) I am getting like less than 10 fps. But on my Nexus One with froyo I am getting 50 fps. Is this normal? Which one should I trust, I want my game to perform good on phones without froyo 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] iPhone , Android and Mobile Web, Making friends and looking for coorperation
Hi there, I'm Robert Lin, CEO of Gava (International) Group Co.,Ltd which exports Chinese products and develops applications based on XUL. I'm looking forward to setting up a new company which develops apps for mobiles and making friends with you guys. I have team, technology and good ideas and thoughts. Pls contact me if we have something to cooperate with, or if you are also a big enthusiast on mobile devices . rob...@gava-group.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Can load html from assets but loading JS, CSS from within that HTML is another story ...
I'm loading html into a webview from my assets folder, works no problem. In my second experiment I've loaded HTML from a database (after pulling from remote source) and displayed in a webview (also no prob) ...Now I'm trying to change the baseref inside the html to have all JS and CSS references point to source files under assets. This part doesn't seem to work. I get warnings from the web console that it can't load these files due to security issue. Now I've resorted back to a content provider and overriding openFile (and setting base ref with content://...) but now I'm hitting another problem with the JS and CSS files in assets being compressed. Before I dig deeper, am I over-complicating this? Cheers, Stace -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 start animation automatically
In my application, when activity is start, I want to automatically start animation without user click. I called anim_record.start() in onCreate function. But nothing happened. When and where should I start animation? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Water ripple effect
hi treking, i am expecting some technical advice to acheive ripple effect ...if anyone know it please share.. Thanks and regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to change the default color of list
Hi All, I want to change the default highlight color for list.But it doesn't work, the allow list area has set to the high-light color I want to set. Any thing wrong with my code? THe layout code is as follows: The listselect.xml is: http://schemas.android.com/apk/res/android";> Thanks! Cindy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] writing to sd card issue
Hi all I am trying to write to SD card without "android.permission.WRITE_EXTERNAL_STORAGE" permission in manifest file. I am able to write to sd card. Whether I have to mention this permission in application manifest or i have to mention in other places also. What other factors I have to look in to this. Thanks Gururaja B O -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Add Media Files to Library in Froyo
I tried with the new API: MediaScannerConnection.scanFile(EMD.context,names,types,null); ...and it still does not add the files to the music library. Is media scanning just broken in Android 2.2??? The files are actually added to my library if I restart the phone or unmount/mount the sdcard. But in 2.1 and below, they are added to the music library immediately using the above code. Anyone got any ideas/suggestions? On Jul 7, 4:55 pm, jdeslip wrote: > I have develop and app that downloads music files and should add them > to the music library. I use the following class to do this: > > public class MediaScannerNotifier implements > MediaScannerConnectionClient { > > private Context mContext; > private MediaScannerConnection mConnection; > private String mPath; > private String mMimeType; > > public MediaScannerNotifier(Context context, String path, String > mimeType) { > mContext = context; > mPath = path; > mMimeType = mimeType; > mConnection = new MediaScannerConnection(context, this); > mConnection.connect(); > } > > public void onMediaScannerConnected() { > Log.e("SCANNER","SCAN CONNECTED"); > mConnection.scanFile(mPath, mMimeType); > } > > public void onScanCompleted(String path, Uri uri) { > Log.e("SCANNER","SCAN COMPLETED "+path+" "+uri); > mConnection.disconnect(); > mContext = null; > } > > } > > Everything works ok with android 2.1 and below. But, in android 2.2, > the media files do not get added to my music library. :( I know there > were some changes in froyo API for music scanning, but I am unsure why > the above no longer works. > > By the way, everything seems to scan fine - i.e. I get ok log messages > - E/SCANNER ( 339): SCAN COMPLETED /sdcard/EMusic/Josh Woodward/ > Breadcrumbs/TheVoices.mp3 content://media/internal/audio/media/4 > > Any idea on what to change to make media scanning work again in froyo? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Repeat the Image View
http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > the layout will display the img on the left top of the screen. I would like the imageview display repeatly so that It can occupy all the screen. I dont want to make the img as the backgroun of the linearlayout. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Use ksoap + digital certificate file
Hi All, I need to access a webservice, but to access is needs to use a digital certifcate (i have a .pfx file), I can use KeyStore to validate the certificate, but i not know how to connect in "WS" with this certificate. anyone help me? Thank and Regards, Marcelo Alves -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 emulator
If I could stick in my 2 cents as a new guy, my emulator takes longer than 3 minutes to boot, but then I have a pretty old computer. Initially it was 5 minutes or so, when I switched to the "Google API" AVD it took 20 minutes to boot up. And then it wouldn't run my examples, it would just say they're not responding. Hence my other thread about picking a hardware platform. --steve On Jul 7, 4:55 pm, Indicator Veritatis wrote: > Forever is such a long time... > > Seriously: unless you really did wait at least 3 full minutes, what > you just described, unfortunately, is completely normal; you will have > to wait longer if your simulated SD Card is big. That is why people > launch the emulator at the beginning of their work session and then > keep it running, killing it only when absolutely necessary (which is > rare). > > OTOH, if among the many message in the Console, you never see "adb is > running normally", then yes, you do have a problem. In that case, you > might have to post all the many error messages for us to figure out > what is going on. But since they are so many, I would suggest first > making sure you have the tools all installed (such as adb itself) > where Eclipse can find them, posting the error messages only if it > still fails to launch after that has been checked (and corrected as > necessary). > > On Jul 3, 3:44 pm, dmbinbc wrote: > > > > > I cant get the emulator to work. It starts up but hangs forever. When > > I look at the logCat I see many errors and warnings. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 clear miss call notification
hi Mark, nope i'm talking about the native notifications. regards, mike -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 2.2 Cloud to Device Messaging
We are looking for possibility of extend C2DM to other platform such as WM. And want to check the technology or protocol behind android 2.2 Cloud to Device Messaging. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to make the image scrolling smoothly and repeatly
hi~ do anyone know how to make the image scroll smoothly, and after it reach the edge of the image, the image can be scrolled further by repeating itself? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adjusting camera focus
Can you directly adjust the focus of the camera instead of changing the focus mode in 2.2? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Allowing apps to be stored on SD card
Never mind, I just found it... http://developer.android.com/guide/appendix/install-location.html On Jul 7, 7:49 pm, Stephen Lebed wrote: > I'm not programming for Froyo yet, I still developing against 1.6 for > now. I've been asked to allow my app to be stored on the SD card. Is > there a way to add that option to my app? Is it a setting in the > manifest? > > Thanks, > Stephen -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Allowing apps to be stored on SD card
I'm not programming for Froyo yet, I still developing against 1.6 for now. I've been asked to allow my app to be stored on the SD card. Is there a way to add that option to my app? Is it a setting in the manifest? Thanks, Stephen -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Market reporting wrong app size
I've just released an update to my app and the apk file is 3.5mb on my system. It is reported as 3.5mb in the developer console. But in the market it is showing up as 7.02mb. I'm now getting comments that that app is too big and I feel people may not purchase it if they think it will take up 7mb of space. Is anyone else seeing this 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: Change the progress bar style dynamically
On Wed, Jul 7, 2010 at 11:57 AM, Serdel wrote: > Yes I have but this class does not have any method to change the style > of a progressBar, like the ProgressDialog class. The style of a > progressBar is defined in the xml file by special attributes but there > are no methods related to them... > Don't know what else to tell you. At this point I'd probably just have two XML files and re-load the stupid thing when necessary. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Adjusting camera focal length
Is it possible to adjust the camera focal length (instead of focus mode) in 2.2? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Build Error
My first response when looking at your error was that you need to point your libz.so to your 32 bit version. I would try that first and see if that works. Try doing an 'ls -l' on /usr/lib/libz.so and see where that points. My first guess is that you need to create a symlink to the 32bit version, /usr/lib32/libz.so. On Wed, Jul 7, 2010 at 10:06 PM, Taewoong Kim wrote: > My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). > Is this problem? > > 2010/7/8 Robert Craig > >> it could be a 64 bit versus 32 bit issue. what does your dev environment >> look like? >> >> On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim wrote: >> >>> I have a same problem. >>> >>> but I could not have solution. >>> >>> >>> >>> 2010/7/6 David Rhodus >>> >>> Anyone seen this ? I feel like I'm just missing a package or something easy. On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus wrote: > Any Suggestions ??? > > > apt-get install git-core gnupg sun-java6-jdk flex bison gperf > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl > libncurses5-dev zlib1g-dev g++-multilib > repo sync > > r...@myhost:/home/android# make showcommands > > PLATFORM_VERSION_CODENAME=AOSP > PLATFORM_VERSION=AOSP > TARGET_PRODUCT=generic > TARGET_BUILD_VARIANT=eng > TARGET_SIMULATOR= > TARGET_BUILD_TYPE=release > TARGET_BUILD_APPS= > TARGET_ARCH=arm > HOST_ARCH=x86 > HOST_OS=linux > HOST_BUILD_TYPE=release > BUILD_ID=OPENMASTER > > Install: out/host/linux-x86/framework/apicheck.jar > out/host/linux-x86/bin/acp -fpt > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar > out/host/linux-x86/framework/apicheck.jar > Install: out/host/linux-x86/framework/clearsilver.jar > out/host/linux-x86/bin/acp -fpt > out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar > out/host/linux-x86/framework/clearsilver.jar > Install: out/host/linux-x86/framework/droiddoc.jar > out/host/linux-x86/bin/acp -fpt > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar > out/host/linux-x86/framework/droiddoc.jar > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 > -Lout/host/linux-x86/obj/lib > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o >-Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs > -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz > /usr/bin/ld: skipping incompatible > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for > -lz > /usr/bin/ld: skipping incompatible > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for > -lz > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz > /usr/bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 > r...@myhost:/home/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 >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, 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 receiv
Re: [android-developers] Re: Build Error
My dev environment is ubuntu 10.04(32bit) on 64bit cpu(dual). Is this problem? 2010/7/8 Robert Craig > it could be a 64 bit versus 32 bit issue. what does your dev environment > look like? > > On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim wrote: > >> I have a same problem. >> >> but I could not have solution. >> >> >> >> 2010/7/6 David Rhodus >> >> Anyone seen this ? >>> I feel like I'm just missing a package or something easy. >>> >>> On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus wrote: >>> > Any Suggestions ??? >>> > >>> > >>> > apt-get install git-core gnupg sun-java6-jdk flex bison gperf >>> > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl >>> > libncurses5-dev zlib1g-dev g++-multilib >>> > repo sync >>> > >>> > r...@myhost:/home/android# make showcommands >>> > >>> > PLATFORM_VERSION_CODENAME=AOSP >>> > PLATFORM_VERSION=AOSP >>> > TARGET_PRODUCT=generic >>> > TARGET_BUILD_VARIANT=eng >>> > TARGET_SIMULATOR= >>> > TARGET_BUILD_TYPE=release >>> > TARGET_BUILD_APPS= >>> > TARGET_ARCH=arm >>> > HOST_ARCH=x86 >>> > HOST_OS=linux >>> > HOST_BUILD_TYPE=release >>> > BUILD_ID=OPENMASTER >>> > >>> > Install: out/host/linux-x86/framework/apicheck.jar >>> > out/host/linux-x86/bin/acp -fpt >>> > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar >>> > out/host/linux-x86/framework/apicheck.jar >>> > Install: out/host/linux-x86/framework/clearsilver.jar >>> > out/host/linux-x86/bin/acp -fpt >>> > >>> out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar >>> > out/host/linux-x86/framework/clearsilver.jar >>> > Install: out/host/linux-x86/framework/droiddoc.jar >>> > out/host/linux-x86/bin/acp -fpt >>> > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar >>> > out/host/linux-x86/framework/droiddoc.jar >>> > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) >>> > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib >>> > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 >>> > -Lout/host/linux-x86/obj/lib >>> > >>> out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o >>> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o >>> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o >>> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o >>> > >>> out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o >>> >-Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs >>> > -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz >>> > /usr/bin/ld: skipping incompatible >>> > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for >>> > -lz >>> > /usr/bin/ld: skipping incompatible >>> > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for >>> > -lz >>> > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for >>> -lz >>> > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for >>> -lz >>> > /usr/bin/ld: cannot find -lz >>> > collect2: ld returned 1 exit status >>> > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 >>> > r...@myhost:/home/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 >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, 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] EVO failing in MediaPlayer
All, We are seeing some very strange results in media playback on HTC EVO devices. In our call to MediaPlayer.create(getApplicationContext(), uri), we get failures with the following stack trace: W/System.err( 404): java.io.FileNotFoundException: /data/hdmi_setting W/System.err( 404): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java: 244) W/System.err( 404): at java.io.FileInputStream.(FileInputStream.java:77) W/System.err( 404): at java.io.FileInputStream.(FileInputStream.java:130) W/System.err( 404): at java.io.FileReader.(FileReader.java:66) W/System.err( 404): at android.media.MediaPlayer.readHDMISetting(MediaPlayer.java:2087) W/System.err( 404): at android.media.MediaPlayer.getHDMIResolution(MediaPlayer.java:1966) W/System.err( 404): at android.media.MediaPlayer.(MediaPlayer.java:562) W/System.err( 404): at android.media.MediaPlayer.create(MediaPlayer.java:658) W/System.err( 404): at android.media.MediaPlayer.create(MediaPlayer.java:640) Has anyone encountered anything like this? Anyone have suggestions on how to diagnose? This code works just fine for many, many thousands of other devices out there. Thanks in advance, jsdf -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sustainable Software Development
> Does this involve green text and recycling my Views? Unfortunately *not* although the collective wisdom of teams may consider that as an option. There are four principles of sustainability: * working product * design emphasis * continual refinement * defect prevention Are there other principles that have been identified by Android developers? Hope this elaboration helps. On Jul 7, 12:47 pm, RichardC wrote: > Does this involve green text and recycling my Views? > > On Jul 7, 8:13 pm, Umar wrote: > > > > > Is there a sustainable software development model that is being > > adopted by the Android developer community? > > > While the definition of the Java programming language includes the > > phrase "buzzword-compliant", I am not intending to use the word > > sustainable as a buzzword. The word "sustainable" perhaps has a > > meaning within the Android developer community. Has anyone mined and > > formalized this? > > > Thanks for sharing any pointers in this regard. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Build Error
it could be a 64 bit versus 32 bit issue. what does your dev environment look like? On Wed, Jul 7, 2010 at 9:03 PM, Taewoong Kim wrote: > I have a same problem. > > but I could not have solution. > > > > 2010/7/6 David Rhodus > > Anyone seen this ? >> I feel like I'm just missing a package or something easy. >> >> On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus wrote: >> > Any Suggestions ??? >> > >> > >> > apt-get install git-core gnupg sun-java6-jdk flex bison gperf >> > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl >> > libncurses5-dev zlib1g-dev g++-multilib >> > repo sync >> > >> > r...@myhost:/home/android# make showcommands >> > >> > PLATFORM_VERSION_CODENAME=AOSP >> > PLATFORM_VERSION=AOSP >> > TARGET_PRODUCT=generic >> > TARGET_BUILD_VARIANT=eng >> > TARGET_SIMULATOR= >> > TARGET_BUILD_TYPE=release >> > TARGET_BUILD_APPS= >> > TARGET_ARCH=arm >> > HOST_ARCH=x86 >> > HOST_OS=linux >> > HOST_BUILD_TYPE=release >> > BUILD_ID=OPENMASTER >> > >> > Install: out/host/linux-x86/framework/apicheck.jar >> > out/host/linux-x86/bin/acp -fpt >> > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar >> > out/host/linux-x86/framework/apicheck.jar >> > Install: out/host/linux-x86/framework/clearsilver.jar >> > out/host/linux-x86/bin/acp -fpt >> > out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar >> > out/host/linux-x86/framework/clearsilver.jar >> > Install: out/host/linux-x86/framework/droiddoc.jar >> > out/host/linux-x86/bin/acp -fpt >> > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar >> > out/host/linux-x86/framework/droiddoc.jar >> > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) >> > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib >> > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 >> > -Lout/host/linux-x86/obj/lib >> > >> out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o >> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o >> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o >> > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o >> > >> out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o >> >-Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs >> > -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz >> > /usr/bin/ld: skipping incompatible >> > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for >> > -lz >> > /usr/bin/ld: skipping incompatible >> > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for >> > -lz >> > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for >> -lz >> > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for >> -lz >> > /usr/bin/ld: cannot find -lz >> > collect2: ld returned 1 exit status >> > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 >> > r...@myhost:/home/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 > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] build android sdk from git on ubuntu 10.04 fail
I have a same problem. but I could not have solution. 2010/7/4 zyanho > i getting start with http://source.android.com/source/download.html. > i use ubuntu 10.04 ,i install android step by step. > i type "make" at last,i get an error > > host C: libneo_util <= external/clearsilver/util/neo_hash.c > host SharedLib: libneo_util (out/host/linux-x86/obj/lib/ > libneo_util.so) > host C: libneo_cs <= external/clearsilver/cs/csparse.c > host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so) > host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c > host C: libneo_cgi <= external/clearsilver/cgi/cgi.c > host C: libneo_cgi <= external/clearsilver/cgi/html.c > host C: libneo_cgi <= external/clearsilver/cgi/date.c > host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) > /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ > 4.4.3/../../../libz.so when searching for -lz > /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/ > 4.4.3/../../../libz.a when searching for -lz > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for > -lz > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for - > lz > /usr/bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1 > > it look like somethings wrong with libz,but zlib1g-dev is install .i > try to google it all around web,but i get nothings,could anybody have > some idea with this? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, 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: Build Error
I have a same problem. but I could not have solution. 2010/7/6 David Rhodus > Anyone seen this ? > I feel like I'm just missing a package or something easy. > > On Sun, Jul 4, 2010 at 6:24 PM, David Rhodus wrote: > > Any Suggestions ??? > > > > > > apt-get install git-core gnupg sun-java6-jdk flex bison gperf > > libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl > > libncurses5-dev zlib1g-dev g++-multilib > > repo sync > > > > r...@myhost:/home/android# make showcommands > > > > PLATFORM_VERSION_CODENAME=AOSP > > PLATFORM_VERSION=AOSP > > TARGET_PRODUCT=generic > > TARGET_BUILD_VARIANT=eng > > TARGET_SIMULATOR= > > TARGET_BUILD_TYPE=release > > TARGET_BUILD_APPS= > > TARGET_ARCH=arm > > HOST_ARCH=x86 > > HOST_OS=linux > > HOST_BUILD_TYPE=release > > BUILD_ID=OPENMASTER > > > > Install: out/host/linux-x86/framework/apicheck.jar > > out/host/linux-x86/bin/acp -fpt > > out/host/common/obj/JAVA_LIBRARIES/apicheck_intermediates/javalib.jar > > out/host/linux-x86/framework/apicheck.jar > > Install: out/host/linux-x86/framework/clearsilver.jar > > out/host/linux-x86/bin/acp -fpt > > out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar > > out/host/linux-x86/framework/clearsilver.jar > > Install: out/host/linux-x86/framework/droiddoc.jar > > out/host/linux-x86/bin/acp -fpt > > out/host/common/obj/JAVA_LIBRARIES/droiddoc_intermediates/javalib.jar > > out/host/linux-x86/framework/droiddoc.jar > > host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so) > > g++ -Wl,-rpath-link=out/target/product/generic/obj/lib > > -Wl,-rpath,\$ORIGIN/../lib -shared -Wl,-soname,libneo_cgi.so -m64 > > -Lout/host/linux-x86/obj/lib > > > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgiwrap.o > > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o > > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/html.o > > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/date.o > > > out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/rfc2388.o > >-Wl,--whole-archive -Wl,--no-whole-archive -lneo_util -lneo_cs > > -o out/host/linux-x86/obj/lib/libneo_cgi.so -lz > > /usr/bin/ld: skipping incompatible > > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.so when searching for > > -lz > > /usr/bin/ld: skipping incompatible > > /usr/lib/gcc/i486-linux-gnu/4.4.1/../../../libz.a when searching for > > -lz > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for > -lz > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz > > /usr/bin/ld: cannot find -lz > > collect2: ld returned 1 exit status > > make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] Error 1 > > r...@myhost:/home/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
[android-developers] Stopping monkey test
Hi all, Is it possible to abort monkey once it is started? I cant see any task called monkey in the shell. Also, I had killed the testing app but failed to stop the monkey...Please help 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] Add Media Files to Library in Froyo
I have develop and app that downloads music files and should add them to the music library. I use the following class to do this: public class MediaScannerNotifier implements MediaScannerConnectionClient { private Context mContext; private MediaScannerConnection mConnection; private String mPath; private String mMimeType; public MediaScannerNotifier(Context context, String path, String mimeType) { mContext = context; mPath = path; mMimeType = mimeType; mConnection = new MediaScannerConnection(context, this); mConnection.connect(); } public void onMediaScannerConnected() { Log.e("SCANNER","SCAN CONNECTED"); mConnection.scanFile(mPath, mMimeType); } public void onScanCompleted(String path, Uri uri) { Log.e("SCANNER","SCAN COMPLETED "+path+" "+uri); mConnection.disconnect(); mContext = null; } } Everything works ok with android 2.1 and below. But, in android 2.2, the media files do not get added to my music library. :( I know there were some changes in froyo API for music scanning, but I am unsure why the above no longer works. By the way, everything seems to scan fine - i.e. I get ok log messages - E/SCANNER ( 339): SCAN COMPLETED /sdcard/EMusic/Josh Woodward/ Breadcrumbs/TheVoices.mp3 content://media/internal/audio/media/4 Any idea on what to change to make media scanning work again in froyo? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Do threads cache instance variables?
Thanks for responding, that's all interesting stuff. Mark -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: println needs a message
On Jul 1, 11:18 pm, Brad Gies wrote: > It looks like you are logging something and the message is null. See also: http://code.google.com/p/android/issues/detail?id=9211 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 make a imageview at right of linearlayout
Following code works: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:id="@+id/logo_block" android:padding="10px" android:gravity="right" android:layout_alignParentRight="true" android:layout_height="wrap_content"> On Jul 7, 5:12 am, Levi wrote: > If you put one view in the layout then the result will be the same > > 在 2010年7月7日 下午8:07,Levi 写道: > > > Why not using RelativeLayout ?You can set a property > > android:layout_alignParentRight="true" ,then what you want will be show > > good luck! > > > 2010/7/7 cindy > > > Have tried all those, none of them works. Does it mean we can't put a > >> imageview to right? > > >> http://schemas.android.com/apk/res/ > >> android" > >>android:layout_width="fill_parent" > >>android:id="@+id/logo_block" > >>android:padding="10px" > >> android:gravity="right" > >> android:layout_height="wrap_content"> > >> >>android:layout_width="fill_parent" > >>android:layout_height="fill_parent" > >> android:src="@drawable/logo_poweredby"/> > >> > > >> On Jul 6, 6:15 pm, Levi wrote: > >> > Hi,try it Good Luck! > > >> > http://schemas.android.com/apk/res/ > >> > android" > >> >android:layout_width="fill_parent" > >> >android:id="@+id/logo_block" > >> >android:padding="10px" > >> >android:layout_height="wrap_content" > >> >android:gravity="right"> > >> > >> >android:layout_width="fill_parent" > >> >android:layout_height="fill_parent" > >> >android:src="@drawable/logo_poweredby"/> > >> > > > >> > 2010/7/5 cindy > > >> > > Hi All, > > >> > > In the linearlayout, I need to put the image at right. I have tried a > >> > > lot of method, none of them works. Can someone point out what is > >> > > wrong? > > >> > > http://schemas.android.com/apk/res/ > >> > > android" > >> > >android:layout_width="fill_parent" > >> > >android:id="@+id/logo_block" > >> > >android:padding="10px" > >> > >android:layout_height="wrap_content"> > >> > > >> > >android:layout_width="fill_parent" > >> > >android:layout_height="fill_parent" > >> > >android:gravity="right" > >> > >android:layout_alignParentRight="true" > >> > >android:src="@drawable/logo_poweredby"/> > >> > > > > >> > > Thanks! > > >> > > Cindy > > >> > > -- > >> > > You received this message because you are subscribed to the Google > >> > > Groups "Android Developers" group. > >> > > To post to this group, send email to > >> android-developers@googlegroups.com > >> > > To unsubscribe from this group, send email to > >> > > android-developers+unsubscr...@googlegroups.com > >> > > >> > > For more options, visit this group at > >> > >http://groups.google.com/group/android-developers?hl=en > > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Android Developers" group. > >> To post to this group, send email to android-developers@googlegroups.com > >> To unsubscribe from this group, send email to > >> android-developers+unsubscr...@googlegroups.com > >> For more options, visit this group at > >>http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there any Dalvik bytecoder available?
On Jul 6, 1:49 am, Gonzalo wrote: > Is there any Dalvik bytecoder available or an ongoing project that I > can join/check that is working on this issue? I'm not sure what you mean by "bytecoder". You can generate Java bytecode and convert it with "dx", but most Android devices are a bit resource-limited to run dx directly. http://code.google.com/p/smali/ is an assembler/disassembler for DEX. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop
On Jul 6, 6:43 am, TjerkW wrote: > Basically this stops me from properly implementing a background file > upload. > Anybody has an idea what is going on here? Looks like the heap is full. What's taking up all that space? Is something catching and ignoring OOM? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 and Java Reflection to call a higher API level function/abstract class
On Jul 6, 2:23 am, WindowsNT wrote: > How can I resolve all this Java stuff ? Seems like you need to wrap it at a higher level. Some thoughts on a reflection alternative are here: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-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] Re: Do threads cache instance variables?
On Jul 7, 12:20 pm, Al Sutton wrote: > Try using the java keyword "volatile" in you variable declaration. "Volatile" doesn't matter for interpreted Dalvik on a uniprocessor. The interpreter always executes all field access instructions and doesn't do any reordering, so "volatile" is effectively a no-op. (In fact, the <= Froyo interpreter ignores it completely, though this is a bug for 64-bit values.) It's definitely a good idea to specify it for fields that are accessed without synchronization from multiple threads, since the JIT might otherwise do things you didn't want it to. OP: There is no thread-local caching of values. Fields are stored in the object, so this shouldn't happen unless you have two copies of the object or your log statements are somehow happening out of order (logging the object's "identity hash code" can help with the first, inserting some sleep calls could help sort out the second). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what hardware platform do you use?
My personal opinion here... Don't get a G1 - they are obsolete, hardly any of them exist in the real world and they are stuck on Android 1.6. If you want to get a good device that is the most popular one, get a Motorola Droid, the one with the keyboard. There are more of these in the wild than any other device. If you app runs on this one, then you are pretty much good to go. The Droid should get an update to Froyo starting on the 15th of this month, if the rumors can be believed, right now it's on 2.1-update1. You can get a used Droid on eBay for about $200 or so. It doesn't run on AT&T but so what? AT&T will be offering the Samsung Galaxy S line at some point, you might want to wait for that one to be released. The only downside is AT&T will offer a crippled version that can't accept non-market apps. AT&T sucks, what else can you say? The bottom line is for app development, pretty much any device will do. You don't need a "development" device, but you absolutely will need a real one to debug your app. The emulator is nice for quick checks but it isn't much use in finding out if your app will really work, or for figuring out why it doesn't. The sensors on the emulator leave a lot to be desired as well, obviously, shaking your computer isn't going to do much. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: what hardware platform do you use?
I am doing much as you are considering: using a G1 for development, only rarely putting my AT&T sim into it. I usually connect by WiFi. My impressions of the G1, based on this one unit only, are: 1) it is rather slow, often to the point of being unresponsive to UI 2) WiFi connection is NOT reliable 3) I am very underwhelmed by the way they implement the trackball: it is just silly how far I have to roll it before it goes to the next line of text (or whatever). 4) both the accelerometer and the switch detecting when the keyboard has been slid out are unreliable. 5) battery life is OK as long as you don't try to use it:( The WiFi is the major culprit for draining the battery. Keep that off and the battery will last a good long time. Despite all that, I am finding it quite workable for development. Of course, it helps that my apps to date have not made extensive use of the network. But it has the right screen size for testing your Views to make sure they work on most phones in both orientations. Of course, you should not rely on this alone, you should test in the simulator for other sizes/densities and both orientations. On Jul 6, 8:45 pm, steve ravet wrote: > I'm new to Android and Java but working my way through the demos. On > my computer the emulator is hopelessly slow so I want to get a used > phone to develop on. I'm looking at a G1, but before I buy one from > ebay I thought I'd ask here and see what others are using. This will > be strictly a development platform, although I may put my AT&T SIM in > it on occasion if I need to test telephony functions. If you use > something other than your personal phone for developing android apps > on, what is it and why did you choose it? > > Is anyone using a beagle board or other non Android hardware to > develop Android apps? > > I didn't see much discussion of hardware platforms in the archives so > my apologies in advance if this is't the right group. > > 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: android emulator
Forever is such a long time... Seriously: unless you really did wait at least 3 full minutes, what you just described, unfortunately, is completely normal; you will have to wait longer if your simulated SD Card is big. That is why people launch the emulator at the beginning of their work session and then keep it running, killing it only when absolutely necessary (which is rare). OTOH, if among the many message in the Console, you never see "adb is running normally", then yes, you do have a problem. In that case, you might have to post all the many error messages for us to figure out what is going on. But since they are so many, I would suggest first making sure you have the tools all installed (such as adb itself) where Eclipse can find them, posting the error messages only if it still fails to launch after that has been checked (and corrected as necessary). On Jul 3, 3:44 pm, dmbinbc wrote: > I cant get the emulator to work. It starts up but hangs forever. When > I look at the logCat I see many errors and warnings. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Problems installing Eclipse with Android.
Glancing through this thread, I can see it has been a frustrating experience for both of you. So I feel a little sheeping about asking for more details, yet it must be done, so I have to ask: where are you seeing these errors? More specifically, which error messages are you referring to? The same Null Pointer Exception the OP referred to at first, or are you referring to the little red 'x' marks the Eclipse UI puts up whenever it THINKS you have an error? The reason I ask is because what you so briefly describe does not sound like the same thing the OP originally described: it sounds rather like what I used to see all the time, that Eclipse trips over its own two left feet trying to print error messages to the log as it stubbornly tries to interpret the XML code I haven't finished typing yet. If that is what you are seeing, there are two workarounds: 1) get at least 3G of RAM on your machine, so that Eclipse can waste cycles with these error messages and still have some to spare or 2) turn off the automatic build feature, so that it interprets it only when you say it is ready to be interpreted. Before I upgraded to 3G of RAM, I was turning the automatic build feature on and off to get around the things that don't work right in either state:( Sometimes, Eclipse fails to detect the need to rebuild the R.java file, which failure is much more rare when automatic build is turned on. BTW: I would definitely go ahead and load the code for all the different version targets. If you do get to the point of doing production code, you really do want to test it on all versions from at least 1.6 through 2.1. You really should do 1.5 through 2.2, since 2.2 is likely to prove the latest version until 3.0 is released (no sooner than October), and about 20%-30% of the phones out there are still 1.5. On Jul 7, 5:49 am, Matthew wrote: > I also get this problem. > Even just editing the xml by hand using the xml tab I get errors for > every letter I type. It does still let me save and it does compile > successfully. I'm also on Windows 7 64bit > > On Jul 1, 4:38 am, Zigurd wrote:> Does your > question 1 refer to the step in installation where you use > > the AVD and SDK Manager to install build target packages? If so, you > > can choose to install all of them without using up too much space on a > > big machine. If you install all of the build targets you will be sure > > to be compatible with example code that is set up for various API > > levels. > > > A null pointer exception reported in Eclipse that occurs in an Android > > XML editor usually means the visual editor could not interpret or > > create the XML correctly. The most common case I see that is > > attempting to use a layout editor where a View class has been > > subclassed and the subclass name is used in the layout - the layout > > editor can't handle that. So I suspect you have encountered something > > similar. Edit the XML "by hand" - switch to the xml view using the > > tabs at the bottom of the editor pane - and make sure that there are > > no errors in the XML file. > > > On Jun 30, 10:01 am, Albion wrote: > > > > I've been following the tutorial at this > > > page...http://www.vogella.de/articles/Android/article.html > > > > I had originally sent an e-mail to the author of the tutorial who > > > promptly told me that I shouldn't e-mail him about his tutorial, but > > > should ask this group instead. Below is a copy of the e-mail I sent > > > him, I am hoping someone here can help. > > > > -- > > > > I am running Windows 7 Business x64 with the latest Microsoft > > > updates. Eclipse Helios Build: 20100617-1415 (IDE for Java > > > Developers), Android SDK r06, Android Developer Tools > > > 0.9.7.v201005071157-36220, Java JDK 6 update 20. All on a Quad core > > > E5345 with 8gig of RAM and lots and lots of hard drive space (space > > > isn't an issue). > > > > 1) In Section 2.3 under "Select available packages and select the > > > latest version of the SDK." your tutorial tells me to select all of > > > the Android 2.2 packages. What if I only want to code in Android > > > 1.6? Will I also need to get the 1.6 packages? The same for 2.1? > > > > 2) In section 4.3 you tell me to open strings.xml under res/values. > > > When I select the resource tab for strings.xml there is nothing listed > > > under Resource Elements, where you say I should see "hello (String)" > > > and "app_name (String)". When I try to add an element or do anything > > > else with the elements listed I get an error: "An error has > > > occurred. See error log for more details. > > > java.lang.NullPointerException." Even when I select the strings.xml > > > tab next to the resource tab and try to manually change the text, for > > > each character I type I get the same error. Google has turned up > > > nothing for that error on Eclipse with Android. I've tried completely > > > removing and reinstalling Eclipse and Android SDK, making sure I > > > followed your tutorial fo
[android-developers] Re: paypal mobile payment allowed?
The legal & logistical issues are of course why this is not just a technical issue, but after 2 years? There are dozens upon dozens of digital distribution platforms out there - some of them started after the Android market - that manage to handle purchase and developer sales from multiple countries. It may not be trivial issue, but it is not rocket science either. The only explanation that really makes sense is that Google just isn't interested (i.e., to prioritize it). I'll second your suggestion to list at alternative markets when possible. The Android market only holds the position it has because it is the default market on Android and thus holds a monopoly on the users of this "open" system. It seems like the only way that one will be able to get Google to pay attention to the deficiencies of their market model is for the alternatives to become big enough that they actually provide some competition. Regards, Michael A. On Jul 7, 9:03 pm, Al Sutton wrote: > My understanding is that the problem is more a legal & logistical > issue than a technical one (e.g complying with local tax requirements > and laws governing resale of goods supplied from a country), so a > software update alone won't help. > > Al. > > On Jul 7, 7:34 pm, Denis Souza wrote: > > > Could there be any chance that with the new Android Market, made to > > support some features in Froyo, Google would also allow more countries > > to sell apps? Does anyone have any idea of when this new Market would > > be released? > > > On Jul 7, 10:30 am, Al Sutton wrote: > > > > It's using an unofficial API and could be cut off at any point. It > > > also doesn't allow you to actually download the apps, only display the > > > app listing information. > > > > Al. > > > > On Jul 7, 8:00 am, ko5tik wrote: > > > > > On Jul 6, 10:19 am, Al Sutton wrote: > > > > > > Just to address your point on collecting information from Googles > > > > > Market; I've talked to someone at Google about this and it was an > > > > > absolute no-go. The request wasn't for AndAppStore, but for another > > > > > project that I was working on part of and some people at Google had > > > > > shown some interest in. > > > > > Well, what about cyrket? It collects information from market and > > > > displays it in a better way than original ( user comments were > > > > visible for ages ) > > > > > regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: paypal mobile payment allowed?
The legal & logistical issues are of course why this is not just a technical issue, but after 2 years? There are dozens upon dozens of digital distribution platforms out there - some of them started after the Android market - that manage to handle purchase and developer sales from multiple countries. It may not be trivial issue, but it is not rocket science either. The only explanation that really makes sense is that Google just isn't interested (i.e., to prioritize it). I'll second your suggestion to list at alternative markets when possible. The Android market only holds the position it has because it is the default market on Android and thus holds a monopoly on the users of this "open" system. It seems like the only way that one will be able to get Google to pay attention to the deficiencies of their market model is for the alternatives to become big enough that they actually provide some competition. Regards, Michael A. On Jul 7, 9:03 pm, Al Sutton wrote: > My understanding is that the problem is more a legal & logistical > issue than a technical one (e.g complying with local tax requirements > and laws governing resale of goods supplied from a country), so a > software update alone won't help. > > Al. > > On Jul 7, 7:34 pm, Denis Souza wrote: > > > Could there be any chance that with the new Android Market, made to > > support some features in Froyo, Google would also allow more countries > > to sell apps? Does anyone have any idea of when this new Market would > > be released? > > > On Jul 7, 10:30 am, Al Sutton wrote: > > > > It's using an unofficial API and could be cut off at any point. It > > > also doesn't allow you to actually download the apps, only display the > > > app listing information. > > > > Al. > > > > On Jul 7, 8:00 am, ko5tik wrote: > > > > > On Jul 6, 10:19 am, Al Sutton wrote: > > > > > > Just to address your point on collecting information from Googles > > > > > Market; I've talked to someone at Google about this and it was an > > > > > absolute no-go. The request wasn't for AndAppStore, but for another > > > > > project that I was working on part of and some people at Google had > > > > > shown some interest in. > > > > > Well, what about cyrket? It collects information from market and > > > > displays it in a better way than original ( user comments were > > > > visible for ages ) > > > > > regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BufferedInputStream buffer size
The problem is that available() is not what to use there: Just read from the screen like this: public class CopyBytes { public static void main(String[] args) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { in = new FileInputStream("xanadu.txt"); out = new FileOutputStream("outagain.txt"); int c; while ((c = in.read()) != -1) { out.write(c); } } finally { if (in != null) { in.close(); } if (out != null) { out.close(); } } } } PS: Please read: http://java.sun.com/docs/books/tutorial/essential/io/ hth. Jens -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Beginner question about creating new class Eclipse
For the superclass, click the Browse button. Click the question mark in the lower left for an explanation of the Superclass Selection dialog. Similarly for the interfaces. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ViewSwitcher with AsyncTask
On Mon, Jul 5, 2010 at 11:50 AM, elubin wrote: > I can successfully kick off the async task and using using ViewSwitcherI can > show a nice progress dialog. > Why are you using ViewSwitcher to show a progress dialog? This is unnecessary and complicating things for you. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: discoverability
On Mon, Jul 5, 2010 at 11:01 AM, greg wrote: > Even with a Toast tip, the user must still remember whether or not the > menu exists, which indeed is a trivial task for a single activity but > not so trivial when there are a hundred activities. > I have yet to encounter an app with a hundred activities. And if your app has a hundred activities you're doing something wrong and probably have a problem with usability not discoverability. And even if you have a hundred activities and the user can't remember which ones have a menu, it takes about 1 second to press the menu button to determine if there is one or not. Compare that with implementing a visual cue for a hundred activities and making them all fit the UI. Good luck with that. > If the presentation of icons that don't do anything is trivially handled > by one time learning experiences, perhaps the application launcher > should not bother to remove the icons of deleted applications. :*) > 1) You got it backwards - it's the NON-EXISTENCE of icons that would otherwise trigger the menu to show that is the one-time learning curve. IOW, without any visual cue, it takes ONE TIME to learn that the menu exists. With a visual cue I learn the menu exists and render the visual cue utterly useless thereafter. 2) Your example of not removing deleted icons is, again, backwards. By not deleting icons you would be telling the user that functionality that does not exists actually does, which is nonsensical and NOT the same as not showing an icon for functionality that does exists and is accessible via other means. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Speed of Android Device
You need to use the data from the GPS of the phone. Some GPS's have a built in speed calculator so all you need to do is capture this measurement and display it. Or if it only does positioning you need to do some math to calculate the speed depending on how far you've gone over time. Sorry I can't say anything specific, I haven't really looked into GPS use yet. On Jul 7, 2:00 pm, ranjan ar wrote: > Can anyone help me with calculating the speed of Android Device. how to > determine the speed with which device is moving. Thank you very much. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Speed of Android Device
Can anyone help me with calculating the speed of Android Device. how to determine the speed with which device is moving. Thank you very much. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Detecting where has been touched.
I would try this tutorial if you haven't seen it yet. http://www.droidnova.com/playing-with-graphics-in-android-part-i,147.html It shows you how to add multiple graphics, and how to store each ones position, move them around etc. Or just set an onClickListener for each graphic. When you touch that graphic it will go to that specific listener then get the x, y coordinates of that graphic. Hope that helps somewhat. On Jul 7, 8:58 am, optical wrote: > Hello, > > I have a single bitmap with several individual pictures in (each one > is an option) and I would like to detect when the user touches these > pictures. > I am using the event.getX and event.getY to detect where is pressed, I > know the top left X Y and bottom right location of each of the > pictures. What is the best way of detecting which one is pressed?? > (i.e. tieing up the event press and which picture has been pressed?? > > Thanks > OT -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: from FRF50 to FRF91
Update: Turns out I am rooted, blame the noobiness. Waiting for Cyan 6.0. Tried the latest Cyanogen MOD but the market didn't load and wifi-tether didn't work like it does in frf50... that is, it didn't work at all. The trouble started when I unlocked the bootloader and put in the package that included Amon RA and super-user. I failed to notice I wasn't exactly going to be running stock frf50. Hence the failure each time I tried to flash a new OS from frf50. Now if only I could get rid of the FRF91 OTA update reminder... On Jul 3, 5:01 pm, Ryan wrote: > Got the OTA as well but frf 91 will not install over my frf50. Can I > attribute this to having a custom recovery? I'm not rooted. Also, all > attempts to flash up from 50 (to 72, 82 etc) have failed. Tried > renaming files to upgrade.zip too, though ere to frf 50 flashing did > not require a file rename. Any ideas? Thanks a bunch! > > On Jul 3, 9:14 am, JP wrote:> I am runningFRF50. > For only a few more minutes, as I just got the OTA > > update notice. No need to go back to 2.1 it would seem. > > <... five minutes later ...> > > Up and running onFRF91now. > > > On Jul 2, 4:47 pm, Ken H wrote: > > > > Anyone know where (or if) I can manually update fromFRF50toFRF91? > > > I've got files for going fromFRF50to FRF83, and from FRF85B to > > >FRF91, but nothing in between. > > > > Ken -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Whether to use a Service or Thread for Http Connection?
It's not usually necessary to use a service for a quick network fetch. For example, when the user clicks a button that requires a network request that takes typically less than a few seconds and expects result displayed in same activity, just run the AsynTask in the activity. Services are for running tasks when the activity is no longer visible. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Accurate sleep()\timer in Android
On Wed, Jul 7, 2010 at 2:39 AM, Omer Gilad wrote: > That is true, but I need this kind of optimization. I have nothing to contribute, but am extremely curious why you think you NEED this level of optimal performance for a network operation, regardless of how "clear" the network path is. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Screen Block
Possible in firmware or just as a state a single app can have. If it were possible for a app to block the screen so that the home button wouldn't work, then think of the very bad consequences this would have for other applications and the user. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Screen Block
you mean to say..it is not possible at all? On Wed, Jul 7, 2010 at 1:28 PM, Frank Weiss wrote: > Yes indeed if it were possible with the SDK, any Android app could really > screw up things! > > On Jul 7, 2010 1:09 PM, "ranjan ar" wrote: > > Hello, > I would like to bring up a screen lock window. that constantly keeps > popping up and doesn't allow users to get rid of it until he enters the > right password. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Screen Block
Yes indeed if it were possible with the SDK, any Android app could really screw up things! On Jul 7, 2010 1:09 PM, "ranjan ar" wrote: Hello, I would like to bring up a screen lock window. that constantly keeps popping up and doesn't allow users to get rid of it until he enters the right password. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Posting events to View
AsyncTask makes it easy. On Jul 7, 2010 1:17 PM, "Viktor Linder" wrote: Hi! I have the following problem: My app has a thread that updates the game state. The app needs to make a change to the state of the View object, triggered by this thread. The documentation for View states that it should only be modified from the UI thread, and that a Handler should be used to place and handle events. Yet, there is a function post() in View where I can post a Runnable object that will execute in the UI thread without involvement of Handler. Can I not call this function from threads other than the UI thread?? I'm confused! Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Posting events to View
Hi! I have the following problem: My app has a thread that updates the game state. The app needs to make a change to the state of the View object, triggered by this thread. The documentation for View states that it should only be modified from the UI thread, and that a Handler should be used to place and handle events. Yet, there is a function post() in View where I can post a Runnable object that will execute in the UI thread without involvement of Handler. Can I not call this function from threads other than the UI thread?? I'm confused! Best regards, Viktor Linder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Development Question
Hey everyone, I just rooted my moto droid. Now I am wondering if it is possible to drop 1.5 or other versions of the OS on the phone and if so how? If anyone could explain how I do this or link some forums that explain this. Or is there maybe a dual boot option b/c I don't want to always us 1.5 only for testing purposes. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Screen Block
Hello, I would like to bring up a screen lock window. that constantly keeps popping up and doesn't allow users to get rid of it until he enters the right password. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] screen occasionally goes blank on Milestones
I have an application I am currently working on for a client which is suffering from a particularly hard to debug problem. Every so often, the device screen will go blank, not just while running my application, but entirely. If I press the home button, for instance, it's still blank. This happens fairly rarely ( I myself have only seen it once or twice in a couple of months, and unfortunately couldn't gather log information immediately when it happened. What log info I was able to gather seemed to show that the phone continued to run properly - I was still seeing events in the log file - the screen was just blank ). So far, this has only been observed while running on Motorola Milestones ( this may or may not be coincidence - it's hard to tell given the infrequency of occurance ). Has anyone else observed anything similar? Any suggestions as to possible causes/ways of debugging? Thanks, Brian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Sustainable Software Development
Does this involve green text and recycling my Views? On Jul 7, 8:13 pm, Umar wrote: > Is there a sustainable software development model that is being > adopted by the Android developer community? > > While the definition of the Java programming language includes the > phrase "buzzword-compliant", I am not intending to use the word > sustainable as a buzzword. The word "sustainable" perhaps has a > meaning within the Android developer community. Has anyone mined and > formalized this? > > Thanks for sharing any pointers in this regard. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Move Image View to new location
Hi metal mikey, I am using negative margins in my original layout XML (see the full XML below, inside the LinearLayout android:id="@+id/p1cardscontainer" section) and they are working fine (currently testing on 1.5) However, the images only vanish when I do the animation and they slide upwards. So I guess I need to do the negative inside the code AFTER the animation ? [XML] [/XML] -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] who can tell me the source code that comes with android app
Hi Xuhang, you can find the source code in the Android SDK source code. Download it from source.android.com. Regards, Rogerio 2010/7/5 xuhang > for example android music where to download , thank you > ps:my English is very pool ,i am a chinese > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, 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: Do threads cache instance variables?
Try using the java keyword "volatile" in you variable declaration. Al. On Jul 3, 9:49 am, burtoogle wrote: > Hi, > > I am starting to develop an Android App and have noticed the following > behaviour in my test code (not yet designed the real app): > > A thread that loops around doing Bluetooth IO accesses an instance > variable that is declared in the enclosing class. That instance > variable gets set to null by the GUI thread in the onBackPressed() > method which also closes the Bluetooth socket which causes an > exception in the IO thread (which is what I want). > > The odd thing is that if I set the instance variable to null before I > close the socket, the IO thread sees the null value, but if I close > the socket first and then set the variable to null, the IO thread > doesn't see the null value. > > The instance variable is being used in a loop in the IO thread and it > appears as if that variable is being cached while within the loop. So > any changes to that variable by another thread are not visible. Is > that possible? If so, is there a workaround to guarantee that the VM > will read the value of the instance variable? > > Cheers, > > Mark -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sustainable Software Development
Is there a sustainable software development model that is being adopted by the Android developer community? While the definition of the Java programming language includes the phrase "buzzword-compliant", I am not intending to use the word sustainable as a buzzword. The word "sustainable" perhaps has a meaning within the Android developer community. Has anyone mined and formalized this? Thanks for sharing any pointers in this regard. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Back Button doesn't go to previous activity
On Sun, Jul 4, 2010 at 2:51 PM, Jroid wrote: > I have two activities. The first is a list where the user selects one > of the items which takes them to a second activity showing the details > of the item they selected. When the user clicks the back button I > want the app to return to the first activity. > > Is there anything special i need to do to make this happen? That usually happens by default. > Right now when I click the back button from the second activity it > exits the app just like the home button would. Then your first activity is gone for some reason (e.g., you called finish()). > Here is how I am starting the Second Activity. > startActivity(new Intent(getApplication(), SecondActivity.class)); > finish(); You called finish(). That means you want the first activity to be destroyed. Replace these two lines with: startActivity(this, SecondActivity.class) and things should work better. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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] Start service
A BroadcastReceiver is not a Context and so does not have a startService() method. Call startService() on the Context supplied to the onReceive() method. On Sun, Jul 4, 2010 at 1:59 PM, Alex wrote: > I am trying to start a service from the BroadcastReceiver, but I keep > getting the startService line marked as an error (The constructor > Intent(alarmReceiver, Class) is undefined) > > public class alarmReceiver extends BroadcastReceiver{ > > NotificationManager notifMgr; > > private static final int NOTIFICATION_ID = 0; > > �...@override > public void onReceive(Context context, Intent intent) { > > startService(new Intent(this,aService.class)); > } > } > > Any help is greatly appreciated. > Thanks!! > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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: New to android finally leaving Windows !!!
To get started you can use the SDK and the emulators it provides (you don't need a device to dive in, though yes you will want one at some point for further testing). http://developer.android.com/intl/es/guide/index.html You can also buy a developer device: http://android.brightstarcorp.com/index.htm. Honestly though, the dev phone 2, while unlocked (and perfect for AT&T) is a bit pricey for the hardware you get. The N1 is a better option IMO: http://www.google.com/phone (there is an AT&T version, while they last, but not cheap). That or if your contract is up you can wait a bit and get a subsidized Samsung Captivate: http://www.wired.com/gadgetlab/2010/06/samsung-android-phone-heads-to-att/. Really none of the other AT&T phones are very promising (Backflip, etc, shrug). On Jul 7, 1:17 pm, Martin wrote: > I would love to start developing for Android- I am currently on the > AT&T network. How does one acquire a test device? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Water ripple effect
On Mon, Jul 5, 2010 at 7:51 AM, Mansoor wrote: > i am trying to create a ripple effect one similar to water live > wallpaper in nexus one.please give me direction to acheive it. Here's an answer that is as detailed and informative as your own post: 1 - Look at water ripple effects like the N1 wallpaper. 2 - Learn to program effects like that. 3 - Implement the effect. You're welcome. - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Back Button doesn't go to previous activity
Don't call finish after starting your 2nd activity. Al. On Jul 4, 7:51 pm, Jroid wrote: > I have two activities. The first is a list where the user selects one > of the items which takes them to a second activity showing the details > of the item they selected. When the user clicks the back button I > want the app to return to the first activity. > > Is there anything special i need to do to make this happen? > > Right now when I click the back button from the second activity it > exits the app just like the home button would. > > Here is how I am starting the Second Activity. > startActivity(new Intent(getApplication(), SecondActivity.class)); > finish(); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 lock screen
On Mon, Jul 5, 2010 at 2:15 PM, Sy wrote: > Is it possible to override the default android lock screen and replace > with your own? Only by creating your own firmware. There are no APIs for replacing the lock screen at this time. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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: paypal mobile payment allowed?
My understanding is that the problem is more a legal & logistical issue than a technical one (e.g complying with local tax requirements and laws governing resale of goods supplied from a country), so a software update alone won't help. Al. On Jul 7, 7:34 pm, Denis Souza wrote: > Could there be any chance that with the new Android Market, made to > support some features in Froyo, Google would also allow more countries > to sell apps? Does anyone have any idea of when this new Market would > be released? > > On Jul 7, 10:30 am, Al Sutton wrote: > > > > > It's using an unofficial API and could be cut off at any point. It > > also doesn't allow you to actually download the apps, only display the > > app listing information. > > > Al. > > > On Jul 7, 8:00 am, ko5tik wrote: > > > > On Jul 6, 10:19 am, Al Sutton wrote: > > > > > Just to address your point on collecting information from Googles > > > > Market; I've talked to someone at Google about this and it was an > > > > absolute no-go. The request wasn't for AndAppStore, but for another > > > > project that I was working on part of and some people at Google had > > > > shown some interest in. > > > > Well, what about cyrket? It collects information from market and > > > displays it in a better way than original ( user comments were > > > visible for ages ) > > > > regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: "content://sms/"
On Tue, Jul 6, 2010 at 7:58 PM, Jesper wrote: > Is there any official way of reading sms? You would have to ask the developer of each SMS application on each phone that question. For the Messaging application, there is no documented and supported content provider for that client. And, that's not the only client. > I have been reading on some > pages and seems it was removed without any information on why, and it > has not been replaced with something new. What would be the reason of > removing it? hard to believe it is security if they left a > undocumented provider that is still usable. > Any thoughts? Sometimes, it it because they are not ready to support the interface for the next decade-plus. Sometimes, it is because they want to give OEMs the freedom to replace AOSP apps and do not want to tie the OEMs hands by forcing them to implement certain APIs. Sometimes, it is a matter of engineering priorities. And, of course, as you note, sometimes it is tied to security. There are probably other reasons as well -- those are the four I know off off the top of my cold-fogged head. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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: BufferedReader(new InputStreamReader(url.openStream())) hangs app when no internet
Check for the status of the network before making the call, and also set a connection timeout in case it drops after/during: http://stuffthathappens.com/blog/2007/09/10/urlopenstream-might-leave-you-hanging/ You might want to look at the Apache HttpClient stuff Android comes with too, you have a much more robust library there that can handle all kinds of things, as opposed to raw URL class and streams. Here is an example of using the HttpClient stuff: http://code.google.com/p/and-bookworm/source/browse/trunk/src/com/totsp/bookworm/data/HttpHelper.java On Jul 7, 2:54 pm, Boozel wrote: > I'm trying to get an HTTP response using > BufferedReader in = new BufferedReader(new > InputStreamReader(url.openStream())); > but if no internet connection is present the app hangs here. > Can any one give me a way to prevent this? > 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] How to Submit patches?
On Wed, Jul 7, 2010 at 8:06 AM, vikram wrote: > Hi i want to send few patches for issues reported, > what is the procedure to send patches for any issues ? > For example i want to provide fix for issue: 9584 http://source.android.com/source/life-of-a-patch.html http://source.android.com/source/submit-patches.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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: DDMS, Eclipse: Can't access 'Data' - Directory on external device
On Wed, Jul 7, 2010 at 2:35 PM, Thomas Frick wrote: > Is there a possibility to change the privileges of this process > (DDMS)? Perhaps by rooting your phone. Also, "dev phones" (e.g., ADP1, ADP2) I think run the process with root privileges. Beyond that, I sincerely hope it is not possible to raise the privileges of this process, or else we're in serious trouble. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.8 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] BufferedReader(new InputStreamReader(url.openStream())) hangs app when no internet
I'm trying to get an HTTP response using BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); but if no internet connection is present the app hangs here. Can any one give me a way to prevent this? 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] Mobspot Facebook App
It looks like these guys at MobSpot are thinking along the same lines as me for ZappMarket, using facebook to discover and promote applications. http://www.mobilecrunch.com/2010/07/07/mobspot-turns-to-your-facebook-friends-for-app-recommendations/ MobSpot is only for iPhone apps (for now). If you guys want to get in on this for Android head over to http://apps.facebook.com/zappmarket. MobSpot has 35 apps, ZappMarket has 12. Do you still want to let all the iPhone guys beat us poor Android developers? -- Shane Isbell (Founder of ZappMarket) http://apps.facebook.com/zappmarket/ http://twitter.com/zappandroid -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Drawing an outlined RoundRect
Or, maybe you could try a GradientDrawable? Looks like that's what you are after. It has a setStroke method. http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html Best regards, Brian Cooley On Jul 3, 4:25 pm, TheFluffyOne wrote: > Hi, > > I have a method that, when passed some text, draws an outlined round > rectangle with that text inside, viz: > > http://ubergeek.org.uk/images/roundrect.png > > At the moment I'm making two draw calls in order to draw this outlined > round rectangle, and see slight bulging at the corners that I assume > is due to the use of the same radius for the corners for both the > inner and outer rectangle. Is there a better way? Main code is below. > > Thanks! > > Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); > paint.setColor(0x); > paint.setTextSize(fontsize); > paint.setTypeface(Typeface.SANS_SERIF); > > Rect textBounds = new Rect(); > paint.getTextBounds(nodeText, 0, nodeText.length(), textBounds); > FontMetricsInt fm = paint.getFontMetricsInt(); > int textWidth = textBounds.width(); > > float[] outerR = new float[] { radius, radius, radius, radius, > radius, radius, radius, radius }; > RectF inset = new RectF(linewidth, linewidth, linewidth, > linewidth); > float[] innerR = new float[] { radius, radius, radius, radius, > radius, radius, radius, radius }; > > ShapeDrawable back = new ShapeDrawable(new RoundRectShape(outerR, > null, null)); > back.getPaint().setColor(0xFFB0B070); > back.setBounds(x - border, y + fm.ascent - border, x + textWidth + > border, y + fm.descent + border); > back.draw(canvas); > > ShapeDrawable outline = new ShapeDrawable(new RoundRectShape(outerR, > inset, innerR)); > outline.getPaint().setColor(0xFFB0); > outline.setBounds(x - border, y + fm.ascent - border, x + textWidth + > border, y + fm.descent + border); > outline.draw(canvas); > > canvas.drawText(nodeText, x, y, paint); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] options menu problems with SurfaceView and ListView
In my application, I have extended SurfaceView and ListView. I create a LinearLayout as below mainForm = new LinearLayout(this); mainForm.setOrientation(LinearLayout.VERTICAL); mainForm.setLayoutParams(new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT)); I then add the SurfaceView and ListView to the mainForm and then setContentView(mainForm); I also override onPrepareOptionsMenu and call menu.clear() and then dynamically create menus each time the menu button is pressed by the user. The application loads fine and the SurfaceView works fine as I directly draw images to it in a sleep loop. The ListView displays items and is desined to refreshed with new items. The options menu also displays once as well. However, once the SurfaceView is running and the ListView is loaded, a second call to onPrepareOptionsMenu by pressing the menu key disrupts the SurfaceView drawing, causing it to get stuck on the last image it was drawing. But the list view does refresh the adapter to change content once. After that, the application is hung and the SurfaceView keeps playing the same images in a random order. I am using runOnUiThread to update the views in the mainForm (LinearLayout) and the Lunar Landing template for the SurfaceView as shown below In Activity public void ViewsUpdate() { System.out.println("Before ViewsUpdate method"); runOnUiThread(new updateDoer()); } public class updateDoer implements Runnable { public updateDoer(){ } public void run() { contentDone2(); viewForm.invalidate(); //viewForm is where the ListView and other views are added } } In SurfaceView private void drawSurfaceView(){ Canvas c = null; try { c = mSurfaceHolder.lockCanvas(null); synchronized (mSurfaceHolder) { if (mMode == STATE_RUNNING) doDraw(c); } } finally { // do this in a finally so that if an exception is thrown // during the above, we don't leave the Surface in an // inconsistent state if (c != null) { mSurfaceHolder.unlockCanvasAndPost(c); } } } I am at a loss as to why everything gets clobbered after the options menu is built and displayed the second time. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Figuring out the test cases for Android-based Signal Meter
http://nyti.ms/9ZG6Gw Taking a cue from the recent "flaw" in Apple iPhone's signal meter, I was wondering what would be the test cases for consideration during Android-based mobile device testing by a product team? Are there any Android-based testing frameworks that support the simulation of this feature? Thanks for any pointers. Ramu -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Smooth Image Rotation with Gesture Control?
This would be really easy to implement using Ansca Corona (http:// www.anscamobile.com). We take care of all the OpenGL rendering as well as the multi-screen resolution issues. Can't help you with copyrights though. --Eric On Jul 5, 8:49 pm, ocdtrekkie wrote: > Ah crud, now I feel fairly stupid. ;) People responded and I didn't > see it and posted a seperate request. I'm gonna upload the design > document for it, I've got the UI "designed", I just can't figure out > how to program it so it will behave right. I've read a lot of > examples/tutorials/help things regarding image rotation, but I haven't > seen anything that's the same sort of thing, even though I would > imagine it's a fairly simple idea. > > http://imgs.ocdtrekkie.com/MobileDHDConcept2.jpg > > This is only a portion of the UI, but it's the one I need help with. > Basically I have a fancy circular image (it's a ring), and I want to > situate it about there on the screen, and then let people rotate it > with their finger. (Only a certain portion of the ring will be > visible on screen at a time, as you can see). Looking at the > different Layout formats though, I'm wondering if I have to go to > OpenGL for something like this, or if it can be done without 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] Power Consumption by Android Phone
I have a dated T-Mobile Dash that runs Windows Mobile 6.x. For example, if I run the camera application and use the browser for a few minutes, the battery power consumption is significantly higher (understandably) than when these applications are turned off. Idle (non-active) mobile apps, by default, drain the battery unless the user manually invokes the Task Manager and kills these non-active apps after initial usage. I haven't examined Android phones closely but the thought that occurred to me was the following. Why don't we include an option in the device profile where a mobile application would either terminate or be in a state where there is fractional battery power consumption so that a large majority of the existing battery power could be leveraged by the "active" mobile apps that ultimately serve to enhance the mobile user experience. Thanks, Ramu -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Flipping Button Text Vertically
Hey all, What is the best way to flip a label on a button vertically or rotate it. If there's no way how can we flip the whole View, Button, TextView...etc? Thanks A lot. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Detecting where has been touched.
Hello, I have a single bitmap with several individual pictures in (each one is an option) and I would like to detect when the user touches these pictures. I am using the event.getX and event.getY to detect where is pressed, I know the top left X Y and bottom right location of each of the pictures. What is the best way of detecting which one is pressed?? (i.e. tieing up the event press and which picture has been pressed?? Thanks OT -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Volunteer needed to develop an Alzheimer's app
I was hoping to find a simple app to help my father who has Alzheimer's. I envision an app that would take over the display and allow 4 options. 1) Call a predetermined number "Call Billie" . Billie is his wife 2) "Call 911" 3) "My Info" Open a page with vital information such as Name, medical needs, address, list of additional contacts. 4) "Answer Phone" an incoming call So when Dad picks up his phone, he sees the 4 options in a large font. All other apps are lock out through some sort of "unlock" feature. With this app and a GPS tracker running in the background, the family could locate him if necessary and he hopefully can call Mom. It really needs to be simple. I am a firmware developer and could struggle through the SDK but I was hoping someone out there who has a family member with Alzheimer's could whip this out in no time. Thanks in advance for your consideration. Stan -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Modifying camera settings
Hi, I want to know if it is possible to read and modify some of the camera settings 1. Read exposure value / shutter speed 2. Modify the exposure value 3. Capture images in RAW format (raw image not processed by camera 's image pipeline) I have read that Android 2.2 gives user acess to image exposure data, but not sure of the specifics Pai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Send data from my android application to tomcat server
Hello All, I'm trying to send a simple string (an access token I receive in the same program from another server) from my android emulator to my tomcat server running locally. Any ideas on where I should be looking? 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] Beginner question about creating new class Eclipse
I'm creating a new class, using eclipse "New Java Class" dialog box. I can write the superclass I want (I can't find using "browse" button), but I can't write or select an interface to implement. I click "add" but ther is nothing to select. What I'm doing wrong? Sorry for my bad english, I'm from Spain. And sorry about that stupid question, but I'm new to eclipse and I don't know how to do it. 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