**** BEGIN LOGGING AT Thu May 10 03:00:03 2012 May 10 03:15:09 ctate: You're a life saver! Thanks soo much, IllegalStateException is working perfectly! May 10 04:26:28 is it just me or does everyone's emulators throw IllegalStateExceptions randomly from NetworkStats May 10 04:26:36 F/NetworkStats( 81): java.lang.IllegalStateException: problem parsing idx 1 May 10 04:34:00 a service does not run on the main thread does it? this tut starts an asynctask in a service May 10 04:34:14 service callbacks all occur on main thread May 10 04:52:48 this is driving me nuts. anyone have spurious '1' characters injected into the java editor on eclipse 3.7.2 / Lion ? seems to happen when i switch spaces most likely. i can't even fathom. i don't see it in any other apps, like terminal, so i don't think my keyboard is malfunctioning May 10 04:52:50 ctate is there a way to check if a device supports backup from java? May 10 05:08:23 * g00s reinstalls eclipse and nukes workspace out of desperation May 10 05:08:41 this seems to be a path well worn May 10 05:08:56 g00s: O_o May 10 05:08:57 why? May 10 05:09:00 i never had to do that May 10 05:09:42 ra4king: over the past week or so, maybe 4-5 times per day, a spurious '1' shows up in my code where the cursor is when i come back to that space (in Lion) from another space. May 10 05:10:06 doesn't sound like Eclipse's fault May 10 05:10:14 i blame other applications/your keyboard/Mac May 10 05:10:27 yeah, i can't fathom wth May 10 05:10:38 but i dont see '1's in any other app May 10 05:10:43 terminal, colloquy, etc May 10 05:11:37 tbh, I'm grinning a bit at these "spurious 1s" May 10 05:12:04 :x May 10 05:12:44 just a 1? my visual studio generates whole invalid functions when I don't watch it :) May 10 05:12:57 hehe, yeah just '1' May 10 05:13:01 always 1 May 10 05:13:06 the number is 1, not 2 May 10 05:13:10 not 0 May 10 05:13:13 1 it is May 10 05:13:33 g00s: try rebinding your '1' key May 10 05:13:38 see if the problem persists. May 10 05:13:42 if it does, then it's the keyboard. May 10 05:13:47 i need my 1 key :| May 10 05:14:03 it's not like you have to rebind it permanently. May 10 05:14:12 also you could rebind caps to 1, if that was the case May 10 05:26:05 hi all! how add progress bar on button programmatically? May 10 05:26:47 just put the progressbar in your layout but set android:visible to "gone" May 10 05:26:53 then when you press the button, toggle it to visible May 10 05:53:55 I think I was able to actually remove something from my TODO list without adding something else on it! May 10 05:54:05 which, sadly, is rare -_- May 10 06:02:29 * t0mless bedtime May 10 06:14:38 hello everyone. Can abnybody help with debugging native code? ) May 10 06:24:44 hello everyone. Can abnybody help with debugging native code? May 10 06:28:26 xomyc repeating isnt cool May 10 06:28:30 what specifically are you trying to do May 10 06:33:45 sorry, i can't debug my native code. i follow http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/ this guide and after all, then i try to start debugging by gdb i catch gdb error: "warning: shared library handler failed to enable breakpoint" May 10 06:35:08 ron_frown: oi oi May 10 06:35:14 hmm, does the OHA still exist ? May 10 06:35:24 whats mean OHA? May 10 06:35:37 im tottaly newbie in this May 10 06:38:05 i haven't heard anyone say OHA in a long time. it used to be sort of a love story mentioned in a lot of the early android books May 10 06:39:15 hm, so adobe put LR 4 in the app store - buy why ? apple takes 30% of it. May 10 06:39:49 i think they should lower the price from their website by 30% - i'll buy it from them :D May 10 06:40:36 http://www.adobe.com/products/creativesuite/cssubscription.html May 10 06:41:02 apple is a bunch of bastards May 10 06:41:21 google takes the same exact amount :) May 10 06:42:10 true, but google allows 3rd party apps, and apple is trying to go the same route with there desktop apps May 10 06:42:20 more or less forcing devs into the app store May 10 06:42:30 also, if i decide to switch to windows and i purchased lr4 through the app store - i wonder if i can transfer that May 10 06:42:31 and let me tell you, the app store for desktop shit fucking sucks... May 10 06:42:42 i thinkn now, if i but it, i can dl it for mac or windows May 10 06:42:42 I cant tell you how many times something simple as trillian fucked up in installing May 10 06:42:51 tells me there are updates, (version I definitely dont have) May 10 06:42:56 I go to app store to do the update May 10 06:43:00 no new version May 10 06:43:16 yeah, i think this app store stuff is a mixed blessing. kinda good for indie devs, people may trust stuff in the app store more. helps them get noticed. but for adobe? cmon May 10 06:43:32 yeah, and easy updates May 10 06:43:55 i think by extension, if you get something through the app store, it may work on up to 5 machines. May 10 06:44:03 but i'm not sureabout that May 10 06:44:05 I think its worse May 10 06:44:12 I think product should and will stand for itself May 10 06:44:18 linux package manager is a good way to go. May 10 06:44:26 in the mac world 90% of people ARE indie devs =) May 10 06:44:26 ron_frown: did you see mozilla belly ache about the winsows RT app store ? May 10 06:44:38 no, but I agree May 10 06:44:38 again, so its kinda lock - in May 10 06:44:43 Through it still needs to be easier to update programs/uninstall programs you made yourself May 10 06:44:50 microsoft is a bunch of fucking idiots trying to always catch up to everyone now May 10 06:45:05 I mean I think .net platform is superior to a lot May 10 06:45:24 but give the fuck up on ie9 or 10 or whatever it is now... give up on wp7 May 10 06:45:24 i keep thinking of this joke: May 10 06:45:26 anything cool about .net is mono May 10 06:45:28 I'm all for competition May 10 06:45:31 Heaven Is Where: May 10 06:45:32 The French are the chefs May 10 06:45:33 The Italians are the lovers May 10 06:45:33 and anything mono wasn't microsoft's real doing. May 10 06:45:35 The British are the police May 10 06:45:36 The Germans are the mechanics May 10 06:45:38 And the Swiss make everything run on time May 10 06:45:39 Hell is Where: May 10 06:45:41 The British are the chefs May 10 06:45:42 The Swiss are the lovers May 10 06:45:44 The French are the mechanics May 10 06:45:45 The Italians make everything run on time May 10 06:45:45 And the Germans are the police May 10 06:45:51 it seems like everybody is trying to do everything these days May 10 06:46:06 and they all suck at 90% of the stuff outside their core competency :) May 10 06:46:34 readme if you want to get technical, c# is just java with all the absolute bs shit ripped out, and elegant language feaures added May 10 06:46:44 but the platform was absolutely a ms innovation May 10 06:47:10 ron_frown: i know who invented C# May 10 06:47:10 mono is impressive... but even in developing on both sides there, I still see mono shortcomings every day May 10 06:47:18 I'm just saying, what is cool about C# now to me May 10 06:47:19 is mono May 10 06:47:28 microsoft didn't port android to C# :) May 10 06:47:36 Miguel DeIcaza did. May 10 06:47:50 well I look at shit like wpf... honestly... wpf is badass... its a presentation framework done right... May 10 06:47:59 I mean ms has had a problem getting it to perform May 10 06:48:14 but I'd be much much much much happier to be using wpf to design android apps May 10 06:48:36 surely you know about http://xamarin.net May 10 06:48:46 yes May 10 06:48:52 I volunteered m efforts =) May 10 06:49:01 it's a private company May 10 06:49:04 afaik May 10 06:49:11 readme - really all they did with that was write a pretty fucking capable java->c# converter May 10 06:49:13 sharpen May 10 06:49:22 and ran it on the java userspace stuff in androdi May 10 06:49:22 "all they did" May 10 06:49:33 I think that is a bad way to word it May 10 06:49:34 readme - the XobotOS is opensource May 10 06:49:44 but even xamarin is saying they dont intend to do anything else wiht it May 10 06:49:46 just a poc May 10 06:50:10 I am just saying its somewhat decieving May 10 06:50:30 technically correct, but converting a java class to a .net class is a lot easier than actually converting stuff over May 10 06:50:46 not deceiving at all. it's a brilliant solution because that with a translator you can actually keep up with changes to the platform. May 10 06:50:58 agreed May 10 06:51:09 plus real easy to fastforward conversions over May 10 06:51:57 eg, sharpen is out there and afaik free... it'd be real easy to convert your apps over to be .net May 10 06:52:17 if in some parallel universe oracle vs google ended up in rash decisions on googles part May 10 06:53:06 http://news.cnet.com/8301-1001_3-57431236-92/microsoft-bans-firefox-on-arm-based-windows-mozilla-says/ May 10 06:54:55 guys how to do i load image from raw folder inside of my app? May 10 06:56:10 Trudko: Why aren't you putting the image in res/drawables? May 10 06:56:16 not sure May 10 06:56:23 (By that I mean the different drawable folders) May 10 06:56:38 Those folder specifically exist for putting images. May 10 06:57:03 better May 10 06:58:21 and how do i load image from there? May 10 06:58:42 use getResources() May 10 07:00:18 pfn i am implelemnting my own base adapter becauyse I am doing gallery view so I dont have acces to getResources May 10 07:00:28 how can I access to context from there? May 10 07:01:25 pass your context to your adapter May 10 07:01:40 programming 101 May 10 07:06:29 pfn ofc man I should calm down and get rest thx May 10 07:08:19 ;_; May 10 07:08:31 ... May 10 07:08:34 I didn't want to see that May 10 07:10:53 Anyone here used PhoneGap + Facebook Plugin? May 10 07:17:23 In the context of TextView, what does IME stand for? I see stuff like android:imeOptions imeActionLabel, imeActionId May 10 07:18:20 imput method editor May 10 07:18:42 i think it is for alternative input methods (chinese, japanese, korean, etc) May 10 07:19:04 thanks May 10 07:33:03 Need to combine two audio-recordings into one file.. Is there a library or whatever to do this? I'm using MediaRecorder.. I think I read somewhere that you can use AudioRecord and capture raw data and concatonate different recordings after each other with no problem? May 10 07:33:59 Getting "classnotfoundexception" not sure about the cause, double checked packages names and Manifest file seems to be in check. May 10 07:34:30 what else could be the cause? May 10 07:42:27 hi, i am starting to develop apps for internal company use. what is the best/easiest way to distribute the apps to the device (50 devices atm)? May 10 07:43:37 nvm solved May 10 07:43:41 m1hael: join the iOS enterprise developer program :) May 10 07:44:18 m1hael: just put them on an internal webserver and make sure your users have third-party sources enabled... whatever g00s says, this ain't iOS and you don't need anyone's permission to distribute apps May 10 07:44:35 g00s: iOS? hmm. and I thought this is the android channel May 10 07:45:53 Leeds: i am searching for something more automated. like an update tool or something like that. i know that you can simple download the apk through the web browser and install it. but i also have to inform the user that there is something new May 10 07:46:26 feel free to write a simple app to check versions on the server against versions on the client - not a complicated thing to do at all May 10 07:47:00 i would be surprised there isn't a canned solution for this already May 10 07:47:10 i could inform the user/device about new version via C2DM and pass the url to the new app. but what then? how to install? May 10 07:47:57 nah, seriously, an automated checker would be really simple May 10 07:48:19 Leeds: the checker would only be half the way i need to go May 10 07:48:42 just put a static JSON file on the server with appname/packagename/version arrays, have it check against local installed packages, and download and install the updates where necessary May 10 07:48:50 set it to run in the background once a day, say... done May 10 07:48:55 I'm getting an AndroidRuntime Stackoverflow exception. All of this is in the android namespace, so I have no idea which part of my code triggers it. Is there any way to get this full exception? May 10 07:49:13 you could even have flags for mandatory updates and mandatory installs, if it's a suite of apps May 10 07:49:21 Leeds: you don't need permission from apple to distribute apps to your enterprise May 10 07:49:27 its just that, they have it all figured out May 10 07:49:30 g00s: whatever, don't give a shit May 10 07:50:26 but how to do the actual instal? May 10 07:50:35 s/instal/install/ May 10 07:51:08 you download the new apk and open it... May 10 07:51:27 you can't force an install without the user manually accepting it, unless you're a system app and/or rooted May 10 07:51:46 the user should just have a dialog "Install new app xyz" with buttons ok and later. May 10 07:52:18 yes, and when they hit okay they'll be asked to confirm overwriting an existing app, then have to accept the permissions May 10 07:52:41 is there an intent i could use where i just pass the url? May 10 07:52:47 for installing? May 10 07:53:23 http://stackoverflow.com/questions/4967669/android-install-apk-programmatically May 10 07:53:23 like "ACTION_INSTALL_PACKAGE" or something liek that? May 10 07:53:35 the first result when you google "intent install apk" May 10 07:54:01 m1hael: https://www.push-link.com/ May 10 07:54:04 Leeds: the intent stuff just came to my mind. didn't search yet. thanx May 10 07:54:23 g00s: found that too, but i have many apps to manage May 10 07:54:34 can I add a .jar to the classpath of a project built through ant easily? May 10 07:55:32 JakeWharton: uh, do you mean you have a jar, and you want to add the contents of another jar … so there is one jar that has both ? May 10 07:56:05 no May 10 07:56:06 i have a project May 10 07:56:16 and i want to add a .jar to its compilation classpath May 10 07:56:18 h May 10 07:56:19 yay, two useless layouts vanquished May 10 07:56:26 and no, libs/ is not an option May 10 07:56:58 because? May 10 07:57:10 because I'm converting to Maven, and I can't do it all at once May 10 07:57:26 JakeWharton: u can add to ant's project config other class pathes May 10 07:57:39 javac target has a classpath ... May 10 07:57:45 its in build.xml or property files May 10 07:57:59 g00s: but then I have to do it all myself May 10 07:59:28 this is such a piece of shit build system May 10 07:59:30 or lack thereof May 10 07:59:53 JakeWharton: so, you are using the regular ant build system, and you want to add a jar to the compilation classpath, but don't want to put it in libs/ May 10 08:00:00 correct May 10 08:03:29 how can I build a reusable layout that I can include in other layouts but change some parameters to different values? May 10 08:04:49 JakeWharton: you might be able to try extensible.libs.classpath May 10 08:05:44 try with ant -Dextensible.libs.classpath=… May 10 08:06:39 I think it worked May 10 08:06:43 i dropped it in build.xml May 10 08:08:39 I don't get ant... May 10 08:08:47 it's like bash, but inflexible May 10 08:08:56 and shoved into XML May 10 08:09:00 xml as dsl = fail May 10 08:09:11 well, this kind of dsl :) May 10 08:14:04 hi guys May 10 08:14:24 i am wondering if there is a way to access the sqllite console of the android simulator May 10 08:14:28 thanks g00s. that'll hold for now :) May 10 08:14:58 ocx: sure. adb -e shell …. sqlite3 :) May 10 08:15:14 might have to use the absolute path for sqlite3 May 10 08:16:04 adb resides in which directory on windows? May 10 08:16:19 /platform-tools/. May 10 08:17:29 ctrl-f May 10 08:28:11 "Samsung has just announced that they have acquired the cloud music locker/streaming service mSpot." May 10 08:28:26 because we need another music locker :| May 10 08:29:44 don't like choice? buy an iphone then May 10 08:29:54 i am getting this when trying oto start adb: * daemon started successfully * List of devices attached May 10 08:30:00 no devices attached May 10 08:30:05 i am able to run the emulator from eclipse May 10 08:30:10 byt not working from command line May 10 08:30:51 ocx: start the emu first :) May 10 08:33:25 interesting. http://www.fiercewireless.com/ctialive/story/its-not-game-over-windows-phone-least-not-yet/2012-05-09 May 10 08:33:41 so basically, ms has a very small window of opportunity, and apollo better kick ass May 10 08:35:34 if it's anything like windows 8 on the desktop it's game over already May 10 08:35:55 htc and samsung seem optimistic … May 10 08:36:10 To send coords to the server the docs say this "The cordinates are a map with the latitude and the longitude. Example: {:lat 50.727912 :lon 7.096331}" - heres is my best attempt http://pastebin.com/TLfz6g7m May 10 08:36:11 we'll see pretty soon May 10 08:36:16 what am I doing wrong? May 10 08:37:44 jiduvah: well, you'll need stuff to talk to the server ;) May 10 08:38:27 g00s: thats all taken care of. I can't get the formatting right for this part May 10 08:38:41 Oh, imagine my pleasant surprise when the GN apparently provides adb access without mucking about with udev rules. (At least in Lubuntu 12.04) May 10 08:44:51 you don't need to play with udev if you run as root :P May 10 08:48:10 tank-man: I know, but if I don't want to run as root this is a perfectly valid alternative. :p May 10 08:49:44 g00s: i started the emulator and it started correctly, during bootup the devices was listed in adb devices as offline, after it booted it was removed from the adb devices May 10 08:50:03 try adb kill-server May 10 08:50:11 start adb again (with the emu still up) May 10 08:50:26 adb not running May 10 08:50:38 if an activity starts an asynctask in onCreate(), it should be enought to do task.cancel() in onPause() { if(isFinishing()) { ... } } May 10 08:50:48 ok restart with adb devices May 10 08:51:08 to make sure the activity doesn't go away while the task is still running right? May 10 08:51:14 it works fine May 10 08:51:15 thanks May 10 08:51:16 task.cancel(true) actually May 10 08:51:42 tapas: for long running tasks you might also want to check isCancelled somwhere appropriate May 10 08:51:48 now if i make some changes to that emulator the changes will be preserved inside it right ? May 10 08:51:51 like sql etc May 10 08:51:56 yeah May 10 08:52:34 tapas: because cancel doesn't actually cancel the task it just sets a flag so that isCancelled returns true May 10 08:52:53 oh, cancel() doens't block? May 10 08:53:02 hmm May 10 08:53:24 appel1: and yes, i do periodically check for isCancelled() in my asyncTask's doInBackground May 10 08:53:27 tapas: that seems like a busted design - don't try to keep the activity from finishing May 10 08:53:38 hmm May 10 08:54:00 your task can see if its original context is still there, and if not stop May 10 08:54:16 can you say race condition? :D May 10 08:54:26 the original context might go away any time May 10 08:54:51 tapas: if you cancel onPostExecute wont be invoked, so just don't do anything in onCancelled that needs the activity if it has been apused May 10 08:54:52 if the asynctask a] checks for existence an then b] uses the reference in between a and b the context might have gone away May 10 08:54:55 paused May 10 08:54:56 well, i didn't mean stop - i meant discard the result May 10 08:55:09 btw, asynctask sucks balls anyhow May 10 08:55:24 oh ok.. so the doInBackground should never actually use the context reference it was started from.. May 10 08:55:34 only onPostExecute should do that.. May 10 08:55:44 that makes everything a little more difficult :D May 10 08:55:46 tapas: hold on, i have a good reference impl for you May 10 08:56:05 do this :) May 10 08:56:06 http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something/3359003#3359003 May 10 08:56:43 hackbod would know, of course May 10 08:56:59 my usecase is getting a response from a server that contains json objects, i use a json stream parser (jackson) to add the received items to a list (via runOnUiThread) and notifyDFataCVhanged() May 10 08:57:24 oooh.. let's see May 10 08:57:28 yuck May 10 08:57:43 do networking in a service , like intentService May 10 08:57:52 i can change the type of the progress argument on onProgressUpdate to my data type :D May 10 08:57:52 tapas: why not use publishProgress? May 10 08:58:04 onProgressUpdate is guaranteed to run in the UI thread right? :D May 10 08:58:04 g00s: that's overkill if the result isn't needed if the activity goes away May 10 08:58:07 checking the docs.. May 10 08:58:35 i wasn't aware of publishProgress... May 10 08:58:43 appel1: ya .. but if you start the activity again, and the service is still validly getting data, why not just continue ? you would start another request … cost the user bandwith costs, etc May 10 08:58:45 bad design May 10 08:59:19 the received data is a highscore list that is atomic for the time of the request.. May 10 08:59:36 i.e. if the user restarts the activity a new request is sent to the server to get the current highscore list.. May 10 08:59:44 g00s: depends on what kind of data it is May 10 08:59:51 i'll use publishProgress May 10 08:59:58 tha data is just two ints and a string :D May 10 09:00:03 :) May 10 09:00:16 thanks for the insights guys :D May 10 09:02:14 hello May 10 09:02:31 so if I have an imageview and textview in a layout and I include that layout in another one, can I somehow set the image and text to something specific to the layout that included them? May 10 09:02:59 Hi all May 10 09:03:07 if i want to change the package name then what will be sourcut way that will automatically change the packag ename in whole application? May 10 09:03:08 (02:28:03 PM) Cannot send to channel May 10 09:03:39 Zharf: not really May 10 09:03:52 a shame.. May 10 09:04:00 actually asynctask is rather nice for quite a few usecases :D May 10 09:04:12 Hello can anybody know about ..if i want to change the package name then what will be sourcut way that will automatically change the packag ename in whole application? May 10 09:04:20 if you mean, can you parameterize children of included layouts so that they can be slightly different each time they are included … no May 10 09:04:40 jagruti_: Eclipse : Refactor -> Rename May 10 09:04:50 jagruti_: yeah , but backup your code first May 10 09:05:01 jagruti_: Android Tools-> Rename Application Package May 10 09:05:08 g00s: version control is your friend May 10 09:05:10 i swear, the adt is part of that refactoring, and it can really really fuck things up May 10 09:05:15 m1hael: yeah May 10 09:05:57 it will change the package name in whole application means wherever the package is imported? May 10 09:06:18 it will go through the manigest, package structure, everything May 10 09:06:22 *manifest May 10 09:07:04 ok thanks m1hael,g00s,raghavsood May 10 09:07:15 after your refactor, grep for your old package name just to be sure, like a content provider authority or something May 10 09:07:29 there is an option to change strings to, if i recall May 10 09:07:43 If you have a custom view which you put in your XML layouts, it might not change. May 10 09:07:48 Happened to me once. May 10 09:07:56 yeah, you have to check an option for that May 10 09:08:10 but i remember it happening to me also :) May 10 09:08:47 g00s, I can do it by creating my own component sure but it would've been a nice feature for better reusable components May 10 09:09:10 i agree May 10 09:11:25 mikedg: you're trolling early :) May 10 09:14:27 raghavsood: but where is the option of Android tools May 10 09:14:54 Right click on the project in Eclipse, its in the last five or six options. May 10 09:15:00 sorry sorry i got it May 10 09:15:28 yey, gimp 2.8 for Lion :) May 10 09:15:46 i hope this thing doesn't require X still May 10 09:19:46 raghavsood: but doing that just package name will change ,but the other problem is there in some javafile of other package error came at "R" like written as R.string.card_title_on_hold and when we take cursor at there then it will tell as import the R(new package name).. May 10 09:20:25 Change the package name in the manifest, and do a clean build May 10 09:20:51 hi, anyone could help me to disable vibration in a status bar notification? I did notification.vibrate = new long[]{0,0,0,0} and tried with notification.vibrate = null but it doesn't works May 10 09:21:19 hi, anyone could help me to disable vibration in a status bar notification? I did notification.vibrate = new long[]{0,0,0,0} and tried with notification.vibrate = null but it doesn't works May 10 09:21:46 sorry for the double post May 10 09:24:18 hmm, interesting problem (maybe interesting): i use a viewflipper to flip views (doh :D). the views i flip are grouplistviews.. May 10 09:24:34 now, when i do the fling it gets detected ok and all is fine and dandy.. May 10 09:24:59 but sometimes there's a touch even delivered to the view that gets flipped in (i use a translate animation for that) May 10 09:25:23 ah i think i get it now. May 10 09:25:51 raghavsood:when i have rename the package name from android tools at that time also the package name was changes in manifest and i have also the project clean but same problem stay May 10 09:25:56 actually no.. May 10 09:26:11 the fling gets detected. i handle it and return true to indicate i consumed the event May 10 09:26:30 right before returning true i initiate the animation to flip the view.. May 10 09:26:44 jagruti_: the package name for the file in which the error is changed? May 10 09:26:58 by default the filesystem is read-only right? May 10 09:27:03 need to make it rw with C:\Users\eghapat\android-sdks\platform-tools\adb May 10 09:27:05 ? May 10 09:27:17 adb shell sysrw May 10 09:29:22 raghavsood: i have to import the R with new package name then the error will solve..but manually in so mnay file i have to change ..so i need to automatically solve that problem also.. so is there any way? May 10 09:30:03 At the top of a class with the error, what does the package declaration say? May 10 09:31:26 nothing said at top of the class ..but just error is at between the class May 10 09:32:06 There should be a line right at the top of the class going "package com.x.y;" May 10 09:32:10 What does it say? May 10 09:34:33 i have my package name at top of the class like package org.sipdroid.sipua.phone; May 10 09:35:56 and the main package name is package org.sipdroid.sipua and changed name is package org.sipdroid.sipua123 then the error come in javafile of package org.sipdroid.sipua.phone; May 10 09:36:31 what keywords would help me google up some info on displaying some text/info in the statusbar that is *NOT* a notification? (that's all i ever come across) but i want something permanently displayed instead May 10 09:37:51 morfic: the only way apps get to display in the status bar is a notification... possibly a persistent one? May 10 09:38:36 let me ask google for persistent notifications, maybe i do want that May 10 09:38:44 I'm using AudioRecord to record audio, several times (so I have several arrays of audio data). I'd like to concatonate these audio clips into ONE audio clip.. how? Tried by creating a new array containing all the audio data and play it using AudioTrack, but it didn't work properly.. May 10 09:39:48 morfic: a persistent notification is one which goes in the 'ongoing' area of the notification list, and doesn't go away when the user clears their notifications May 10 09:39:58 jagruti_: Try changing org.sipdroid.sipua.phone to org.sipdroid.sipua123.phone. May 10 09:40:03 That should solve the error May 10 09:40:17 Just move all the files into the new packager. May 10 09:40:34 Right click on the src folder to create the new package. May 10 09:40:42 And move the file there. May 10 09:40:50 Leeds: yeah, "persistent" is what i needed, thanks, results appear to be more useful now May 10 09:40:50 Only the file from org.sipdroid.sipua.phone though. May 10 09:40:58 morfic: no worries May 10 09:42:21 raghavsood: once i have import the R with new package name then now whenever i change the package name then not error come May 10 09:42:50 it will automatically take the R with new package name May 10 09:43:11 Earlier org.sipdroid.sipua.phone was a sub package of org.sipdroid.sipua. May 10 09:43:45 Now that you've changed org.sipdroid.sipua to org.sipdroid.sipua123, you must change org.sipdroid.sipua.phone to org.sipdroid.sipua123.phone as well, or import the R class in every file. May 10 09:49:32 raghavsood: Basically my problem is that when the same application install on device second time then the old application will remove from mobile..but i need to stay both the application in mobile..so thats y i am doing the change application package name.But is it required to change all package name as explain above package org.sipdroid.sipua.phone;,package org.sipdroid.sipua.ui...all change with new package name like package org.sipdroid.sipua123.phon May 10 09:50:02 Yes, or you must import R in each of those files. May 10 10:04:01 question about publishProgress()/onProgressUpdate: from the api doc: "Each call to this method will trigger the execution of onProgressUpdate(Progress...) on the UI thread" May 10 10:04:32 does this guarantee execution of the onProgresssUpdate() in the same order (wrt tje argument) that publishProgress() was called? May 10 10:05:41 tapas: no May 10 10:06:48 leslie: so it might happen that e.g. a progress bar driven by that might show non-monotonicity in its updates? May 10 10:06:56 i.e. it can take steps "back" May 10 10:07:22 I wouldn't imagine so, but it's still a possibility according to the documentation May 10 10:07:33 "The timing of the execution is undefined." May 10 10:08:02 hmm, i guess i'll have to look into the code.. May 10 10:08:20 Hello, I have a problem. I have created a custom camera, but when I take the picture i want a new activity to fire using an intent. But when i put the trigger of that in the onClickListerner for the button. It skips creating the picture and just goes straight for the intent. May 10 10:08:25 actually no.. i figured out how to handle it just now :D May 10 10:08:34 awesome :) May 10 10:08:59 They should be in the right order May 10 10:09:17 SimonVT: "should" != "must" :( May 10 10:09:23 They are in the right order May 10 10:09:31 its just a queue May 10 10:09:42 tapas: you can look at the code, its like 30 lines of beef :) May 10 10:09:56 It's simply posted to the back of the message queue May 10 10:10:10 as this an important fact about asynctask i might just issue a ticket about a documentation update.. May 10 10:10:18 it's awesome if i can rely on this.. May 10 10:10:26 That's why timing is undefined.. there might be other messages in front of it May 10 10:10:50 that's ok, as long as order is preserved i don't care about the precise timing May 10 10:11:40 also it means timing isn't totally undefined :D there's some constraints (namely order) that are fulfiled May 10 10:11:59 but meh. now i have to check the source in every android release to make sure it really holds :D May 10 10:12:29 tapas: i think you will be safe there ;) May 10 10:12:32 Just rely on it May 10 10:13:17 It's a handler.. it doesn't randomize execution of messages May 10 10:14:04 it would kinda suck if progress update went 100 % … 1% ;) May 10 10:14:33 SimonVT: ah, so the documentation actually implies this behaviour non-ambiguously? May 10 10:15:03 hmm, the page doesn't contain the word "handler" May 10 10:15:17 I dunno how well it's explained in the Handler documentation, but May 10 10:15:23 You post messages, they get executed in order May 10 10:15:34 You can also choose to post at the front of the queue, or at a specific time May 10 10:15:49 AsyncTask simply posts to the back of the queue May 10 10:17:14 ok.. i just write a ticket.. maybe the android guys find it worthwhile to update the docs.. May 10 10:30:50 Hello raghavsood May 10 10:31:21 jagruti_: Um, hi. May 10 10:32:46 raghavsood:i have no any error in any javafile but when i run the application then when i open the codecs file the application will crash May 10 10:33:20 raghavsood: in error log written as permission denied May 10 10:33:27 Which permission? May 10 10:33:49 Tried concatonating two PCM-sound-arrays into one and play it using AudioTrack, but most of the audio then played is static noise May 10 10:33:53 any thoughts? May 10 10:34:11 jagruti_: Could you post the LogCat to pastebin or something? May 10 10:34:31 raghvsood:05-10 10:27:02.822: E/AndroidRuntime(2070): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cmp=org.sipdroid.sipua/org.sipdroid.codecs.Codecs$CodecSettings } from ProcessRecord{406e8498 2070:org.sipdroid.sipua123/10050} (pid=2070, uid=10050) requires null May 10 10:35:59 Hello, I have a problem. I have created a custom camera, but when I take the picture i want a new activity to fire using an intent. But when i put the trigger of that in the onClickListerner for the button. It skips creating the picture and just goes straight for the intent. Here is a link to the pastebin: http://pastebin.com/qBxCa8kb May 10 10:37:02 I have an activity running inside a tabhost tab. I have registered a broadcast receiver in that activity but is it not working. The receiver is registered inside the onResume of the activity inside. Can someone help me how to overcome this? May 10 10:37:32 Name your intent. May 10 10:37:55 juzz - you mean me ? May 10 10:38:00 yeah¨ May 10 10:38:19 please what do you mean with name it ? May 10 10:38:26 Intent Intent i = new Intent May 10 10:38:36 eg May 10 10:38:47 ill get opne of my projects.. May 10 10:38:51 lol May 10 10:38:54 evol intent May 10 10:39:22 or that May 10 10:39:51 kaspuh ; if you name it , it´s easier to call it later on May 10 10:40:06 like.. Intent i = new Intent (); May 10 10:40:08 ah. ok, but i only really need to call it inside that method? May 10 10:40:15 yeah May 10 10:40:17 still May 10 10:40:24 it might do the difference May 10 10:40:35 i allways name things to make it cleaner. May 10 10:40:56 and easier to understand and it might stop cluttering the app when you really need it to work. May 10 10:41:10 ok :) May 10 10:41:16 wo. try that May 10 10:41:21 i have a problem in understanding listviewactivity. if I want to create a listview, i need a class that extends ListActivity right? May 10 10:41:24 and you dont need two "Intent" May 10 10:41:39 vorwaerts: Yes May 10 10:42:02 it was only one? Intent intent = new Intent.... just a bad name ? May 10 10:42:33 but my problem is that it does not "go into" the myPictureCallback_JPG class May 10 10:42:47 in my case i have my main.java that loads a strings from a MySQL-Database and creates an array. the main.xml still gots a button. if i want that button to create a listview with the array, how do i do that? May 10 10:43:10 kaspuh: you need Intent "name" = new Intent (); May 10 10:43:25 use if May 10 10:43:38 juzz - ok, i named it myIntent now May 10 10:43:43 do i create the listview from the onclick method or do i load a class? May 10 10:44:02 vorwaerts: you create it from the on click method. May 10 10:44:33 and my main.java extends listactivty instead of activity? May 10 10:44:44 kaspuh: you dont need a long name luls.. for the issue. try to if else goTo "blahblah" May 10 10:45:03 the problem is, that if i remove the whole May 10 10:45:11 vorwaerts: yes. May 10 10:45:17 kaspuh: yes? May 10 10:45:19 the whole calling a new intent etc May 10 10:45:24 it takes the picture May 10 10:45:28 ofc May 10 10:45:33 when i have that, it doesn't go into the pictureCallback_JPG May 10 10:45:38 will that be saved? May 10 10:45:59 if else goto pictureCallback_JPG(); May 10 10:46:15 shouldn´t be much harder than that. May 10 10:46:28 it might slow things down a bit, but i think it should work. ;D May 10 10:46:40 I have an activity running inside a tabhost tab. I have registered a broadcast receiver in that activity but it is just not working. The receiver is registered inside the onResume of the activity inside. Can someone help me how to fix this? May 10 10:48:27 can i transfer an array to a oncreate method? May 10 10:48:50 napster: I've seen receiver misses messages on rotating, not sure if it's the same in your case May 10 10:48:53 i shouldnt i in any case? May 10 10:49:05 hoangtran: I see May 10 10:49:30 hello raghavsood,have you read my error log May 10 10:50:20 and it happened quite often that we need to stop using broadcast receiver technique in that particular case May 10 10:51:06 jagruti_: It seems like you're trying to start the Activity in your old package, so your new app tries to access the old one. May 10 10:51:41 hoangtran: If I go replacing receiver, I should do it with some sort of polling method, which is not very CPU friendly. :( May 10 10:51:47 raghavsood:but i have change the package name also ..so now what can i do? May 10 10:52:10 jagruti_: What is the code you are using in the intent? May 10 10:52:35 menas in codecs file? May 10 10:53:21 napster: it really depends, I think. This is also a pending issue in our case May 10 10:53:23 is the dalvik garbage collector generational? does it run concurrently on multi core devices? which GC algorithm is used? May 10 10:54:03 hoangtran: May be there is a way. Lets wait for Android geeks to reply on this :) May 10 10:54:54 yeah, I'm just a few months on android, and started it a company that also new to android :) May 10 10:55:02 i have listview in which i have set the image and i want to when i click on image then the listview remain as it is not go in next activity but when i click on othar part of listview just like select item then it will need to go in next activity May 10 11:00:12 jagruti_: What code are you using to create and launch the intent. May 10 11:00:36 im reading a tutorial about arrays - can i create an array just if i know how much elements it hasS? May 10 11:05:57 voidcoder: Yes. May 10 11:06:24 *vorwaerts : Yes May 10 11:06:29 Sorry voidcoder. May 10 11:06:42 it's ok, raghavsood May 10 11:08:34 is it possible to un-vote an app on the market? May 10 11:09:19 does anybody know what "forward-lock the app" means for adb install? May 10 11:12:44 i wonder if it's possible to use an android device as a custom USB device May 10 11:13:03 does anyone ever heared of something like that? Like "emulating" a HID device with android? May 10 11:13:20 s/does/has May 10 11:13:46 s/does/has/ * May 10 11:14:43 Ivru: thanks :) May 10 11:15:32 ah Accessory Mode is what i'm looking for May 10 11:31:04 hello! Where can I find the contents of the source file base/core/res/res/values/themes.xml in the built code? May 10 11:35:08 Looks like you already found it May 10 11:38:25 when i create i listview with setListAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, data)); how can i change the background color of listview? May 10 11:39:23 Trouble with AudioRecord/AudioTrack (Trying to concatonate TWO audio-recordings.. and play them) any ideas? May 10 11:39:44 SimonVT: did you here something about gridbire spacers not working right in the compat lib? i thought i did, but can't find it now. maybe somebody was just doing it wrong May 10 11:39:50 *gridview May 10 11:39:58 What? May 10 11:40:06 vorwaerts - don't you man changing the background of the items inside the listview ? May 10 11:40:13 I have an activity running inside a tabhost tab. I have registered a broadcast receiver in that activity but is it not working. The receiver is registered inside the onResume of the activity inside. Can someone help me how to overcome this? May 10 11:40:16 What's the compat lib got to do with gridview May 10 11:40:56 SimonVT: gridview comes in the compat lib now :P May 10 11:41:02 gridlayout? ;d May 10 11:41:06 Never used it May 10 11:41:06 yeah May 10 11:41:09 ok, nm May 10 11:42:25 ahem so remember about 4-5 months ago when I was banned for "trolling" because I said android stole their code from java....http://www.geek.com/articles/mobile/google-found-guilty-of-copyright-infringement-in-oracles-android-suit-2012057/ May 10 11:43:11 you all said I was nuts & that android did not copy from java because java is a piece of trash that is slow but android is new & works! well what do you have to say for yourself now!!! May 10 11:43:29 javalover May 10 11:43:43 i doubt you were banned for saying something controversial, yet semi intelligent May 10 11:43:51 you were probably banned for being an ass May 10 11:44:11 I was banned for saying this, the person got really mad & said "ANDROID IS NOT JAVA" and then +O'd himself & banned me May 10 11:44:41 well, you managed to come back :) May 10 11:44:44 well look how the tides have turned May 10 11:44:49 i'm looking forward to more drama May 10 11:44:50 the funny thing is, the jury only found google guilty under the premise that APIs actually are copyrightable, which the judge did not even decide upon yet May 10 11:45:04 \o/ drama May 10 11:45:09 drama++ May 10 11:45:09 hehe May 10 11:45:12 I mean, I was right May 10 11:45:22 They were found guilty of copying 9 lines of code May 10 11:45:29 Apart from the api stuff May 10 11:45:34 not only was I right a whole courtroom full of people & a jury agreed that they stole the code May 10 11:45:40 SimonVT: 9 lines of actual code... do you expect java containing more than that? May 10 11:45:50 and ur still talking trash amazing May 10 11:45:58 and even those 9 lines of code, if i recall its kinda hard to implement that much differently May 10 11:46:05 * Ge0rG stops troll feeding and goes back to actual work May 10 11:46:07 forogot the stupid function May 10 11:46:25 dude it's not 9 lines of code, it's the entire library May 10 11:46:41 but it's like al capone, tax evasion. Gotta hold em accountable for something May 10 11:47:07 sweet sweet justice May 10 11:47:23 you really do love java don't you ? May 10 11:47:23 :) May 10 11:47:34 yes, it's the only language that is all about freedom May 10 11:47:53 Oracle is the guardian of freedom! May 10 11:48:00 javalover: ????? freedom May 10 11:48:16 it's one of the only languages that you can just download & install at free will May 10 11:48:31 the community for it is endless May 10 11:48:31 David Hasselhoff is also about freedom, he's been looking for it for quite some time. May 10 11:48:43 and it stretches all the way to blender May 10 11:49:03 and it's amazing look at what android can do May 10 11:49:22 java deserves credit where credit is due May 10 11:50:00 if it was up to me, google would ditch java altogether :) May 10 11:50:01 I have always instantiated an array list like so ArrayList al = new ArrayList(); however I have seen code like this List al = ArrayList what file in the .apk normally has all the Strings? I want to modify a String in an app I use May 10 11:50:06 fuck that stupid language May 10 11:50:37 Quacked: not the right channel for that question May 10 11:50:51 can I disable webview scrolling somehow May 10 11:51:17 jiduvah: uh, ArrayList implements List :) May 10 11:51:30 g00s: really? isnt that a question perfectly suited for devs? :) May 10 11:51:52 Quacked: no, since you didn't develop the app :D May 10 11:52:03 g00s: i was hoping for more of a practical answer May 10 11:52:12 hehe May 10 11:52:28 jiduvah: #java might be able to help :) May 10 11:52:41 The app has this annoying translation that messes up the GUI May 10 11:52:57 I went on that channel a couple of weeks ago and they got angry because I programme android May 10 11:53:00 If the String was 1 char shorter it would be fixed :P May 10 11:53:03 and thats not java! May 10 11:53:04 haha May 10 11:53:09 i will try cheers May 10 11:53:15 jiduvah: so they are all javalovers over there, heh May 10 11:53:15 Quacked: why don't you report it to the developer to fix it? May 10 11:53:35 I did a month ago, but there has been no updates to it since January May 10 11:56:02 somebody needs to invent RBSP, Remote Beer Spending Protocol. (or Beverage for the beer deniers)... maybe as part of a mobile wallet May 10 11:57:18 When I made an app I think I put all the Strings in Strings.xml May 10 11:58:28 if I use ... Is ACCESS_COARSE_LOCATION enabled as well or I need to add it as well ? May 10 11:59:25 You only need one May 10 11:59:46 Coarse is enabled if fine is set. May 10 12:01:44 g00s: they give me a load of shit May 10 12:01:57 this was the answer I got "one's smart, the other's stupid. The one that uses List al is smarter." May 10 12:02:30 then I got shit for asking for a smarter answer May 10 12:02:50 weird, Ive browsed through the entire .apk and cannot find the Strings May 10 12:02:55 There's some pedantic a-holes in there. On the other hand, if you had read a bit about how java and interfaces work, this would have been rather obvious. May 10 12:03:27 HDroid: yeah I have been reading about them recently and have been using them in a factory class I made May 10 12:03:39 but instantiating with them I struggle to see the point May 10 12:04:21 if I want and array list whats the problem with defining an array list? May 10 12:04:25 Interfaces hide implementations, they're quite handy. May 10 12:04:54 jiduvah: nothing wrong with that, stick to an array list if that's all you need. May 10 12:05:20 code1: apparently that stupid tho May 10 12:05:41 no it's not stupid. May 10 12:05:47 jiduvah: It's just unnecessary to make the type ArrayList May 10 12:05:47 Take ArrayList, it's quite fast at getting at getting something with an index. But if you want to pop off values quickly, a LinkedList is much faster at doing that. May 10 12:06:18 HDroid: right, it's all about the right class for the right job. May 10 12:06:18 Now, imagine you have a piece of code that uses ArrayList and it doesn't give you the performance you need. May 10 12:06:28 yup May 10 12:06:43 If you've used ArrayList everywhere, you now have to replace each instance of ArrayList with LinkedList. May 10 12:07:03 Had you used List, that's not needed. May 10 12:07:52 ah ok. May 10 12:08:26 HDroid, thanks May 10 12:08:39 Wouldn't there also be a slight perfermance hit with using List as apposed to ArrayList if you only used ArrayList? May 10 12:09:24 code1: not really. Even if there were, the lookup would be in terms of nanoseconds, but I suspect the compiler will optimize. May 10 12:09:46 ok May 10 12:09:53 I believe there used to be May 10 12:10:06 Can't remember the reason May 10 12:10:16 Nowhere near the impact of using the wrong access pattern for a list implementation. May 10 12:11:47 In that case I suppose the only reason not to use List is if you needed to use something specific to a list implementation. May 10 12:13:12 code1: correct May 10 12:14:18 much clearer May 10 12:14:30 g00s: please don't tell me to go to #java again May 10 12:16:17 jiduvah: it would be good to pick up a book on java. May 10 12:16:30 java tutorials on oracle, 'thinking in java' May 10 12:16:36 or 'head first java' May 10 12:16:50 g00s: I will look into it thanks May 10 12:22:02 finally rooting my galaxy nexus May 10 12:22:38 used apktool on resources.arsc and found the String May 10 12:22:44 thanks for not helping :p May 10 12:24:58 Anyone use acra? Is it worth using over the standard reporting provided? May 10 12:26:22 code1: Yes. May 10 12:26:34 Quacked: thanks for not bothering us for something you apparently could figure out yourself ;) May 10 12:26:37 It's much detailed. May 10 12:26:44 *much more detailed May 10 12:28:13 Seems easy enough to include, though last release it almost a year old. May 10 12:28:26 Im not sure how to build the apk properly so it is able to overwrite the existing one though May 10 12:29:53 Quacked: you can't, only the original developer can. May 10 12:30:24 code1: The developer said he'd been busy. He said that he'll be making a new Beta soon. May 10 12:31:03 raghavsood: thanks, I'll try it out. May 10 12:31:17 code1: Welcome May 10 12:31:31 code1: but I can install it separately somehow I suppose? May 10 12:32:37 Quacked: You could, but you shouldn't. May 10 12:33:15 Is it illegal? May 10 12:33:47 Not AFAIK, but if I was the developer of that app, i'd be pissed if someone did what you're doing to it. May 10 12:34:19 Quacked: probably - you are modifying someone's app without their permission. May 10 12:34:20 I can't see the harm in editing a string for my own use May 10 12:35:19 Im gonna try just editing package=" " and see if that works May 10 12:35:37 hi May 10 12:36:06 mmm. webkit really spams the logCat.. is there a way to turn that off? May 10 12:36:06 is there a way to reload graphical layout in main.xml, under adt eclipse plugin? May 10 12:36:21 sometimes my more important messages leave the eclipse log, since the memory is limited ;D May 10 12:36:38 everytime i import a project layout doesn't load May 10 12:37:11 Quacked: It won't. May 10 12:37:23 pi_anto: please be more precise: when you import an existing android project into an eclipse project and then run it on the device it fails? May 10 12:37:29 raghavsood: it didnt, hehe May 10 12:37:44 but it didnt ask to update the previous either May 10 12:38:04 I need to sign the apk myself perhaps? May 10 12:38:24 talking of logs, is there a log file on an actual device I can access? May 10 12:38:48 tapas, no, i mean when i import an existing project and i want to edit layout through graphical plugin, this one doesn't load and i have to edit main.xml only in text mode May 10 12:39:18 would be nice to reload it without closing and reopening eclipse May 10 12:41:21 hey guys. Anyone know how to use bit operation to check an integer if it's 1 or 0? May 10 12:41:36 what are the benefits of doing that instead of a switch statement? May 10 12:42:04 The benefits are: it makes you feel like an ASM hacker. May 10 12:42:09 Afzal: wut? Why don't you write foo != 0? May 10 12:42:31 More like.. why not use a boolean :D May 10 12:42:33 i'm just asking alankila May 10 12:42:37 oh May 10 12:43:32 why not just if (foo) ? May 10 12:43:43 is it better to write if (foo==1)? May 10 12:43:46 becuause java does not automatically convert an integer to boolean May 10 12:43:54 and preferably test against 0 May 10 12:43:54 oh okay May 10 12:44:00 will do May 10 12:44:01 thanks! May 10 12:44:02 foo != 0 is similar to if (foo) in C May 10 12:44:46 well the 1 and 0 are defined as constants so it's either CONNECTED (1) or DISCONNECTED (0) May 10 12:44:56 ugly design detected. May 10 12:45:03 yes May 10 12:45:13 that wouldn't be my fault or problem May 10 12:45:27 *coughrimcough* May 10 12:45:41 That is an interesting sentence May 10 12:47:22 also, who here uses perforce? May 10 12:48:08 no one is experiencing my problem? graphical layout crashing when importing a new existing project in eclipse? May 10 12:48:25 pi_anto, you mean eclipse is crashing? May 10 12:48:59 i haven't had the good luck of opening eclipse for android development in quite a while. is ADT r20 out yet? May 10 12:49:19 Afzal, no, everything works, but graphical layout can't load and remains empty, while text mode still working May 10 12:49:45 nope, never had that May 10 12:50:38 can you or someone try to import an existing project and see if graphical layout for main.xml loads? i see it only if i reboot eclipse May 10 12:51:35 Can't, at work May 10 12:51:57 alankila: its stupid that it doesnt convert May 10 12:51:59 Afzal, ok, thanks anyway :) May 10 12:52:19 * alankila thinks it's justifiable May 10 12:52:27 java does not do conversions that result in loss of accuracy per default May 10 12:52:35 so alankila, is www.pastebin.com/CiTE02xy better than www.pastebin.com/XQF3cqtx? (just confirming) May 10 12:52:39 converting a 32-bit value to 1-bit value would be violation of that rule. May 10 12:53:37 Afzal: I prefer the switch-case form myself over if-elseif chain May 10 12:53:49 I do too.. :/ May 10 12:53:52 oh well whatever May 10 12:53:59 most of my default-implementations do 'throw new RuntimeException("Unable to handle state: " + state)' May 10 12:54:03 is it a bit operation in the if statements though? May 10 12:54:11 similar to if-elseif-else throw May 10 12:54:18 hmm May 10 12:54:19 no May 10 12:54:32 no? then wtf, i'll leave it as a switch statement May 10 12:54:34 == is a value equality test. May 10 12:54:40 We don't usually call this a bit operation May 10 12:54:57 ohh so if it was USB_STATE_CONNECTED & 1 May 10 12:55:01 && * May 10 12:55:06 that would be a bit op? May 10 12:55:14 errr ... maybe you want something like: May 10 12:55:24 switch (state & USB_CONNECT_MASK) { ... } May 10 12:55:28 hmm May 10 12:55:31 alright May 10 12:55:33 if there is such a thing as USB_CONNECT_MASK May 10 12:55:48 this depends on how many different things have been packed into one int32 value May 10 12:55:53 well i could just use state && USB_STATE_CABLE_CONNECTED May 10 12:56:00 &&? That's again not a bitop May 10 12:56:05 >_< May 10 12:56:12 then forget this May 10 12:56:15 no bit op for me May 10 12:56:20 The & is the AND operator. && is a boolean shortcircuiting operator May 10 12:56:28 oh oh oh May 10 12:56:47 Afzal: thats what refactoring is for :) May 10 12:56:47 must've skipped class that day May 10 12:56:53 and if you have multiple bits packed in int32, you do something like this, maybe: May 10 12:57:17 Hello All May 10 12:57:29 dominicdinada, which part? May 10 12:57:48 Afzal: to improve on your design May 10 12:57:53 if ((state & SOMETHING_MASK) == SOMETHING_X), you often see this kind of code when SOMETHING selects multiple bits at once, and SOMETHING_X is some particular constant that identifies particular arrangement of those bits May 10 12:58:19 like, you might have SOMETHING_MASK = 0xf0 and then SOMETHING_X could be 0x50 to identify that particular bit pattern May 10 12:58:20 dominicdinada, that's not really my call. That's how the BB SDK is. May 10 12:58:40 Afzal: heh May 10 12:58:43 alankila, alright, thanks! May 10 12:58:47 so if state holds multiple values concurrently, then select particular bits, then compare them May 10 12:59:17 also sometimes you have to shift them because someone defined the values like 0, 1, 2, 3, but within the state they are not at the lowest bits, necessarily. May 10 12:59:23 i see May 10 12:59:36 you have to really look at what the values are to tell how to use them May 10 13:00:12 Can't seem to find any specs on the Google WAV File format.. anyone? May 10 13:00:48 how can i add the contact number in favorite when i press on image May 10 13:03:28 google wav file format? May 10 13:03:40 * alankila has been struggling with a stupid canon camera. I used a windows usb driver that dumps the packet data sent by the official program in order to learn how to put its viewfinder into a mode where it sends that image to PC. May 10 13:03:45 wav is a microsoft format.. May 10 13:04:01 but on the other hand, things you access over usb or over network are in general delightfully vulnerable to little bit of snooping May 10 13:04:40 storkme: According to a google group, AudioTrack expects data in a google wav format May 10 13:04:55 XeruX: nah, I think it uses short[] May 10 13:04:59 and I need the spec of the format.. trying to concatonate two audio clips into one May 10 13:05:16 are the any good examples of using Preferences and PreferenceFragments, especially for backwards compatibility? May 10 13:05:19 yeah May 10 13:05:59 Found this: http://groups.google.com/group/android-beginners/browse_thread/thread/dda88658d2b14c7b , Chris' reply says ".. Google WAV file format. The same format that the PCM data in a WAV is in is the same format the AudioTrack expects" May 10 13:06:05 XeruX: what you may have to do is learn how to read the micfosoft wave format May 10 13:06:20 alankila: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ <- that one ? May 10 13:06:21 wav is a container for data May 10 13:06:33 audiotrack expects raw pcm May 10 13:06:44 XeruX: it probably use "google" as a verb. May 10 13:06:46 uses May 10 13:06:48 what format is your audio in XeruX May 10 13:06:54 as in "google for wav format" May 10 13:06:56 XeruX: yes, I think that is pretty much it May 10 13:07:00 storkme: I've only recorded using AudioRecord May 10 13:07:10 so the data should be raw PCM i think?.. May 10 13:07:40 ah May 10 13:07:41 XeruX: WAVE is simply a short chunk of metadata prefixing a big chunk of PCM. That metadata, however, tells you exactly what the PCM data format is May 10 13:08:22 alankila: What I'm trying to do is to concatonate the audio-data the user has captured (the user can capture audio multiple times) May 10 13:08:35 correct XeruX, so just concatenate the short[] you get back May 10 13:08:57 as long as the frequencies and channel configurationsare the same of course May 10 13:08:57 Tried doing that, but most of the times I try to play the concatonated array using AudioTrack, I get static noise May 10 13:09:09 hey everyone, I am just starting to teach myself java. I do a lot of php, and i was just wondering how java handles "sessions"? or is there such a thing? May 10 13:09:50 so what format are yuou recording/playing in? May 10 13:09:53 XeruX: so what you do is write an adapter, or try to find an existing one, which takes a wave file, and gives you the audio data in either stereo or mono 16-bit pcm, depending on your application's needs May 10 13:09:58 dschuett: that is such an odd concept May 10 13:10:14 storkme: i knew someone would say that, haha. May 10 13:10:24 anyone know why in eclipse everytime i run my app now i have to manually select the device May 10 13:10:35 storkme: 16bit pcm, mono May 10 13:11:02 frequency? May 10 13:11:23 I know very little about audio etc, buI'm using 800000 for some reason May 10 13:11:25 8000* May 10 13:11:53 irssi is acting weird all of a sudden :o May 10 13:12:23 8000 is quite low, but well suited for recording voice () May 10 13:12:25 storkme: here is what i'm after, I have a logon screen that passes the username and pass to a php file on a webserver (through a url), It does all the authentication on the server side, and returns 1 or 0 if the authentication was successfull. However, someone could easily reverse engineer that by hard setting the values in the java file. Any suggestions? May 10 13:12:43 so what happens if you pass the short[] you record with AudioRecord directly into AudioTrack XeruX ? May 10 13:13:00 Or is there a much better way to go about this? May 10 13:13:03 That works just fine (though I'm using byte[]) May 10 13:13:19 it's when I try to concatonate shit goes wrong May 10 13:13:24 hmm May 10 13:13:51 * alankila also idly wonders how xerux gets a wave file in the first place, if audiotrack and audiorecord both fundamentally work with the raw pcm data May 10 13:13:53 if you are recording 16bit pcm i would suggest using short[] May 10 13:14:27 alankila: I don't know what I have, actually =) All I know is that I've googled, google said smoething about wave, audiotrack works fine with each recording seperately May 10 13:14:30 but not when concatonated May 10 13:14:53 dschuett: it would be fairly trivial to reverse engineer anything in an android app since it is java after all - what exactly is it you're trying to auth for? May 10 13:14:54 so you don't even know what your fileformats are? May 10 13:15:00 storkme: ok, I'll change to short[], but that can't be the issue here? May 10 13:15:03 alankila: I know I've got PCM data May 10 13:15:27 how do I set the log level in eclipse, it doesn't seem to work when using isLoggable! May 10 13:15:29 but I thought maybe I had the meta data as well, but it seems it's just the raw data? May 10 13:15:44 i think you should double check the configurations of your Record and Track are the same, and then switch to using short[] May 10 13:15:58 it is indeed raw pcm data; there is no meta data involved May 10 13:16:19 storkme: after authenticating with the mysql database on my server, it will start the next activity (which will allow users to post to the database). May 10 13:16:23 XeruX: take a look at what your files contain for starters, is there a RIFFWAVE header there May 10 13:16:38 (hint: you know there's no meta data because both audiotrack and audiorecord require you to explicitly specify what format the audio is in - if there was metadata you wouldn't need to tell them this info :p) May 10 13:16:52 storkme: true May 10 13:17:13 and yes, for heavens sake, use short[] internally, not byte[]. That avoids another source of problems May 10 13:17:34 because with a short[] there's no question if the audio should be taken as little endian or big endian May 10 13:17:59 also, I don't use files atm. I just capture audio and store it in byte arrays May 10 13:18:06 dschuett: you could have the php server return some sort of token and then insist that the new activity has that token as an argument? that way the user couldn't simply launch your activity without a valid token. This would be sort of similar to how cookies work in the browser i guess? May 10 13:18:16 Hello anybody know my problem's solution? May 10 13:18:49 Il switch to short[] right now and try that first May 10 13:19:10 storkme: yeah, that is kind of what i'm doing now. I am returning their user id, and in each activity i make sure that is set. - I just wanted some reassurance that I was going about this in the right manner. I appreciate your input. May 10 13:21:09 how does adb send the .apk file to the emulator? May 10 13:21:12 when I worked with the facebook library a while back, it required you to log in and you get a token in return - some character string - every proceeding call to the facebook web service required you to pass in that token May 10 13:23:31 Is it possible to set the debug level of device from Eclipse? May 10 13:27:13 It seems using isLoggable just causes headaches! May 10 13:27:31 where's the best place to register a ConnectionInfo receiver May 10 13:27:38 I'm currently doing it in the Application class because I want it to be available throughout the whole app, but I have a feeling thats the wrong place to put it May 10 13:31:12 Question: I know how to enable/disable wifi connectivity programmatically. Is there a way to do that for the data over gsm, for example 3g, programmatically? May 10 13:35:24 what do the colors in the cpu overlay in ICS stand for? green: user, red: system, blue: iowait? May 10 13:35:48 hey, why it is that when I create a project from a sample in eclipse I have all kinds of errors that I need to remove 'override' statements? May 10 13:37:44 WindowsNT, i doubt it May 10 13:37:51 john_doe_jr: you have to change the java version to 6 somewhere in the project properties i guess May 10 13:37:53 if an app enabled my data connection i would kick someone in the balls May 10 13:38:26 I wouldn't if it was a "enable mobile network" widget. May 10 13:38:26 is there any point posting a runnable from a intentservice, or will it already be in the background? May 10 13:39:32 john_doe_jr: right click your project > properties > java compiler > compiler compliance level > set it to 1.6 May 10 13:39:49 grrrr why cant embeded video be played :/ May 10 13:39:52 izibi: thank you, I'll try that ...just a moment May 10 13:39:55 android:screenOrientation="sensorLandscape" doesn't seem to be working =\ May 10 13:42:23 hello can body know how to store the contact in favorite ? May 10 13:42:31 is the an alternative android emulator that is not a resource hog / slow? May 10 13:43:24 Boscop: yes, a real device May 10 13:43:32 although the emulator isnt slow on my computers May 10 13:43:37 but i can see how it might be slow on a slow computer May 10 13:43:53 canadiancow : there is a reason I want to enable it programmatically May 10 13:44:00 is there anyway for a broadcast receiver to send a message to the current activity? May 10 13:44:06 this.myVideo.setVideoPath("sdcard/test.mp4"); May 10 13:44:08 canadiancow|work, it's very slow to do anything and it allocated 800 MB which makes it even slower due to paging May 10 13:44:28 that works but aetUri wont May 10 13:44:35 also, i 'm playing a swf through a WebView. Is there a possibility i could play it outside a WebView? May 10 13:45:16 anyone know why in eclipse everytime i run my app now i have to manually select the device, its very tome consuing and annoying May 10 13:45:30 canadiancow|work, I was hoping the emu would be sufficient May 10 13:45:46 gaz`: is ur device plugged in ? May 10 13:45:51 gas you can set default May 10 13:45:57 if you right click on the project May 10 13:45:59 do u set ur sdk versions May 10 13:46:09 i wish i could simultaneously deploy to 3 devices May 10 13:46:14 go to run as May 10 13:46:19 then click configurations May 10 13:46:21 rather than clicking run, device1, run, device2, run, device3 May 10 13:46:45 well automatic only has my emus May 10 13:47:53 if your or tablet are plugged in ..... it will ask May 10 13:48:11 my device is plugged in too it just brings up a windo and i have to hit ok each time May 10 13:48:14 http://1.bp.blogspot.com/-Em5dv1qQ2c8/TZCciQcZKCI/AAAAAAAAAT0/W5LPfsVVX20/s1600/emu.jpg May 10 13:48:27 :like: May 10 13:48:31 gaz`: thats the problem May 10 13:48:58 if u shut down the emulators and run as it will default to the phone May 10 13:49:02 is there anyway to send the current activity a message from my broadcast intent class May 10 13:49:20 same token if u unplug your phone it will auto start an emulator May 10 13:49:28 yeh May 10 13:49:32 thats how it should work May 10 13:49:36 but its not for some reason May 10 13:50:06 are you setting your dev sdk ? min or target sdk in manifest ? May 10 13:50:34 yeh i have minSdkVersion="7" May 10 13:50:54 ok u got me then :/ May 10 13:51:18 weird May 10 13:51:39 is there any way to get the application class from a broadcast reciever May 10 13:51:42 unless u did check the box at one time to u that device..... automatically. May 10 13:52:32 HDroid: lol May 10 13:53:12 tried that dominicdinada no effect May 10 13:53:14 gaz`: check HDroids link lol May 10 13:53:29 i did May 10 13:53:30 lol May 10 13:53:57 is there any point posting a runnable from a intentservice, or will it already be in the background? May 10 13:55:09 grrrr why cant embeded video be played :/ May 10 13:55:14 this.myVideo.setVideoPath("sdcard/test.mp4"); May 10 13:55:22 works fine May 10 13:55:42 but setUri to raw no dice May 10 13:55:59 storkme, alankila: Thanx for the help! I only switched from using byte to short and everything works perfectly May 10 13:56:09 :D May 10 13:56:26 izibi: hey, I got my samples running now....I'm looking for a user to swipe only a portion of a screen between different pages...do you have any idea how I would do that? May 10 13:56:57 also, how would I calculate the length, as in how many seconds the clips are? May 10 13:58:15 hiya ppl. i was wondering are there indexed color views/pixmaps in Android? May 10 13:58:20 \o/ May 10 13:58:31 john_doe_jr: probably you're looking for ViewPager? it's in the compatibility lib May 10 13:58:48 XeruX: a short is one sample. You are recording at 8000Hz, so 8,000 samples every second. So each short is 1/8000th of a second May 10 13:59:02 izibi: do you know of a sample for ViewPager ? May 10 13:59:43 john_doe_jr: it's right in the docs: http://developer.android.com/reference/android/support/v4/view/ViewPager.html May 10 14:00:36 izibi: right but I want only a portion of the screen to be flipped through and not the entire page May 10 14:02:25 john_doe_jr: then just make the ViewPager smaller so that it doesn't use the whole screen? May 10 14:06:08 how do u reuse a bitmap thats been recycled, even setting it to null doesnt let me use it again? May 10 14:06:52 storkme: ah, thank you May 10 14:10:28 Is this the best way to access a TextView from a non-activity ? MyMainActivity.MyTextView.setText("foo"); May 10 14:11:32 no, the "best" way is likely to use a listener May 10 14:11:40 or at least write an accessor May 10 14:12:39 how do u reuse a bitmap thats been recycled, even setting it to null doesnt let me use it again? May 10 14:12:50 uhm, what? May 10 14:12:53 confusing as hell May 10 14:13:16 that question doesn't make sense May 10 14:13:25 my question? May 10 14:13:27 yes May 10 14:13:30 how come May 10 14:13:34 wongk: what's an accessor ? May 10 14:14:04 gaz`: what do you mean by setting a bitmap to null May 10 14:14:20 mybitmap.recycle(); mybitmap = null; May 10 14:14:34 that does not set a Bitmap to null, that sets the mybitmap variable to null. May 10 14:14:48 wongk: by a listener you mean a BroadcastListener ? May 10 14:15:01 hrnt, err, May 10 14:15:06 CVirus: Activity.setMyViewText(String) May 10 14:15:11 so how do i set it to null May 10 14:15:32 no, i don't mean a BroadcastListener, though that is an example of a listener May 10 14:15:38 gaz`: set what to null? May 10 14:15:41 i mean the observer pattern May 10 14:15:49 what the hell May 10 14:15:53 are u deliberately being weird :) May 10 14:16:00 i just want to get rid of the memory used by the bitmap May 10 14:16:03 so i can reuse it May 10 14:16:06 wongk: can you link me to something to read about listeners ? May 10 14:16:20 gaz`: reuse what? May 10 14:16:21 google "design patterns" May 10 14:16:24 LOL May 10 14:16:25 gaz`: if you recycle a Bitmap, then you can't reuse it May 10 14:16:34 not way at all? May 10 14:16:42 im confused by this May 10 14:16:56 from the documentation: "This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap." May 10 14:17:10 gaz`: are you saying bitmap = new Bitmap(); doesn't behave corretly? May 10 14:17:48 but what if i have a Vector of objects and they each hold their own bitmap, then i want to hit refresh and grab it all again, i want to clear the bitmap in each obj, set the vector to null then refill it like i did first time May 10 14:18:31 wongk not sure really, im just trying to redownload a bitmap using img = BitmapFactory.decodeStream(is); May 10 14:19:06 izibi: on the http://developer.android.com/reference/android/support/v4/view/ViewPager.html link that you sent me....it says that you ' You can find other examples of using ViewPager in the API 4+ Support Demos and API 13+ Support Demos sample code'....I've got the api_support_demo project loaded in eclipse right now and I see call kinds of packages like com.example.androids.apis, com.example.androids.animation, etc'...which one contains the ViewPage May 10 14:19:09 gaz`: and what is not working? May 10 14:20:35 wongk when i go to redownload the image i get an exception about reusing a rtecycled bitmap May 10 14:20:47 gaz`: if you do Bitmap bm = getBitmapSomewhere(); bm.recycle(); bm = null; bm = getBitmapSomewhereElse(); May 10 14:20:57 gaz`: you realize that you are not reusing any bitmaps in that piece of code? May 10 14:21:12 i dont know whats going on anymore May 10 14:21:15 theyve made it very weird May 10 14:21:25 all i know is if i dont recycle i lose all my memory May 10 14:22:56 and for this reason all my apps crash if u play with them long enough May 10 14:23:00 as ive never solved this problem May 10 14:23:11 gaz`: all i can tell you is that your Bitmap variable is a reference, setting it to a different Bitmap only modifies the reference May 10 14:23:38 so whats the solution May 10 14:23:43 if ive called recycle on something May 10 14:23:57 i can't tell you a solution when i don't know what the problem is May 10 14:24:04 hmm May 10 14:24:16 dont really know why May 10 14:24:17 but May 10 14:24:20 ill keep looking then May 10 14:24:32 gaz`: recycle() does not have anything to do with reuse of bitmaps May 10 14:24:41 i think it does May 10 14:24:52 should i be calling recycle when im done with a bitmap? May 10 14:24:56 no May 10 14:24:58 usually not May 10 14:25:07 "This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap." May 10 14:25:18 yeh but we all know that doesnt happen right May 10 14:25:28 youve worked with bitmaps and found this issue where the mem doesnt go back? May 10 14:25:32 if not then yeh it sounds weird May 10 14:25:58 are you certain there are no other references to your Bitmaps that you might not know about? May 10 14:26:18 yeh May 10 14:26:21 i think so May 10 14:26:28 i don't know much about using bitmaps in general, but i know how GC works May 10 14:26:51 yeh but in this case it doesnt work as far as i know May 10 14:27:22 seems like someone else should be familiar with the issue then :P May 10 14:27:37 yeh May 10 14:27:40 i figured we all were May 10 14:27:44 but istill cant find a solution May 10 14:27:50 if i take out thumb.recycle(); May 10 14:27:54 then my code works fine May 10 14:28:12 but then i know the mems being lost May 10 14:28:14 well, that is another sympton that implies you hold references to the bitmap somewhere May 10 14:28:17 each time i refresh and grab more May 10 14:28:30 well i set it to an imageview May 10 14:28:33 maybe thats holding a reference May 10 14:28:38 of course it is holding a reference May 10 14:28:39 o_O May 10 14:29:00 if it didn't hold a reference, how could it show the bitmap May 10 14:29:17 so what do i do? null the imageview? May 10 14:29:25 no May 10 14:29:26 again May 10 14:29:26 or set its image to null? May 10 14:29:31 yeah, that is better May 10 14:29:36 even better would be to replace the image with the new one May 10 14:29:49 thats what i do May 10 14:29:55 but its been recycled apparently May 10 14:29:57 so it cant do it May 10 14:30:01 no it is not May 10 14:30:04 i have no idea why you think that is the case May 10 14:30:13 because that the error May 10 14:30:20 that the new bitmap is recycled? May 10 14:30:30 how do you know that it is the new bitmap that is recycled instead of the old one? May 10 14:30:35 Canvas: trying to use a recycled bitmap android.graphics.Bitmap@405c3f18 May 10 14:30:49 can you paste the code where you get the new bitmap and update the imageview May 10 14:32:38 erm May 10 14:32:50 its gets a list of bitmaps, and just sets the image view May 10 14:33:37 i would still like to see the code, especially the part where you get rid of the old Bitmap May 10 14:33:46 see, when you recycle the old Bitmap May 10 14:33:46 ok May 10 14:33:58 then you guarantee that the program will crash if you hold a reference to that Bitmap somewhere May 10 14:34:07 because recycling a Bitmap object breaks it - it makes it unusable May 10 14:34:55 you said that if you don't recycle the bitmap object, then your memory usage will keep growing. that implies that you hold references to the old bitmaps somewhere in the program May 10 14:35:15 no i think its just an android bug May 10 14:36:10 if that was the case, then wouldn't others have the same bug? May 10 14:36:35 using Bitmaps in a ImageView is not that rare :P May 10 14:40:24 Hello May 10 14:40:40 I have a question May 10 14:41:43 What resolutions should I make my images to scale it to the whole screen? I mean, what sizes should I put in each folder(ldpi, mdpi, hdpi, xhdpi)? May 10 14:43:25 hrnt ah i dont know man, gonna have to take out recycle May 10 14:43:26 suck May 10 14:43:27 s May 10 14:43:39 mad1231999: you mean full-screen? That's not really possible. May 10 14:44:05 Damn. . . So I can't really have a background screen for my game title screen? May 10 14:44:16 *dpi says something about density, not screen size. There's folders for screen sizes but they're only small, medium, large, xlarge. May 10 14:44:25 hrnt when it crashes it doesnt even point to a line in my code - points to imageview.ondraw May 10 14:44:32 Not unless some part of it scales or has a bounding box. May 10 14:45:14 gaz`: yeah, but you were responsible of putting the recycled bitmap there May 10 14:45:21 true May 10 14:45:23 Ofc it's possible to scale an image to the screen size, but that would probably not look good. . . May 10 14:45:24 to clear the mem up May 10 14:45:26 it is not relevant where the crash happens May 10 14:45:39 These sizes and densities are not fixed values, they're rough margins... in reality there's tons of different screen sizes (and a lot of overlap). May 10 14:46:19 Ok May 10 14:46:26 if u dont recycle a bmp the mem never comes back as far as i know hrnt May 10 14:46:27 mad1231999: you can do some estimations to hit the most common formats, but in the end you'll need something to gracefully handle screens that are atypical. May 10 14:46:34 gaz`: that means that you have a memory leak May 10 14:46:40 yeh May 10 14:46:42 ANDROID has one May 10 14:46:46 not me May 10 14:46:49 and those usually happen if you hold references to the Bitmap May 10 14:46:55 happens May 10 14:47:40 Hi, is it possible to flash a SDCard with an AOSP build (from master branch) without flashboot? May 10 14:47:42 Would it be acceptable to just have one image in each density folder, and then make some borders with some relevant stuff? May 10 14:48:27 mad1231999: if it's acceptable to you ;) but that's probably what I'd go with. But: I would distinguish on screen size, not density. May 10 14:48:49 Probably end up doing density * screen size image count :O May 10 14:49:04 And how would I do that? May 10 14:49:17 gaz`: here is a question: when you recycle the old bitmap, what does your ImageView show at that moment? May 10 14:49:24 mad1231999: http://developer.android.com/guide/practices/screens_support.html May 10 14:49:53 hrnt its just empty and theres a progress dialog up grabbing the info again May 10 14:49:53 I already read that May 10 14:50:07 then i try to populate it and it crashes May 10 14:50:12 gaz`: so you clear the ImageView before recycling the Bitmap? May 10 14:50:18 yes May 10 14:50:54 mad1231999: then why are you asking? ;) May 10 14:51:09 Because I did not find anything on how to scale images to fit the screen May 10 14:51:19 Oh May 10 14:51:45 Well, there's 2 things involved here, one is get the platform to use the right image... the other is ImageView's scaletype property. May 10 14:51:52 (providing you're using an imageview) May 10 14:52:02 gaz`: and when you recycle the old bitmap, you have removed that bitmap from all vectors and so on? May 10 14:52:10 I am drawing it using a Canvas May 10 14:52:22 In a class that extends SurfaceView May 10 14:52:26 Oh, dunno how that works with a canvas. May 10 14:52:34 no - hrtn i go thru the vector calling recycl on each object's image May 10 14:53:01 then i null the vector and make a new one May 10 14:55:38 gaz`: so first your reset the imageview with setImageBitmap(null);, then you go through the vector and recycle all bitmaps, then you create a new vector and load new bitmaps and finally you set the imageview's setImageBitmap to the new bitmap? May 10 14:56:18 yes May 10 14:56:34 and when i call that it says tying to reuse a recycled bitmap and crashes May 10 14:56:43 if i comment out setImageBitmap it wont crash May 10 15:00:16 gaz`: when you get the new bitmap from BitmapFactory, check if its isRecycled() is set. May 10 15:05:29 hmm hrnt actually the imageview is in a list so theres multiple imageviews May 10 15:05:32 that could be it May 10 15:05:46 so only the last one from gtview is actually having its image set to null May 10 15:05:56 how to null em all... May 10 15:05:59 jesus what a pain May 10 15:07:17 gaz`: yeah, that would explain it May 10 15:07:30 why is this (ListView listView = (ListView) findViewById(R.id.productslist);) telling me it cannot cast from View to ListView? May 10 15:08:02 vorwaerts: compiler error, or a runtime error? May 10 15:08:09 compiler May 10 15:08:22 id have to keep a list of every imageview and go thru them i guess May 10 15:08:26 vorwaerts: are there any messages about ListView being unrecognized? May 10 15:08:33 did you import it May 10 15:08:40 yeah, maybe your ListView is not android.widget.ListView May 10 15:08:52 In git (or other vc) if I commit and tag a release e.g. v1.0 - when should I update the version number in the code? Immediately after or just before I commit and tag the next release? May 10 15:09:33 hrnt thanks May 10 15:09:43 code1: immediately before tagging the release, update the version number May 10 15:10:03 i use branches so I update immediately before cuttin the build May 10 15:10:35 wongk: haven't used branches yet so not sure what you mean May 10 15:12:35 can someone explain what im doing wrong here? http://screensnapr.com/v/SL7w35.png May 10 15:13:16 vorwaerts: there error is quite clear, what don't you understand? May 10 15:13:35 addView takes a View, not an Adapter May 10 15:14:04 wongk: would you do final commit, then change version number and then tag? May 10 15:14:29 code1: yes May 10 15:15:47 so the only difference with the tag will be the updated version number in the manifest? May 10 15:16:07 difference between what? May 10 15:16:18 tagging doesn't commit, does it? May 10 15:16:27 I think it does!? May 10 15:16:33 i've never actually tagged May 10 15:16:41 new to git so not 100% sure May 10 15:16:47 bump version > commit > tag May 10 15:17:02 ok thanks May 10 15:17:27 do you use git? May 10 15:17:57 yes May 10 15:18:28 so how do you distinguish versions? May 10 15:18:37 you may want to consider this case, btw: you are knee deep in changes in the next major release of your app, you get a report of a crash, which you want to fix and then cut a new maintenance release May 10 15:18:51 wongk but i dont understand how to add the adapter May 10 15:19:11 vorwaerts: what method does Listview have that takes an Adapter? May 10 15:19:55 .setAdapter May 10 15:19:58 wongk: yes it's a likely scenario - what would be the solution? May 10 15:20:16 code1: well it's possible with tags, it's just cleaner with branches May 10 15:20:29 vorwaerts: sounds like a winner May 10 15:21:37 wongk but now i get a nullpointerexception May 10 15:22:07 wongk: I'll look into branches. I suppose you can create a branch from a tag? May 10 15:22:26 vorwaerts: you should fix that then May 10 15:22:35 code1: i assume so May 10 15:22:56 wongk could the adapter be null? May 10 15:23:18 no, but a debugger will tell you what is null May 10 15:25:03 wongk http://nopaste.info/689fce0380.html so what could be null? nothing i think but it is May 10 15:25:38 are you using a ListActivity? May 10 15:25:51 yes May 10 15:25:59 you seem in way over you're head May 10 15:26:11 you need to start simpler May 10 15:26:43 I have an activity running inside a tabhost tab. I have registered a broadcast receiver in that activity but is it not working. The receiver is registered inside the onResume of the activity inside. Can someone help me how to fix this? May 10 15:28:34 wongk so there is no need to extend ListActivity May 10 15:37:12 Is there any easy way to set the log level in Eclipse to DEBUG instead of the default INFO for all tags in your package? May 10 15:37:54 i've got a weblog, where each few days a new blog post. I would like to create my own android app where people can read it in a proper manner for this weblog May 10 15:38:17 Would this be hard to learn without any android dev experience? I'm used to writing OO PHP May 10 15:39:52 there is a definite learning curve, yes May 10 15:39:59 maybe provide a feed instead May 10 15:40:00 does your blogging software have an API? May 10 15:40:22 an RSS feed is definitely the shorter means to your end May 10 15:40:43 Wordpress yes May 10 15:41:04 I prefer to have my own android app May 10 15:41:36 you need to learn Java first, it's very different from PHP May 10 15:42:06 hah May 10 15:42:34 going from php to java is like going from building ships out of lego to building a nuclear sub May 10 15:42:35 wongk: i did some stuff in java some time ago, actually i don't see what's so different May 10 15:43:07 the approach is the same May 10 15:43:15 wongk constructors are diff but try catch throw, if else, operators, etc the same May 10 15:43:18 just kidding, to be fair if you can manage to make good applications in php *anything* will be easy for you May 10 15:43:27 brb, need a reboot May 10 15:43:53 windows update? May 10 15:43:57 reboot too May 10 15:44:21 lol windows May 10 15:44:45 wongk-home i cant find what is null May 10 15:46:31 lol things that aren't windows May 10 15:46:55 like macs and linux ? May 10 15:47:31 linux is good but the unix core macs are built off of powerful May 10 15:48:11 i have 2 windoze computers in my house out of the eleven :/ May 10 15:49:32 i get a NullPointerException - http://nopaste.info/689fce0380.html so what could be null? May 10 15:50:12 linux is aight if you have a lot of spare time May 10 15:50:35 has anyone used ksoap2 or any other soap library before? I'm trying to develop an app that consumes a RPC-encoded soap based webservice May 10 15:50:48 storkme: or alot of exp with dos and cisco routers May 10 15:50:59 mainly I just want to know if RPC encoding is supported May 10 15:51:03 so like I said, a lot of spare time :p May 10 15:51:28 linux doesn't require much spare time if you know how to use it May 10 15:51:40 storkme: im not that old but grew up on DOS and went to college for network admin May 10 15:52:59 array daten isnt null May 10 15:53:03 but i have alot of older computers i either redo and sell or my old Dual Xeon Processor machines :) running as servers May 10 15:53:06 so what could be null? May 10 15:53:11 has there been any info on which US carriers will have the GS3? May 10 15:53:46 knowing how to use it is where the 'spare time' part comes in May 10 15:53:59 storkme: is that not true with any technology? May 10 15:54:22 except the ones that for the most part 'just work' May 10 15:55:32 storkme: Ubuntu is a novice linux that is easy to learn and at anytime there are 1500 ppl in the channel to provide free support May 10 15:56:06 i think the fact that there are 1500 people in the support channel says something about how easy to learn it is May 10 15:56:52 storkme: most of them know what there doing and arnt noob. Ive been there to help a number of times but now its time to learn android :) for monitary purposes :) May 10 15:57:16 heh May 10 15:57:16 But my next computer will be a mac airbook :) May 10 15:57:21 'the blind leading the blind' May 10 15:57:47 not at all ive seen more noobs in windows channels and Cisco Channels May 10 15:58:13 My windows XP is not working lmao 12 yr old OS of course computers are so cheap today May 10 15:58:15 anyone know of any good remote server monitoring tools? my web server had a kernel panic and i didnt notice for like 16 hours that it was dead =\ May 10 15:58:27 just something to text me if its down for 10 mins May 10 15:59:43 canadiancow|work: you can always VPN into it or ssh into it if you suspect it is down :/ to get a text u would need a text provider over the web May 10 16:00:04 i want to pay for some other person to monitor my server May 10 16:00:08 i didnt suspect it was down May 10 16:00:11 i had no idea May 10 16:00:15 until i tried to access a site on it May 10 16:00:29 then it took me 2 seconds to fix May 10 16:00:30 nagios is what we use May 10 16:00:36 i dont have another server May 10 16:00:43 i need a third party service May 10 16:00:54 i'm sure some people run hosted nagios services May 10 16:00:59 pingdom May 10 16:01:04 maybe your SP could recommend someone May 10 16:01:15 SP? May 10 16:01:27 Service Provider May 10 16:01:30 ^^ May 10 16:01:42 $10/month for pingdom May 10 16:02:08 there u go May 10 16:02:10 hmm May 10 16:02:21 thats a lot for ... a couple pings May 10 16:02:33 I just run my locally as Dev and file servers May 10 16:02:35 they have a free plan May 10 16:02:42 oh May 10 16:02:44 totally missed that May 10 16:02:45 lolo May 10 16:03:32 What is the best approach to building a soap client on android? May 10 16:03:48 10000/30/8 hours days and pings a day doesnt work out to much May 10 16:04:35 dollars :/ days and pings May 10 16:06:32 Broadcast receivers defined in an activity inside a tab does not work. Is this observed by someone else before? May 10 16:06:39 hi, any sony smartwatch developper here ? I have trouble setting up the sdk :( May 10 16:24:07 why can't I make an ArrayList May 10 16:24:24 what does the compiler say about it May 10 16:24:43 I'd *guess* because long is one of Java's non-object basic types, whatever they're called May 10 16:24:49 Syntax error on token "long", Dimensions expected after this token May 10 16:25:10 use Long instead May 10 16:25:12 dem primitive types May 10 16:25:22 hesperaux: should it be ArrayList May 10 16:25:29 doogan: that's the word, thanks :) May 10 16:25:30 you can't use primitive types (directly) in java collections May 10 16:25:43 ok thank you May 10 16:29:15 The method put(Long) is undefined for the type ArrayList May 10 16:29:32 D: i can't insert Long objects into the ArrayList. What am I missing? May 10 16:29:54 you're wrong May 10 16:30:12 that's good May 10 16:30:17 have you checked the docs? May 10 16:30:25 for ArrayList? May 10 16:30:31 well, technically for List May 10 16:30:35 but ArrayList docs will work well too May 10 16:30:50 or even Collection May 10 16:32:43 you don't 'put' on a list May 10 16:32:47 read the documentation May 10 16:32:54 lol i'm retarded. It's not put(), it's add() May 10 16:32:58 pfn, yep May 10 16:33:08 i was confusing it with ContentValues >_< May 10 16:36:07 I'm having a problem with command-line arguments being too long with the android NDK May 10 16:36:30 the standard solution seems to be to echo these to a file and load them in, but the make code I copy/pasted from the solutions doesn't seem to work properly May 10 16:36:37 the echo command is not behaving as expected May 10 16:45:13 hi all! May 10 16:47:16 I have a method that accepts Objects as parameters. What Exception will be thrown if the Object passed in is not able to be handled in my method? May 10 16:47:47 hesperaux, depends on what you're doing May 10 16:48:05 i'm expecting the Object to be an int, a long, or a String May 10 16:48:15 i'm putting this object into a database query May 10 16:48:32 but if something else should be passed to it, I'd like it to catch the exception May 10 16:48:36 why not make three methods? May 10 16:48:42 can i call static method of another class from doInBackground method of subclass of AsyncTask? May 10 16:48:57 f May 10 16:49:10 slavabulgakov, yes May 10 16:49:19 jeppy, i'd prefer the freedom to specify any field in my database with a corresponding value in that Object with one method May 10 16:50:49 this method is returning the number of entries in the database that match a given search term; in this case, the search term is the field name and field value. the fields obviously have a couple of possible data types May 10 16:51:01 jeppy: why i have error in ClassLoader.java? May 10 16:51:54 Broadcast receivers defined in an activity inside a tab does not work. Is there any way to make this work? May 10 16:52:17 hesperaux, it would probably be better to use method overloading, but you could try to cast the Object to each type and catch ClassCastExceptions May 10 16:52:23 define "does not work" May 10 16:52:41 pfn: It does not receive broadcasts May 10 16:52:43 jeppy, if i'm doing that though, i'm basically writing three methods in one =/ May 10 16:52:59 pfn *it = The activity inside the tab May 10 16:53:15 the method is working fine as is, and it catches generic Exceptions. I might leave it at that May 10 16:53:25 slavabulgakov, becuase you're doing something wrong? May 10 16:53:57 slavabulgakov, http://imgur.com/jacoj May 10 16:54:00 napster, then you need to register the receiver May 10 16:54:04 of course it receives broadcasts May 10 16:54:13 napster, and nesting activities in tabs ftl May 10 16:54:29 pfn: I have registered it inside onResume() May 10 16:54:39 then it will receive the broadcast May 10 16:54:57 pfn: ok, let me digg more on it then May 10 17:01:04 anyone have much experince with serializable? May 10 17:01:33 only parcelable May 10 17:01:41 im getting, when adding a serialziable object to an intent "Parcelable encounteredClassNotFoundException reading a Serializable" May 10 17:02:30 i dont appear to have any ill effects, i mean its working, just thats being thrown May 10 17:02:50 any info form the google? May 10 17:02:58 perhaps it's "normal" May 10 17:03:01 nope May 10 17:03:21 ive seen the warning on google form searching, but no apply May 10 17:04:43 i got nothin May 10 17:05:17 * Jug6ernaut guesses he will try Parcelable May 10 17:06:13 i hear parcelable is all the rage anyway May 10 17:06:20 lol May 10 17:06:26 i mean serializable is working fine May 10 17:06:31 minus that warning lol May 10 17:09:32 serialize the parcelable May 10 17:10:18 canadiancow|work help me! May 10 17:10:23 what does it mean! May 10 17:10:43 i dont know May 10 17:10:44 lmgtfy May 10 17:11:33 on parcelable, do i just parsel.write all my variables? May 10 17:11:49 & do they magically get filled when when i get it later? lol May 10 17:11:55 * Jug6ernaut does not understand May 10 17:12:34 implement parcelable.creator May 10 17:12:38 try reading the docs :3 May 10 17:12:46 snap May 10 17:13:40 storkme /me is May 10 17:14:34 http://pastebin.com/FdK6xaVE whats the issue ugh :( May 10 17:27:21 anyone have issues with using google as payment processor for app sales on Google Play? is there any option that qualifies as 'better'? May 10 17:27:39 there is no option May 10 17:29:07 http://pastebin.com/FdK6xaVE whats the issue ugh :( May 10 17:29:19 haven't completed sign up, but the documentation makes it appear you can use others. I had assumed paypal. May 10 17:29:27 opens and closes nothing in log cat May 10 17:31:35 got 16 gigs of ram, think im gonna setup my development environment in a vm now May 10 17:32:12 you're RAM is excessive, i'm going to have to confiscate some May 10 17:32:26 my dev env has always been in a vm May 10 17:32:55 disk IO is really the bottleneck when building May 10 17:33:02 watch out for that May 10 17:33:07 or work on small projects :P May 10 17:35:04 what's the advantage of having development in a VM? May 10 17:35:23 I've never really understood all the VM rage May 10 17:35:52 VMs are great because you can pretty much destroy them May 10 17:35:59 and compromise the security of it without damaging your host May 10 17:36:11 you can also copy VMs and start from scratch May 10 17:36:14 that happen a lot in development? May 10 17:36:22 it depends on what kind of development you are doing May 10 17:36:39 i use VMs for testing, only on rare occasion for dev May 10 17:36:45 ^^^^ May 10 17:36:50 VMs are mostly for testing May 10 17:36:51 yeah testing I can understand May 10 17:36:53 samsung drivers <--- shit show May 10 17:37:00 heh May 10 17:37:05 there's a lot of uses for VMs May 10 17:37:09 i use linux on a VM May 10 17:38:00 yeah that sort of thing I get, but like.. some eople run pretty much a VM for every program they run May 10 17:38:24 some people are excessive, like mikedg's RAM :P May 10 17:38:37 well.. I have 8GB myself.. :P May 10 17:39:06 I'm having issues with a surfaceView. I've got a fragment that contains a few potential layouts depending on the type of the object it accepts as a parameter upon initialization. If the type (of my own creation) is of type media, I hide the other layouts and setvisibility(visible) to the scrollview containing the surfaceview. The fragment implements SurfaceHolder.Callback, but the May 10 17:39:06 surfaceCreated callback is never being called May 10 17:39:11 hello May 10 17:40:53 Evening May 10 17:41:14 PrivateAlpha: i wish May 10 17:41:21 its 10:41 am May 10 17:41:37 Its 19:41 here :P May 10 17:41:40 if it were evening i would be at google having drinks and snacks and talking about android and wallet May 10 17:41:55 @google? May 10 17:42:25 a little developer tech talk thing tonight May 10 17:43:10 sweet wish I could be there May 10 17:50:46 hello May 10 17:52:10 is there any means to get a more detailed error out of SQLiteDatabase when there's a constraint failure? "19: constraint failure" isn't very helpful. May 10 18:08:45 my google tv keeps disconnecting when i do adb connect IP May 10 18:08:51 it connects for a fraction of a second, then disconnects May 10 18:09:29 are you just trying to rub it in that you have a google TV ;) May 10 18:09:40 no... May 10 18:09:47 lol May 10 18:09:48 lol May 10 18:10:22 i have 4... that probably means i own about 10% of all google tvs sold May 10 18:10:30 probably May 10 18:11:22 i only have 3 May 10 18:11:24 :P May 10 18:11:34 tbf, i only bought 2 :) May 10 18:11:45 i bought 0 May 10 18:11:53 ok, you win May 10 18:11:54 so any idea why i cant connect to it with adb? May 10 18:12:08 it says "connected", but then it immediately disconnects May 10 18:12:09 adb connect always works for me, i dunno May 10 18:12:19 did you set the ip address on the google tv? May 10 18:12:22 yea May 10 18:12:26 the debugger ip May 10 18:12:28 yea May 10 18:12:34 hmm, reboot? May 10 18:12:39 tried it May 10 18:13:24 i dunno, never had a problem with adb remote dropping a connection May 10 18:14:33 shouldn't you be at work anyway :P May 10 18:14:43 or is this a testing device May 10 18:15:58 ive got a google tv on my desk at home and office May 10 18:16:17 crazy talk May 10 18:16:32 need proof? May 10 18:16:40 no, that's ok May 10 18:16:46 lol May 10 18:16:52 right now i have an iphone 4s, nexus one,galaxy nexus, galaxy tab 10.1, and revue on my desk May 10 18:16:59 and everything but the iphone is being used May 10 18:17:08 i lost my iphone May 10 18:17:19 probably better off ;) May 10 18:17:30 i have galaxy nexus, nexus s, g1, tab 10.1 and revue May 10 18:18:05 i let someone borrow the iphone for testing and never saw it again, but i dont do ios anymore, thank god for that May 10 18:18:46 Has anyone here had problems with calling setresult() and finish() in an activity started with startActivityForResult() not calling onActivityResult() in the parent activity? May 10 18:18:51 It keeps happening to me May 10 18:21:22 krang: what flags do you have for your activity? May 10 18:21:36 birbeck: I haven't set any May 10 18:21:41 hmm May 10 18:21:58 fucking balls May 10 18:22:00 it's a memory-intensive subactivity, so I'm assuming the parent dies May 10 18:22:03 why wont it just let anything connect to it for adb May 10 18:22:08 * hackkitten hands canadiancow|work fuzzy balls~ May 10 18:22:55 krang: thats possible May 10 18:23:29 birbeck: It definitely works some of the time, and when it doesn, onActivityResult() is *not* being called in the parent May 10 18:23:39 s/doesn/doesn't May 10 18:23:58 Anyone using like facebook dialog in their app? For posting May 10 18:24:13 Three users have reported that the dialog language is another language they havent chosen :/ May 10 18:26:32 can someone tell me what im doing wrong here? http://nopaste.info/1a0c043433.html May 10 18:26:38 can someone tell me what im doing wrong here? http://nopaste.info/1a0c043433.html May 10 18:26:42 sorry May 10 18:28:09 Caused by: java.lang.NullPointerException at com.android.tabelle.Helper.updateData(Helper.java:53) May 10 18:28:36 ANyway, more things that's wrong May 10 18:28:40 You're not calling setContentView May 10 18:28:51 You're not using the id @android:id/list like ListActivity requires May 10 18:29:30 what he said May 10 18:29:47 hello all May 10 18:29:54 hello May 10 18:30:03 if you arent using a custom layout (setContentView) then you need to use android.R.id.list. or rather just setListAdapter() May 10 18:30:13 also, dont use com.android namespace May 10 18:30:16 how do you get the ip address of the gtv T_T May 10 18:30:22 and the exception isnt happening in your pasted code May 10 18:30:25 im trying to use my own layout birbeck May 10 18:30:43 i'm trying to build phone call voice changer/audio filter app May 10 18:31:00 i have asked the same question in stackoverflow May 10 18:31:02 http://developer.android.com/reference/android/app/ListActivity.html "To do this, your own view MUST contain a ListView object with the id "@android:id/list"" May 10 18:31:04 vorwaerts: then you need to call setContentView(R.layout.my_layout) after super.onCreate() May 10 18:31:18 canadiancow|work: in the network settings May 10 18:31:28 i know you can record the buffer of a live phone call May 10 18:31:34 no i mean May 10 18:31:36 programatically May 10 18:31:37 i have an app that does that May 10 18:31:50 oh, uh May 10 18:32:02 hmm, if apple comes out ith this $200-$250 7" iPad, it seems to be to squash any android tablets that could gain a footing on the low end May 10 18:32:05 getActiveNetworkInfo()? May 10 18:32:17 october May 10 18:32:21 can you tell me if this can be done? May 10 18:32:41 g00s: dont make me laugh May 10 18:32:56 birbeck: i'm glad to provide humor :D May 10 18:33:29 SimonVT and how do i find my view then? May 10 18:33:44 Permissions.PROCESS_OUTGOING_CALLS this says so May 10 18:34:01 With android.R.id.list .. or simply getListView(), since it's a ListActivity May 10 18:34:01 if it were a 7" tablet, what resolution do you think it would have... 960x540 or 1920x1080? May 10 18:35:34 birbeck: supposedly pixel density of iPhone 4s May 10 18:35:36 sorry, 960*640 or 1920*1280 May 10 18:36:06 not sure. remember what Apple did to the mp3 market about 10 years ago May 10 18:36:16 so 1920*1280... basically just doubling the size and resolution of the iphone 4/4s screen May 10 18:36:23 they priced their iCrap to leave no room for competition May 10 18:36:28 * g00s fondly remembers his iRiver May 10 18:37:09 is it possible to setup the sdk and eclipse with the adt on a thumbdrive like portableapps? May 10 18:37:09 mp3 player is clutter now May 10 18:37:33 hm, so android.text.format.DateUtils.formatDateTime shows am/pm lowecase by default, but the 'a' specfier for SimpleDateFormat shows it in upper case. FORMAP_CAP_AMPM is doscouraged for use though, weird May 10 18:37:38 i doubt the will find a 1920x1280 7" ips display that fits a $200-$250 price range May 10 18:39:02 LiENUS: you could always put ubuntu + java + eclipse + adt on a bootable usb drive May 10 18:39:11 birbeck, activenetworkinfo doesnt seem to give me an IP May 10 18:39:26 lmgtfy May 10 18:39:34 its possible May 10 18:39:35 birbeck, its for a buddy of mine to use in downtime when hes at work, he needs photoshop May 10 18:41:33 canadiancow|work: im thinking of location, not networking, oops May 10 18:42:02 LiENUS: i would recommend a virtual machine on a usb drive then May 10 18:42:19 though android emulator in a vm is not going to be very usable May 10 18:42:33 i can get the wifi IP easily-ish May 10 18:42:38 but my gtv uses ethernet :S May 10 18:47:09 SimonVT i now got http://nopaste.info/a880819f5d.html but i dont get my list May 10 18:48:29 SimonVT you're smart :) May 10 18:48:34 how do i get the ip address of my google tv :) May 10 18:48:53 You check your router for connected devices May 10 18:48:55 damn there was a gtv dev hangout yesterday wasnt there May 10 18:48:56 Rule out your pc's May 10 18:48:57 :p May 10 18:48:59 PROGRAMATICALLY T_T May 10 18:49:02 i KNOW the ip May 10 18:49:04 hmm, i never heard of this before. i wonder if anyone would find it useful http://www.h-online.com/open/news/item/Vert-x-offers-event-driven-framework-for-the-JVM-1572950.html May 10 18:49:10 I DONT KNOW May 10 18:49:12 (on android) May 10 18:49:21 vorwaerts: Could that have anything to do with your app crashing May 10 18:49:25 Might want to fix that May 10 18:49:42 SimonVT my app crahes, yes May 10 18:49:51 i coulda sworn android sdk use to come as just a zip file no installer and installed everything in its own dir May 10 18:49:54 so you could drag it wherever :/ May 10 18:50:17 vorwaerts: Read your stack trace.. A NPE is happening.. It even tells you where May 10 18:50:22 Fix that May 10 18:50:28 canadiancow|work: Legitimately, or hackishly? May 10 18:50:46 SimonVT helper.class:53 ? May 10 18:50:53 Yeeep May 10 18:51:48 dragorn: legit May 10 18:52:51 canadiancow|work: I do not know May 10 18:54:05 canadiancow|work: hack, JNI to run SIOCGIFADDR May 10 18:54:05 Comscore has begun measuring mobile usage for Apple's iOS, Google's Android and Research in Motion's BlackBerry on sites like Facebook. Facebook commands most of smartphone users' time, according to ComScore. Other popular services are Foursquare with 146 minutes, microblogging service Twitter with 114 minutes and Tumblr with 68 minutes. May 10 18:54:36 hmm, so if i am reading this right, people spend most of their time in fb ? May 10 18:54:47 i feel sorry for these people :) May 10 18:55:05 MUST STALK MOAR!!1 May 10 18:55:54 any easy way to get the ics style timepicker on 2.x ? May 10 18:57:42 https://github.com/SimonVT/android-timepicker May 10 18:59:04 i thougt it was weird NumberPicker was not available much earlier May 10 18:59:18 SimonVT to the rescus, another hero ! May 10 18:59:22 *rescue May 10 18:59:41 apparently it was introduced with Honeycomb May 10 18:59:52 i think it was internal before then May 10 18:59:57 ahh May 10 19:00:18 it was May 10 19:01:04 SimonVT, you are a pimp May 10 19:01:12 its clone time May 10 19:01:47 no pimping in #android-dev May 10 19:01:59 should be easy enough to remove the am/pm stuff, right? dont need that... May 10 19:03:10 Sure May 10 19:03:39 Why not just create your own dialog using the numberpicker then May 10 19:03:50 is there an easy way to keepScreenOn accross all activites in app? May 10 19:04:34 and using a 'WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON' is a good way? May 10 19:05:17 dragorn, you cant use JNI on google tv, can you? May 10 19:05:54 SimonVT, true May 10 19:07:08 canadiancow: it's intel, right? May 10 19:07:20 ? May 10 19:07:25 canadiancow: the ndk supports it now, set platform to all and it'll generate arm, arm-neon, intel May 10 19:07:25 google tv does not support the ndk May 10 19:07:26 Intel Atom, yes May 10 19:07:36 [15:07:25] google tv does not support the ndk May 10 19:07:38 you can run x86 JNI code on it May 10 19:07:49 since when? May 10 19:07:58 since… like NDK 6 or something May 10 19:07:58 did they explicitly block native code, or does it "not work" because almost all native code is arm? May 10 19:08:12 https://developers.google.com/tv/faq#androidndk May 10 19:08:15 Can I use the Android NDK to write apps for Google TV? May 10 19:08:15 The Android NDK is not currently supported on Google TV. May 10 19:08:23 and according to devrel, it will never be supported May 10 19:08:27 really? weird May 10 19:08:46 SimonVT hmm trying to use the your project as library project and intellij is complaining it cant find it May 10 19:09:00 why did they bother adding x86 support to the NDK then? May 10 19:09:05 "not supported" is different from "blocked" May 10 19:09:08 for x86 phones? May 10 19:09:10 and tablets? May 10 19:09:28 luxurymode: I made the library in intellij, so..:p May 10 19:09:36 hmm May 10 19:09:43 dependencies can be annoying sometimes May 10 19:09:49 I'd try making a simple ndk app w/ the ndk set to compile for all platforms May 10 19:09:54 and see what happens May 10 19:09:55 i created a new module from existing sources and added it to my project as module dependency May 10 19:10:04 yeah, I guess May 10 19:10:06 It depends on my android-numberpicker library May 10 19:10:07 i hate when it does this May 10 19:10:12 ah May 10 19:10:12 Which depends on JakeWhartons NineOldAndroids May 10 19:10:24 ok so i already have nineoldandroids in my other dependency May 10 19:10:28 Lots of dependencies to do pretty stuff :p May 10 19:10:33 so i'll need to grab your numberpicker May 10 19:10:37 Yeah May 10 19:10:45 TimePicker is just 3 NumberPickers May 10 19:10:48 And some code May 10 19:11:10 " Currently, Google TV does not support NDK. The Android NDK will be available for Google TV at a future date" May 10 19:11:38 that contradicts devrel May 10 19:12:33 time travel May 10 19:15:19 SimonVT, hate when intellij tells me the package doesnt exist May 10 19:15:28 yet i can command + b on it and navigat straight to it May 10 19:15:36 haha May 10 19:15:50 not sure whats wrong now… have time picker depending on numberpicker and my project depending on timepicker May 10 19:16:01 and number picker depending on nineoldandroids May 10 19:16:13 though i already have NOA in my path because of my other dependency May 10 19:16:19 but shouldnt matter unless i export May 10 19:16:31 and intellij isnt compaling that it was already added so i dont think thats the problem... May 10 19:17:27 http://cl.ly/3b2l1h2R1B393m0Q0E22 May 10 19:17:54 Did you add timepicker to your main project? :p May 10 19:18:03 I have this facebook dialog in my app, nothing fancy. Like the guide. No settings or so. Some users report the language they get in the dialog as Finnish, and they are Swedes. May 10 19:18:18 Haven't noticed it myself. Anyone encountered that? May 10 19:20:17 quick n dirty way to run my app in another apps process? May 10 19:21:01 yup May 10 19:21:16 how? ^^ May 10 19:21:20 Hello, i get an error I cannot figure out when I start a new activity. I have no button set in the java file, only in the XML. Here is a pastebin of the stacktrace if anyone gets wiser from that: http://pastebin.com/6mQDguMZ May 10 19:21:20 Cor3_: what is your goal from the perspective of the user May 10 19:21:33 the user who will not be thinking about 'processes' will see? May 10 19:22:15 Wanna send multiple WhatsApp Messages without going through the ContactPicker for every message May 10 19:22:54 afaik whatsapp is just XMPP. you should grab smack and write your own simple XMPP tool. May 10 19:23:03 i've worked with xmpp before and it's fairly easy to use. May 10 19:23:15 when i extend ListActivity and use getItemListe() how do i set an onclickevent? May 10 19:23:40 Sounds okay, gonna look into that. Thanks. :> May 10 19:23:41 SimonVT, if all else fails just restart intellij. that worked... May 10 19:23:48 Haha May 10 19:23:50 Cor3_: sure, we are here if you get stuck. May 10 19:23:52 Just like eclipse May 10 19:24:03 getItemList().setOnClickListener() doesnt work - it tells me to use onListItemClick but getItemList doesnt has this method May 10 19:24:04 haha except the dialog looks completely messed up May 10 19:24:05 lol May 10 19:24:09 appreciate that. :P May 10 19:24:13 forgot to add the themes May 10 19:24:14 :) May 10 19:24:20 Yeah May 10 19:25:32 lets try this again May 10 19:26:38 hmm no dice May 10 19:27:38 maybe cause im in a AsyncTask? May 10 19:30:13 how do i set onlistitemclick() to the adapter in line 77? http://nopaste.info/00b1080539.html May 10 19:32:55 I'm having trouble getting eclipse to run my app on my phone. Sometimes it works, but sometimes it doesn't even ask if I want to use the phone, and just starts the emulator instead May 10 19:33:09 SimonVT, looking good. What do I need to do to change the timepicker to use the light holo theme? tried setting style on the dialogfragment itself to R.style.Theme_Sherlock_Light_Dialog …but i think that makes no sense. lol. styles hurt my brain May 10 19:33:26 SimonVT, i mean this style: http://cl.ly/322k0b1a0j3r3m1B3Z0s May 10 19:33:41 hey y'all May 10 19:33:48 what's currently the most popular android device? May 10 19:33:55 luxurymode: Just use the holo theme in your app, it should look like that May 10 19:34:38 currently using Theme.Sherlock.Light.DarkActionBar May 10 19:35:48 and i need to use some sort of ABS theme, right? May 10 19:35:53 confused about how to get holo May 10 19:35:59 It'll use the holo theme on 3.0+ May 10 19:36:03 That's the only devices with holo May 10 19:37:11 right, so how can i get that look ^ on 2.x devices? May 10 19:37:25 mheld: http://developer.android.com/resources/dashboard/platform-versions.html May 10 19:37:51 doesn't whatsapp require some sort of authentication? May 10 19:38:04 oh i guess i need Theme.SherLock.Light.Holo... May 10 19:38:14 I don't style the dialog itself May 10 19:38:17 That's up to you May 10 19:38:45 eh, i just made that up lol May 10 19:39:54 I use Theme.Dialog.Alert on <3.0 May 10 19:40:08 It's defined in the library May 10 19:40:24 You can add styling to that theme I guess May 10 19:40:28 Not really sure how to style a dialog May 10 19:42:08 I get an error I cannot figure out when I start a new activity. I have no button set in the java file, only in the XML. Here is a pastebin of the stacktrace if anyone gets wiser from that: http://pastebin.com/6mQDguMZ May 10 19:42:21 gotcha, thanks. looking at the code right now. im just always confused about styling/theming. im like "do i apply a style to the widget itself in time_picker_dialog.xml or in the manifest or in the dialogfragment class... May 10 19:42:28 it seems like the button im my xml file is not working, and i am pretty sure it has something to do with the layout May 10 19:43:07 se.zarac.simon.malmospanarendeluxe.ReportCommentActivity.onCreate(ReportCommentActivity.java:25) May 10 19:43:10 its on line 25 May 10 19:43:17 you probably cast a view up to button that isn't a button. May 10 19:43:27 or you just need to build clean. May 10 19:43:48 readme: Are you sure it's a) possible to send WA messages from an external app and b) its easier than finding a way to run the app in WA's process? :O May 10 19:44:00 kaspuh: A pastebin of the code would help, too. May 10 19:44:15 Cor3_: can whatsapp message google talk? May 10 19:44:37 Not that I would kno May 10 19:44:46 Cor3_: if you want you can script apps with robotium. May 10 19:44:56 but I think it's probably XMPP. I'd look into that further. May 10 19:45:07 Robotium is for UI Unit tests, though. May 10 19:45:23 I doubt Cor3_ knows what unit tests are :) May 10 19:45:30 cooldman224: gracias, but I'm looking for specific phones May 10 19:45:41 cooldman224: like the galaxy nexus May 10 19:45:44 doubt that too May 10 19:45:44 readme - that's an ImageView that I am casting to an ImageView May 10 19:45:46 on verizon May 10 19:45:54 kaspuh: show code May 10 19:46:00 readme sec :) May 10 19:46:06 mheld, de nada but I dont think that information is provided by Google, May 10 19:46:11 kaspuh: apparently it's not, if you're getting a class cast exception. whether it's a problem with your build or whatever. May 10 19:46:24 sometimes the resources get messed up and build clean fixes it. May 10 19:48:06 so, are the unlocked galaxy nexus phones not LTE compatable? May 10 19:48:15 I see that they do hspa+ May 10 19:48:42 but does the carrier subsidized version have different hardware or something? May 10 19:48:43 mheld: I have the feeling that you ask for X, but really want to know Y. May 10 19:48:47 readme - javafile - http://pastebin.com/nwCBxu3K , xml file - http://pastebin.com/cj8HXEuX May 10 19:48:59 kakazza: these are two different questions May 10 19:49:25 kaspuh: did you build clean and test again May 10 19:49:50 I want to know what the most-used android device is (or probably will be) -- and (assuming it's the galaxy nexus) why does the hardware look different between the locked and unlocked ones May 10 19:50:57 I doubt it's the Galaxy Nexus though. I'd think Galaxy S II. But real numbers are not provided, I'm afraid. May 10 19:51:51 readme - thank you very much. I guess eclipse doesn't build/clean automatically always? May 10 19:52:04 nah you have to do itr May 10 19:52:06 maybe not by google, but I'd gladly use another data source as a proxy May 10 19:52:17 basically first thing to do when you see classcastexception :) May 10 19:52:26 :) i learned now May 10 19:52:31 ok. May 10 19:52:35 thanks again May 10 19:52:44 i will be back in a littlebit, my wife needs feeding May 10 19:53:51 mheld: Not trying to tell you "you don't need that", just curious, why do you care about a specific hardware model more than platform version? May 10 19:55:30 kakazza: because hardware generally dictates what's actually installed on the device by default (which is more than just the OS, it's the crap ton of stuff that the carriers + manufacturers put on) May 10 19:56:12 I think Google has a list of things that _have_ to be installed, if you care about that and plan to develop against a certain set of existing software. May 10 19:56:12 depends on the country, I guess. May 10 19:57:56 I definitelyu wouldn't think the galnex is the most popular device right now May 10 19:58:02 maybe the razr, maybe the gal2 May 10 19:58:26 you can search flickr by exif, right? May 10 19:58:31 not many non-devs have the galaxy nexus May 10 19:58:34 try looking for phone types in there May 10 19:59:15 Never seen a RAZR in the wild. Galaxy SII, Galaxy Note a lot. May 10 20:10:36 this might just be me being a java newb but i'm trying to override the trackMotionScroll method in the gallery widget May 10 20:10:37 https://gist.github.com/2648486 May 10 20:10:45 i appear to clearly be doing it wrong May 10 20:11:03 like for instance, line 22 has an error May 10 20:11:11 getLimitedMotionScrollAmount doesnt exist May 10 20:11:17 even if i throw a super. in front of it May 10 20:14:32 dandaman: where is that method declared? May 10 20:15:02 wongk: in the Gallery class May 10 20:15:21 dandaman: chrome is not finding it here: http://developer.android.com/reference/android/widget/Gallery.html May 10 20:16:20 wongk: its not a public method May 10 20:16:36 if you look in Gallery.java it's there May 10 20:16:44 I hate WhatsApp for not allowing me to SEND_MULTIPLE. Gotta get some sleep. bb May 10 20:17:16 it's private May 10 20:18:11 wongk: it isn't specified, that means it defaults to protected, right? May 10 20:18:20 http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html May 10 20:18:25 not exactly May 10 20:18:30 package private May 10 20:18:40 oh, ok May 10 20:18:59 would that be the reason why i'm gettting a getLimitedMotionScrollAmount is undefined error? May 10 20:19:31 i would think it would be an error related to the access level May 10 20:19:51 well, most likely it's saying it cannot see the method May 10 20:19:51 easy to test May 10 20:19:56 which makes sense May 10 20:20:09 Ootiniii: how do i get around that? May 10 20:20:28 I need to tweak this method slightly May 10 20:20:47 reflection maybe, but that's always… a very risky decision May 10 20:21:15 you don't get around it May 10 20:21:20 it's that way for a reason :P May 10 20:21:34 i would agree with wongk May 10 20:22:46 damnit, im screwed May 10 20:23:50 i need to make the gallery stop at a certain position May 10 20:24:02 because if you scroll to the end, you see white space May 10 20:28:56 im launching an intent from a on boot receiver, how can i set the right class loader for what gets launched from the intent? I am adding a serializeable object to it and it is being received right but its throwing a warning that it cant find the class May 10 20:29:48 ive tried intent.setExtrasClassLoader() but still throwing the warning May 10 20:30:30 are these separate applications? May 10 20:30:37 how can i use an alarmmanger with a pending intent to start a service? i normally start my service with startService(new Intent("whatever")) May 10 20:31:53 luxurymode: see http://developer.android.com/reference/android/app/PendingIntent.html#getService(android.content.Context, int, android.content.Intent, int) May 10 20:32:22 wongk no, but the on boot receiver as i understand it is not included in the application so different classloader May 10 20:32:31 oh ok so just set the class directly in there and setaction...? May 10 20:33:08 luxurymode: i believe so May 10 20:33:14 sounds good May 10 20:33:15 thanks May 10 20:33:57 huhwhat? May 10 20:34:12 Jug6ernaut: a BroadcastReceiver is a part of the application May 10 20:34:23 Jug6ernaut, what is the exact warning, log + context => pastebin May 10 20:34:30 pfn 1 sec May 10 20:34:42 if you're using a serializable, classloader is irrelevant May 10 20:34:59 assuming you've got the same class object on both sides of the serialization May 10 20:35:34 luxurymode, why would you launch a service from a notification, that's counterintuitive May 10 20:35:38 luxurymode, i.e. wrong May 10 20:35:57 pfn, its not a notification May 10 20:36:05 oh, alarm manager pending intent May 10 20:36:08 my bad May 10 20:36:12 im scheduling something to basically stop playback in a mediaplyaer in my service May 10 20:36:15 heard PI, assumed notification May 10 20:36:19 http://justpaste.it/z4w May 10 20:36:19 haha no May 10 20:37:50 Jug6ernaut, sounds like the problem is that it's being read somewhere that is not in context of your application May 10 20:37:52 pfn, its a on boot receiver, which launches an intentservice, that then goes and schedules events via alarm manager pass a serializable object in the intents, the warnings seem to come when the alarm events fire and retrieving the objects May 10 20:38:34 interesting that the alarmmanger is trying to read the bundle May 10 20:38:54 pfn: sorry, yesterday we were talking about robeletric & stuff and i had to run. anyhow, here is a link to harmon'y defect tracker, as you will notice there are over 670 critical and major issues in h5/h6; of course not all of these components exist in android, and its likely that google has patched many themselved. anyhow, its not likely i'll convince you of anything by this, but just wanted to provide more concrete reason why i would u May 10 20:38:55 test on harmony only; i think its different enough ;) May 10 20:39:04 https://issues.apache.org/jira/browse/HARMONY#selectedTab=com.atlassian.jira.plugin.system.project%3Aissues-panel May 10 20:39:23 g00s, really not a big deal still May 10 20:39:35 pfn like i said its working, gets teh object correctly. just throwing the warning May 10 20:40:11 Jug6ernaut, maybe a googler can answer that better, doubt you'll be able to quiesce those warnings May 10 20:40:25 k May 10 20:40:40 o well May 10 20:41:19 interesting that as a part of putAll, it needs to unparcel May 10 20:41:21 * pfn shrugs May 10 20:41:26 Jug6ernaut: whatever happened to your "port" to Parcelable? May 10 20:42:01 ugh, getting robolectric running as a scalatest suite is a pain in the ass, unless I don't want to use traits like beforeandafterall May 10 20:42:04 wongk, it did the exact same thing May 10 20:42:09 which I need, since it takes damn near forever May 10 20:42:16 so i just went back to serializable as it is much simpler lol May 10 20:42:21 Jug6ernaut: did you change it back? May 10 20:42:26 yea May 10 20:42:33 everything i've read says Parcelable is better May 10 20:42:47 parcelable is better, just cumbersome to write May 10 20:42:53 no doubt May 10 20:43:01 i dont doubt it is May 10 20:43:13 but for my case i doubt it makes much of a difference(i could be wrong) May 10 20:43:23 you are probably right May 10 20:43:24 but my object is like 3 strings 10-20chars May 10 20:43:37 it wouldn't be hard to write a code generator for parcelable May 10 20:43:44 if only one of us would do it :) May 10 20:43:45 where can i unregisterreceivers inside of a service? May 10 20:43:49 readme: let us know when you finish =] May 10 20:43:49 in onUnbind? May 10 20:44:06 where can you or where should you? May 10 20:44:09 i wonder on modern android devices, if parcelable vs serializable still matters May 10 20:44:21 one of those early design decisions ... May 10 20:44:32 Jug6ernaut, where should i… im used to activities where i just do it onpause or whatever.... May 10 20:44:34 for lots of data, and frequent use, probably no contest still May 10 20:44:45 but for more one off things, maybe its not so bad any more May 10 20:44:47 at a startup I worked at when I was first learning android, I used serializable to save some data May 10 20:45:09 i came back to work there a bit and went into the old code that a new engineer that came after me had worked on and it was full of comments on why serializable was bad ;P May 10 20:45:22 oh i guess onDestroy May 10 20:45:25 I should have saved em May 10 20:45:50 dianne have the full discourse on why serializable was bad; its somewhere on so or google groups May 10 20:46:00 then again, that wasn't for serialization between activities, but for saving persistent data May 10 20:46:00 i cannever find shit on google groups any more May 10 20:46:17 question about GREFs in JNI: i know i would ref leak if i create and object and not free it, but what if i am returning a new object to java side, will GC clean it up? eg: return (*env)->NewStringUTF (env, hashString); May 10 20:46:19 g00s link! May 10 20:46:20 g00s: http://stackoverflow.com/questions/10541840/git-has-ruined-my-android-project lol May 10 20:46:35 was that asked by g00s? heh May 10 20:46:45 lol readme May 10 20:46:48 huh, got i hope you guys don't think i'm sthat stupid May 10 20:46:55 it's not you g00s, it's lukeyb May 10 20:47:15 welll i hearhg kills iOS projects soo ... May 10 20:47:19 *hg May 10 20:47:20 XD May 10 20:49:51 Joda is amazing. DateTime alarm = timer.plusHours(hour).plusMinutes(minute).withSecondOfMinute(0).withMillisOfSecond(0); May 10 20:49:52 i might sign up for SO just so i can comment on how awesome this thread is May 10 20:49:57 i still have yet to be adversely affected by git May 10 20:50:24 tbh, version control systems are just a tool. The real important thing here is the level of care you put in to using them. May 10 20:50:31 you've never accidentally rebased against the wrong upstream master, and then pushed the result to the canonical depot :) May 10 20:50:51 i dont even know what that means May 10 20:50:51 i used to screw up SVN a long time ago May 10 20:51:00 ctate and lov, fight about p4! May 10 20:51:05 heh May 10 20:51:06 This question was voluntarily removed by its author. May 10 20:51:07 get yelled at for files not committed etc May 10 20:51:17 lolol May 10 20:51:17 luxurymode: aw to bad you missed it. May 10 20:51:29 ctate: the latest version of p4 got some distributed work-offline functionality May 10 20:51:39 saw it mntioned a few weeks ago May 10 20:51:46 any way to get a google cached version? May 10 20:52:45 no, it wasn't up long enough May 10 20:52:47 it's not worth it, i think the title and fact it was deleted says it all. May 10 20:53:09 * readme has been reading so much fail this morning :P May 10 20:53:18 luxurymode: did you have this problem with joda ? http://stackoverflow.com/questions/5059663/android-java-joda-date-is-slow May 10 20:53:27 (if you've browsed HN today, you'll know what i'm referring to) May 10 20:53:29 there was no way in hell i was going to hand edit the olson tz db May 10 20:54:12 in JNI if i am returning a new object to java side, will GC clean it up or will i get ref leaks? eg: return (*env)->NewStringUTF (env, hashString); May 10 20:56:15 doldrim: I believe as long as you don't have any reservations on it in JNI it will get GCd May 10 20:57:01 doldrim: ie if you do a getstring, do a releasestring May 10 20:57:15 g00s, i soooort of had the problem so i used plowman's solution there just to be defensive May 10 20:57:59 so the reservation only has to be in native side for me to worrya bout it May 10 20:58:08 since this is a new object being returned on the stack to java, no problems May 10 20:58:14 sorry i just did this System.setProperty("org.joda.time.DateTimeZone.Provider", "org.joda.time.tz.UTCProvider"); g00s May 10 20:58:24 luxurymode: interesting May 10 20:58:45 doldrim: this is my understanding, though usually all my jni-created objects are virtually singletons. May 10 21:00:24 ok, cool, but I need to releasestring anything i getstring'd, even if it's a parameter to the JNI function, or else the native side will still hold a reference? May 10 21:00:27 i recently found out that presenting a date, time + seconds on the UI is far more difficult than i thought; DateFormat.getInstance() factories return localized stuff, but not reflecting preferences on phone like 12/24 hour or numeric date preference; yet the android helper classes return DateFormats even though they are really SimpleDateFormats, and without seconds also. May 10 21:00:50 and if you try to write your own, you then realize that all of the R.string resources and templates for these date formats are not public May 10 21:02:53 g00s, yes i used traceview and discovered that formatting date times was very intensive May 10 21:04:04 and i also discovered that jackson was a lot faster than gson ;) May 10 21:04:16 though i believe traceview takes away jit May 10 21:04:30 jackson faster than gson? hmm May 10 21:12:04 traceview does not turn off the JIT in ICS May 10 21:12:27 hey all, i just installed the trebuchet launcher, but when i try adding widgets to it I get "User 10061 does not have android.permission.BIND_APPWIDGET." any way to fix this? May 10 21:14:09 GuySoft: yeah May 10 21:14:26 that launcher app needs to add that permission to the set that it requests May 10 21:15:01 ctate, the launcher needs the permission or the widget? May 10 21:15:14 ctate, um, how do i do that? May 10 21:15:20 if you aren't the app author, you don't. May 10 21:15:47 (i'm guessing that uid 10061 is that launcher) May 10 21:16:37 ctate, yes May 10 21:16:55 ctate, you mean to say that app launcher is badly written? May 10 21:19:05 no May 10 21:19:07 i'd say it was buggy :) May 10 21:23:44 ctate, well, its the launcher of cyanogen mod 9. so I assume there should be a way to modify it May 10 21:26:51 hello everyone May 10 21:26:56 so .. May 10 21:27:04 ViewPropertyAnimator May 10 21:27:06 no way to set a pivot point? May 10 21:27:33 what's up with that! May 10 21:27:54 it's almost like animations are not encouraged on Android! May 10 21:29:31 If I want to port cyanogenmod onto a new device, can someone give me a general idea what part do i need to work on? May 10 21:29:55 #android-root May 10 21:29:58 #cyanogenmod May 10 21:30:18 thanks May 10 21:31:45 if i present a time in the UI for all locales as iso 8601, do you think people will fret? May 10 21:32:12 g00s: nah May 10 21:32:17 they'll just 1 star your app May 10 21:32:23 :( May 10 21:33:11 g00s, why don't you just take the method I recommended you before May 10 21:33:32 charAt(indexOf("mm")-1) + "ss" May 10 21:33:49 g00s, and fallback gracefully if it isn't a simpledateformat May 10 21:34:01 i would have to assume a separactor May 10 21:34:05 *separator May 10 21:34:18 i would have to append :ss, .ss, or 'ss May 10 21:34:26 g00s, you can add a little bit more logic to also do lastIndexOf("h") or H May 10 21:34:40 g00s, right, that's why charAt(indexOf("mm")-1) + "ss" May 10 21:34:54 assuming the separator between h:m is the same as between m:s May 10 21:35:01 and a single character May 10 21:35:37 so, the factory methods of DateFormat ignore the setting on the phone. the stuff in android.text.format.dateUtils gives dateFormats, not SimpleDateFormats, which do not define toPattern May 10 21:35:59 g00s, they return a DateFormat type, but you can instance check them for SimpleDateFormat and cast May 10 21:36:10 yeah, but man, gah May 10 21:36:28 g00s, well, you can either do something and make it work, or just complain May 10 21:36:37 you're falling into the latter bucket May 10 21:37:11 i'm worried that there is some weird format for some locale, where this little invocation above is going to break May 10 21:37:43 then let it break and users can bug you about it May 10 21:37:47 and i find people of some country have the app crash because their date format was weird, and i didn't anticipate it in some way when trying to slice it and append ss May 10 21:38:00 ok May 10 21:38:12 alternatively, install acra or some variant thereof and record all errors May 10 21:38:19 is it frequent that production devices run all kind of JNI checks for native code? : http://androidxref.com/source/xref/dalvik/vm/CheckJni.cpp. Or is that an overlook from the manufacturer ? May 10 21:38:20 if you get crashing errors, you'll be the first to know May 10 21:38:35 worry less, do more May 10 21:38:44 ultimately, it's not an important problem May 10 21:38:45 so … what to do if instanceof SimpleDateFormat fails :) May 10 21:38:49 it shouldn't but ... May 10 21:38:58 g00s, just let it display hh:mm in that case May 10 21:39:07 graceful fallback May 10 21:39:34 in versions where it does fail, look in aosp to see what they're doing an react accordingly May 10 21:39:42 s/an/and May 10 21:41:31 I'd give someone my left testicle if they could tell me how to go about doing a graceful animation that affected surrounding views May 10 21:41:41 I'm guessing "Make your own ViewGroup" is going to be the answer May 10 21:42:46 i wouldn't give my left testicale for that May 10 21:42:54 *testicle :) May 10 21:43:15 neither would i May 10 21:43:19 just use an animatioin May 10 21:43:19 anyone have any experience regarding the time taken for adfonic to handle a new app submission? May 10 21:43:35 canadiancow|work: but that doesn't do what I want May 10 21:43:38 in the sense that I want May 10 21:43:44 [ View 1 ] [ View 2 ] May 10 21:43:53 *animation* [ View 1 ] [ View 2 ] May 10 21:43:59 instead what you get is May 10 21:44:04 [ View 1 ] [ View 2 ] May 10 21:44:22 ur doin it wrong May 10 21:48:46 canadiancow|work: teach me how to do it right May 10 21:48:51 there's a left testicle in it for you May 10 21:48:59 O___O May 10 21:49:30 canadiancow|work: i say you should bargain for the right one, i hear that's the better one... May 10 21:49:40 keith_hyfn: come on man, help a bro out May 10 21:50:05 haha, oh alright, just let him keep both and teach him anyways May 10 21:50:57 he didn't say *whose* May 10 21:52:45 (bis) is it frequent that production devices run all kind of JNI checks for native code? : http://androidxref.com/source/xref/dalvik/vm/CheckJni.cpp. Or is that an overlook from the manufacturer ? May 10 21:54:34 the CheckJNI stuff is typically turned on in userdebug / eng builds May 10 21:54:45 but much sleeker in retail builds May 10 21:55:05 that's why so many game companies have shipped broken JNI :p May 10 21:55:28 I've got user with a noname tablet where this is turned on May 10 22:00:13 ctate: interesting … so i never used jni, is the lesson here that you have to make sure you test it on a device that has these checks turned off ? May 10 22:00:40 i forget whether you can turn it on via developer settings May 10 22:00:42 a la strictmode May 10 22:00:54 also iirc the sdk builds have it all turned on May 10 22:02:23 On of these check would generate crash were on another device the same JNI API would run fine May 10 22:02:46 aha May 10 22:02:46 adb shell setprop debug.checkjni 1 May 10 22:03:09 will turn it on even on retail devices for apps started after the property is set May 10 22:03:17 this is documented on http://developer.android.com/guide/practices/design/jni.html May 10 22:03:28 talking about a commercial device here where it is on. Anyway it did catch something wrong which I crrected since May 10 22:03:50 there's been a ton of really grody jni code in the field May 10 22:03:57 in angry birds, in unity, all over May 10 22:04:04 it's a bit better now than it was May 10 22:04:05 I'm not surprised May 10 22:05:02 which makes me thinks it is probably on in the GoogleTV SDK... May 10 22:05:06 i think jni was supposed to get a huge overhaul in java 8 or 9 May 10 22:06:06 so maybe 10 years from now :) May 10 22:07:41 ctate, does checkjni cause the app to crash? May 10 22:07:48 like if it fails the check May 10 22:07:57 or does it just spit out a warning May 10 22:09:12 getting illegal state exception with my list view but i always notify its adapter that the dataset is changed whenever the data does May 10 22:09:19 canadiancow|work: crash here May 10 22:10:21 why would you want to test on a device that has it turned off May 10 22:10:25 that doesn't seem to make sense May 10 22:11:26 I would assume that means most orgs ship broken ndk code because they test on production devices, not devices with checkjni enabled May 10 22:12:28 jasonmog, read the full message May 10 22:12:42 why is it that people just see "error" and stop reading there May 10 22:14:04 java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. May 10 22:14:17 the only call to notifyDataSetChanged() is made inside of the runnable passed to runOnUiThread() May 10 22:14:26 re-read the message May 10 22:16:34 hoorah, galaxy note got ICS :D May 10 22:17:01 wish my samsung tablet would get it :( May 10 22:18:56 pfn: this charAt(indexOf("mm")-1) + "ss" is pretty clever, but i guess i also have to consider that the existing templates do not always end in 'mm' so i can't just append, there may be ' a' May 10 22:19:03 oh well, little more complicated May 10 22:19:46 seems like they all boil down to these (from api 8 -15) May 10 22:19:50 a h:mm May 10 22:19:50 h.mm a May 10 22:19:51 h:mm a May 10 22:19:52 h:mma May 10 22:20:04 nice g00s May 10 22:21:18 its weird, though, that 24h time form has some slight differences May 10 22:21:24 H.mm May 10 22:21:24 H:mm May 10 22:21:25 HH.mm May 10 22:21:26 HH:mm May 10 22:21:27 H\'h\'mm May 10 22:21:44 getting ClassNotFoundException for a class in a library that is clearly linked and added to manifest May 10 22:21:51 i would have thought they would be consistent, except for the HH and 'a' but May 10 22:22:02 this happens off and on. sometimes clean/rebuild fixes it but not now May 10 22:23:00 jasonmog: if you updated your sdk or something, make sure you are using libs/ and not lib/ May 10 22:23:47 my libraries are in the project root May 10 22:24:00 o.o May 10 22:24:52 shouldnt matter since the build project settings use relative paths May 10 22:25:05 moved to libs anyway and still get exception May 10 22:26:20 oh, sorry, thought you meant jars. i haven't used library projects yet May 10 22:28:33 well it generates a jar May 10 22:33:45 ctate: does google use, internally, some sort of tool to maintain / comprehend all of the resource in the res/ tree ? i can't imagine anyone is left to just look at all these firectories with huge numbers of resources and make heads or tails out of this May 10 22:35:03 they're pretty much all either strings + their translations, or renderings at various densities etc of the same drawable assets May 10 22:38:34 i guess, is (some) stuff in res/ auto-generated from another model + tool. lets say for example, you want to look at how some string is localized in all locales. is an engineer just grepping through these directories to see if string 'x' appears in strings.xml for every locale ? May 10 22:40:20 I have simple preferences activity: http://wklej.org/hash/98b2d67b55d/ May 10 22:40:50 how can I pass changes from preferences to another activity? May 10 22:41:43 Fisiu: if another activity uses that pref, just have it read it again in onResume ? May 10 22:42:20 if a running service needs that pref, it will need a pref change listener May 10 22:42:29 so after closing preferences and going back to myactivity, onResume() is called, right? May 10 22:42:35 man, i'm getting rusty May 10 22:42:41 g00s: string translation does involve some out-of-band management tools May 10 22:42:48 i don't really know how that end of things works May 10 22:42:56 ctate: ahh, interesting May 10 22:42:59 there's someone who liases with the translators etc May 10 22:45:11 whats the letter for a double (float is f)? May 10 22:45:41 doh May 10 22:45:57 it _is_ d... May 10 22:46:39 decimal literals are by default double May 10 22:47:10 why would you need d May 10 22:47:31 becuase i didn't put that together May 10 22:47:34 is this like printf() arguments? May 10 22:47:41 because with printf(), %d is 'int' May 10 22:47:42 even though i knew you need to use f for float May 10 22:47:52 and %f is double May 10 22:48:06 %f is floating point string format May 10 22:48:06 Fisiu: yup (http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle) May 10 22:48:07 ctate, no, for literals in java May 10 22:48:08 not 'float' May 10 22:48:13 jeppy: great ok May 10 22:48:18 jeppy, why do you need d for a double literal? May 10 22:48:21 it's implicitly double May 10 22:48:22 i.e. not what i'm talking about :) May 10 22:48:29 just as integral numbers are implicitly int May 10 22:48:32 for a floating-point literal just add ".0" to it May 10 22:48:35 (which is weird, when one thinks of it) May 10 22:48:44 but in general the compiler will figure it out properly May 10 22:48:50 pfn, i dont, i just didn't realize what the default was May 10 22:48:56 why a 64bit precision value by default for floating point, but 32bit for integral May 10 22:49:16 because in both cases it uses the 'natural' machien representation May 10 22:49:23 of the systems on which this stuff was developed May 10 22:49:23 keith_hyfn: right ;) May 10 22:49:39 hmm, ok May 10 22:50:00 SunOS machines used 32-bit general purpose registers and 64-bit fp registers May 10 22:50:07 so the fp processor expected floating point ops to be 64bit May 10 22:50:56 i forget whether it had REAL*4 intrinsics as well May 10 22:51:13 certainly on some hw 'float' is no faster than 'double' and can be significantly slower May 10 22:52:15 I'm running into trouble updating my Android SDK. I keep getting a warning message saying that a folder failed to be moved and that I need to end any programms that is using the SDK directory but as far as I know, no programs are currently doing that May 10 22:52:45 hashset: that has happened to me in the past. i just nuke it and install fresh from downloaded tarball May 10 22:53:23 also, on linux you can use lsof, and windows ther is a tool to tell you which proggies have a file open May 10 22:53:26 these days smaller floats are mainly useful for vector ops May 10 22:53:51 I'm on windows and that seems like a really useful tool. do you know what it's called? May 10 22:53:58 I setup the actionbar using ABS with pagers and I added in custom styling and its not pusing my custom styles? May 10 22:54:07 hashset, perfmon /res May 10 22:54:09 hashset, nthandle May 10 22:54:11 whatever May 10 22:54:18 use that to determine what is holding the folder open May 10 22:54:26 usuall, some cmd.exe, or explorer window May 10 22:56:00 hashset: http://technet.microsoft.com/en-us/sysinternals/bb545021 May 10 22:57:59 hashset, just reboot, that is the windows fix May 10 22:58:00 on win7, I just use perfmon /res May 10 22:58:14 under linux, you can over write files that are open May 10 22:58:17 windows' exclusive, mandatory locks are such lose May 10 22:58:27 haha tank-man May 10 22:58:28 i actually had this problem on mac May 10 22:58:33 it's stupid, all the documentation illustrates exclusive locking May 10 22:58:53 i'm not defending the mac , btw :) May 10 22:58:54 i am using a timer task to set a notification manager notification to run after 15minutes, but it's not firing. SEtting the timer to a lower value does work. I think TimerTask's aren't designed to run that long May 10 22:58:55 while shared locking is an option May 10 22:58:59 should i be using an alarm manager? May 10 22:59:19 I think I will try a reboot then get into the sysinternals stuff May 10 22:59:22 the timer task can potentially be gone if your activity or service exits May 10 22:59:29 hashset, are you on win7? May 10 22:59:33 if so, perfmon /res May 10 22:59:34 roler: what happens if the user leaves your app before the 15 minutes are up? do you want your thing to run anyway? May 10 22:59:42 yeah I am May 10 22:59:54 state; yes. it is a reminder to open the app and finish a task before time runs out May 10 22:59:55 hashset, perfmon /res -> cpu -> file handles -> android -> search May 10 23:00:02 roler: then you definitely want to use alarms May 10 23:00:03 hashset, kill the processes that have android-sdk-windows open May 10 23:00:06 ctate: thanks May 10 23:12:52 turning it off and on again worked ^^ May 10 23:23:44 hashset, if you rather waste time rebooting vs. killing a couple of processes, yes, rebooting works May 10 23:46:05 can someone explain to me what the projection parameter does in the CursorLoader constructor? May 10 23:59:47 dumb question: what does EditText.getText().toString() return if there is nothing in the EditText? May 10 23:59:53 also, does it matter if there is a hint or not May 11 00:00:22 Rockmaninoff, an empty string May 11 00:00:34 thanks, i was 99.9% sure of that, didn't want to look it up May 11 00:01:13 oh man May 11 00:01:21 i just pressed and held the home button on my galaxy nexus to try to get recent apps May 11 00:01:22 T_T May 11 00:04:15 I have a problem i got a spinner inside a child activity from a tab, but when i try to acess the spinner i cannot get the context from the activity I am in May 11 00:05:19 http://pastebin.com/bC1EL0kd May 11 00:05:24 there is a pastebin of it May 11 00:06:02 and the stacktrace: http://pastebin.com/J0HwHALx May 11 00:07:00 basically, how do I get the context of the parent activity to pass on to my spinner? May 11 00:07:07 Hey all … is there a simple way to play multiple animations at the same time? I currently have code like this (https://gist.github.com/2656710), but I want to run these three animations all at the same time May 11 00:37:10 google currents sure has a strange UI May 11 00:41:03 http://www.chentir.com/?p=1514 May 11 00:42:25 sup nerds May 11 00:42:46 I've used that exact same wordpress theme May 11 00:43:28 :) May 11 00:44:24 so... are we making a new, non-sucky, graphing library g00s? May 11 00:45:06 t0mless: oh man. i'm not sure; honestly might not be doing much android for a period here May 11 00:45:14 :( May 11 00:48:11 t0mless: i was looking at this, seems pretty cool. http://www.h-online.com/open/news/item/Vert-x-offers-event-driven-framework-for-the-JVM-1572950.html May 11 00:48:20 kinds ot, not graphing related May 11 00:48:48 heh, androidplot is still down. May 11 00:50:14 oooh May 11 00:50:35 t0mless: oh, if you were around last night - i seemed to fix my spurious 1s by reinstallg eclipse x.x May 11 00:50:57 eclipse is going to make me superstituous - i can't even fathom May 11 00:51:05 doesn't seem to have fixed your poor typing May 11 00:51:08 <.< May 11 00:51:15 haha May 11 00:51:36 that is very odd though May 11 00:52:07 a while back, i did have a problem - where switching spaces would disable the cursor and backspace keys May 11 00:52:18 only eclipse, of course /only/ eclipse May 11 00:57:32 I think I finally got everything moved to fragments for my app May 11 00:57:41 so now I can make a kick ass tablet layout May 11 00:58:35 i converted eveything to fragments and loaders, but decided to hold off investing on tablet optimized layouts until … android tablets start selling better May 11 00:58:40 I also need to refactor my package naming May 11 00:58:47 in my case, it would bea big investment in time May 11 00:59:02 hrm May 11 00:59:48 moving to fragments was more of a by product of wanted to make a tablet layout and being able to reuse code May 11 00:59:57 s/wanted/wanting May 11 01:00:12 i think fragments improved my design by help making things more modular May 11 01:00:16 so it was still worth it May 11 01:00:29 otherwise I would have just stayed with activities May 11 01:00:38 but moved still move my asynctasks to loaders May 11 01:00:48 Loaders are SO much better than asynctasks May 11 01:01:50 i thought they were kinda awkward at first, the docs leave it to you to experiment with corner cases in the state May 11 01:02:10 Truth. May 11 01:02:19 did you use tabs before or ? May 11 01:02:31 and don't mention anywhere that for an asynctaskloader you have to call forceLoad() somehwere May 11 01:02:46 either in the constructor or in onStartLoader May 11 01:02:57 yeah - some weirdness there May 11 01:03:20 I kind of despise tabs May 11 01:03:37 Why is that ? May 11 01:03:39 I had a dashboard May 11 01:03:46 1 - they're super ugly May 11 01:03:47 i went through the aosp apps once HC was available, to see how they were using loaders. google code search also helped :/ since at the time, i had a hard time find good examples May 11 01:03:53 2 - the code is super ugly to make the m work May 11 01:03:55 them* May 11 01:04:04 * kaspuh agrees with #2 May 11 01:04:12 actually.. #1 as well May 11 01:04:13 3 - now they're depreciated May 11 01:04:15 so that's good May 11 01:04:24 #3, i guess :) May 11 01:04:34 t0mless: oh bugger, you asked me something ages ago and now i've forgotten what it was May 11 01:04:42 and i've lost the scrollback May 11 01:04:53 is it possible to check if the current device has backup capabilities? May 11 01:05:05 was thinking about it while pondering a more efficient DB backup May 11 01:05:09 aha May 11 01:05:15 what do you mean by "has backup capabilities"? May 11 01:05:23 backupagent, my guess May 11 01:05:33 BackupAgent will get called May 11 01:05:38 or rather May 11 01:05:42 in terms of cloud backup, if it's froyo or later, it has backup capabilities May 11 01:05:44 BackupManager is implemented May 11 01:05:46 i.e. availability of the API May 11 01:05:50 right... May 11 01:05:55 but not all devices support it May 11 01:05:59 yes they do May 11 01:06:06 oh really May 11 01:06:07 you cannot know whether the user has actually turned i ton May 11 01:06:12 oh May 11 01:06:13 (they're allowed to opt out) May 11 01:06:14 bummer May 11 01:06:20 Yea, I know they can opt out May 11 01:06:27 and that if they do, all current data is deleted May 11 01:06:30 oh, i bet i know what you mean May 11 01:06:36 I want to know if it's enabled May 11 01:06:52 so I don't go writting info to the backupDB of transactions that will never get processed May 11 01:06:54 you're trying to avoid e.g. building up an infinite zombie to-be-deleted set May 11 01:06:56 right May 11 01:06:58 hrm hum May 11 01:06:58 Bingo May 11 01:07:08 can't even check it with Secure.Settings? May 11 01:07:09 well May 11 01:07:36 the setting isn't stored there; it's private to the backup infrastructure May 11 01:07:47 I was thinking you could set a flag in sharedprefs or something from the BackupAgent the first time it runs May 11 01:07:50 grar May 11 01:07:58 yeah you could do that May 11 01:08:05 and just do a full on backup first time May 11 01:08:12 then start using the db May 11 01:08:16 you should always do a full-on backup the first time May 11 01:08:19 obviously May 11 01:08:24 but then when it gets opted out, you won't know May 11 01:08:31 yeah May 11 01:08:48 so if it was enabled one time, you might end up making zombie land May 11 01:08:54 which I want to avoid May 11 01:09:02 this is a good point May 11 01:09:25 i mean, if you both add *and* delete a record in between backup passes, you know you can just wipe its zombie record May 11 01:09:55 we should make this cleaner but i'm afraid it won't help you on existing devices, of course May 11 01:10:03 true May 11 01:10:11 but i'm all for making things better in the future May 11 01:10:31 will have to ponder some more while eating dinner May 11 01:10:32 brb! May 11 01:10:34 as well you should be May 11 01:10:36 l8r May 11 01:13:56 How do I reach the context of my parent activity from a nested child activity inside a tab ? the getParent() returns the parent i take? but that doesn't work for me to add as context May 11 01:14:00 Anyone know how to work around problematic ActionBar behavior when setSelectedNavigationItem's is called with collapsed tabs? May 11 01:14:40 Hi i spent the last hour getting oracle-JDK installed on ubuntu with eclipse, but im wondering would the android-SDK play nice with openJDK too? May 11 01:15:02 j0hnsm1th: the oracle JDK is basically a branch of OpenJDK May 11 01:15:50 toulouse, im very new to all this... why does the official android websites links to "JDK" all point to oracle website? do you think openJDK would of sufficed? May 11 01:16:07 because if you encounter any problems May 11 01:16:14 the official response is to get the official oracle jdk May 11 01:16:33 pfn, you use the oracle JDK ? May 11 01:16:41 it shouldn't matter May 11 01:17:03 yes May 11 01:17:05 Android apps run on Dalvik VM anyways, with modified Apache Harmony classes May 11 01:17:18 the difference between the OpenJDK and the Oracle JDK shouldn't matter May 11 01:17:21 that said May 11 01:17:23 if there are problems May 11 01:17:35 try the oracle JDK instead May 11 01:17:43 im thinking it may just be better to avoid IDE's and stick to vim/command line May 11 01:17:44 ? May 11 01:17:48 oh god no May 11 01:17:54 * pfn shrugs May 11 01:18:00 what do you guys use? May 11 01:18:03 eclipse? May 11 01:18:07 Eclipse May 11 01:18:09 I know openjdk7's jarsigner had a bug that it wouldn't create a usable signed apk May 11 01:18:15 dunno if that's been resolved or not May 11 01:18:18 ah May 11 01:18:19 * pfn uses vim May 11 01:18:28 then use Oracle's JDK, j0hnsm1th May 11 01:18:33 and don't know if it's non-buggy in openjdk6 May 11 01:18:38 or if it's an issue with jdk7 either May 11 01:19:06 hmm seems like much of a muchness May 11 01:19:13 ok well tx for the input May 11 01:19:19 * j0hnsm1th uninstalls eclipse May 11 01:19:22 lol May 11 01:19:23 i use Eclipse because it offloads the tediousness of writing java onto the IDE, but i guess vim is a valid way May 11 01:19:23 but someone did come in here a few months back having problems signing their app, it was fixed by going from openjdk7 to an officil jdk6 or openjdk6 May 11 01:19:36 * pfn doesn't often write java for android May 11 01:19:46 * toulouse writes Java for android all the time May 11 01:19:50 oh hangon, code completion might be a little tricky May 11 01:19:54 yeah May 11 01:20:00 http://technically.us/oscon/#0 May 11 01:20:07 code completion, and code generation, my main reasons May 11 01:20:10 * pfn doesn't typically use code completion May 11 01:21:02 tbh have only changed over to ubuntu a few weeks ago...sometimes the real world is really complicated May 11 01:22:59 so i'm guessing nobody here has an idea for working around wonkiness with the ActionBar? May 11 01:23:12 ("Anyone know how to work around problematic ActionBar behavior when setSelectedNavigationItem's is called with collapsed tabs?") May 11 01:23:24 it doesn't update the spinner May 11 01:23:57 hello all May 11 01:25:02 can anyone plz help with a question about real time audio filtering? May 11 01:25:20 probably, best just to ask :P May 11 01:25:52 i'm trying to build an app that does real time voice filtering May 11 01:26:15 but in all the forums and the androird API May 11 01:26:44 i can't find if there is a way to store the buffer alter it and send it filtered to the live call May 11 01:26:54 AudioRecord class May 11 01:27:12 has the API for uplink and downlink May 11 01:27:35 i have an app that records both side of the phone calll May 11 01:27:50 but is there a way to do live DSP May 11 01:27:51 ? May 11 01:29:59 you cannot get access to the incall audio stream May 11 01:30:09 in many cases the hardware itself does not allow the Android CPU access to it May 11 01:30:12 and outcall? May 11 01:30:25 "incall" meaning the phone audio stream, either direction May 11 01:30:35 i need only one case where i can do it May 11 01:30:43 read what i wrote May 11 01:30:49 you cannot get access to phone call audio. May 11 01:30:51 period. May 11 01:31:03 the *hardware* does not allow it. May 11 01:31:09 ( ctate ): All I really need is BackupManager.enabled() May 11 01:31:10 look at Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoing calls. May 11 01:31:18 t0mless: yup May 11 01:31:23 but without it... it sure is complicated.... May 11 01:31:33 ok May 11 01:31:36 gdarmon: that lets you control e.g. whether the call is placed at all May 11 01:31:47 not anything about the audio stream May 11 01:32:23 ok thanks @ctate May 11 01:32:32 the thing is that i have an app May 11 01:32:48 that can record from live phone call May 11 01:32:50 I thought I saw some voice modulation app things May 11 01:32:54 but maybe that was via SIP May 11 01:33:30 if you can record can't you write as well? May 11 01:33:58 t0mlees what si SIP? May 11 01:34:00 is May 11 01:35:07 Session Initiation Protocol? May 11 01:35:34 gdarmon: it might be possible on some hardware May 11 01:35:43 it is absolutely not supported by the platform or by all Android phones May 11 01:35:50 gdarmon yea May 11 01:36:26 @ctate you are saying 2 things ay once May 11 01:36:54 possible on some hardware does not mean it's supported by the platform May 11 01:37:03 ok May 11 01:37:22 do u know the class audioRecord? May 11 01:37:43 out of curiosity, does this app of yours that records live phone calls require root? May 11 01:37:54 nop it does not May 11 01:38:05 can i advertise the link ? May 11 01:38:09 its not my app May 11 01:38:13 yea May 11 01:38:17 it's an app i found May 11 01:38:37 https://play.google.com/store/apps/details?id=com.record.my.call May 11 01:38:53 working like magic on my SGS1 May 11 01:39:06 android 2.2 May 11 01:39:11 not root nothing May 11 01:39:14 * ctate | Currently the app does not work on some phones. May 11 01:39:34 * ctate | Please turn on the loudspeaker during conversation to get clear voice from the other side. May 11 01:39:43 so, it doesn't intercept the in-call audio stream May 11 01:39:47 yea i did that May 11 01:39:53 it turns on the mic and records the speakerphone to hear the other end? May 11 01:39:56 i called 5 ppl May 11 01:40:07 yea, sounds like it's not tapping into the audio stream May 11 01:40:09 and it recorded May 11 01:40:20 but rather doing as ctate said May 11 01:40:21 i didn't turn off anything May 11 01:40:30 using the mic to record the speaker phone May 11 01:40:32 did you turn on speakerphone? May 11 01:40:38 no May 11 01:40:47 i justed talked as usuall May 11 01:40:49 seriously, it sounds like this thing is relying on the mic to pick up the audio from the earpiece, ambiently May 11 01:40:55 and it recorded both sides May 11 01:40:58 try it using a bluetooth headset :) May 11 01:41:06 ;D May 11 01:41:49 pretty sure that won't work May 11 01:41:50 anywway http://developer.android.com/reference/android/media/AudioRecord.html May 11 01:42:04 that's the class i'm talking about May 11 01:42:08 right May 11 01:42:13 that records sound from the mic May 11 01:42:22 or I suppose a BT/other input device May 11 01:42:22 ==t0mless May 11 01:42:27 there's an impotent flag for setting call audio May 11 01:42:38 probably only from the mic, actually; not from bluetooth May 11 01:42:38 you're impotent. May 11 01:42:59 Voice call uplink + downlink audio source May 11 01:43:20 this is one of the args for the constractor May 11 01:43:54 doesn't mean it will actually *work* May 11 01:44:01 see above re hardware limitations May 11 01:44:23 yea i get it May 11 01:44:51 i just want to know if anyone tried it and failed or succeded in doing so May 11 01:45:18 because i'm 2 mins away from trying to run this on 20 different HW May 11 01:45:19 :D May 11 01:45:29 knock yourself out May 11 01:45:31 go nuts May 11 01:45:34 lol May 11 01:45:43 ofc actually recording calls is quite likely to be illegal May 11 01:45:56 i don't want to record them May 11 01:46:02 i want to filter audio May 11 01:46:16 i'd be VERY surprised if you can do that at all May 11 01:46:31 recording is one thing; injecting audio into the call stream is another May 11 01:46:33 yea i'm the guy with the suprises May 11 01:46:38 i know May 11 01:46:54 but if the api works for recording May 11 01:47:03 i figure u can inject as well May 11 01:47:11 that's one hell of an assumption May 11 01:47:17 err, no? May 11 01:47:18 anyway i'';; give it a shot May 11 01:47:19 :) May 11 01:47:56 http://developer.android.com/reference/android/media/AudioTrack.html May 11 01:48:06 this is the other class i was talking about May 11 01:48:38 see above re just because there are constants there doesn't mean they work May 11 01:48:39 but maybe i need to open a phone call before that May 11 01:48:58 no one in stackOverFlow is answering me May 11 01:49:12 give it a shot, watch it fail May 11 01:49:16 it will be fun May 11 01:49:20 grab a beer May 11 01:49:20 :D May 11 01:49:30 have a hackathone May 11 01:49:34 -e May 11 01:49:39 cool idea t0mless May 11 01:49:57 BEER! May 11 01:51:30 I have a problem with an nested activity inside a tab, i have a spinner there who crashes the program when i click on it. I belive i do not have the "parentgroup" as context, but how does one get that ? May 11 01:52:08 here is my stacktrace : http://pastebin.com/uBTa66KX May 11 01:57:46 anyone ? I have been trying to figure this out for a few hours now so my hair is slowly turning grey. May 11 01:58:45 stuck on something for a few hours and your hair is turning grey? Either you're a genius, or haven't been solving problems for very long =/ May 11 01:59:24 most likely the latter May 11 01:59:34 i am used to work with my hands May 11 02:02:40 kaspuh there was not caused by ... : below that? May 11 02:05:00 kaspuh: there's a lot of hits on stackexchange for "unable to add window token is not valid" May 11 02:05:12 kaspuh: I'm not sure which variant is most applicable to you, but, look there May 11 02:06:06 the problem I belive is that since it's an activity within an tabactivity, it's not getting out to the correct context May 11 02:06:20 you may have to pass the context to it May 11 02:06:27 manually May 11 02:06:43 context getting to what? May 11 02:06:43 as an extra inside the intent ? May 11 02:06:49 good lord no May 11 02:06:56 http://stackoverflow.com/questions/4930086/need-help-on-tabactivity May 11 02:07:13 there you go. Spinner in a tabactivity throwing that exact error May 11 02:07:14 also, you should migrate away from tabactivity May 11 02:07:18 it's depreciated May 11 02:07:55 yeah, but this is just a project for school and i'm quite new to programming in general May 11 02:08:22 so after finally getting the tabs to work, starting over with fragments seems just like too much of an hassle May 11 02:08:38 that link should be able to fix your problem May 11 02:08:39 that se link will probably help May 11 02:08:42 heh May 11 02:09:09 yeah, that does solve the initial problem May 11 02:09:32 View contentView = LayoutInflater.from(getParent()).inflate(R.layout.my_layout, null); May 11 02:09:32 setContentView(contentView); May 11 02:09:34 this one ^^ May 11 02:10:33 but, that does mess up the onClick from the xml, and I do belive it also will mess up the onBackPressed (spellcheck) that i plan to implement May 11 02:10:47 what May 11 02:10:48 why May 11 02:11:00 do you override onBackPressed May 11 02:11:23 also, you should just implement your onClick listeners in java May 11 02:11:31 since when i press back inside the tab, it exits the program May 11 02:11:40 if i am inside a tab, i wish to get to the previous tab May 11 02:11:50 and when at the "top layer" of tabs, the program to exit May 11 02:11:56 O.O May 11 02:11:59 you have tabception?! May 11 02:12:06 hahahah May 11 02:12:14 You would not have this issue if you used fragments. May 11 02:12:27 hmmms.... May 11 02:12:40 Really though.. do you have a tabActivity inside a tabspec? May 11 02:13:03 let me make sure. May 11 02:14:05 TabActivity - ActivityGroup - Activity May 11 02:14:26 MainClass - SubClass - SubSubClass May 11 02:14:32 if that makes sense? May 11 02:14:38 It does not May 11 02:14:46 You have an ActivityGroup as your tab?> May 11 02:14:58 yes. >.< May 11 02:14:59 I think I have actually implemented that once May 11 02:15:09 I hated myself for at least a month May 11 02:15:54 from a blog initially May 11 02:16:11 You could to TabActivity - Activity - Fragments May 11 02:16:14 if that is what your are talking about? the example I followed ^^ May 11 02:16:22 Probably May 11 02:17:20 but if I am to use fragments, wouldn't it be easier to just start over ? May 11 02:17:38 Mebbe May 11 02:17:44 oh lawdie. May 11 02:17:50 * kaspuh shoots himself. May 11 02:17:52 Though I'm confused at what you're stuck at now May 11 02:17:59 hold on, lemme pastebin May 11 02:18:02 It was your own fault for starting with TabActivity May 11 02:18:12 ofc. May 11 02:19:18 http://pastebin.com/xiHzC3aX May 11 02:19:49 row 65. May 11 02:20:11 but it said "this" instaed of trying to get some static context from ReportActivity class May 11 02:20:50 instead* May 11 02:21:33 http://pastebin.com/BDimry6p <-- ReportActivity class May 11 02:21:56 oh right May 11 02:21:59 That bullshit May 11 02:22:08 I remember that activity group bullshit May 11 02:22:44 that doesn't sound very well. May 11 02:23:08 im running ubuntu12.04 and i just finished unpacking the latest android-sdk for linux, i realize i could just stick it in home directory, but where/why is a good place to put this kind of stuff? May 11 02:23:12 and why didn't getParent() work? May 11 02:23:23 also... why can't you just define the values in xml? May 11 02:23:50 no clue, it does return a parent (i logged it), but it still gets the same error May 11 02:24:11 http://developer.android.com/reference/android/widget/AbsSpinner.html#attr_android:entries May 11 02:25:05 oh. I just followed the android guide Hello Spinner tutorial May 11 02:25:06 just set android:entries="@array/report_array_spinner_titles" May 11 02:25:38 and delete that adapter code May 11 02:25:45 hi May 11 02:25:51 Excuse me, where there is Android ICS Google apk cracked download? May 11 02:25:54 thanks May 11 02:26:01 uhh May 11 02:26:02 wut? May 11 02:26:05 t0mless all of it ? May 11 02:26:12 kaspuh Yup May 11 02:26:44 jpeter-jiang We're app developers, not rom crackers May 11 02:26:59 and secondly, "Android ICS google apk cracked" doesn't make sense May 11 02:27:06 thanks May 11 02:27:36 thirdly, stop putting Google Play on non CTS devices May 11 02:29:55 t0mless - still get 05-11 04:29:16.001: E/AndroidRuntime(605): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@2afe1e20 is not valid; is your activity running? May 11 02:30:14 same stacktrace? May 11 02:31:01 kaspuh I would explode your ActivityGroup May 11 02:31:16 Turn that into an Activity, and turn all your subactivities into fragments May 11 02:31:54 hmms.... May 11 02:32:10 probably easier than starting over completely May 11 02:32:27 so TabActivity - Activity - FragmentActivity ? May 11 02:32:27 so basically your tabs each contain an activity May 11 02:32:31 no May 11 02:32:42 each tab well contain a FragmentActivity May 11 02:32:56 and those activites will swap out fragments as you need to change views May 11 02:33:05 this will also let you make use of the back button May 11 02:33:08 without overriding it May 11 02:33:14 hmms... hmmms hmmms.... May 11 02:33:22 sounds like a reasonable deal May 11 02:33:40 since i have a feeling overriding that stuff will also take time to figure out May 11 02:33:49 not 100% sure fragment back stack is compatible across tabs May 11 02:33:56 but would be interesting to know May 11 02:34:30 but just to make sure, so having tabActivity as "main.class" then subclass1, 2, 3 are fragmentActivities ? May 11 02:34:42 yea May 11 02:35:05 i will look into this tomorrow, because it's 4:30 now and I have been on this for the better part of this day. May 11 02:35:19 and then, i will find that erik guy from the blog May 11 02:35:24 and strangle him slowly. May 11 02:35:40 also look at how old that post is May 11 02:35:44 2010 May 11 02:35:46 yea May 11 02:35:53 TabActivity has been depreciated shince then May 11 02:36:01 oh. May 11 02:36:06 since* May 11 02:36:25 well thanks teachers @ my school then. (use tabactivity, it's greatstuffs) May 11 02:36:27 trolololol May 11 02:36:29 ohwells May 11 02:36:43 you should tell them it's depreciated and to stop filling your brains with drivel May 11 02:36:47 i only have myself to blame really, for being stubborn and not wanting to learn about fragments from the start. May 11 02:36:59 Agreed. May 11 02:38:05 well, thanks a bunch for looking into this May 11 02:51:10 why is fragments so hard? I gave up early because I had a product to get out the door. But I hear people who aren't stupid having trouble with it. May 11 02:51:33 * t0mless <3 fragments May 11 02:52:05 it works out for you? May 11 02:52:15 you got a link to an explanation? May 11 02:52:28 t0mless May 11 02:53:17 so no sendbroadcast isn't working on my service's ondestroy, which is understandable, how can i send a broadcast that my service has been stopped? May 11 02:53:20 http://developer.android.com/guide/topics/fundamentals/fragments.html May 11 02:53:24 and fragments are pr0 May 11 02:53:42 so I hear May 11 02:53:49 o gee, thx t0mless May 11 02:53:50 http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html May 11 02:54:10 http://android-developers.blogspot.com/2012/05/using-dialogfragments.html May 11 02:55:00 t0mless anything that isn't obvious? Something succinct. May 11 02:55:18 http://android-developers.blogspot.com/2011/03/fragments-for-all.html May 11 02:55:31 All those are great May 11 02:55:35 along with the docs May 11 02:55:44 you should be able to be rocking with fragments in no time May 11 02:57:04 you could have just said "read the obvious stuff at android-developers" May 11 02:57:24 I was looking for a synopsis. But fine May 11 02:58:01 I hope your copypaste muscles got a nice workout **** ENDING LOGGING AT Fri May 11 02:59:58 2012