**** BEGIN LOGGING AT Mon Feb 20 03:00:00 2012 Feb 20 03:09:53 root66, why do you loop twice, once with the constant NUM_STRINGS and once with the magic number of "6" Feb 20 03:10:08 er Feb 20 03:10:11 *three times Feb 20 03:10:35 because while it might be a 7 string guitar Feb 20 03:10:37 tab only has 6 frets Feb 20 03:11:02 i see Feb 20 03:11:43 it is unlikely that it would not be 6 Feb 20 03:11:51 but since the other number is also 6 I amde it a constant to avoid confusion Feb 20 03:11:53 not that this really matters, but you do a lot of calculations over and over Feb 20 03:12:01 i * scale at least twice in every loop Feb 20 03:12:03 scale / 2 a lot Feb 20 03:12:10 scale * 5 Feb 20 03:12:28 i'm sure this is fast as hell already but you should cache those in local vars inside the loop so you only do them once Feb 20 03:12:49 dotRadius * scale Feb 20 03:12:51 yeah this was very hasily hacked together Feb 20 03:12:57 hastily* Feb 20 03:13:08 I wanted him tos ee it before he kept grinding away trying to figure it out Feb 20 03:13:27 for a noob, he actually had a lot done already Feb 20 03:14:25 Could anyone find me a zip containing Eclipse project of viewPager? Feb 20 03:14:41 i told you where to find it Feb 20 03:14:58 wont import Feb 20 03:15:32 did you add the support lib .jar? Feb 20 03:16:02 well how do i import the sample? Feb 20 03:16:09 new project Feb 20 03:16:10 existing sources Feb 20 03:16:12 sample folder Feb 20 03:16:14 add the support lib jar Feb 20 03:16:16 run Feb 20 03:16:26 profit Feb 20 03:18:11 "Could not write file" Feb 20 03:18:53 When i "finish" on creating new project from source Feb 20 03:19:11 then the folder where your eclipse workspace is stored is F-ed up Feb 20 03:19:49 <_Syzygy> So I'm trying to download the USB drivers so that I can run my apps on my phone, but http://www.samsung.com/us/support/downloads# doesn't have my model number.... GT-I9100 Feb 20 03:19:54 <_Syzygy> what can I do? Feb 20 03:20:04 find one that's close? Feb 20 03:20:13 use linux? :D Feb 20 03:20:22 * pfn would just hack the usb_driver.inf that google provides Feb 20 03:20:25 the drivers that are included in the sdk have worked on every device ive ever used Feb 20 03:20:32 <_Syzygy> using linux is alwaysa bad idea in my book Feb 20 03:20:37 you just have to "force" it even though "its not made for this device" Feb 20 03:20:38 canadiancow, the sdk only includes drivers for developer phones, pretty much Feb 20 03:20:54 no, it includes the "adb driver", but only specifies a couple explicit usb identifiers Feb 20 03:20:57 BOOM Feb 20 03:21:03 ABS now depends on the binary support lib Feb 20 03:21:10 no modified sources Feb 20 03:21:10 JakeWharton, awesome Feb 20 03:21:11 binary support lib? Feb 20 03:21:20 yessir Feb 20 03:21:24 wtf is that Feb 20 03:21:28 the one you get from GOogle Feb 20 03:21:30 google's driver only includes vid/pid for dream, magic, sholes and nexus one Feb 20 03:21:34 damn, that's annoying Feb 20 03:21:40 thats not true pfn Feb 20 03:21:43 errs Feb 20 03:21:44 sorry Feb 20 03:21:45 yes Feb 20 03:21:45 canadiancow, AdbWinUsbApi.dll ? Feb 20 03:21:49 it only includes the vid/pid Feb 20 03:21:57 but it works on everything ive ever tried Feb 20 03:22:03 Syzygy__: you should be specifying the inf Feb 20 03:22:05 maybe you can force it... it always tells me it can't find a driver when I point it at the inf Feb 20 03:22:09 so I just edit the inf Feb 20 03:22:19 * pfn goes back to trying to understand sbt Feb 20 03:22:24 <_Syzygy> so how do I force it? Feb 20 03:22:25 JakeWharton what is the binary support lib? Feb 20 03:22:26 I think I finally get it... kind of... barely Feb 20 03:22:30 i cant find any results on google Feb 20 03:22:31 the one you get from GOogle Feb 20 03:22:34 canadiancow, android-support-v{4,13}.jar Feb 20 03:22:37 No results found for android "binary support lib". Feb 20 03:22:41 canadiancow, as opposed to bundling it Feb 20 03:22:49 JakeWharton: http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Feb 20 03:23:12 oh the android compatibility package? Feb 20 03:23:20 *support Feb 20 03:23:21 yes Feb 20 03:23:33 myn, ...? Feb 20 03:23:34 sdk manager says android compatibility Feb 20 03:24:03 JakeWharton: sorry Feb 20 03:24:06 ment for nightmare Feb 20 03:24:10 ah Feb 20 03:24:11 for his pager Feb 20 03:24:12 http://code.google.com/p/android-playground/ Feb 20 03:24:13 too Feb 20 03:24:14 that's what I'm having him import Feb 20 03:24:16 has a nice pager Feb 20 03:24:19 but his eclipse is borked Feb 20 03:24:29 also decent: http://code.google.com/p/viewpagerexample/ Feb 20 03:24:55 That ViewPager is sexy Feb 20 03:24:58 also: http://viewpagerindicator.com Feb 20 03:25:14 ahh nice :) Feb 20 03:25:19 haven't seen this yet Feb 20 03:26:14 I've been wanting to implement one but haven't found the right application UX for one yet Feb 20 03:26:36 which one of those has a download link for project Feb 20 03:26:57 NightmareApps: Install EGit Feb 20 03:27:00 and pull them down Feb 20 03:27:04 actually, they are subversion Feb 20 03:27:35 *facepalm* Feb 20 03:27:37 NightmareApps: what are you building? Feb 20 03:27:43 your eclipse is borked, not the support demos Feb 20 03:28:13 :P Feb 20 03:28:16 i need to fix that lol Feb 20 03:28:43 NightmareApps: Another good one ;) https://github.com/JakeWharton/Android-ViewPagerIndicator Feb 20 03:28:56 i need to update that badly Feb 20 03:31:02 Im going to implement JakeWharton's version Feb 20 03:31:14 it's not a pager Feb 20 03:31:17 it's just an indicator Feb 20 03:31:20 <_Syzygy> canadiancow, how should I edit the inf file? Feb 20 03:31:21 for the support-lib pager Feb 20 03:31:30 Can anyone hellp me with this error? Feb 20 03:31:34 02-19 22:28:37.813: E/ABLog(25328): java.io.IOException: Error running exec(). Command: [logcat | tee /mnt/sdcard/Android/data/com.ablog/cache/usabilityStuffHere/logFile.txt] Working Directory: null Environment: null Feb 20 03:31:34 oh Feb 20 03:31:54 oddu, you can't execute binaries from the SDK card Feb 20 03:32:07 I think the support lib is now available via Maven too Feb 20 03:32:12 it is Feb 20 03:32:17 JakeWharton: how do i just make a sliding viewpager like in Google+ app? Feb 20 03:32:19 JakeWharton: I'm trying to get adb logcat to output to a file. Am I going about it wrong? Feb 20 03:32:24 with the Tab indicator Feb 20 03:32:42 use the support-lib, add ViewPagerIndicator as a library project Feb 20 03:32:47 look at the samples Feb 20 03:32:55 myn, I maintain the support-lib in Maven :) Feb 20 03:32:58 can i import your sample and work off that? Feb 20 03:33:03 JakeWharton: And what do you mean, SDK card? Feb 20 03:33:05 What's an SDK card? Feb 20 03:33:06 JakeWharton: No shit? Feb 20 03:33:07 nice Feb 20 03:33:11 Maven FTW Feb 20 03:33:12 NightmareApps, of course! Feb 20 03:33:31 *in central, but yeah Feb 20 03:33:32 Is it an eclopse project? Feb 20 03:33:40 it can be... Feb 20 03:33:46 new project, existing sources Feb 20 03:34:10 you'll probably get the same error though since your workspace dir for Eclipse seems to be broken Feb 20 03:34:22 rm -rf /eclipse Feb 20 03:34:24 reinstall Feb 20 03:34:40 rm -rf / Feb 20 03:34:42 reinstall Feb 20 03:36:46 it imported Feb 20 03:38:29 but, PageIndicator cant be imported Feb 20 03:39:00 it's a library project Feb 20 03:39:09 did you create a project for the library too? Feb 20 03:40:35 I just created Android project from source Feb 20 03:41:31 I should create Java project from the source, and then create Android project and include Library from Java library sorue? Feb 20 03:41:36 Is there a way I can treat a listview like a scrollview? I'm trying to do this to use the pulldowntorefresh functionality... Thanks guys. Currently I can only scroll up on my listview (to refresh that is) Feb 20 03:41:55 bobsonator, https://github.com/chrisbanes/Android-PullToRefresh Feb 20 03:42:28 NightmareApps, create a project for the library then create a project for the sample Feb 20 03:42:41 Android project or Java Feb 20 03:42:45 Guys, some of you might know Feb 20 03:42:51 android Feb 20 03:42:52 for Feb 20 03:42:53 both Feb 20 03:42:56 I need to know location of user agent string in android browser source Feb 20 03:43:17 bang: different in each Feb 20 03:43:27 JakeWharton: I'm actually using that right now, but can't seem to get it to work properly, I have his pulltorefreshlist > framelayout (that would normally be inside a scrollview) Feb 20 03:43:31 thanks Feb 20 03:43:35 Thanks lemme try that JakeWharton Feb 20 03:43:41 AOSP vanilla has a different implementation then say HTC, Moto, LG's implementation Feb 20 03:43:52 <_Syzygy> this enrages me quite a bit. Feb 20 03:44:36 Anyone? Feb 20 03:44:37 No? Feb 20 03:44:51 I would bet it's stored in strings.xml though Feb 20 03:45:03 just grep for it Feb 20 03:45:21 It's not stored in there alright Feb 20 03:45:25 :( Feb 20 03:45:31 it is Feb 20 03:49:03 bagnz0r, here's a good starting point: http://codr.cc/s/8dd0b09d/ Feb 20 03:49:27 Thanks Feb 20 03:49:31 JakeWharton: I added your library to my Projects Buildpath in the project tab Feb 20 03:49:39 it's a library project Feb 20 03:49:43 properties > android > library projects Feb 20 03:50:04 http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject Feb 20 03:50:07 bang Feb 20 03:50:08 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.0.3_r1/com/android/browser/BrowserSettings.java#BrowserSettings Feb 20 03:50:11 its right there Feb 20 03:50:36 Thanks Feb 20 03:50:45 two seconds of grep Feb 20 03:50:56 No grep here on Windows Feb 20 03:51:02 sure there is Feb 20 03:51:05 PowerGrep Feb 20 03:51:05 Yeah cygwin Feb 20 03:51:06 i'm willing to bet google will disagree Feb 20 03:51:14 there's a billion greps on every platform Feb 20 03:51:22 Hm Feb 20 03:51:28 Strings appear to be fine Feb 20 03:51:34 Yet for some reason user agent is broken Feb 20 03:51:40 In the app Feb 20 03:53:43 Except for the fact there's no ICS string in here. Feb 20 03:53:48 does Kies include the USB drivers necessary for connecting my phone? Feb 20 03:54:07 JakeWharton: do i check "Is library Feb 20 03:54:27 for the library you do Feb 20 03:54:35 not for your project Feb 20 03:55:34 JakeWharton: I did a addView of my framelayout inside the pulltorefreshscroll, now it focuses on the bottom of the layout and only pulls when drawn from the bottom 1/4th of the page (not enough to refresh) Feb 20 03:55:52 pulltorefreshlist** Feb 20 03:56:31 never used it Feb 20 03:56:34 the samples work well enough Feb 20 03:56:40 are you following one of them? Feb 20 03:57:22 Yea the pulltorefreshlist one, Feb 20 03:57:46 But I'm trying to fit it to act as a scrollview Feb 20 04:00:31 <_Syzygy> all I want are some drivers, and now I have to install fucking kies.... Feb 20 04:00:46 ew Feb 20 04:01:34 fuark it ill try it later, thanks jake, night android-dev's Feb 20 04:01:39 <_Syzygy> to be honest I'm mildly enraged about this. Feb 20 04:02:42 <_Syzygy> http://www.youtube.com/watch?v=DvHOGD-tDVU Feb 20 04:04:33 <_Syzygy> oh, that went into the wrong channel... Feb 20 04:09:25 4) If you use ViewPager in an xml layout, be sure to use the full reference, e.g. Feb 20 04:09:25 android:layout_width="match_parent" Feb 20 04:09:25 android:layout_height="match_parent" Feb 20 04:09:25 android:id="@+id/awesomepager"/> Feb 20 04:09:28 where do i put that? Feb 20 04:14:39 Hello-- I am having some weird issue using a vertex buffer object on android 2.2.1 (works fine on 3.0 and up). Anyways I've stripped it down to something very basic: I load a vertex buffer object with 100 or so points (less than 10 seems to cause no problem, more and it begins), all set to the coordinate (0,0,0). Anyways I get a few random points drawn. I'm presuming because there are issues with VBO's on froyo, but how can I u Feb 20 04:15:47 *a few random points drawn not at the origin, if I rotate the device (to cause to the activity to start again) it'll again draw, again with some random noise points Feb 20 04:16:24 I can't seem to find an example online of how to use a vertex array that is not essentially a vertex buffer object. Feb 20 04:17:50 NightmareApps, in your layout XML Feb 20 04:50:16 morning all Feb 20 04:59:39 has anyone used NativeDriver ? specifically its screenshot taking capabilities? Feb 20 05:00:26 or more broadly, is it generally a thing, that connecting a phone to a windows PC gives you different functionality than connecting it to a Linux / OSX PC ? Feb 20 05:02:11 boom Feb 20 05:20:03 you know what i want? Feb 20 05:20:13 for apps that i can get in the market to not show up in /system/ Feb 20 05:20:32 also: open source the maps lib or make it less sucky :( Feb 20 05:21:15 cow, ABS v4 no longer has its own support-lib plugin Feb 20 05:21:23 you're on your own for one that supports MapActivity base... Feb 20 05:21:29 there's a couple on GitHub Feb 20 05:21:36 or you could just include the sources in your app and make it super easy Feb 20 05:21:57 thats actually a good thing JakeWharton Feb 20 05:22:02 means im no longer dependent on you or maven Feb 20 05:22:03 :) Feb 20 05:22:38 how did you manage that though? Feb 20 05:22:43 is there a SherlockFragmentActivity or somethin? Feb 20 05:22:48 yepo Feb 20 05:22:51 -o Feb 20 05:23:02 i was a trixy hobbit Feb 20 05:23:21 i need to go get raped by federal agents soon :( Feb 20 05:23:33 flying somewhere? Feb 20 05:23:38 i applied for a nexus card Feb 20 05:23:45 it was "conditionally approved" today Feb 20 05:23:53 wuzzat Feb 20 05:23:56 i.e. my application is fine, i jsut need an interview and an iris scan Feb 20 05:24:30 it lets you skip the customs lines going between canada and usa Feb 20 05:25:44 oic Feb 20 05:25:52 Hello. How can I make my Android.mk automatically install an external pre-compiled .so file into the libs/armeabi directory? Feb 20 05:31:39 so the map library Feb 20 05:31:41 wow Feb 20 05:32:04 yeah Feb 20 05:32:11 it has a MapBiller class Feb 20 05:32:18 that looks at whether you have location displayed and a route displayed Feb 20 05:32:27 private void sendBill(MapPoint paramMapPoint, boolean paramBoolean1, boolean paramBoolean2, Map paramMap) Feb 20 05:34:33 so, I need to duplicate the divider functionality of ICS' LinearLayout on prior API levels Feb 20 05:34:44 any suggestions? Feb 20 05:35:38 huh? Feb 20 05:36:01 action item and tab dividers are part of LinearLayout Feb 20 05:58:49 Wow soo quite today Feb 20 05:59:04 Never seen the channel like this before Feb 20 06:00:53 new to freenode? Feb 20 06:01:09 please be quiet Feb 20 06:01:16 ? Feb 20 06:01:22 kinda Feb 20 06:01:27 still ealrning irc Feb 20 06:01:29 learning* Feb 20 06:01:37 silenico incommunicado Feb 20 06:01:52 why Feb 20 06:02:00 baby's sleeping Feb 20 06:02:08 turn the computer off then Feb 20 06:02:20 the chans are sporadic, often no chatting Feb 20 06:03:12 hey this might be a dumb question, but im making a oneoff program for a friend that i dont intend to put on the market. is there any way to get it to his phone? Feb 20 06:03:37 just need to upload somewhere .apt and thats it Feb 20 06:04:04 that a relief, thanks Feb 20 06:06:26 JakeWharton: you therE? Feb 20 06:06:32 a bit Feb 20 06:06:34 about to go to bed Feb 20 06:06:36 1am Feb 20 06:06:39 ill be quick Feb 20 06:06:53 i implemented your example for viewpager Feb 20 06:07:03 how do i add my own content to each tab though Feb 20 06:07:16 change the adapter to return whatever fragment you want Feb 20 06:07:26 or you can use plain Views Feb 20 06:07:41 the adapter is in a base class... Feb 20 06:08:02 https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/sample/src/com/viewpagerindicator/sample/TestFragmentAdapter.java Feb 20 06:08:12 so you'd return your own fragments in getItem() based on the index passed in Feb 20 06:09:01 there's also just PagerAdapter which will want a view Feb 20 06:09:21 exhausted Feb 20 06:09:22 going to bed Feb 20 06:09:23 night Feb 20 06:09:24 do i just extend fragment Feb 20 06:09:24 good luck Feb 20 06:09:26 ah okay Feb 20 06:09:27 these nerds will help Feb 20 06:09:30 :) thanks Feb 20 06:10:36 I'm flipping Fragments in a FrameLayout, and I'd like the back button to flip to the previous Fragment instead of Activity. Is there some obvious way to do this? Feb 20 06:20:08 Anyone know how to work with fragments? I want to display a button and such on it but i dont know how to add this without the usual xml Feb 20 06:21:38 http://i.imgur.com/5OgoL.gif Feb 20 06:26:38 nice :P Feb 20 06:26:51 the better question is, can i use setContentView(R.layout.main); on a fragment? Feb 20 06:29:48 NightMare: Not really. Feb 20 06:30:12 I added some Code for WakeLock. Now all the apps have Wakelock. How do i set it so that wakelock only affects my app. Feb 20 06:30:26 NightmareApps: It's easiest if you use something like a FrameLayout in a normal view. Feb 20 06:30:32 And then put the Fragment inside that. Feb 20 06:32:05 So I'd like to use a theme that changes various attributes, including the text color for text view. However this color doesn't look so great for the Spinner widget. I know I can make a "custom" layout, but my "custom" layout is simply to tell android to NOT use the theme. I'd like to make this easy on myself, since I'd want support for the Holo theme and such. How do I go about doing this? Feb 20 06:37:09 HOw do i get wakelock to not affect other apps while mine is running. Feb 20 06:40:46 sdpflpsdlf Feb 20 06:47:38 Can you build jni libs for x86 architecture with ndk? Feb 20 06:48:10 I read something that hinted toward that, but I'm not seeing anything else. Feb 20 06:54:57 I got a bug with WakeLock? Anyone use it before Feb 20 07:06:09 hi guys. I have View displayed using WindowManager. To display it, i do wm.addView(my_view, my_layout_params);. To remove it, i do wm.removeView(my_view);. But if i need to just change layout params, i have to remove and add it again. Is there a better way, just to change layout params? I tried my_view.setLayoutParams(my_layout_params); , but it does not work, unfortunately Feb 20 07:16:41 which of these is real android source code git,svn,tgz,tar.gz >? Feb 20 07:17:11 lol, how can i move a view to another perspective in eclipse... traceview is running in my java perspective instead of ddms Feb 20 07:19:56 hey Feb 20 07:20:42 faoivnaoerig7, no i don't Feb 20 07:23:20 * faoivnaoerig7 slaps holde around a bit with a large trout Feb 20 07:23:47 Hello, i was wondering if there is any offline synchronization tool for backing up data from android phones to ur machine ? Feb 20 07:23:53 for linux Feb 20 07:30:17 does anyone here know about dalvik byte code? Feb 20 07:33:09 anybody...? Feb 20 07:35:28 coderroadie: wait around. it is 2:30am Feb 20 07:36:16 i thought all us Android full timers worked double shifts ... :-D Feb 20 07:36:41 QQ Feb 20 07:36:48 no answers for me Feb 20 07:37:05 well I can answer other people's questions in the meantime. Feb 20 07:37:13 How's everyone doing tonight? Feb 20 07:37:24 goooooooooooooooooooood Feb 20 07:37:28 It's 8:37 am here ;P Feb 20 07:37:42 12:37 am. watching arrested development Feb 20 07:37:50 arkiver, adb backup? Feb 20 07:41:52 holde, will it backup contacts/messages/notes/events as well? Feb 20 07:42:18 holde, i think it backs up on cloud , does it ? Feb 20 07:42:23 holde, is there any simple GUI app for GNU/Linux which can do this? Feb 20 07:45:05 i don't know Feb 20 07:45:58 holde, okay. no prob. that's the answer we get on search engines as well! Feb 20 07:46:09 you can use adb pull as well if you only want specific files/dbs Feb 20 07:46:26 shouldn't be hard to automate it, if you're on linux Feb 20 07:47:09 can anyone tell me where are these path variables set eg LOCAL_MODULE_SUFFIX and other evoirnent variables Feb 20 07:47:11 http://pastebin.com/KzbQW7aa Feb 20 07:48:07 holde, i know about adb, but what for normal user? any sync tool? Feb 20 07:48:18 those files exist in my directory but the paths are not gettin set can someone help Feb 20 08:01:40 what do you guys/girls do do to close a database when your application shuts down? Feb 20 08:02:12 I don't like doing it at the close of an activity, cause I don't really have a root activity Feb 20 08:02:23 do I really have to override my application class? Feb 20 08:02:36 or can I just pass an event listener? Feb 20 08:02:57 Hello. Could anyone help with my http POST issue in a private chat? I created a basic app that should send a POST, but cant see output in php site. Feb 20 08:03:07 you should try and keep the DB open only as long as you need it open Feb 20 08:03:25 Bebi: pastebin your code Feb 20 08:03:28 bankai_: I want that, but I get errors from logcat Feb 20 08:03:34 errors saying what Feb 20 08:04:10 bankai_: that I never close my database: 02-20 08:36:50.427: ERROR/Database(27908): close() was never explicitly called on database '/data/data/doPackage.doApp/databases/Do' Feb 20 08:05:04 Is there a single command I'm supposed to use to setup NDK? Feb 20 08:05:14 like "make NDK" or something? Feb 20 08:05:15 might wanna override onDestroy and do it there then Feb 20 08:05:46 the activity that I call at the start of my app is created over and over again throughout my app Feb 20 08:05:53 so I can't do that Feb 20 08:06:14 Is there anything wrong with closing the database after you've done your reads/writes for that particular chunk of code? Feb 20 08:06:15 I could keep a ref counter, and close the database when that hits zero Feb 20 08:06:31 I mean, how much overhead is there in re-opening it? Feb 20 08:06:36 Jouva: it would be a lot of bookkeeping Feb 20 08:06:49 "bookkeeping" ? Feb 20 08:07:02 guidocalvano: are you handling onPause properly ? Feb 20 08:07:09 hi , I am new here, would like to know whether I'm able to ask about android apps coding here ? Feb 20 08:07:31 bankai_: there is an onPause where I could close the database? Feb 20 08:07:38 or it's just only dedicate for Q&A on android OS ? Feb 20 08:07:46 http://developer.android.com/reference/android/app/Activity.html read this Feb 20 08:07:59 newbuser: shoot Feb 20 08:08:01 newbuser: This is the channel to ask for info on making apps, yes. Feb 20 08:08:03 bankai_: I think I am going to keep a refcount on the database Feb 20 08:08:15 Jouva : thanks , :-D Feb 20 08:08:47 bankai_ and Jouva tnx for the help Feb 20 08:08:49 (: Feb 20 08:09:00 guidocalvano: if you aren't opening and closing your DB when it's not in use, you need to handle onPause and onDestroy gracefully else you're just going to cause problems for yourself and your data Feb 20 08:09:45 I downloaded a free apps but it doesn't scale as well on the size on galaxy tab which it's only for mobile . I tried to modified the .xml but still it doesn't scale fullscreen Feb 20 08:10:03 So I'd like to use a theme that changes various attributes, including the text color for TextView. However this color doesn't look so great for the Spinner widget. I know I can make a "custom" layout, but my "custom" layout is simply to tell Android to NOT use the theme. I'd like to make this easy on myself, since I'd want support for the Holo Theme and such. How do I go about doing this? Feb 20 08:10:46 newbuser: So the full source code was provided? Feb 20 08:11:54 Jouva : I just extract it Feb 20 08:12:43 Ohhhh, I'm not sure about how well modifying data in .apks works. I mean it might! But I'm not sure if it's something supported in here or not. Feb 20 08:16:32 newbuser, there are some relevant options in AndroidManifest.xml that you can tweak Feb 20 08:17:58 Jouva : which code i should add ? sorry newbie on android Feb 20 08:18:01 Bebi: take a look at this http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android Feb 20 08:18:21 newbuser: Trying to take a look at this Feb 20 08:19:09 isnt the apk supposed to be signed and not modifiable ? Feb 20 08:20:03 newbuser: I think I see the issue. It's not so much the layout as it is the drawable-hdpi files Feb 20 08:21:22 Estragon, you can not modify it and keep the same signature of course Feb 20 08:21:32 newbuser: Essentially most of those files are the very same as the ones in the drawable directory. /res/drawable/ is essentially the same as /res/drawable-mdpi, so they look fine on mdpi devices, but if you use the same sized files for hdpi, it'll look small. Feb 20 08:21:40 (unless you have the relevant certificate) Feb 20 08:22:47 iivvoo: but tke signature would then be false ? I thought dignature was an integrity check Feb 20 08:22:48 newbuser: My suggestion would be to see if you can either replace those files in /res/drawable-hdpi that have the same dimensions as their /res/drawable counterparts with either rescaled ones OR just delete them from the drawable-hdpi folder all together and let android rescale them on the fly Feb 20 08:24:30 Estragon, you can just re-sign with your own certificate Feb 20 08:24:31 newbuser: Hopefully you can modify the apk in this way and still have it work though. I've not modified .apk files myself, but it really boils down to the .png files and not the layout from what I can tell Feb 20 08:25:05 android of course wouldn't accept it as an update/replacement of the original package, but with android you're free to generate your own certificates and sign your apk's with it Feb 20 08:25:31 iivvoo: oh of course yes, missed that Feb 20 08:26:05 Jouva : i am trying now , give me some time :) Feb 20 08:26:08 thank you :D Feb 20 08:26:33 looking through now .. Feb 20 08:26:36 Heck even as a quick test, just delete the whole drawable-hdpi folder and see if that changes things Feb 20 08:26:42 Of course keep a backup Feb 20 08:27:08 iivvoo: Yeah you could perhaps re-sign the .apk with your own cert, but then I'd guess you would not get updates from Android Market after that point Feb 20 08:28:03 Also I'm going to ask my question again before I head off since I need to head to bed soon but figured I'd see if maybe somebody just woke up or joined that can help Feb 20 08:28:23 I'd like to use a theme that changes various attributes, including the text color for TextView. However this color doesn't look so great for the Spinner widget. I know I can make a "custom" layout, but my "custom" layout is simply to tell Android to NOT use the theme. I'd like to make this easy on myself, since I'd want support for the Holo Theme and such. How do I go about doing this? Feb 20 08:30:26 jouva actually the market app will still show updates but will fail to install them Feb 20 08:30:36 Oh, right, yeah. Feb 20 08:30:48 actually had this recently, installed a development app with debug certificate on my phone while there was a "real" version in the market Feb 20 08:30:58 and due to specific reasons, my development version had a lower version number Feb 20 08:31:24 I'm trying to change the startup activity, so I just changed the name of this activity in my manifest, but I get the following error: Feb 20 08:31:25 [2012-02-20 09:30:06 - Do] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=doPackage.doApp/.TimelineActivity } Feb 20 08:31:25 [2012-02-20 09:30:06 - Do] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=doPackage.doApp/.TimelineActivity } from null (pid=28219, uid=2000) requires null Feb 20 08:32:44 guidocalvano: do you have the right intent filter for the new actovity ? Feb 20 08:33:22 Feb 20 08:33:22 Feb 20 08:33:22 Feb 20 08:33:22 Feb 20 08:33:25 sry Feb 20 08:33:40 Can you pastebin the manifest? Feb 20 08:33:51 http://pastebin.com/r3bAxj5q Feb 20 08:33:58 sry Feb 20 08:34:03 the whole manifest in a sec Feb 20 08:34:37 http://pastebin.com/SMQe56yc Feb 20 08:34:39 here you go Feb 20 08:34:57 You have TimelineActivity defined twice Feb 20 08:35:05 (: Feb 20 08:35:18 Remove that 2nd definition Feb 20 08:35:39 (: Feb 20 08:35:41 done Feb 20 08:35:44 that did it Feb 20 08:37:10 If you're still using that old activity that was the startup activity but for other purposes, don't forget to still keep it defined Feb 20 08:54:21 Is there a repository where people have dumped device caps for various Android devices? Such as max shader instruction count, max number of simultaneous textures, etc. Feb 20 08:54:25 For OpenGL ES 2. Feb 20 08:59:42 Jouva : I dont mind with the .png look awful , just wanted a bigger screen. Now I just need to delete the whole /res/drawable-hdpi and resign back. Feb 20 09:11:13 badmrsfrosty: not all-inclusive, but it's a start: http://stackoverflow.com/questions/2093594/opengl-extensions-available-on-different-android-devices Feb 20 09:14:20 this one's a bit closer: http://stackoverflow.com/questions/3881197/opengl-es-2-0-extensions-on-android-devices Feb 20 09:14:48 lol, how can i move a view to another perspective in eclipse... traceview is running in my java perspective instead of ddms Feb 20 09:17:16 holde: windows - views Feb 20 09:18:53 badmrs: this site looks promising, too: http://www.glbenchmark.com/result.jsp Feb 20 09:22:52 Ivru thanks, will try.... Feb 20 09:23:04 is layoutopt still in the sdk? can't find it Feb 20 09:29:59 holde: you're meant to use lint instead Feb 20 09:31:51 can mediaplayer provide a callback when it's playing suitable for updating a progressbar? Feb 20 09:31:56 or should I do something myself in a thread? Feb 20 09:32:39 using mediacontroller isn't really an option, it looks horrible and can't be customized (and is more than I need anyway) Feb 20 09:37:56 hello Feb 20 09:43:29 i have a question: I need to get all Data from the telephone book - currently when I try to get the contacts, the telephone application opens and i can select the entries (not good) Feb 20 09:46:00 Pinas: do you work for Path? :) Feb 20 09:46:11 for who ?? Feb 20 09:46:59 well since i dont work for anyone - no i dont work for Path :D Feb 20 09:48:35 Pinas: you should use the content provider instead of the intent Feb 20 09:51:36 Estragon - ok thx, i have never done this but I'll try Feb 20 09:55:19 Hello. How can I make my Android.mk automatically install an external pre-compiled .so file into the libs/armeabi directory? Feb 20 10:02:20 I tried , it doesn't install , how do I modified the resolution on an apps which optimize on mobile screen size ? Feb 20 10:34:12 which java version is android actually running on? 1.6? Feb 20 10:39:50 everythingWorks: android doesn't use the java vm at all, it uses dalvik Feb 20 10:40:07 appel1: Just figured out that i need jdk 5 or 6. Feb 20 10:40:10 it wont work with 7. Feb 20 10:40:29 everythingWorks: didn't understand that you were asking about the SDK Feb 20 10:40:31 i didnt talk about the vm? ugh? Feb 20 10:40:45 okay. Feb 20 10:42:03 everythingWorks: it also doesn't use the 'jdk' per se, it has its own standard lib Feb 20 10:42:13 everythingWorks: ie, it'll use javac, but that's about it Feb 20 10:42:38 Mdijkstra: Jup, better said, it requires 5 or 6 for compilation. Feb 20 10:43:17 thought it required 5 Feb 20 10:43:20 but yay, progress Feb 20 10:43:24 http://developer.android.com/sdk/requirements.html :) Feb 20 10:43:30 I hope for 7 *gg* soon Feb 20 10:43:47 yep, "JDK 5 or JDK 6 (JRE alone is not sufficient)" :D Feb 20 10:44:00 anything noteworthy in 7? Feb 20 10:45:08 the new generics syntac is quite nice Feb 20 10:45:18 MDijkstra: a lot.. ;) You should really take a look on it. Feb 20 10:45:28 Map> someMap = new HashMap<>(); Feb 20 10:45:41 stork: its called the `diamond operator` :p Feb 20 10:45:47 Feb 20 10:45:48 s/a lot/a couple of syntactic things that really weren't worth waiting for/ Feb 20 10:45:59 haha, I started on java 1.4 Feb 20 10:46:14 me too Feb 20 10:46:17 string switch'es and auto releasing ressources as well as a lot synchronization and algorithm stuff. Feb 20 10:46:29 i started on 1.6 :p Feb 20 10:47:15 i still don't like how everything is 1.4 compatible Feb 20 10:47:28 generic types being unavailable at runtime, bleh. Feb 20 10:47:45 sorry, pre 1.4 compatible Feb 20 10:57:44 how does the admob integration to eclipse work in the `new way` where you download the admob sdk with the `android sdk manager`. Feb 20 10:57:56 I have done so and its installed now. How can i now integrate this library to my project? Feb 20 10:58:28 probably just pickin' the jar. t_t. Feb 20 10:58:54 thanks ;) Feb 20 11:09:38 I'm running an animation with 100 milli seconds duration. I'm checking the time at onAnimationStart() and onAnimationEnd(). The time difference is more than 150milli seconds.. how to reduce it ? Feb 20 11:11:49 Hello guys, can someone give me an example to request a list of items from a webserver. Or what kind of technique is used? For my job I've developed more propriatry socket connection with encryption and it's very custom. But in my own time for my private project I want to download items I normally have on my website. Can you provide me links where to look and what to read? Thank you Feb 20 11:13:28 hi guys, can anybody help me with Feb 20 11:13:28 Number5: json Feb 20 11:13:37 java.lang.IllegalArgumentException: no dialog with id 0 was ever shown via Activity#showDialog Feb 20 11:13:39 ? Feb 20 11:14:21 monsti, is json the trick to do that? I thought of a combination of AsyncTask and http requests etc.. Feb 20 11:14:42 monsti, do you have some links with examples? Feb 20 11:17:23 What I want is, perform a request to the webserver like from this catagory I want all the items , and than I receive the result in a certain format and also the images that belongs to the list. On Android I show these items in a ListView. Displaying such items is not a problem, the problem is more how to get the list from a webserver. Feb 20 11:18:13 Hello Feb 20 11:19:59 I will have to build a prototype of communicating device, and i need a android tablet with full usb host capability, have you a advice on witch tablet will be good for that kind of dev ? Feb 20 11:24:57 witch tablet? Feb 20 11:25:15 ... witch tablet, you say... Feb 20 11:25:21 burn the witch (tablet) Feb 20 11:25:37 Hello, may I ask a small question about Actionbar Sherlock / FragmentMapActivity & build targets? Feb 20 11:25:41 zitune, from what I understand is that Android 4.0 will support usb host capability. Feb 20 11:27:13 Number5, yes it seems that it exist since 3.1, but i'm more concerned by the hardware Feb 20 11:27:42 the tablet must have the capacity to be host (and rootable will be an advantage) Feb 20 11:28:02 I think you should look at the specs, but I think the big guys will support it like samsung, asus etc.. Feb 20 11:29:37 storkme, I still have a novice question, what's the best method to download a webpage content? I'm preparing a website, and certain items I show on my website will be shown on my app. At least I hope to acheive thi :) Feb 20 11:30:20 AsyncTask is an easy way, not sure about best though Feb 20 11:31:07 yes, but imagine I just want some the items to download, this means the only option is to have some kind of RESTful api built on my site? Feb 20 11:31:46 otherwise I have to parse the webcontent and pull out only the ones I want, I assume. Feb 20 11:32:37 I see a lot of 3th party apps getting content from famous websites, are they parsing the whole page to display only the important parts? Feb 20 11:39:12 dfplgp Feb 20 11:48:42 Hello! Feb 20 11:53:00 eHllO Feb 20 12:01:21 hi Feb 20 12:01:28 sdcgj Feb 20 12:02:24 does anyone know if it is possible to load a style .xml file ? Something like the layout inflate for views... Feb 20 12:10:54 fuuuuck, a few nested layouts and the view rendering takes about 1-2sec... are nested weights really that bad? :/ Feb 20 12:11:10 what weight Feb 20 12:11:15 what nested wights Feb 20 12:11:31 whats fuuuukc? Feb 20 12:11:43 nest layout ?>? Feb 20 12:11:46 wefkdffdgdfgjj Feb 20 12:16:02 how else are you supposed to make a layout that scales? Feb 20 12:17:36 holde: you could use the Hierarchy Viewer to find out what it is that takes so much time Feb 20 12:18:35 holde: or perhaps layoutopt Feb 20 12:19:05 i don't have layoutopt and lint doesn't give tips Feb 20 12:19:31 holde: should be in the tools dir of the sdk Feb 20 12:19:31 and HV confuses me Feb 20 12:19:37 the times don't add up Feb 20 12:19:49 appel1, it's not, someone here told me it got replaced by lint Feb 20 12:20:00 holde: oh, ok Feb 20 12:20:09 i ran profiling Feb 20 12:20:30 but there is too much going on, but from what i can see getmeasure() is called 2k times? Feb 20 12:23:09 holde: I still have layoutopt but perhaps it just didn't get cleaned away when I upgraded the sdk Feb 20 12:23:24 i already searched for it :/ Feb 20 12:23:25 is there an easy way to get the submit button on an ICS EditText like here: http://developer.android.com/design/static/content/text_input_singlevsmultiline.png ? Feb 20 12:23:46 Or do I just do it myself with a layout and appropriate icon etc.. Feb 20 12:25:52 holde: perhaps you just need to simplify your layout until you find what triggers your problem :\ Feb 20 12:26:27 yeah, well i might try tablelayout instead Feb 20 12:26:32 or maybe relativelayout Feb 20 12:27:07 don't know what makes more sense Feb 20 12:32:11 the AlarmManager lost all informations by reboot, shutdown and so on. i have to implement a "persistens" for alert events myself? I think on a boot finished to register the alarms again in the manager. or is there a better way? Feb 20 12:35:03 hello people Feb 20 12:37:14 I'm writing a unit test for a class which downloads stuff from a server, but the server needs authentication so I need to provide a username and password, but I don't want to hardcode the username/password in the unit test. So is there a way I could pass somehow these 2 parameters to my unit test before starting it perhaps via Hudson or any other way ? Feb 20 12:37:21 meh, almost all time is spent in measurechildwithmargins Feb 20 12:42:30 psicho: from a non-android specific standpoint I think those kind of tests usually use environment variables. Make it so if they're not set the test is skipped Feb 20 12:52:33 Exception: http://codepad.org/Ufzkvl95 || Code: https://github.com/ninetwozero/BF3-Battlelog/blob/1.0.8/src/com/ninetwozero/battlelog/services/BattlelogService.java#L88 Feb 20 12:52:46 How come the Exception only occurs once in a while Feb 20 12:52:52 and like... never on my test device? Feb 20 13:04:17 Are you trying to start an asynctask from a thread? Feb 20 13:05:59 SimonVT: That depends... is my TimerTask on it's own thread? Feb 20 13:07:13 Weird thing is that it doesn't crash for me, but a lot of users are experiencing it. :-/ Feb 20 13:08:14 Pretty sure it is, yeah Feb 20 13:11:13 n20: why are you not using AlarmManager if all you want is to start your service at a fixed interval? Feb 20 13:12:18 n20: also, keeping a static reference to the activity context is usually (always?) a bad idea.. http://developer.android.com/resources/articles/avoiding-memory-leaks.html Feb 20 13:12:57 appel1: I want to poll for data every X , so I thought a TimerTask would be able to run the AsyncTask at given intervals Feb 20 13:13:20 n20: but then your applications must be running the whole time Feb 20 13:14:00 how can I get all phone contacts by using ContactsContract ??? Feb 20 13:15:01 appel1: Yeah, as I want it to keep the session alive. Adding the service really switched things up. :( Feb 20 13:15:30 n20: that sounds really bad for batterylife Feb 20 13:16:08 However, it doesn't grab a wakelock so it will *just* poll when the screen is on. appel1 Feb 20 13:16:13 does anyone know if it is possible to load a style .xml file ? Something like the layout inflate for views... Feb 20 13:16:48 It isn't xroberx Feb 20 13:16:54 You have to set the theme to what you want Feb 20 13:17:22 SimonVT: then, there is no way to modify a theme programmatically ? Feb 20 13:17:37 Activity.setTheme() Feb 20 13:17:43 needs to be done before setContentView Feb 20 13:17:50 n20: so you don't have an active connection to your server either? Feb 20 13:18:01 n20: thought that was what you meant by session Feb 20 13:18:12 SimonVT: i mean modify, not set Feb 20 13:18:34 No, not really Feb 20 13:18:40 SimonVT: ok, thanks Feb 20 13:18:57 appel1: Nope, it's just polling the server for data. If it's getting "wrong" data, we're presumed to be logout and the service relogins. Feb 20 13:19:35 appel1: Would removing the AsyncTask from my TimerTask help out with the exception? Feb 20 13:20:18 Also, I'd need to do something with the Context, as it seems to be the one that *triggers* everything. appel1 Feb 20 13:20:43 n20: so you might as well just use the AlarmManager combined with an IntentService that does the work? Feb 20 13:23:21 appel1: How would I keep my *session* valid? + would I need to do some caching for the widget to rely on instead of a direct connection? Feb 20 13:23:30 * n20 is lost in cyberspace. Feb 20 13:24:04 I could probably just store the vital cookie in the SharedPreferences for "easy" access. Feb 20 13:24:14 n20: that's one way to do it Feb 20 13:26:25 appel1: How'd you do it? :-) Feb 20 13:26:37 (pseudo-wise that is) Feb 20 13:28:56 hola Feb 20 13:29:13 Hello Ankhwatcher Feb 20 13:29:24 n20: how's your day going? Feb 20 13:30:09 Ankhwatcher: Not too great, I'm trying to figure out how to actually create a good underlying service for my app. :-) How's your going? Feb 20 13:31:35 n20: My day is going okay, I didn't have a coffee this morning so I'm kind of wondering how long it will be before I crack. Feb 20 13:32:33 Ankhwatcher: You have 5 hours until you need a refill! Feb 20 13:33:05 n20: what is your underlying service going to do? Is it part f the app or will it live on a server? Feb 20 13:34:09 Ankhwatcher: It's part of the app, and needs to poll the web server for data every X . However, my current implementation sparks an exception for some users, hang on... Feb 20 13:34:19 Exception: http://codepad.org/Ufzkvl95 || Code: https://github.com/ninetwozero/BF3-Battlelog/blob/1.0.8/src/com/ninetwozero/battlelog/services/BattlelogService.java#L88 Feb 20 13:34:23 Ankhwatcher: ^ Feb 20 13:34:25 n20: I'd use a SharedPreference :) and a design more similar to the samples in the Android SDK. AlarmManager to trigger updates and a service that gets data and updates the widgets. Feb 20 13:34:50 the AlarmManager lost all informations by reboot, shutdown and so on. i have to implement a "persistens" for alert events myself? I think on a boot finished to register the alarms again in the manager. or is there a better way? Feb 20 13:35:29 appel1: Then that's the way I'll do it. I'm a bit worried for how long my "static" singleton will live, as it contains the "session data" for the logged in user. Feb 20 13:35:38 drindt: BOOT_COMPLETED is how it's done Feb 20 13:36:01 n20: just don't blame me if you run into any issues ;) Feb 20 13:36:56 appel1: Which is why I liked my current longliving service, as it would (probably) keep the singleton alive even when the app itself is sleeping Feb 20 13:37:10 appel1: I won't, as I got it all backed up on github *evil laugh* Feb 20 13:37:17 Breaking news: Github servers are down Feb 20 13:37:24 n20: services can be stopped and restarted at any time as well Feb 20 13:38:10 n20: unless it is a foregrounded service then it'd be really exceptional circumstances Feb 20 13:38:35 n20: oh hey, I'm a bf3 player. I'll give your app a go. Feb 20 13:39:05 same here Feb 20 13:39:38 appel1: Yeah, I noticed that behavior, but it seems to have coped with it quite good. I'll have to make sure the app seamlessly *recreates* the singleton when opening it after being idle Feb 20 13:40:34 Ankhwatcher: Woo, let me know if you experience any issues! ( MDijkstra too!) http://bit.ly/bf3bl (Market-link) Feb 20 13:40:59 Or you could just build it yourselves if you want to do that, ha. :) Feb 20 13:41:42 Already installed ;) Feb 20 13:42:07 n20: depends on how many any apps you have installed with long-running services Feb 20 13:42:14 can someone tell me how I can get all contacts of a phone via ContactsContract ???? Feb 20 13:42:20 n20: your app isn't the only one that handles their services "wrong" Feb 20 13:42:21 and crashed:( Feb 20 13:42:45 Ankhwatcher: Do you have an sdcard? Feb 20 13:42:51 Pinas: what have you tried and what do you have problems with? Feb 20 13:42:57 n20: yes Feb 20 13:43:12 appell i tried it with getContentResolver and that works fine Feb 20 13:43:38 appel1: I'd like to learn how to actually make a good service, and I think the pointers I've gotten here should help. Just a bit scared to take the leap lol. Feb 20 13:43:45 Ankhwatcher: Hmm, could you pull a logcat? Feb 20 13:44:03 appell: but I need to do the same with ContactsContract. So i created an Intent to get the contacts, but when i want to get the contacts, the contact application opens and I have to select a contact Feb 20 13:44:08 thats not what i want :) Feb 20 13:44:13 When updating a view, is it possible to only re-draw this portion of the screen? Feb 20 13:44:32 XeruX: yourView.invalidate()? Feb 20 13:44:39 Pinas: the intent is for letting a user pick a contact, not getting all contacts Feb 20 13:44:50 ok, how would I get all contacts ? Feb 20 13:45:11 n20: I'm doing myTextView.setText() every second, and the whole screen gets updated it seems Feb 20 13:45:23 Pinas: usually a good thing, and on 2.3+ you can even do that without requiring any scary permissions Feb 20 13:45:47 XeruX: Hmm... is it flickering? Feb 20 13:45:55 appell: you mean that the intent is a good thing ?? Feb 20 13:46:19 Pinas: depends on what you want to do of course Feb 20 13:46:38 The only thing the ACTION_PICK (Contactpicker) does "wrong" imo is that it doesn't allow multiple selections. :( Feb 20 13:46:44 Pinas: if you do need all of them then this migth be a good place to start http://developer.android.com/resources/samples/ContactManager/index.html Feb 20 13:46:50 appell: actually i need to create some statistics about telephone numbers and such stuff - so picking all is not that good :D Feb 20 13:47:25 Pinas: ok Feb 20 13:47:38 SimonVT, so by boot_completed just reregister the alarms? Feb 20 13:47:50 n20: I just hooked up logcat and did the same actions again but this time it didn't crash. Maybe it's becausee I changed the unlock I was looking at while it was still loading. Feb 20 13:47:52 appell: this link seems interesting, thank you :) Feb 20 13:47:56 n20: flickering? The whole screen flickers when I set the new text (Using the dev-tool on the nexus galaxy) Feb 20 13:49:12 I'm just thinking.. why re-draw the whole screen when I'm only changing ONE of the views Feb 20 13:49:34 all I'm doing is changing the text of a textview Feb 20 13:49:36 Ankhwatcher: Still a weird crash though, nothing left in the logcat? Feb 20 13:49:42 Why chose to dev for Android ? Why not just dev for iphones ? Feb 20 13:49:53 XeruX: depends on your layout, perhaps the size of the textview triggers other layout changes? Feb 20 13:49:54 drindt: yes Feb 20 13:50:15 SimonVT, thank you for sharing this information Feb 20 13:50:38 n20: My phone wasn't connected. I submitted a crash report through the phone when it happened. Feb 20 13:52:08 Ankhwatcher: I'll see if I find it! Feb 20 13:52:19 I > can < find it Feb 20 14:06:07 what's up with anddev.org?? Looks like they got the crap spammed out of them!! Feb 20 14:07:39 is there an easy way to get the submit button on an ICS EditText like here: http://developer.android.com/design/static/content/text_input_singlevsmultiline.png ? Feb 20 14:12:22 Hello. How can I make my Android.mk automatically install an external pre-compiled .so file into the libs/armeabi directory? Feb 20 14:13:23 bourke: look at the AOSP messaging app and see how they've done it? Feb 20 14:13:50 appel1: good idea, knew id seen it somewhere before Feb 20 14:13:54 thanks Feb 20 14:22:06 hi guys, I'm trying to start another activity from my main activity Feb 20 14:22:22 but at runtime I get "have you declared the second activity in the manifest.xml?" Feb 20 14:22:26 what could I be doing wrong? Feb 20 14:22:30 it's declared in the manifest ofc Feb 20 14:23:51 faenil: you've somehow not declared it correctly in the manifest or there's something wrong with the intent use with startActivity Feb 20 14:23:57 incorrectly of course =) Feb 20 14:24:37 faenil: paste your manifest Feb 20 14:29:07 faenil: into pastebin.org, not into chat. Feb 20 14:29:48 okay just making another try Feb 20 14:35:53 does anyone know any free pdf lib for android? pdfbox doesnt seem to work. itext is way too expensive, pdfjet.. isnt free either :) Feb 20 14:36:25 why does the android xml editor keep using spaces for indentation even when I disable the "use standard XML formatting" option? Feb 20 14:45:16 because tabs are evil? Feb 20 14:46:52 Hello Feb 20 14:48:18 Need little help i am new to android dev, how can i load in this code http://pastebin.com/G6mPuiVL custom images? Do they need to be some special format or it can be png? Feb 20 14:48:54 png is preferred Feb 20 14:49:08 simply put them in res/drawable/ Feb 20 14:49:19 or res/drawable-/ Feb 20 14:49:39 and they'll show up in R.drawable. Feb 20 14:51:01 I did exactly like you said yesterday, and i have name ic_weather.png and then i load with R.drawable.icweather, and it says cannot be resolved or its not a field Feb 20 14:51:10 R.drawable.ic_weather? Feb 20 14:51:18 verify which R you're loading Feb 20 14:51:22 HyperX: i think some chars arent allowed in file name Feb 20 14:51:23 is it your.package.name.R, or android.os.R Feb 20 14:51:24 try without _ Feb 20 14:51:30 _ is definitely allowed. Feb 20 14:51:34 lov: - isnt? Feb 20 14:51:45 miha: I don't know about -, but I know _ is. Feb 20 14:51:51 HyperX: I didn't say that, yesterday Feb 20 14:51:58 HyperX: and it wont find R. something until you build Feb 20 14:52:09 it'll auto-build Feb 20 14:52:15 MDijkstra: ? Feb 20 14:52:16 if you're using eclipse Feb 20 14:52:17 that is Feb 20 14:52:35 if you have project -> build automatically checked. Feb 20 14:52:37 miha: the moment you add or change something, it'll rebuild R.java Feb 20 14:52:40 and the stuff'll show up Feb 20 14:53:03 MDijkstra: not in my experience, but i'm sure you're right :) Feb 20 14:53:06 if your project is large, rebuilding R can be painful, so you might want to turn it off. The onus is on you to know that you need to build your project, though. Feb 20 14:53:12 miha: he's absolutely right, I can tell you that. Feb 20 14:53:17 Where i can check which R i am loading? Feb 20 14:53:22 HyperX: look at your imports. Feb 20 14:53:38 if there's an import for your.package.name.R, or there's NO import for R and your package is the same as your app package, it's your R file. Feb 20 14:53:47 one more try of luck: does anyone know any free pdf lib for android? pdfbox doesnt seem to work. itext is way too expensive, pdfjet.. isnt free either :) Feb 20 14:53:49 if the import is for android.os.R, it's probably for Android's global refs instead of yours. Feb 20 14:53:52 miha: nope, sorry Feb 20 14:54:06 nope, I had to display pdf's in my app as well Feb 20 14:54:18 ended up simply linking to acrobat on the market Feb 20 14:54:22 i load android.os.Bundle Feb 20 14:54:26 if I get a ActivityNotFoundException Feb 20 14:54:35 nothing else connected with android.os Feb 20 14:54:47 i need to create simple document, paragraphs, images and tables Feb 20 14:55:16 miha: ie, I moved the file to my app storage, WORLD_READABLE Feb 20 14:55:29 then I start a pdf reader, or attempt to Feb 20 14:55:44 if that fails, I pop up a dialog asking the user whether they want to install acrobat Feb 20 14:55:48 itext is great, got it all working just fine, then asked how much license costs. now looking for alternatives :) Feb 20 14:56:19 Here are all of my imports which i am using http://pastebin.com/xntDufy4 Feb 20 14:56:28 so i am not using os.r Feb 20 14:56:36 clever of them not to have any license prices on webpage :D Feb 20 14:57:53 HyperX: might be a good time to pick up a java book Feb 20 14:58:18 MDijkstra i know ^^ U am using mostly c# xD Feb 20 14:58:24 I* Feb 20 14:59:17 HyperX: http://www.mindview.net/Books/TIJ/ enjoy.. :) Feb 20 14:59:54 HyperX: you of course need to import R before you can refer to it in your code Feb 20 15:00:12 eclipse has a nice shortcut for this, on mac it's commmand+shift+O Feb 20 15:00:17 Although if the R file exists in the same package as whatever class you're working on, you don't need to import it. Feb 20 15:00:25 on windows/lunix it's ctrl-shift-O Feb 20 15:00:39 where it'll automatically try to resolve imports based on class names Feb 20 15:15:19 appel1: Follow-up question: How would I keep the singleton intact? If my *service* only runs via the AlarmManager, exiting out of the app means that the Singleton will be cleared out of the memory. :) Feb 20 15:16:19 n20: if your service only runs when needed why do you need a singleton? Feb 20 15:17:00 michaelnovakjr: Well, I need to keep the session towards the server intact. They have no API I can fetch data from without having a cookie. :( Feb 20 15:17:06 o_O Feb 20 15:17:10 sounds awesome. Feb 20 15:17:11 yikes Feb 20 15:17:15 Exactly. Feb 20 15:17:18 your cookie will eventually time out though, right? Feb 20 15:17:26 you can use sharedPreferences I'd imagine Feb 20 15:17:29 yea Feb 20 15:17:30 Yup, but I previously handled that one. :D Feb 20 15:17:32 in your service's onCreate, check the cookie value there Feb 20 15:17:38 in onDestroy, save the cookie Feb 20 15:17:46 yea, persistent storage is the right way to go there Feb 20 15:17:49 (or wherever else) Feb 20 15:17:53 The problem is Feb 20 15:17:57 that if the cookie is "invalid" Feb 20 15:18:05 should I send the user to the *login*? Feb 20 15:18:15 n20: you'll obviously have to Feb 20 15:18:24 n20: what, exactly, is this for? Feb 20 15:18:25 but from a service, it should be an auth error notificaton Feb 20 15:18:38 n20: you might want to pop up a notification telling the user that relogging in is required Feb 20 15:18:45 My current service kept a singleton (running forever) and when the cookie was deemed "finished", it just relogged in for the user Feb 20 15:18:53 o_O Feb 20 15:18:56 well, uh, that's one way. Feb 20 15:18:59 lol what? Feb 20 15:19:15 so if you can just log the user back in, why not do that again? Feb 20 15:19:20 yea Feb 20 15:19:21 (without the whole zombie process thing) Feb 20 15:19:40 YOUR USE CASE IS CONFUSING >:( Feb 20 15:19:49 * lov smashes a table Feb 20 15:19:53 RAAARG Feb 20 15:19:55 and kind of a security problem :) Feb 20 15:20:28 Ha. Feb 20 15:20:34 Well... the login is *REALLY* slow Feb 20 15:20:41 Hello, I can't find how to set a cookie to a WebView Feb 20 15:20:46 Can someone help me please ? :) Feb 20 15:20:52 It actually takes approx 10 seconds on awesome WiFi Feb 20 15:20:55 5-10 seconds Feb 20 15:21:05 All other requests take 0.5-1 seconds Feb 20 15:21:26 That's why I kept it via the singleton, to minimize the need for the login Feb 20 15:21:41 it's for http://battlelog.battlefield.com by the way. :) Feb 20 15:22:26 any1 experied a proguarded project failing to install? Feb 20 15:22:41 experienced* Feb 20 15:22:48 n20: that's not necessary Feb 20 15:23:06 n20: as previously said, use SharedPreferences instead of the singleton Feb 20 15:23:35 Estragon: Or construct my Singleton from the SharedPReferences Feb 20 15:23:42 Walui: I don't believe cookies are exposed to Java… I'd recommend getting cookie values in javascript and create a bridge between java and javascript Feb 20 15:25:21 hello! I'm new to android-dev and are playing around with SMS messaging. I want to send messages from my own app (not via sendIntent) but save the messages so that they appear in the built-in SMS application. Is that possible? Feb 20 15:25:22 n20: is this your app ? https://market.android.com/details?id=com.battlefield Feb 20 15:25:49 Estragon: Nope, I'm com.ninetwozero.battlelog (via http://bit.ly/bf3bl) Feb 20 15:26:01 rokk: its possible, but it appears that there is no "universal" way to do this Feb 20 15:26:24 rokk: http://developer.android.com/reference/android/telephony/SmsManager.html ? Feb 20 15:26:48 Walui why would u want to access the headers from a webview? Feb 20 15:26:50 I had the same question few days ago and suggested solutions were to add your sent message into the right content provider Feb 20 15:27:00 u can always do it from a htmlconnection IF u wanted to Feb 20 15:27:11 Estragon: does SMSManager not actually update the content provider with sent SMS messages? Feb 20 15:27:11 Estragon, hmm ok...any ideas of how? The sending part is working Feb 20 15:27:18 man, I really wish a lot of this stuff was more standardized Feb 20 15:27:32 lov: when I last tried, nop Feb 20 15:27:37 Estragon: poo Feb 20 15:27:54 u mean like the flashlight api is standardized xD Feb 20 15:27:57 I actually think that's a good thing Feb 20 15:27:59 lov, SmsManager don't save messages.. Feb 20 15:28:07 rokk: yep, let me retrieve the examples I found Feb 20 15:28:08 I don't want apps adding sms messages to my list Feb 20 15:28:25 Estragon, :D Feb 20 15:28:25 michaelnovakjr: I'd prefer to actually know what's being sent by apps. Feb 20 15:28:36 If an app is sending "I love cocks lol" to all my friends I'd like to know that. Feb 20 15:28:45 lov: apps should be required to get permission at runtime if you ask me :) Feb 20 15:29:00 I tried moving some generic code from my android app into a separate pure java project that I added to the Android App buildpath. Now I get some ClassDefNotFoundError whenever I try to access those classes :( Anyone knows what I could do ? Feb 20 15:29:04 michaelnovakjr: eh, I'm ok with that not happening, though I do wish that permissions were more granular and you could permit them temporarily Feb 20 15:29:05 there shouldn't be a need to send an sms from within the app unless you are an sms app Feb 20 15:29:26 michaelnovakjr: not true! Feb 20 15:29:41 rokk: you should first note that sent sms content provider is not part of the sdk Feb 20 15:29:44 read http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html Feb 20 15:29:45 michaelnovakjr: turn by turn nav sending a message to someone with your location/destination Feb 20 15:30:13 GPS tracking apps (that you know about) that send location updates every 5 mins Feb 20 15:30:14 I think life (as in coding) would be easier if I could use tokens instead of username/pwd Feb 20 15:30:16 Estragon, ahh ok... Feb 20 15:30:33 Like most SANE apis Feb 20 15:30:34 gyscos: your java project probably isn't getting exported. Feb 20 15:30:38 rokk: http://stackoverflow.com/questions/642076/how-to-save-sms-to-inbox-in-android Feb 20 15:30:50 lov: I guess. Seems like sms intents can handle about 95% of use cases Feb 20 15:31:03 lov, the classpath file contains "src"-kind entries, isn't this enough ? Feb 20 15:31:38 I think I'll make the cookie persistent via SP (just one field) and then set it to my HttpClient if I'm "restoring" the app. Feb 20 15:32:51 Estragon, many thanks. I'll try and see if it works :) Feb 20 15:33:12 rokk: keep in mind it will fail on some devices Feb 20 15:33:42 like devices without sms support, devices with random odd roms ... Feb 20 15:34:22 michaelnovakjr > In fact I get the needed cookies in a String via URLConnection Feb 20 15:34:35 Walui: yes Feb 20 15:34:36 and I need to use it in a webview Feb 20 15:34:36 Estragon, Ok. and it's not possible to send sms from intent without starting an activity right? Feb 20 15:34:51 to use the login Feb 20 15:34:51 Walui: you did not say this before Feb 20 15:35:09 Walui: why would you do that? just let the web view handle the login Feb 20 15:35:24 I did not ffinish my sentence and i have to go now Feb 20 15:35:31 oh well Feb 20 15:35:43 what can be the reason for SimpleCursorTreeAdapter.notifyDataSetChanged() not being called after a ContentResolver.notifyChange() on the same URL? Feb 20 15:35:45 sorry I'll come back later Feb 20 15:36:00 i'll be anxiously waiting Feb 20 15:37:28 rokk: via intent you can either fire a "standard" intent that any sms app can take care of Feb 20 15:37:46 or fire your own intent that you will have to then match Feb 20 15:38:15 first case : you have no idea if the sms will finally be sent & how the sms app will handle the intent Feb 20 15:38:19 Estragon, ok! is it even possible to start an application that have "android.permission.SEND_SMS" on devices that don't got any sms support? Feb 20 15:39:00 rokk: Might spark the "ActivityNotFound"-thing? Feb 20 15:39:17 rokk: not sure but I believe thats not a problem if the apk is directly installed. But I believe the market will filter it Feb 20 15:39:44 Estragon, yeah, that what i figured Feb 20 15:39:50 <_Brandon_> hi, I have a problem with VideoView, as soon as I call setVideoPath the videoview resize itself and I can't resize it back to the original size this should be 400x200 http://i.imgur.com/Hce5h.png http://i.imgur.com/M8oyo.png Feb 20 15:40:14 Estragon, well thanks a million. Back to eclipce now ;) Feb 20 15:40:33 rokk: keep in mind that your app can still fail on devices with sms support Feb 20 15:41:13 What are the packages I shouldn't import from a Java project I want to use in an Android Application ? Feb 20 15:41:23 I already know about javax, is there any other ? Feb 20 15:42:03 Estragon, yeah. But not that likely right? I can try catch those in an exception. Not that important to save the messages. I't would just be a nice thing.. Feb 20 15:43:41 rokk: yep I think so Feb 20 15:49:36 ?hm can someone tell me how and where I find the telephone number(s) of a contact. I already have the contact itself (ContactContracts.Contacts.CONTENT_URI) but i can't find the numbers. Feb 20 15:51:27 hell Feb 20 15:51:48 The person sitting behind me is trying to talk to someone with the same first name as me over a bad connection. Feb 20 15:51:56 why i cannot find the source of Activity? Feb 20 15:52:27 Ankhwatcher hell? Feb 20 15:54:43 jameslord: having someone behind you shouting your name when they don't need you for anything is quite aggravating. Feb 20 15:56:16 Ankhwatcher dude, what's wrong? Feb 20 15:56:47 Question - good idea or bad idea: using a ContentProvider for async network queries. Feb 20 15:58:34 michaelnovakjr: sms intents are great if you want the user to directly interact with the SMS. If you want to send them within the app, or autonomously, it's not appropriate. Feb 20 15:59:41 can we debug into source code of system ui? Feb 20 16:02:49 jameslord: you should be able to do this if you downloaded the api sources from the android manager Feb 20 16:06:48 Lov dude, i have installed sdk Feb 20 16:07:03 Someone know the default size of seekbar images? I can't find that and my custom seekbar seems "cut" Feb 20 16:07:30 Hi all Feb 20 16:07:49 lov: yes, but I don't feel there's many use cases for autonomously sending sms messages from an app. Feb 20 16:08:08 some, as you said make sense, but I feel that is a very small minority Feb 20 16:10:14 jameslord, SDK is not the same as source code. Check the SDK manager. Feb 20 16:10:54 For Android 4.0.3 at least, there is "SDK Platform" as well as "Sources for Android SDK" Feb 20 16:14:47 jameslord: that's not what I said. Feb 20 16:16:37 how to resolve SHARED_LIBRARIES.libs3cjpeg already defined when compiling ICS? Feb 20 16:18:01 what are the top performing ad networks right now?? Feb 20 16:18:19 and I don't want one that does CPA Feb 20 16:18:39 dlaroche: this isn't really a good forum for that Feb 20 16:18:48 do u know of one Feb 20 16:18:50 you probably will have better luck googling around for info Feb 20 16:18:57 nah tried that Feb 20 16:19:04 all seems misleading Feb 20 16:19:09 lol Feb 20 16:19:27 wanted to hear from some actual people their experiences in the mobile ad scene Feb 20 16:19:42 I have worked with a few, but....... Feb 20 16:21:23 dlaroche: try dickbutts.com Feb 20 16:21:37 (seriously we have no idea and don't care) Feb 20 16:21:53 ahhh fuck off lov Feb 20 16:22:17 dlaroche: I don't think you are going to find people that use ads in an irc channel Feb 20 16:22:53 not true...i had a great discussion on this topic about a month ago Feb 20 16:23:00 right here in this channel Feb 20 16:23:34 alright, well, try again later today when everyone is awake, but it's not really a dev question. Feb 20 16:23:38 Buy Peanuts Now! Ankhwatcher Enterprises make the greatest bag of peanuts in the known universe! Buy A Bag Of Ankhwatcher Enterprises Peanuts Now! Feb 20 16:23:48 * michaelnovakjr sighs Feb 20 16:24:07 Ankhwatcher: are they enterprise peanuts? Feb 20 16:24:12 do you provide peanut solutions? Feb 20 16:24:14 I would generally rather pay for an adless app Feb 20 16:25:09 lov: Ankhwatcher Enterprise Peanuts-Perfect for your Medium To Large Office Environment Feb 20 16:25:39 I don't know what you do but I know that I want it, and slow roasted! Feb 20 16:25:46 * lov throws balls of money at Ankhwatcher Feb 20 16:25:52 Take my money! I don't even know what I'm doing! Feb 20 16:25:54 anybody here who have experience to build rom by yourself? Feb 20 16:26:05 jameslord: possibly, but try #android-root instead Feb 20 16:29:36 lov all guys are dead there:( Feb 20 16:30:01 jameslord: welp. Feb 20 16:30:18 #cyanogenmod, #xda-devs or something idk Feb 20 16:30:24 I have a context menu that I load menues into depending on data from a http request - when I make the http request again the menues are still the same even if data has changed, how do I reload the context menu? Feb 20 16:30:26 That's cus everyone tries to ask questions here instead of going to the appropriate channel Feb 20 16:30:34 this isn't the right place to ask, unless your question is actually about how to do development on the frameworks Feb 20 16:30:43 rooting/rom development questions are generally not appropriate here. Feb 20 16:30:53 lov wow,nice:) Feb 20 16:31:37 I tried setting up a minimal Java prokect - one class with a public static int - and a minimal android app - one activity that Log.d the project's static int - and it still fails Feb 20 16:31:50 Is my version of Eclipse at fault ? Or is what I am trying to do just impossible ? Feb 20 16:32:39 gyscos: define "fails" Feb 20 16:33:01 oh there is a unregisterForContextMenu(imageView); according to eclipse... will try that :-D Feb 20 16:33:02 Throws the same old NoClassDefFoundError Feb 20 16:33:20 gyscos: project properties for your java project, java build path, order and export Feb 20 16:33:22 lov, Funny thing, it worked once, and when I tried again it threw it Feb 20 16:33:26 make sure that the source is actually being exported. Feb 20 16:33:48 your workspace could actually be fubar, I recall something like this happening that I could only solve by deleting and recreating the workspace Feb 20 16:33:53 ow Feb 20 16:33:56 Indeed, it was not Feb 20 16:33:57 weird Feb 20 16:34:02 of course, android is fucking stupid with java projects now thanks to the changes in SDK 14+ Feb 20 16:34:41 Should Android 2.3.3 and com.android.ide.eclipse.adt.LIBRARIES be checked to ? Feb 20 16:34:43 they aren't Feb 20 16:35:07 are you looking at the JAVA project or the ANDROID project? Feb 20 16:35:17 please check the JAVA project. Feb 20 16:35:24 hi Feb 20 16:35:24 lov, isnt today a holiday for you? Feb 20 16:35:40 lov, The android project Feb 20 16:35:49 11:33:22 < lov> gyscos: project properties for your java project, java build path, order and export Feb 20 16:35:54 ow Feb 20 16:35:56 >w Feb 20 16:35:56 canadiancow: ha Feb 20 16:35:58 >< Feb 20 16:36:08 what can be the reason for SimpleCursorTreeAdapter.notifyDataSetChanged() not being called after a ContentResolver.notifyChange() on the same URL? Feb 20 16:36:13 canadiancow: most american holidays aren't holidays unless you work for the government or work hourly. Feb 20 16:36:13 lov, is that a "no" ? Feb 20 16:36:16 oh Feb 20 16:36:18 really? Feb 20 16:36:22 yes. Feb 20 16:36:26 interesting Feb 20 16:36:39 the holiday im on right now is actually only a holiday if you DONT work for the federal government :P Feb 20 16:37:07 lov, In the Java project, the only line in "Order and Export" is the Java src, and is forced checked Feb 20 16:37:11 It's not even a federal holiday. Feb 20 16:37:13 Goverment workers get off so often Feb 20 16:37:22 It is a federal holiday Feb 20 16:37:33 gyscos: hmph Feb 20 16:37:42 <- holiday :-) Feb 20 16:37:45 gyscos: I'm not sure what to suggest. try making a brand new workspace and recreating this experiment. Feb 20 16:37:48 American's only get one day off a year. Bastille Day Feb 20 16:37:53 Will do Feb 20 16:38:08 Americans* Feb 20 16:38:12 SwearWord: It's one of those sucky "voluntary" holidays. Feb 20 16:38:23 canadiancow: thanks Feb 20 16:38:27 np :) Feb 20 16:38:46 my holiday is called "Family Day" Feb 20 16:38:54 canadiancow: somehow I googled Bastille to check the spelling but still missed that Feb 20 16:38:57 hmm unregisterForContextMenu followed by a registerForContextmenu doesn't seem to work, any way to clear the context menu assigned to a View? Feb 20 16:39:04 kamoricks: Yeah, it's classified as a federal holiday but I don't even think that means anything Feb 20 16:39:15 This just seems to disable one that is already created instead of clearing it Feb 20 16:39:36 i also think zynga's pretty relaxed with holidays Feb 20 16:39:39 we got halloween off last year Feb 20 16:39:57 SwearWord: As a federal employee, I shall clarify some things. There are "mandatory" holidays, where we get off, and "voluntary" holidays, where we may spend a vacation day in order to have an uncontested day off. (Other requests for vacation time may be "contested", which is a really fun process.) Feb 20 16:40:15 Mikellip: http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo) Feb 20 16:40:16 Ah okay Feb 20 16:40:21 Mikellip: you're overriding this, yes? Feb 20 16:40:22 I did not know that Feb 20 16:40:43 kamoricks: soudns nice - when i ask to use vacation time, it usually ends up with a "no, the project will be at a critical point and we need you in the office" ;) Feb 20 16:40:55 theres no "contesting" Feb 20 16:41:02 canadiancow: Well, that plus some paperwork. :) Feb 20 16:41:10 all my vacation just pools up Feb 20 16:41:16 and then they force me to take it all at teh end of december Feb 20 16:41:27 You can vacation when you're dead Feb 20 16:41:28 lov yes overriding Feb 20 16:42:46 Hey I would need a little advice: should I implement my sqlite database: as calls to a helper, as calls to a helper making calls to a class, as calls to a contentprovider making calls to a class and a helper, or just as straight database calls within the activity class? Feb 20 16:42:48 lov: ah, seems invalidateOptionsMenu() is the way to go, ty Feb 20 16:42:57 lov, Oops, I think using Java7 in the Java Projects is not a great idea Feb 20 16:43:35 damnit fingers: I would like a little advice or I need a little advice. Choose your own adventure. Feb 20 16:46:16 Ankhwatcher: I don't know, what SHOULD you do? We don't really know your app architecture. Feb 20 16:47:01 lov: https://github.com/Ankhwatcher/ShortestWalkingRoute/tree/master/src/ie/appz/shortestwalkingroute Feb 20 16:47:34 Well I want to capture gps coordinates into an sqlite database and then display them on a map Feb 20 16:47:51 blasphemy Feb 20 16:47:54 walking is so 17th century Feb 20 16:48:14 thats almost as bad as crt monitors or wired headphones Feb 20 16:48:16 you'll hear no arguement from me Feb 20 16:48:27 that's why I'm trying to minimize it Feb 20 16:48:32 why would you buy wireless headphones :< Feb 20 16:48:33 :D Feb 20 16:48:41 that's a crime against sound! Feb 20 16:48:48 storkme, so they dont catch on my backpack when you exit the subway, ripping your ear off Feb 20 16:48:55 storkme: maybe you like loosing things... Feb 20 16:48:57 note: this actually happened to someone Feb 20 16:48:59 except the last part Feb 20 16:49:18 wired is just like...wtf Feb 20 16:49:39 do you plug your phone in to check email? Feb 20 16:49:46 or to sync stuff? Feb 20 16:49:49 well maybe if its an iphone Feb 20 16:49:54 yes, that's how long the battery lasts Feb 20 16:50:39 Ankhwatcher: ok, I'm not going to go trawling through your code. Feb 20 16:50:54 when are you capturing GPS coordinates? Only when the user is looking at the activity? Feb 20 16:51:03 does a service do this, or only the activity? Feb 20 16:51:11 does only the activity reference this database? Feb 20 16:51:50 lov: one activity will read, one will write. Feb 20 16:52:15 o_O Feb 20 16:52:18 wait what Feb 20 16:52:35 not at the same time Feb 20 16:52:41 I would hope so Feb 20 16:53:15 consider using a service. A contentprovider might not be the worst idea depending on how you'll be using this data but it's probably overkill. Feb 20 16:53:29 You should at a minimum have a wrapper around a SQLiteOpenHandler Feb 20 16:53:30 er Feb 20 16:53:41 sqliteopenhelper Feb 20 16:54:08 if you will ever possibly have multi threading concerns, you will of course have to handle that. Feb 20 16:54:26 Just bear in mind the overhead of opening/closing the db as you go through your app and/or when the activity is recreated. Feb 20 16:54:30 Yeah, I was following the Vogella tutorial and thought it seemed like overkill Feb 20 16:55:29 So basically I should roll my own helper and define everything in there. Will do. Thanks Feb 20 16:57:09 possibly. Feb 20 16:57:19 That's what you might want to consider doing in your case Feb 20 17:01:11 anyone here know how to modified an apk resolution ? thanks :) I need help on the apps resolution Feb 20 17:04:50 what's an app resolution ? Feb 20 17:05:14 newbuser: huh? Feb 20 17:05:58 newbuser: o.O Feb 20 17:06:24 gyscos, depends on the device Feb 20 17:06:33 gyscos, and the app Feb 20 17:07:07 dark3n, was that an answer ? Feb 20 17:07:11 dark3n, if you know what he's talking about, and the three of us dont, then somethings wrong Feb 20 17:07:19 I know how to adapt the app to the device dpi, was that the question ? Feb 20 17:07:23 newbuser, you might want to check the resources Feb 20 17:07:49 lov canadiancow eradicus : sorry forgot tot mention Feb 20 17:08:06 newbuser: cool story bro. Feb 20 17:08:13 lol Feb 20 17:08:22 someone emailed me at the support address for my app Feb 20 17:08:29 and thougt i was their cellular provider Feb 20 17:08:30 lov canadiancow eradicus : an apps apk downloaded free from android market , but it only fit on a resolution for a mobilebut not galaxy tab 7 inch Feb 20 17:08:44 then, to quote romainguy, you did it wrong Feb 20 17:09:52 http://developer.android.com/guide/practices/screens_support.html Feb 20 17:10:32 any1 using proguard n here Feb 20 17:11:17 newbuser, and you're out of luck, you don't have the source, you don't wanna go disassembling apks and putting the pieces back together Feb 20 17:12:20 Jug6ernaut: me Feb 20 17:12:24 ME ME ME Feb 20 17:12:25 pick me! Feb 20 17:12:47 lol Feb 20 17:13:02 canadiancow u ever experienced a proguarded project failing to install? Feb 20 17:13:12 no Feb 20 17:13:18 BAM Feb 20 17:13:20 ive had ClassNotFoundException Feb 20 17:13:22 thats about it Feb 20 17:13:24 :) Feb 20 17:13:28 :S Feb 20 17:14:23 newbuser: This channel isn't for discussing disassembly of apps, as neat as it is. Feb 20 17:14:37 You'll probably want to use baksmali or something for that, but under no circumstances will we give you any support. Feb 20 17:17:56 grr i flashed a custom ICS rom on my galaxy tab 10.1 and i can no longer add a google account :S Feb 20 17:18:05 :o Feb 20 17:18:15 canadiancow should have gotten a xoom :P Feb 20 17:18:25 canadiancow: flash gapps Feb 20 17:18:43 canadiancow, you must have wiped Feb 20 17:19:12 sometimes, flashing the same image twice does the trick Feb 20 17:21:57 Hm.. Does ListView cache isEnabled, getItemViewType etc? Feb 20 17:22:52 canadiancow hmm seems proguard isnt my problem, just export unsigned apk itself isnt work :o Feb 20 17:24:17 nm apparently u can install an unsigned app on ur phone Feb 20 17:24:58 you can't Feb 20 17:25:03 it HAS to be signed Feb 20 17:25:12 unless you are debugging Feb 20 17:25:41 Ravenheart cant* sorry ;) Feb 20 17:27:24 Debug builds are also signed Feb 20 17:28:51 is there a way for an activity to detect it is the main activity? i.e. the one that started the app? Feb 20 17:29:20 ... Feb 20 17:29:21 well Feb 20 17:29:24 u start the activity Feb 20 17:29:25 so? Feb 20 17:29:51 can I put some stuff in its extras? Feb 20 17:30:08 [12:25:13] unless you are debugging Feb 20 17:30:12 FALSE Feb 20 17:30:15 Maybe the Intent can give you some info Feb 20 17:30:18 when started? no u cant control that as its started by other apps ie launcher Feb 20 17:30:24 cause the activity itself does not know whether it is instantiated as main, or not Feb 20 17:30:26 well you don't notice it anyway :P Feb 20 17:32:12 anyone know a good tutorial on android Density independence ? i plan to modified an apps but newbie on coding Feb 20 17:32:15 thanks :) Feb 20 17:32:24 Ravenheart what do you mean "main"? Feb 20 17:32:37 newbuser, you're asking for help on something illegal Feb 20 17:32:46 and something you're clearly incapable of doing Feb 20 17:32:50 canadiancow : ? why ? Feb 20 17:32:58 what do you mean what do i mean "main" ? Feb 20 17:33:00 is the main activity started with an intent? Feb 20 17:33:01 canadiancow : huh? Feb 20 17:33:08 and what does embedded child mean? Feb 20 17:33:11 canadiancow : what do you mean ? Feb 20 17:33:20 http://developer.android.com/reference/android/app/Activity.html#getIntent() Feb 20 17:33:20 newbuser: This channel is for people who make apps, not people who want to mod our apps Feb 20 17:33:28 http://developer.android.com/reference/android/app/Activity.html#getParent() Feb 20 17:33:39 I don't understand the documentation Feb 20 17:34:11 if an activity starts another activity Feb 20 17:34:17 SimonVT: I don't mind if the dude wants to ask questions about modding an app Feb 20 17:34:17 if it returns null then it has no parent Feb 20 17:34:30 guidocalvano: I do Feb 20 17:34:37 but why does it state embedded child? are there non embedded children? Feb 20 17:34:52 SimonVT : ? didn't know about it .sorry about it Feb 20 17:35:19 guidocalvano hmm i dont think so Feb 20 17:36:10 SimonVT: I think newbuser is pretty cool for starting android development (: Feb 20 17:36:23 guidocalvano: He's not starting android development tho Feb 20 17:36:47 SimonVT : planning to :D Feb 20 17:36:58 Modding apk's is not development Feb 20 17:38:45 and it almost certainly violates whatever license it was issued to you under Feb 20 17:38:58 how would you guys recommend starting an activity from the onPostExecute function of an AsyncTask? Feb 20 17:39:06 if they wanted you to modify it, they would make it open source Feb 20 17:39:13 Context#startActivity(Intent) Feb 20 17:39:15 canadiancow : what if I ask the dev permission ? Feb 20 17:39:23 then get a copy of the source Feb 20 17:39:25 and do it that way Feb 20 17:39:26 bye Feb 20 17:41:38 canadiancow : ok will try thanks :) Feb 20 17:51:29 Hi, I came earlier because I was looking for how to use a cookie in a webview Feb 20 17:52:14 how do I add an extra to an action in an intent filter in the android manifest.xml Feb 20 17:52:20 I have the cookie in a String with "name=value;name=value;..." Feb 20 17:52:32 guidocalvano: you can't filter on extras in intent filters. Feb 20 17:52:41 guidocalvano: you can't add extras to the manifest. Feb 20 17:52:53 Walui: I'm pretty sure someone answered that you need to use javascript to handle this, and there's no java level control for this. Feb 20 17:53:10 Walui: no, I do not know what you need to do. Do not ask ME what you need to do. Feb 20 17:53:18 not even in an action in an intent fileter? Feb 20 17:54:05 guidocalvano: What is it you are trying to do by adding an extra to the manifest? Feb 20 17:54:06 lov: That was not really what I was looking for Feb 20 17:56:44 JakeTheCoder: I have an Activity that is used both as main, and as sub activity. In the main activity I just want to add a single button, that's it Feb 20 17:56:52 Wakelock causes the screen to stay on even when my app isn't on. How do i fix this? Feb 20 17:56:54 so I don't want to create an entire subclass Feb 20 17:57:05 I fact I need to use the cookie in a webview to send a form, that's why I cannot just download the page as I do for the rest of the app Feb 20 17:57:49 guidocalvano: try checking the intent that launched the activity for action_main Feb 20 17:58:14 Walui: uh, you can just add the cookie as a header big guy. Feb 20 17:58:19 the extra is called "action_main" ? Feb 20 17:58:34 guidocalvano: consider whether you want to actually do this. You might want to subclass your main activity. Feb 20 17:58:47 guidocalvano: regardless, you can just tell what the intent was that launched your activity and respond appropriately. Feb 20 17:58:47 lov: I just don't know how to do this Feb 20 17:58:52 no, im talking about the action on the intent. Intent.getAction() Feb 20 17:58:55 lov: I would do that just for a single button Feb 20 17:59:18 guidocalvano: you could, yes. Feb 20 17:59:26 then when you need to make even more changes it's not so painful. Feb 20 17:59:50 JakeTheCoder: if( getIntent().getAction() == "action_main" ) Feb 20 17:59:54 this? Feb 20 18:00:21 yes, give it a shot. I do agree with lov though, you may want to just subclass. but thats up to you. Feb 20 18:01:04 oh, you should use .equals(string) instead of == Feb 20 18:01:15 lov: Do yo know how I could set the cookie in the webview headr ? Feb 20 18:01:44 its if( getIntent().getAction() == "android.intent.action.MAIN" ) Feb 20 18:01:49 and I will change to equals Feb 20 18:01:57 have been coding in javascript for a long time... Feb 20 18:01:59 O\ Feb 20 18:02:12 >_< Feb 20 18:02:15 whoops, sorry, forgot the full name. Feb 20 18:02:32 How do I get WakeLock to turn off when my app is closed? Feb 20 18:02:50 Walui: Do you or do you not primarily use a webview for your app? If you DO NOT use a webview primarily, look up what cookies ARE and how to send them. If you DO use a webview primarily, look into how to inject javascript into your webview. Feb 20 18:03:04 TheChaoticGood: when is your app closed? Feb 20 18:03:17 TheChaoticGood: do you mean when the activity is finished? or your service ends? or some other point? or what? Feb 20 18:03:22 i mean if someone puts it in the background. Feb 20 18:03:34 er Feb 20 18:03:46 check for onStop.... Feb 20 18:03:46 soo im in my app then i switch to another app. wakelock stays on and the screen doesn't auto dim anymore Feb 20 18:03:51 right, so. Feb 20 18:04:02 all you know as the developer is that your activity has been paused/stopped. Feb 20 18:04:06 You don't actually KNOW where the user has gone. Feb 20 18:04:19 You don't know if the user pressed home or was interrupted or something else. Feb 20 18:04:23 lov: I only use the webview for a form, so I need to send the cookie I get for the rest of the app in this webview Feb 20 18:04:32 JakeTheCoder: thanks (: you got me in the right direction Feb 20 18:04:45 Walui: do you know what cookies ARE? look up what they actually ARE, and how they're sent, and how HTTP works. Feb 20 18:04:50 Walui: it will probably be a lot simpler for you. Feb 20 18:05:03 lov: I have onPause so I need to use onStop as well? Feb 20 18:05:17 TheChaoticGood: well you might want to but that's really irrelevant. Feb 20 18:05:28 "The user isn't using my app" is really ill defined for you. Feb 20 18:05:37 Do you want all cases where your app is not in the foreground? Feb 20 18:05:43 ok... what is a better way to say that then Feb 20 18:05:48 If so, release your wakelock in onStop or something. Feb 20 18:06:24 ok let me try that Feb 20 18:06:30 guidocalvano: sure thing. Feb 20 18:06:46 TheChaoticGood: don't forget to reacquire it in onStart! Feb 20 18:07:01 if your activity is destroyed because the user is rotating the screen, you don't want to potentially go to sleep, too. Feb 20 18:07:06 well Feb 20 18:07:14 I doubt you'd go to sleep immediately in that case actually Feb 20 18:07:37 but you don't want to go to sleep because you acquire the wakelock in onCreate, release it in onStop, and never have onCreate called again (onStart was called) Feb 20 18:07:56 lov: I don't think it will tell me how to send it when the webview requests the page Feb 20 18:09:25 complaining! Feb 20 18:09:33 compling Feb 20 18:09:34 lol Feb 20 18:09:40 Walui: oh christ Feb 20 18:09:51 Walui: do you use this webview for ANY OTHER PURPOSE than sending this form and getting a cookie? Feb 20 18:09:54 Yes or no? Feb 20 18:10:11 I don't get the cookie with it Feb 20 18:10:19 ok, so you already have the cookie. Feb 20 18:10:27 but you want to use the cookie when you submit the form. Feb 20 18:10:29 Yes or no? Feb 20 18:10:29 yes in a String Feb 20 18:10:31 Yes? Feb 20 18:10:34 That is the case? Feb 20 18:10:35 Ok awesome Feb 20 18:10:35 yes Feb 20 18:10:38 READ UP WHAT A COOKIE IS Feb 20 18:10:44 USE AN HTTPURLCONNECTION TO POST THE FORM Feb 20 18:10:49 GIVE THE COOKIE THERE Feb 20 18:10:52 the end. Feb 20 18:10:57 Mmm, cookies. Feb 20 18:11:13 cookies are not magical fairyland code objects Feb 20 18:11:26 you can pass them in regular java land objects in your network connection Feb 20 18:11:42 I really need a webview for the form Feb 20 18:12:27 The String works very well for downloading pages Feb 20 18:12:27 do you ACTUALLY need the webview? Feb 20 18:12:41 are you dependant on actually displaying the form in a webvieW? Feb 20 18:12:55 if yes, USE JAVASCRIPT TO INJECT THE COOKIE INTO THE WEBVIEW Feb 20 18:13:52 helll Feb 20 18:13:53 http://developer.android.com/reference/android/webkit/CookieManager.html Feb 20 18:14:00 if you can use that and it works, do that. Feb 20 18:14:01 I couldn't manage doing it with something else (don't know if it's really english sorry) Feb 20 18:14:44 So I thought it would be easier to use a webview Feb 20 18:14:57 >_< Feb 20 18:15:00 ok, I don't care anymore. Feb 20 18:15:05 good luck! Feb 20 18:16:17 thank you anyway :/ Feb 20 18:17:35 what can be the reason for SimpleCursorTreeAdapter.notifyDataSetChanged() not being called after a ContentResolver.notifyChange() on the same URL? Feb 20 18:22:03 what do you guys/girls do to back up sqlite databases? Feb 20 18:25:23 glare at the database until it backs itself up out of shame. Feb 20 18:25:40 lov: (: Feb 20 18:26:11 I've been looking at it intently for 3 solid weeks now... it must be backed up! Feb 20 18:27:39 JakeWharton: you there? :P Feb 20 18:31:03 Or anyone, im using ViewPager that displays my fragments. The fragments layouts are set in onCreateView by return inflater.inflate(R.layout.contact, container, false); Feb 20 18:31:21 how do i set onclick listeners for the R.layout.contact buttons Feb 20 18:31:55 use findById to get the buttons Feb 20 18:32:04 cast the return to Button Feb 20 18:32:32 and call setOnClickListener( View.OnClickListener l ) ; Feb 20 18:32:38 im using this http://pastebin.com/6LdQivqQ Feb 20 18:32:58 that's what i'd regularlly use for buttons, but idk were to call this for fragments Feb 20 18:33:34 View v = inflater.inflate(...); v.findViewByid(R.id.yourButtonId).setOnClickListener(...); return v; Feb 20 18:33:40 on the root view of the fragment (assuming that what you mean by fragment is the inflated piece of xml) Feb 20 18:33:57 Anybody got a galaxy y pro yet ? , asking if there's a way to enable typing suggestions? as this device comes with a hard Querty keyboard Feb 20 18:36:10 Hows this Feb 20 18:36:11 http://pastebin.com/bQ8pzPkU Feb 20 18:36:47 you forgot to cast to button I think Feb 20 18:37:09 Not necessary Feb 20 18:37:17 http://pastebin.com/P8Kfkvg6 Feb 20 18:37:20 ok Feb 20 18:40:10 my EditText has android:imeOptions="actionNext". I want to focus a Spinner after my EditText. With android:nextFocus* doesn't work. Any idea? Feb 20 18:42:17 Doesn't work Feb 20 18:43:02 http://pastebin.com/NJe3xTR3 Feb 20 18:43:13 hi Feb 20 18:44:34 I would like to create a background thread which would be used for network communication. Currently I've created an AsyncTask thread, but the problem is that I constantly need to write/read from the socket based on user actions. What is the best way to achieve what I want. To continue using AsyncTask and pass the user data into the socket, which would then send it to the server, and when data would be received, it would update UI? Feb 20 18:44:51 are there any better ways. I just want to be sure I'm doing the right thing. Feb 20 18:45:12 Does anyone know if Timer executes the same instance of the TimerTask if it's sheduled for repeated execution? Feb 20 18:46:02 I'm trying to "look for" the moment when a directory has new file, and i'm not sure if I should use timer or async task. Feb 20 18:46:50 Also, how can I ensure that a separate thread (AsyncTask, Timer) is tied to the context of its caller, so that when the caller context dies, so does the AsyncTask/Timer? Feb 20 18:48:28 oddu, you're trying to check when a local file system includes a new file? Feb 20 18:48:40 NightmareApps: correct! Feb 20 18:48:47 one sec i've made this before Feb 20 18:49:05 evelyette: consider using a Service, or just make your own Thread Feb 20 18:49:32 NightmareApps: Ah! Thank you! Feb 20 18:49:39 look through here http://pastebin.com/APR0pfez Feb 20 18:49:46 evelyette: depending on what your doing, a Service is almost certainly the right thing to do; I'm assuming that you're doing some sort of long-lived-ish networking. Feb 20 18:49:51 i write text files with tree of all files in directory Feb 20 18:49:53 lov, currently I'm using callback functions, and it's all working, just need a confirmation that it's ok Feb 20 18:49:55 and then compare the text files Feb 20 18:50:08 lov, yes that's what I'm doing Feb 20 18:50:48 evelyette: as long as your lifecycle is being appropriately handled, a Service is absolutely ok to do. Feb 20 18:51:11 lov, ok, but what about the stuff I have now, is that ok too? Feb 20 18:51:16 NightmareApps: I see. Cool. I'll try and see if I can replicate this logic in my code. Feb 20 18:51:25 evelyette: possibly. I'm not sure what exactly you're doing with your async tasks Feb 20 18:51:38 SimonVT: guidocalvano: that button listener isnt working http://pastebin.com/NJe3xTR3 Feb 20 18:51:48 alright cool gl oddu Feb 20 18:52:19 NightmareApps: ehh.. that's not how it works Feb 20 18:52:27 Instantiate OnClickListener, and pass that Feb 20 18:52:40 NightmareApps: implement onClickListener and pass that instance Feb 20 18:52:56 uhm Feb 20 18:52:57 lol Feb 20 18:53:24 System.out.println doesn't work in my setup Feb 20 18:53:30 I use LogCat instead Feb 20 18:53:38 yes it's actually called logcat Feb 20 18:54:13 NightmareApps: er. I mean let that class implement on clicklistener Feb 20 18:54:15 and then just pass "this" Feb 20 18:54:45 under eclipse you can find logcat at: window-> show view-> other-> android Feb 20 18:54:51 guidocalvano: type "adb lolcat" at the command line. Feb 20 18:56:53 I have a question about AsyncTask/Thread/Timer. If I make one in my activity and then I don't kill it and there are no further references to it, will it continue to run? Feb 20 18:57:04 okay, this works! http://pastebin.com/bpwLKYWV Feb 20 18:57:06 Will I be "leaking" that memory? Feb 20 18:57:17 lov: lolcat shows System.out.println ? Feb 20 18:57:23 lolcat? Feb 20 18:57:24 guidocalvano: no, but it's an alias for logcat :D Feb 20 18:57:29 guidocalvano: well actually yes it does Feb 20 18:57:37 logcat should show System.out Feb 20 18:57:39 System.out just goes to Log with the tag System.out Feb 20 18:57:48 at... Info level I think? Feb 20 18:58:36 (: Feb 20 19:24:46 Do you see any issue if I use a a device with a RS-232 port... and buy a rs232 to bluetooth converter to communicate with my android? Feb 20 19:28:30 are there any good practical tutorials for maven + maven and android? everything I can find is so damn confusing :p Feb 20 19:33:40 Guys hwo to connect to database server using some database viewer program? Feb 20 19:53:43 ugh, i hate the android emulator Feb 20 19:56:56 who doesn't Feb 20 19:57:10 http://pastebin.com/JSyy9DSD All I'm trying to do is draw a point in an ortho view. I can only get it to draw at 0,0... if I specify any other coordinate, no point is ever drawn.. very trivial, simple example, likely I'm missing something fundamental. Any help would be appreciated. (This is for android, though cross-post this in ##OpenGL as that's likely more appropriate) Feb 20 19:57:40 lov: I tried all that and Wakelock still isn't working :/ Feb 20 19:58:18 TheChaoticGood: can you define what "not working" means? Feb 20 19:58:52 "adb shell dumpsys power" will give you information about what wake locks are acquired Feb 20 19:59:23 sure, i mean that the screen doesn't fade like it normally does in other apps, once my app has been launched Feb 20 19:59:36 ... Feb 20 19:59:37 i have to go to task manager and kill my app Feb 20 19:59:47 yeeeah. Feb 20 19:59:49 so. Feb 20 19:59:58 What are you TRYING to do, and what is actually happening. Feb 20 20:00:17 don't say "acquire a wakelock" or I will glower. Feb 20 20:00:42 how do I convert the binarized AndroidManifest.xml to something I can read? Feb 20 20:00:49 I have an app that I don't want the screen to fade, no matter how long its been since the user has touched the screen or interacted with the app. Feb 20 20:00:54 (I've tried aapt d xmltree) Feb 20 20:00:54 He's trying to teach lov opengl programming so lov can tell me what I'm doing wrong. :) Feb 20 20:01:08 KeLopez: you generally can't. use aapt dump .... to get information about it. Feb 20 20:01:24 This works, The problem is that once you launch my app. NONE of the apps screen fade anymore until i go to task manager and kill my app. Feb 20 20:01:35 TheChaoticGood: ok. Do you release the wakelock in onStop? Feb 20 20:01:35 I've used aapt d badging Feb 20 20:01:47 KeLopez: there's a bunch of options for aapt dump Feb 20 20:01:50 badging is just one Feb 20 20:01:52 there's xmltree Feb 20 20:01:53 there's others Feb 20 20:02:00 ok Feb 20 20:02:14 yes, i did what you asked me to do and add that code Feb 20 20:02:40 TheChaoticGood: pastebin your relevant code, please. Feb 20 20:02:50 http://collabedit.com/4jt82 Feb 20 20:07:21 We've been using a WebView in an app of ours for a while, and the website had a couple of changes made to it. One of the changes includes some AJAX calls. For some people the website works fully, and for others the website does not. They're using the same version of our software, and the same Galaxy Tab 7" models, the same carrier for 3G, and our software requires Gingerbread (max for GT7"). What would cause these sporatic results? Feb 20 20:07:44 The website works completely in the regular tablet browser, btw. Feb 20 20:11:10 sha1sum: it works in the regular browser for your customers AND yourself you mean? Feb 20 20:11:15 so ONLY in the webview is it different? Feb 20 20:11:26 have them check their firmware version as well. Feb 20 20:11:41 it's possible that they're on a different revision with a slightly different version of webkit. Feb 20 20:13:21 what does "forward-lock" mean? Feb 20 20:13:34 http://stackoverflow.com/questions/9367774/drawing-a-point-in-glortho-view-why-wont-it-work-away-from-the-origin Feb 20 20:15:33 kelopez: what context? Feb 20 20:15:38 adb install Feb 20 20:15:50 full error? Feb 20 20:16:09 adb install [-l] [-r] [-s] - push this package file to the device and install it Feb 20 20:16:09 ('-l' means forward-lock the app) Feb 20 20:16:39 hm. no idea Feb 20 20:17:04 "If you can see this application, your device should be able to see other forward-locked (copy protected) applications." Feb 20 20:17:53 hello, some of my users are reporting the following issue: "Can't upgrade read-only database from version 0 to 4...". I can't seem to repeat this error on my development devices Feb 20 20:18:01 not sure how to figure this one out Feb 20 20:18:46 kelopez: http://stackoverflow.com/questions/4521908/android-copy-protection-forward-locking-should-i-not-bother Feb 20 20:18:56 I noticed Feb 20 20:19:02 sounds like it's a deprecated copy protection scheme Feb 20 20:19:26 Anybody got a galaxy y pro yet ? , asking if there's a way to enable typing suggestions? as this device comes with a hard Querty keyboard Feb 20 20:19:26 tophyr, kelopez, it is. Feb 20 20:19:35 Don't use the "copy protection" Feb 20 20:19:37 ok Feb 20 20:19:41 you shouldn't be able to enable it in market at this point Feb 20 20:19:47 I was making a APK installer Feb 20 20:20:16 kelopez: er... Feb 20 20:20:27 for Windows Feb 20 20:20:30 ah, ok. Feb 20 20:20:48 that's why I asked about the aapt stuff Feb 20 20:20:55 to get the permissions and whatnot Feb 20 20:20:58 and the name Feb 20 20:21:51 lov: I posted the log Feb 20 20:24:09 Akuma: is the database on the sd card? you might not have write permissions. Feb 20 20:24:19 lov: sorry had a call come in. Yes, it works in the regular browser for my customers (our employees) and for me, and the site works in our WebView for me and some others, but the application's WebView does nothing when the button is tapped (calling the AJAX call) for some others Feb 20 20:24:22 Akuma: alternately, do they have a galaxy S? Feb 20 20:24:39 if so, congratulations! You get to deal with the fact that files/permissions on those devices are potentially horribly broken Feb 20 20:26:09 TheChaoticGood: try it in onPause and onResume instead of onStart/onStop then. Feb 20 20:26:30 TheChaoticGood: also, clean and build to make sure that you don't have the wrong version on there. Feb 20 20:26:38 lov: I don't know, all I get is the stack trace Feb 20 20:26:56 Akuma: do you know what the device is? Feb 20 20:27:07 I do not Feb 20 20:27:12 lov thats how I had it originally Feb 20 20:27:19 android market just gives the stack trace Feb 20 20:27:25 no other info available Feb 20 20:35:02 Anybody know why writing to a network inside of onintercepttouchevent would prevent that view from running any animations or updating after that? Feb 20 20:35:18 the UI is still responsive but it seems like its not repainting the view after i do that Feb 20 20:35:49 is the network request asynchronous? Feb 20 20:35:56 yes Feb 20 20:36:05 its not getting stuck there for sure Feb 20 20:36:10 i have log messages before/after and both get fired Feb 20 20:36:18 Akuma: it's totally possible that it's stock Galaxy S devices Feb 20 20:36:41 Akuma: Samsung had an issue with their devices where if you installed an app, uninstalled it, installed something else, then installed the original app, that app would never again be able to write anything to private storage. Feb 20 20:36:47 lov: tried it. No change Feb 20 20:37:08 TheChaoticGood: Attach a debugger. Verify that the wakelock is being acquired/released at each point. Feb 20 20:37:21 TheChaoticGood: verify that no other app has the wakelock acquired. Feb 20 20:37:22 lov: that's good to know... I've been looking for a good hour at the code to try finding what could be wrong Feb 20 20:37:42 Akuma: it's very uncommon but it's possible, and I find it kind of surprising that Google wouldn't provide this info with the anonymized stack traces Feb 20 20:37:54 vadi2, any other thoughts? Feb 20 20:38:09 well if i uninstall my app and reboot my phone, it doesn't do that. But once I launch my app it does that behavior Feb 20 20:38:17 I agree, at least user device, and add a box to let users say how it happened Feb 20 20:39:04 WhiteWhisker: Afraid not, hopefully someone more knowledgeable will help. I haven't worked with animations yet (my s2 is only 2.3) Feb 20 20:39:26 whats weird is its not just animation, even changing an image in an imageview doesnt get reflected Feb 20 20:39:32 TheChaoticGood: force closing your app will release the wakelock. Feb 20 20:39:35 but the scrollview will keep scrolling Feb 20 20:39:41 TheChaoticGood: adb shell dumpsys power will tell you who has what wakelocks. Feb 20 20:39:54 is it fine after the network requests complete? Feb 20 20:40:06 TheChaoticGood: set a breakpoint before you acquire the wakelock, verify that you don't actually have the wakelock acquired already; something could be funky in your project state. Feb 20 20:40:15 vadi2, no it will never redraw the view after that Feb 20 20:40:33 :/ Feb 20 20:41:29 what do you mean by verify that i don't have the wakelock acquired already? I don't call wakelock anywhere else. Feb 20 20:42:06 hey guys Feb 20 20:42:26 anyone know about the multiple apk thing on android market? Feb 20 20:42:39 anybody else with thoughts on this: why writing to a network inside of onintercepttouchevent would prevent that view from running any animations or updating after that? Feb 20 20:42:43 i'm wondering if there's a trick to having an arm6 binary, and a arm 7 binary Feb 20 20:43:10 WhiteWhisker: simply because the UI thread can do one thing at a time Feb 20 20:43:20 if it's blocking on a network connection it can't update the UI Feb 20 20:43:24 kam187osx: the Android.mk should by default build armv6 and v7 versions (and x86!) of your code afaik Feb 20 20:43:40 if not, you can explicitly define te architectures you want to build Feb 20 20:43:46 alankila: i'm using Corona SDK.. basically they dropped arm6 support :/ Feb 20 20:43:55 I'm not familiar with corona Feb 20 20:44:04 MDijkstra, its not blocking the UI it returns immediately and the UI is still responsive...it just wont update that view or play animations on it anymore Feb 20 20:44:09 but anyway, I fully support erasure of v6 from the face of the earth Feb 20 20:44:22 there's usually no floating point capability on that architecture Feb 20 20:44:24 kam187osx: actually, v6 was never supported as NDK platform Feb 20 20:44:25 basically, i use their old version to build for arm6/7, and new one which builds for arm7 only Feb 20 20:44:26 alankila: ... lol Feb 20 20:44:33 WhiteWhisker: you're saying you're writing to the network 'inside of onintercepttouch' Feb 20 20:44:33 alankila: there is Feb 20 20:44:44 WhiteWhisker: that's not 'returning immediately' Feb 20 20:44:48 so which is it? Feb 20 20:44:52 their new version has stuff i need, like new ad networks Feb 20 20:44:56 alankila: it's the v5TEJ that was the "base" before v7a for android that didn't have FPU Feb 20 20:45:13 p_l: thanks for the clarification Feb 20 20:45:24 it's called v6 in the android.mk though afaik Feb 20 20:45:26 so the bottom line is, if i have two binaries, one which is arm6 and android 1.6+ and another which is arm7 and android 2.2+ how can i add them to the market covering the most number of devices Feb 20 20:45:33 alankila: it was just arm, not arm6 iirc Feb 20 20:45:37 mmm Feb 20 20:45:39 okay, maybe Feb 20 20:46:04 right you are, they call it armeabi Feb 20 20:46:05 alankila: and android's minimal spec was iirc v5tej due to starting out on xscale, which broke compat around that Feb 20 20:46:07 no other suffix Feb 20 20:46:36 MDijkstra, the method that writes to the network doesnt block the UI thread for more than 1-2ms probably and it continues processing UI stuff for example if i touch the control again it calls onintercepttouch again Feb 20 20:47:16 anyway, v5tej should just die. v7a or bust. Feb 20 20:47:30 kam187osx: for arm6 you need to code your own detection, but "armeabi" (which, as I mentioned, I think guaranteed at least v5tej) used "arm" directory or similar Feb 20 20:47:33 TheChaoticGood: I'm assuming that something is funky with your setup, so I'd like you to double check that what's in your workspace is actually what's on the device. Feb 20 20:47:50 TheChaoticGood: so, set a breakpoint before you actually ACQUIRE the wakelock, and call dumpsys power to verify that you don't actually have the wakelock yet Feb 20 20:48:08 to support the whole of the market you'd need the binaries in arm, arm7a, x86 and mips directories Feb 20 20:48:12 if you already have the wakelock, something is messed up and you need to figure out what's going on. Feb 20 20:48:28 and if I dont? Feb 20 20:48:30 p_l: its not a native app tho.. the corona SDK builds it.. either for arm v6/v7 (old sdk) or arm v7 (new SDK( Feb 20 20:48:55 kam187osx: Just make sure that whatever libs you have, that you have the same libs for all targets; there's a bug prior to ICS where some libs won't be extracted. Feb 20 20:48:55 kam187osx: well, be wary of depending on v6 Feb 20 20:49:10 kam187osx: a lot of phones had v6zk, but not *all* Feb 20 20:49:11 MDijkstra, i also tried firing the network call on another thread from inside onintercepttouch and it still has the same behavior...it makes no sense to me Feb 20 20:49:29 WhiteWhisker: what are you using to write to the network? Feb 20 20:49:31 asynctask? Feb 20 20:50:19 p_l: its not really an NDK issue or anything :) i think i'm not explaining my problem properly :) Feb 20 20:50:19 MDijkstra, i tried that and just spawning a new thread same behavior Feb 20 20:50:46 anyway Feb 20 20:51:01 i'll try again… the Corona SDK v319 spits out a armv6/armv7 compatbile binary that works fine on all devices android v1.6 upwards Feb 20 20:51:07 MDijkstra, i have a scrollview with some children..im overriding the onintercepttouch in the scrollview and sending the message and its the children that wont update thier UIs after that...but the scrollview is still scrollable Feb 20 20:51:13 kam187osx: put your armv5 libs in /libs/armeabi, and your armv7a libs in /libs/armeabi-v7a Feb 20 20:51:21 however this corona version on'y supports admob as an ad network Feb 20 20:51:23 kam187osx: The device will extract the appropriate library as needed. Feb 20 20:51:24 oh that works? Feb 20 20:51:42 WhiteWhisker: interesting, if you don't send the message the code works fine? Feb 20 20:51:46 kam187osx: yes. At compile time you can also set a flag somewhere that makes multiple builds abased on configuration, so you can make an armv5 build, armv7 build, etc Feb 20 20:51:50 which can really help for file size, etc. Feb 20 20:51:57 WhiteWhisker: also, what are you using to animate the scrollview? Feb 20 20:51:58 lov: u might have saved me a ton of hassle!! Feb 20 20:52:04 kam187osx: no problem Feb 20 20:52:13 MDijkstra, yes took me a while to narrow it down to that but if i comment out the line that sends the message it works fine. Feb 20 20:52:19 err, the views inside the scrollview Feb 20 20:52:20 lov: if not i'll be back to bend your ear :) gonna try it now! Feb 20 20:52:21 I mean Feb 20 20:52:22 kam187osx: just bear in mind that arm5 is what is guaranteed to work for all users. arm6 will work for most but not all devices. Feb 20 20:52:43 MDijkstra, its not just animation...i have an imageview inside the scrollview and changing its image doesnt get reflected either Feb 20 20:52:44 lov: ok.. i'm going to extract the apk from both corona versions and see what they're doing Feb 20 20:53:07 kam187osx: alright. bear in mind that an apk is a modified jar which is a modified zip, so you can just put the apk in a directory and unzip it. Feb 20 20:53:10 MDijkstra, and i know the code works because i watch it change the images over and over and then as soon as i touch (and fire the network message) the image updates stop working too Feb 20 20:53:20 lov: yeah i'm using apktool Feb 20 20:53:32 WhiteWhisker: could be some kind of race condition/synchronization issue Feb 20 20:53:52 but hard to say without the code Feb 20 20:54:34 MDijkstra, whats weird is that it still happens even if i fire it from another thread...makes no sense to me Feb 20 20:55:02 WhiteWhisker: what can happen with asynctask is that, because it runs on a serialthreadexecutor by default Feb 20 20:55:11 WhiteWhisker: is that it'll block any other asynctask Feb 20 20:55:19 but other than that I can only speculate Feb 20 20:57:50 MDijkstra, hrm im not sure how id even check for that Feb 20 20:59:28 woohoo, i got the barcode scanner working on the android platform Feb 20 20:59:36 now, what to do with it... Feb 20 20:59:38 MDijkstra, also from when I tried running it on the UI thread...i had a log message right before and right after the network call and both log entries are visible so I dont think its blocking even Feb 20 21:00:57 Xophosaurus: scan barcodes Feb 20 21:01:00 duh Feb 20 21:02:24 aye Feb 20 21:02:57 my thoguht process: install adk, implement barcoding, ???, profit! Feb 20 21:04:36 Xophosaurus: mate the barcode scanning app to a bluetooth string sharing app Feb 20 21:05:00 Xophosaurus: ie: scan a barcode, on your phone that's bt paired to a computer and the computer "types" the barcode # Feb 20 21:07:15 that's entirely doable Feb 20 21:08:19 Xophosaurus: Yeah I uh.... yeah, idk :| Feb 20 21:08:32 gl w/ that ??? stage Feb 20 21:11:16 MDijkstra, thx for the time ill try restructing this to see if i can work around it Feb 20 21:21:06 Someone said MIPS! Feb 20 21:21:27 MIPS Feb 20 21:21:39 Does the current NDK support MIPS, then? Feb 20 21:23:26 Only, I have this MIPS tablet (first to market ICS, woo) and there's pretty much nothing that will run on it. Feb 20 21:24:02 Even my own stuff won't run on it. Feb 20 21:24:08 But that's Renderscript, not NDK. Feb 20 21:26:10 lov: as i feared, the armv6 libraries from corona's old build has some stuff missing thats in the new armv7 libraries Feb 20 21:29:49 kam187osx: some stuff like what? Feb 20 21:30:03 kam187osx: you could always make a build that only uses armv7; it won't be visible on market for devices that don't support armv7 Feb 20 21:30:23 yeah thats the problem :( Feb 20 21:30:53 v7a or bust. Existence of non-v7a devices is a bug. Do not propagate it. Feb 20 21:30:55 there's alot of cheap prepay arm6 devices out there i dont want to drop Feb 20 21:31:12 is there a way to lov: yea, i know it's already been done. It looks like this works over wifi/http too: https://market.android.com/details?id=com.tecit.datareader.android.getblue.demo Feb 20 21:31:21 lov: http://pastebin.com/z05BcJLE Feb 20 21:31:31 i'm sure they're not using zxing either, probably some custom code they spend years perfecting Feb 20 21:32:37 i wonder if i could buid android v1.6 -> 2.1 for arm6/7 with old corona and 2.2+ with arm7 Feb 20 21:32:55 do any (many?) devices with arm6 have android 2.2 Feb 20 21:34:17 2.1: market share already at ~7 %. Sure it's worth it? Feb 20 21:34:44 Depends on his users Feb 20 21:35:05 alankila: there's no loss in putting up an apk for 1.6->2.1 its just pressing the build button in corona :) Feb 20 21:35:22 the arm6/7 issue is a bigger problem tho Feb 20 21:36:32 the issue with 1.6 is that it's almost certainly waste of time. 1 % or less. You should start thinking about 2.1 the same way: waste of time. Feb 20 21:36:48 I just found a hot japanese chick in my kernel. Feb 20 21:37:04 ? Feb 20 21:37:08 ok, but like i said, it doesnt matter to me. its built, released and working. there's no sense in pulling that version Feb 20 21:37:20 i dont necesarily need to update it tho Feb 20 21:37:25 http://imgur.com/a/Y97fH <-- these images are IN my kernel Feb 20 21:37:43 the main issue is armv6.. there's alot of devices still using armv6, and i can't distinguish them using android version Feb 20 21:37:54 which means i cant filter the builds that way Feb 20 21:38:23 hays, nice! Feb 20 21:39:01 hays, Though more Korean is my guess. Feb 20 21:39:11 Can I include linked files as android assets? Feb 20 21:39:51 mrenouf: good call probably Feb 20 21:39:58 mrenouf: Samsung. Feb 20 21:40:39 vadi2: linked files? what do you mean? Feb 20 21:40:51 res/raw can contain any type of file Feb 20 21:41:08 I added a file to assets/ that is linked, but the asset manager is failing to find it. I suspect it's not being included in the apk Feb 20 21:41:23 I don't understand what you mean by linked Feb 20 21:41:27 * alankila wonders what 'linked' means aswell Feb 20 21:41:28 you mean included in the apk? Feb 20 21:41:46 assets -> new file, advanced, ticked 'link to file in the file system' Feb 20 21:42:08 that has very little to do with android Feb 20 21:42:16 and more with eclipse's bookkeeping Feb 20 21:42:18 I think Feb 20 21:42:34 but lets see Feb 20 21:44:01 kam187osx: looking at that log you showed, it has nothing to do with your arm library Feb 20 21:44:07 kam187osx: it has to do with methods that don't exist at that api level Feb 20 21:44:15 ahh Feb 20 21:44:27 kam187osx: http://developer.android.com/resources/articles/backward-compatibility.html Feb 20 21:44:28 Yeah, it's not being included in the apk, I peeked at /assets/ Feb 20 21:44:31 :( Feb 20 21:45:02 vadi2: yeah, that just sets a reference inside eclipse; the android build tools don't know about that file. Feb 20 21:45:05 Don't do that. Feb 20 21:45:21 if you must do that, consider using soft links from the cmmandline ala ln -s Feb 20 21:45:31 MDijkstra: res/raw can't contain .gz files. Feb 20 21:45:35 but you really ought to just copy the file in directly Feb 20 21:45:37 Why not - the file is another lib, I'll be updating it via git. yes, I suspect I'll have to make a soft link Feb 20 21:45:51 I don't want to update the projects file every time I update it via git Feb 20 21:45:51 vadi2: because 16:45:08 < lov> vadi2: yeah, that just sets a reference inside eclipse; the android build tools don't know about that file. Feb 20 21:46:02 Yeah I read. I'll make a soft link. Feb 20 21:46:07 Gumboot: out of interest, why? Feb 20 21:46:10 Not that it makes sense Feb 20 21:46:19 The build system unzips them, and renames them. Feb 20 21:46:30 Then it forgets to tell the app about the new name, and everything breaks down. Feb 20 21:46:41 Gumboot: ah, so that's not a design limitation Feb 20 21:46:43 but just a bug Feb 20 21:46:46 vadi2: the android build tools don't necessarily know about things eclipse knows about. All they know is the arguments that eclipse gives them. Feb 20 21:46:49 it makes total sense. Feb 20 21:47:07 eclipse tells it what's in assets/ already that I added Feb 20 21:47:13 eclipse, could, however, copy the linked resources into a tmp dir for packaging Feb 20 21:47:15 eclipse isn't telling it about this particular file, then? Feb 20 21:47:15 I found it kind of a nuisance, because I had some gzipped files on which the build system insisted on degrading the compression. Feb 20 21:47:23 yes, it should Feb 20 21:47:24 eclipse doesn't tell it about ANY files for that stage. Feb 20 21:47:26 whether that's saner than ignoring them Feb 20 21:47:28 I don't know Feb 20 21:47:33 probably not Feb 20 21:47:36 all it says is "run aapt in this directory" Feb 20 21:47:45 "and put the output here" Feb 20 21:48:01 So the issue is at the adding to assets/ stage Feb 20 21:48:05 vadi2: use the command line tools to have a better idea what's going on. Feb 20 21:49:03 Yeah, added the link via the file manager and it works now. Feb 20 21:49:08 vadi2: http://developer.android.com/guide/developing/building/building-cmdline.html Feb 20 21:49:26 if your team has more than one person, you should consider using a CI server of some kind, which is going to use that method to do its builds. Feb 20 21:49:26 I know how they work... I also know that right now, they're annoying and broken, forcing you to clean the project every time :) Feb 20 21:49:34 er Feb 20 21:49:37 :X Feb 20 21:49:46 refresh your eclipse project. it'll find things that you change outside of eclipse. Feb 20 21:49:56 the library stuff is broken but generally not THAT broken. Feb 20 21:50:04 it kind of works Feb 20 21:50:06 for me Feb 20 21:50:27 still rather magical, but it gives me less headaches than other platforms Feb 20 21:50:31 *cough* xcode Feb 20 21:56:27 hey guys Feb 20 21:56:30 how's everyone Feb 20 21:57:08 I'm fine Feb 20 21:57:14 Terrible. My 50 quid MIPS tablet won't let me explore the mandelbrot set, and I'm angry about that. Feb 20 21:57:31 hahah wth is the mandelbrot set? xD Feb 20 21:57:36 * Gumboot puts on his angry face Feb 20 21:57:39 hahaha Feb 20 21:57:42 does it taste delicious? :D Feb 20 21:57:56 google Feb 20 21:57:57 Gumboot: what you mean is that your cheap tablet won't work with any app with native code because no one makes mips libs Feb 20 21:58:19 mandelbrot is german for some bread with almonds :D Feb 20 21:58:23 Aeefire: Decilious like the version after the version after the current version of Android? Feb 20 21:58:35 try and port a PSP mandelbrot app Feb 20 21:58:36 Or the verison after that. Feb 20 21:58:40 PSP uses MIPS afaik Feb 20 21:58:49 lov: It's not native code. It's Renderscript. Feb 20 21:58:59 But I am impressed at how much native code there is in the market. Feb 20 21:59:23 Gumboot: oh. Feb 20 21:59:26 Aeefire: As well as being a tasty treat, it's a fractal. Feb 20 21:59:30 So you're upset that your cheap as fuck tablet won't run HC? Feb 20 21:59:33 ..... really? Feb 20 21:59:36 lov: It runs ICS. Feb 20 21:59:39 that's why it's tasty :) Feb 20 21:59:40 haha Feb 20 21:59:42 gl w/ that. Feb 20 21:59:52 is it cheap because of some sort of carrier subsidy or did it really cost that much? Feb 20 22:00:00 because if it really cost that much I expect it to periodically reboot Feb 20 22:00:09 let alone properly run things Feb 20 22:00:12 how much is 50 quit? Feb 20 22:00:13 hmm i need someone with an arm6 2.2 device :/ Feb 20 22:00:13 It's that cheap because I picked it up in China. Feb 20 22:00:18 kelopez: 50 pounds Feb 20 22:00:21 oh Feb 20 22:00:22 I think they dumped ICS on it in an effort to flush old stock. Feb 20 22:00:26 Gumboot: so it's some random noname thing. Feb 20 22:00:27 yeah. Feb 20 22:00:29 gl w/ that. Feb 20 22:00:34 holy shit it's cheap Feb 20 22:00:36 I don't understand "gl w/ that.". Feb 20 22:00:40 good luck? Feb 20 22:00:41 good luck with that. Feb 20 22:00:43 ninja'd Feb 20 22:00:44 Ahh. Feb 20 22:01:05 Gumboot bought this: http://arstechnica.com/gadgets/reviews/2010/11/worst-gadget-ever-ars-reviews-a-99-android-tablet.ars Feb 20 22:01:25 IT's this: http://www.ainovo.com/novo7paladin-features.html Feb 20 22:01:43 so 1gbp is 2usd? Feb 20 22:01:50 It should be running this: http://www.youtube.com/watch?v=RFuc0XmPYSI Feb 20 22:02:04 has anyone experiencees with itextpdf? Feb 20 22:02:12 and 1usd is 480clp Feb 20 22:02:47 lov: I was ready to say "that's it", based soley on the description, but actually it's not. Feb 20 22:03:45 Mine's even cheaper! Feb 20 22:04:01 Hi ! Something weird is happening : a thread is blocking when leaving a synchronized function : a Log.d on the last line of the function happens, but a Log.d just after the call never does. Any reason why ?... Feb 20 22:04:17 I thought synchronized methods only blocked when entering them Feb 20 22:04:22 http://www.ainovo.com/images/novo7paladin-features_22.jpg Feb 20 22:04:24 .... yeah. Feb 20 22:04:42 I think Youtube should encode some redundancy in the id string so that there's wiggle room to edit it to spell rude words. Feb 20 22:04:53 That your tablet turns on at all is a small marvel. Feb 20 22:04:58 lov: Don't you mock my ainol tablet. Feb 20 22:05:15 your anal tablet? Feb 20 22:05:20 I mean cmon. Feb 20 22:05:25 the tablet mocks ITSELF. Feb 20 22:05:28 my friend has one of those. Watching him explain to his dad that his fiance got him Ainol for christmas... Feb 20 22:05:29 rofl Feb 20 22:05:30 It has a little "*" next to the word Ainol, too. Feb 20 22:05:36 lov: it's the Ainol Paladin no less. Feb 20 22:05:40 gahaha Feb 20 22:05:42 yes it is Feb 20 22:05:57 hmm i need to find someone with a galaxy mini or something Feb 20 22:06:10 It does actually come with some crappy Spiderman game, by the way. That's not a completely made-up image. Feb 20 22:06:13 I have a Galaxy Ace Feb 20 22:06:32 Gumboot: Oh I'm sure it does. Feb 20 22:06:35 kam187osx: Feb 20 22:06:51 Seriously, blocking on synch method end ? anyone can understand that ? Feb 20 22:06:53 It's pretty awful, but it did actually turn out better than I had expected when I bought it. Feb 20 22:06:58 kelopez: ? Feb 20 22:06:59 really just that it's a mips means it's never going to really work right Feb 20 22:07:10 for some generic selection of apps Feb 20 22:07:12 I have an ARMv6 device with Android 2.3 Feb 20 22:07:34 kelopez: great! Feb 20 22:07:37 I got a little problem.. I have some library that generates me an pdf , but the library does not exactly tell me when it's finished; but after the user tells the app to generate that pdf it should be sent with the default email app... but it can't be set, because.. yeah, the pdf isn't ready yet... anyone has any idea how to handle this problem? Feb 20 22:07:38 can u try an apk for me? Feb 20 22:07:42 yep Feb 20 22:07:46 which device is it? Feb 20 22:07:50 Galaxy Ace Feb 20 22:07:51 Even so, I was still surprised at how many apps turned out to be NDK-based. Feb 20 22:07:52 can't be sent* Feb 20 22:07:55 cool Feb 20 22:07:57 uploading Feb 20 22:08:37 Aeefire: if it generates to a file, watch the filesystem and when it stops changing size for a second? Feb 20 22:08:48 Aeefire: modify the library to give you a callback when its finished? Feb 20 22:09:07 its a huge library hehe :D Feb 20 22:09:22 Aeefire: yeah but the part that finishes writing the file ought to be relatively simple to find Feb 20 22:09:26 ya I don't know how "fast" the filesystem-debugger is Feb 20 22:09:40 and i don't want the user to wait longer than he has to :) Feb 20 22:12:04 kelopez: pm'd u the link :) Feb 20 22:12:30 yes Feb 20 22:13:03 it's installing Feb 20 22:13:07 coo Feb 20 22:13:09 *cool Feb 20 22:13:42 FC'd Feb 20 22:13:50 can u do a logcat? Feb 20 22:13:58 let's see Feb 20 22:15:08 Aeefire: huh? Is it asynchronous or something? Feb 20 22:17:31 lol i am generally thinking about changing the way of how i create my pdfs Feb 20 22:17:44 i just read through the licensing details Feb 20 22:18:32 it says I must display a legal notice on every interactive user interface as well as publishing my own sourcecode, where i used the library under the same license and stuff Feb 20 22:18:33 wth :D Feb 20 22:19:30 has anyone recommendations for a good library to generate pdfs within java / android? :) Feb 20 22:19:37 lov: 02-20 19:17:11.679: W/dalvikvm(3204): No implementation found for native Lcom/ansca/corona/JavaToNativeShim;.nativeInit ()V Feb 20 22:23:49 is there any possibility to get a free pdf library to use in an android app for commercial use ( mostly adds inside of the app) ? Feb 20 22:24:02 hmm what happens if i release version 2.6.0 that has arm v6/v7, then update one binary with version 2.6.1 arm v7 Feb 20 22:24:11 will arm6 people still see the old 2.6.0? Feb 20 22:24:31 hey guys I was wondering what would be a good learning path for a absolute beginner to get into mobile app deveolpment? Feb 20 22:25:03 adio: best to start learning the language and the development paradigm Feb 20 22:25:15 for android, those'd be java and object-oriented programming Feb 20 22:25:22 Okay Feb 20 22:25:38 I've read alot about python. Is that a good language to learn first? Feb 20 22:25:49 or would java be a better choice Feb 20 22:26:00 java would be the best choice Feb 20 22:26:14 although you can program android apps in almost any language you choose Feb 20 22:26:21 java is by far the best supported and easiest Feb 20 22:26:48 eclipse has an android plugin thats so easy to use its almost cheating Feb 20 22:26:55 (don't hurt me, scala people) Feb 20 22:26:57 I'm also debating going to University to get my degree in CS but I'm not really sure if its nessacary to go school to obtain a job in the dev job market Feb 20 22:27:02 well, eclipse java IDE Feb 20 22:27:13 adio it asbolutely is Feb 20 22:27:28 you dont necessarily need a degree to get into IT but for programming/dev work you do Feb 20 22:27:36 you don't really do a cs degree to get a programming job, you do it to learn a bunch and prove you're smart enough for a career with whatever company you choose Feb 20 22:27:40 it kind of depends, a theoretical background is always nice to have Feb 20 22:27:47 but whether it's required Feb 20 22:27:49 I don't know Feb 20 22:28:03 ... it's important to know the difference between programming skill and computer science Feb 20 22:28:18 anyone knows a good (free) method to generate a pdf inside of your (commerical) app... any free library? :X Feb 20 22:28:58 I really want to get into app dev for mobile devices, still trying to figure out what i should be taking in university Feb 20 22:29:01 MDijkstra: It's not required. Feb 20 22:29:14 it depends, I think Feb 20 22:29:23 on what you're coding Feb 20 22:29:36 ok Feb 20 22:29:44 total newb at all this Feb 20 22:29:47 just really interested Feb 20 22:29:47 adio, various CS departments have some flexibility when it comes to what you learn, you can focus on things like mobile development Feb 20 22:29:59 but it depends on the school Feb 20 22:30:14 Gumboot: it's complementary, but there is some overlap Feb 20 22:30:16 In the jobs I look at there's a lot of room for EE graduates as well. Feb 20 22:30:44 Gumboot: well sure, but EE in general is more difficult than CS Feb 20 22:30:46 you do need a BA/BS though Feb 20 22:31:32 Gumboot: and you get much of the same theoretical background Feb 20 22:31:48 ie, coding theory, vector/matrix math, calculus Feb 20 22:32:01 you could also take CE, and be in the cool kids club Feb 20 22:32:12 What's CE? Feb 20 22:32:16 computer engineering Feb 20 22:32:20 computer engineyeah that Feb 20 22:33:19 What's in that? Feb 20 22:33:30 a bit of both Feb 20 22:33:35 high-level EE stuff Feb 20 22:33:44 and low-level CS stuff Feb 20 22:34:02 ie, computer architecture, assembly programming, distributed architectures Feb 20 22:34:04 that kind of stuff Feb 20 22:34:20 I had a workmate who was civil engineering graduate. Feb 20 22:34:24 Didn't seem to do him much harm. Feb 20 22:34:31 Except for his hatred of architects. Feb 20 22:34:43 there will almost definitely be a course on software engineering which may well be fairly open, you could probably just do a mobile project on that (i did) Feb 20 22:36:00 You do a degree to prove you're not thick. Except at some universities where you simply do it to prove you're not poor. Feb 20 22:36:13 ^^^^^ Feb 20 22:36:20 this is so true Feb 20 22:36:42 haha Feb 20 22:36:46 yeah Feb 20 22:37:06 kam187osx: if you release a new version that older devices will not be able to use, market just won't show the app. Feb 20 22:37:08 although I've seen some circumstances where smart people were doing jobs they really shouldn't be doing (and were not very good at) Feb 20 22:37:18 ie, low-level EE people doing software design Feb 20 22:37:22 it gives you the foundations you need to be employed as a person, not just as a developer Feb 20 22:37:23 lov: awh sucks Feb 20 22:37:23 that usually ends badly Feb 20 22:37:29 kam187osx: actually, now that market lets you put out multiple versions Feb 20 22:37:35 I'm assuming that they'll just keep seing the older version Feb 20 22:37:43 yeah i'm hoping so Feb 20 22:37:50 i guess i'll try it and see Feb 20 22:38:15 also, CS depts teach you to be a computer scientist not a software engineer Feb 20 22:38:19 As a low-level EE, I see my role as chasing around high-level CS people with a stick, shouting at them for arranging their data structures badly. Feb 20 22:38:30 they won't teach you how to use source control, or that it exists, but by golly you can figure out the running time of that algorithm! Feb 20 22:38:44 lov: here there are no separate curriculums for CS/SE on a bachelor level Feb 20 22:38:52 so they teach both Feb 20 22:38:55 .. but generally with that foundation of knowledge, you can pick that stuff up fairly easily Feb 20 22:39:04 MDijkstra: I'm not sure that there are even SE bachelor degrees over here Feb 20 22:39:07 easier i would say then trying to do it the other way round Feb 20 22:39:11 storkme: you have to know that it exists first. Feb 20 22:39:20 storkme: I think that the CS depts need to teach some engineering fundamentals too Feb 20 22:40:13 yeah, the problem most universities have is that all of their CS staff have academic backgrounds Feb 20 22:40:17 alternately, there needs to be tracks for Computer Scientists who will actually try to analyze the algorithmic complexity of blah blah blah, and folks who will actually write software. Feb 20 22:40:18 in my course it was never explicitly tought, but it was implied that we'd get better marks for using source control Feb 20 22:40:23 greetings to all! Until now I thought that andoid was all about Java but according to http://developer.android.com/resources/index.html i see that its all XML! And that's wonderful because I don't like Java a lot. Please can you point me out some more resources to read?! Thanks :D Feb 20 22:40:24 so they simply don't know about software engineering Feb 20 22:40:35 storkme: no one even said the words "Source control" until my 400 level Feb 20 22:40:37 cmpahar: wtf. Feb 20 22:40:44 fair enough Feb 20 22:40:46 cmpahar: sorry, it's all about java. Feb 20 22:40:52 except that the xml resources exist to make things a lot easier. Feb 20 22:40:59 i guess it comes down to different curriculaelie Feb 20 22:41:00 cmpahar: java is the programming language, xml is the main descriptive language used Feb 20 22:41:06 but you'd have to use both Feb 20 22:41:16 cmpahar: those xml resources are mostly for art, layout, text, etc. content Feb 20 22:41:36 cmpahar: however, the resources engine allows for graceful handling of multiple device types, languages, configurations, etc. Feb 20 22:41:50 once you understand what it's doing, the xml resources are incredibly powerful and useful. Feb 20 22:41:59 the resource engine is part of the problem set. Feb 20 22:41:59 but yeah unless you're doing 2.3 and above you have to use at least a little java, full stop. Feb 20 22:42:12 if you really, really, really must not use java because RAARARGH JAVA BAD C++ GOOD Feb 20 22:42:23 http://developer.android.com/sdk/ndk/index.html Feb 20 22:42:26 cmpahar: I don't even know java and I can still write apps. Feb 20 22:42:32 C++, where you can reimplement the entire language in templates Feb 20 22:42:36 well, not really, since fragments I no longer hate xml Feb 20 22:42:40 why? BECAUSE REAL MEN DO Feb 20 22:42:42 note that you may well still need to use JNI to reference some apis Feb 20 22:43:06 MDijkstra: I've heard dark rumors of some preprocessors that are turing complete Feb 20 22:43:15 WOW, thanks lov thats an interesting info! Feb 20 22:43:28 np Feb 20 22:44:19 storkme: right, and I think the problem is that a lot of curriculum has emphasis on academic tracks, and no interest in real world experience. Feb 20 22:44:41 lov, I don't have problem learning Java special for writing android apps but I can't find a proper book, reference or something like that, can you advise on that?! Feb 20 22:44:44 * alankila at least hopes academy is less interested nowadays in teaching students to implement sorting algorithms Feb 20 22:44:50 lov: there's a real mismatch between what people are taught and what they end up doing professionally in CS Feb 20 22:45:19 ie, most become software engineers or project managers Feb 20 22:45:35 Sorting is important. Feb 20 22:45:35 lov: in england it really depends where you go.. 'better' places are more theory, other places are more vocational Feb 20 22:45:41 virtually all of my paid work has only required me to select between hashmap, arraylist and hashset as appropriate Feb 20 22:46:03 how can i create a new virtual device? Feb 20 22:46:08 everything else about the work has been so boring it would reduce me to tears to even talk about it Feb 20 22:46:18 There's a sort in AAC+. I rewrote it in SIMD to go faster. Feb 20 22:46:22 (it was a very short array) Feb 20 22:46:43 jahid: AVD manager -> new Feb 20 22:46:52 (perhaps it takes codec knowledge to realise how ridiculous it is that there be a sort in there) Feb 20 22:47:11 MDijkstra, where can i find "AVD manager"? Feb 20 22:47:21 either in some eclipse menu Feb 20 22:47:27 or in the sdk/tools folder Feb 20 22:47:32 perhaps platform-tools these days Feb 20 22:48:02 MDijkstra, i do not use eclipse. and there is no AVD manager under tools folder. i have checked that Feb 20 22:48:15 let me see Feb 20 22:48:23 ok Feb 20 22:48:49 any thoughts, anyone. Interested on a java reference with a lot of samples on writing android apps. Thanks D: Feb 20 22:49:15 no special permission is requested to use accelerometer ? Feb 20 22:49:17 jahid: ah Feb 20 22:49:20 tools/android Feb 20 22:49:31 then Tools -> Manage AVD's Feb 20 22:49:57 cmpahar: I don't know if there are any "Learn Java for Android" books Feb 20 22:50:02 cmpahar: do you have any development experience? Feb 20 22:50:14 MDijkstra, thanks Feb 20 22:50:19 if you know C++ or C#, Java is pretty similar Feb 20 22:50:21 http://docs.oracle.com/javase/tutorial/java/index.html Feb 20 22:50:26 http://docs.oracle.com/javase/tutorial/essential/index.html Feb 20 22:50:46 there are probably a few "Java for XYZ developers" where XYZ is your language of choice Feb 20 22:51:01 even with XYZ=Java ? Feb 20 22:51:45 lov only on C/C++ and C# Feb 20 22:52:49 bubbleguuum: redundant but uh I'm sure there's a couple Feb 20 22:53:08 cmpahar: if you know C# Java should be very familiar. C# is Java with the benefit of 10 years hindsight Feb 20 22:53:38 they're almost identical syntactically Feb 20 22:53:50 they got the whole package private thing right though iirc Feb 20 22:53:56 lov, I have to "touch" C# about 7 years, thats the problem :P Thank you very much though :) Feb 20 22:54:12 does Java# still exist? Feb 20 22:54:17 or J# Feb 20 22:54:21 cmpahar: well, just look through your library or bookstore and see if there's a book that grabs your attention Feb 20 22:54:27 MDijkstra: Wasn't that litigated out of existence? Feb 20 22:54:55 not sure, I think that was microsofts own implementation of java, J# was a java-like language targeting the CLR Feb 20 22:55:08 (yes, I know that sounds like C#) Feb 20 22:55:21 CLR: now you can write the same shit in at least 4 different styles Feb 20 22:55:26 kind of beats me why they think that's good thing Feb 20 22:56:08 the .Net class library docs also give programming examples in all the languages too, which is double funny. Feb 20 22:56:14 lol Feb 20 22:56:39 isn't that basically what the jvm is? since the bytecode format is so well documented there's a bunch of different languages that'll compile to it Feb 20 22:56:41 the examples are always going to feel weird in any other language than C# Feb 20 22:56:56 just like when you're calling java stuff from Jython Feb 20 22:57:09 anyone tried using View.scheduleDrawable() with a drawable other than the background drawable? (of course overriding verifyDrawable() to make it recognized) ? I found out that it doesn't work (manually scheduling it does) although cursory examination of View.java doesn't sched light on this Feb 20 22:58:34 iirc the big problem with Microsoft's Java stuff was that it was JUST buggy enough that it turned everyone off of Java Feb 20 22:58:55 Apparently I'm not alone, others have noticed this issue too. I reused AnimatedRotateDrawable (not part of the public SDK, but in the Android source tree) and it didn't work properly until I manually posted the runnable by overriding scheduleDrawable Feb 20 22:59:16 alankila, the same thing is true of the jvm, since there are a myriad languages now Feb 20 22:59:39 jython, jruby, clojure, groovy, scala, etc. Feb 20 22:59:59 yes... it was nice until it happened. Feb 20 23:00:13 but still, at least the jdk docs don't have to give examples in myriad of languages. Feb 20 23:00:13 lov, that's not true, iirc microsoft's plugin tended to be the best at behaving well Feb 20 23:00:22 lov: I think this was another java implementation Feb 20 23:00:32 it just added so many non-standard extensions that sun had to sue the crap out of them Feb 20 23:00:34 one they made before .net saw the light of day Feb 20 23:00:42 pfn: maybe that was it Feb 20 23:01:33 lov: http://en.wikipedia.org/wiki/Microsoft_Java_Virtual_Machine Feb 20 23:03:45 * alankila saw some indian-produced code in some language like gosu which was full of awesome constructs like 'var foo = new Producer() as Producer;' Feb 20 23:04:00 I guess you can take a language that has "var" but somehow manage to still repeat the type Feb 20 23:04:50 and in fact, make it worse than plain old java would have been at the same time Feb 20 23:04:54 10 DIM A AS INTEGER Feb 20 23:05:17 MDijkstra: yeah, that's right, I thought it was something like that. Feb 20 23:05:19 with the "Strategic Objective" described as to "Kill cross-platform Java by grow[ing] the polluted Java market."[3] Feb 20 23:05:46 hi Feb 20 23:06:04 alankila, awesome of course Feb 20 23:06:06 I have an list view and want to change the selection style of the rows, how do I do that? Feb 20 23:06:23 i get only onClickEvent, not onSelect Feb 20 23:06:37 kerigan: generally you want to do this with a style resource Feb 20 23:06:39 not with code Feb 20 23:07:18 that would work, but i want to not just change the background, but replace some elements within the row etc Feb 20 23:07:35 can anyone tell me where can i get android sdk source code? Feb 20 23:07:49 *sdk api source code Feb 20 23:08:11 jahid: source.android.com Feb 20 23:08:17 the SDK source is mixed in there with AOSP Feb 20 23:08:30 lov, ok let me check Feb 20 23:12:44 I want to change the colors on some of the default views by using a @style. Is there a list of some of the more obscure field names for these views? Where would I find what xml field would change the highlight color on a tab view (like the youtube app) for example? Feb 20 23:22:15 I am trying to run a command as root (most likely cat so I can view root only files related to different types of logging). I have a method http://pastebin.com/mtpk9cqV . There are few guides on how to use root that I can find, but does anyone know the return codes? I tested it, and I get 0 and 1, not 255. Feb 20 23:22:44 err Feb 20 23:23:09 http://pastebin.com/gSka04LV Feb 20 23:23:54 Could it be that superuser exits faster than it can wait for it? Feb 20 23:32:39 so apparently su returns 0, not 255. Should have figured <_< Feb 20 23:40:05 anyone know a android offline speech recognition library ? Feb 20 23:40:16 it doesnt have to be very accurate or efficient Feb 20 23:48:06 Anybody know of a good RSS library for Android? I've tried all suggestions here, and they're all pretty bad: Feb 20 23:48:07 http://stackoverflow.com/questions/1253788/simple-rss-parser-for-android Feb 20 23:48:20 That is, most of them only support RSS 2.0, and not Atom, etc. Feb 20 23:49:19 Hi. Is it posible to clone a layout from an XML file (use the XML as a template) and place it in multimple layout's that i have made in-code? Feb 20 23:49:52 As4xk: Why don't you use a FrameLayout and swap out its Views with separate XML layouts? Feb 20 23:50:42 because i dont know before runtime how manny views a will make Feb 20 23:50:54 As4xk: do you mean something like this? http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/ Feb 20 23:53:10 Mgamerz Use the SU interface Koush uses in the bootstrap apps. They are on his Github page. Feb 20 23:54:09 not quite. I want to create a template view (LinearLayout with some buttons etc.). And for each row in a table in Sqlite i want to create a view (that is placed in a ViewPager) based on the template i created. Feb 20 23:54:18 Mgamerz This one. https://github.com/koush/DroidXBootstrap/blob/master/src/com/koushikdutta/droidx/bootstrap/Helper.java Feb 20 23:54:27 i'll see.. right now im trying to work with actionbar Feb 20 23:54:49 pain in the ass cause pre honeycomb is a nightmare with it Feb 20 23:54:58 I suggest using ActionBar sherlock. Feb 20 23:55:26 http://beta.abs.io/ Feb 20 23:55:59 http://developer.android.com/reference/javax/microedition/khronos/egl/EGLConfig.html Feb 20 23:56:03 ^ best android docs ever Feb 20 23:56:12 but that's good information for late use barbs :) Thanks. Feb 20 23:56:17 later* Feb 20 23:56:34 np :) Feb 20 23:57:42 i find it interesting how google has these gingerbread apps with action bar support, kind of (google music) yet they don't provide a compatability library themselves so your app is consistent looking Feb 21 00:07:49 tis be spec here. hai Feb 21 00:07:51 T-Dub|DlolPics Feb 21 00:08:22 Hi Feb 21 00:09:00 So I got banned from adsense, for no reason like thousands of other people, what is another good company for showing mobile ads? Feb 21 00:09:04 Other than adsense/admob. Feb 21 00:11:11 I hope you'll get your owed money back Feb 21 00:12:30 I won't, like everyone else. I did nothing wrong either, it just happens by their automated services. Feb 21 00:22:49 Does anyone know about Wakelock? Can't get it to shutoff Feb 21 00:27:45 Is ViewPager "swapping out" pages "far away" from the current page? Or does it get slower when number of pages increases? Feb 21 00:29:22 it caches one in either direction Feb 21 00:29:27 you can modify that though to increase it Feb 21 00:30:13 Great. so having 20-30 would be ok? :p Feb 21 00:30:18 sure Feb 21 00:31:00 Thanks :) Feb 21 00:34:23 any out-of-the-box authentication libraries I can use for authentication between an Android 1.5+ app and a Java webapp? Feb 21 00:35:03 with emphasis on minimal implementation effort Feb 21 00:43:57 How can I remove a referenced library from my android project with eclipse? Feb 21 00:48:10 project properties Feb 21 00:48:44 So remove it from the build path and etc? Feb 21 00:49:42 referenced how? Feb 21 00:49:47 there's library projects under 'Android' Feb 21 00:49:53 and there's .jars under 'Java BUild Path' Feb 21 00:50:54 Ok. Removing it from libs/ and deleting the reference in the project properties did it. Feb 21 00:51:02 * vadi2 gets abs in Feb 21 00:59:36 Can anyone help me compile android? I'm getting an incorrect java version error. It says that I have verion 1.7.0_03 but I need "Java SE 1.6" What package do I need, or where should I get the installer? I am using Ubuntu 11.10. Feb 21 01:00:26 sudo add-apt-repository ppa:ferramroberto/java Feb 21 01:00:26 sudo apt-get install sun-java6-jdk Feb 21 01:10:06 Thank You JakeWharton, it's now building, once I removed openjdk. :) Feb 21 01:15:40 JakeWharton: would you recommend using 3.5 or the 4.0 beta for starting out? (ie is 4.0 stable and different enough not to bother with 3.5) Feb 21 01:15:58 4.0 Feb 21 01:16:02 download the branch Feb 21 01:16:11 okay, thanks Feb 21 01:16:22 use library/ and plugins/support-lib/ as library projects, include the android support-lib .jar in your libs/ folder Feb 21 01:16:43 look at samples/ for more info on how to do it Feb 21 01:17:38 thanks :) Feb 21 01:19:04 just make sure you don't find any bugs Feb 21 01:19:11 or if you do, fix them and send me a pull request :) Feb 21 01:24:26 What is a good book to start off with if I want to start learning how to make android apps (I have no previous programming experience) Feb 21 01:29:15 book schmook just get to d.android.com and read everything and to the tutorials Feb 21 01:44:54 While I realize every system is different, about how many hours should building android take? I have an i5 (sandy bridge), and am running my ubuntu vm with 4 of ram. Additionally I ran make -j4 to utilize all my threads. Feb 21 01:45:12 uh Feb 21 01:45:15 4-8 Feb 21 01:46:07 I guess I'm going to leave this guy running all night then. Feb 21 01:47:11 With anecdotal evidence from the 'net, I think -j5 might be a bit quicker Feb 21 01:57:14 JakeWharton did you fix all the bugs yet? Feb 21 01:57:21 yes Feb 21 01:57:32 and i fixed all the ones for the next version Feb 21 01:58:30 is there any way for me to use oauth from a third-party (e.g., Twitter) to authenticate a user without requiring them to do it in both the app and the webapp? Feb 21 01:59:36 I want a user to be able to oauth on the client and be able to submit things to the server without ever having to visit the site Feb 21 02:00:12 but it seems like the only way to do that would be to pass the user's tokens/secret across the wire to verify with my app's token/secret against the third-party Feb 21 02:13:57 Anyone know a good company that is compable to admob/adsense? Feb 21 02:14:01 For mobile ads Feb 21 02:15:30 vadi2: it would be if I had 5 threads that I could deicate, alas I only have 4. So I will practice pacients. :) Feb 21 02:16:01 5 cores you mean? The idea of +1 comes from it filling in the gaps that the other 4 can make though Feb 21 02:16:48 Hmmm... well, I have two cores, hyperthreaded, for a total of 4 threads Feb 21 02:17:16 but they seem to be maxed out, so I don't think it matters much Feb 21 02:17:38 do your cores not have hyperthreading or something? Feb 21 02:18:05 wait Feb 21 02:18:09 I'm sorryn I don't follow Feb 21 02:18:13 i should read more than 5 miutes ago before replying Feb 21 02:18:13 ignore me Feb 21 02:18:27 so yea, if you have 2 cores with HT, id go for 5 Feb 21 02:18:27 Alright :) Feb 21 02:18:57 because when one thread blocks on IO, another thread can take over Feb 21 02:19:34 I'm just going to let it run all night anyways, and prefer not to interupt the build to change the flags Feb 21 02:20:59 i can't find any guidelines on images for ImageButton. What width/height should I use for specific densities? Feb 21 02:21:02 Bulding ABS - plugins/support-lib can't find android.view.ActionProvider in MenuItemMule (but can find other android imports) and SherlockFrafment can't find android.support.v4.app.Fragment. ABS itself is building fine though Feb 21 02:22:39 Aha, worked it out. I screwed up the target version at one point, it's happy now Feb 21 02:24:16 xorgate, 3:4:6:8 Feb 21 02:25:26 JakeWharton i dont follow.. Feb 21 02:25:32 ratios Feb 21 02:25:39 l/m/h/x dpis Feb 21 02:26:12 do you mean x should have 8 times as wide as high? Feb 21 02:26:31 no, xhdpi should be twice as large as mdpi Feb 21 02:26:41 4:8 Feb 21 02:26:44 1:2 Feb 21 02:26:46 2x Feb 21 02:26:47 ah ok Feb 21 02:26:55 ldpi should be 75% of mdpi Feb 21 02:27:00 etc. Feb 21 02:27:01 gotcha Feb 21 02:27:03 cheers Feb 21 02:29:57 hi. i would like to write a few simple android games. they will use simple b/w vector graphics, to which I want to add some glow. should I use OpenGL or some other approach, and if OpenGL, 1.0 or 2.0? Feb 21 02:32:32 Hey y'all. Is there anything that's like the ViewFlipper control for flipping to a specific named view? Feb 21 02:32:48 IE, instead of .moveNext() I'd like something that's like .showView(View) Feb 21 02:32:49 JanSch: learn 2.0 Feb 21 02:33:22 Preferably something that works with animatnios. Feb 21 02:33:26 animations, even. Feb 21 02:33:39 no Feb 21 02:33:46 you need to do that yourself Feb 21 02:33:50 or get an engine etc Feb 21 02:33:55 GL is just a drawing api Feb 21 02:33:58 TheBunny: ok, so I should go with OpenGL? I considered simply using drawables, or one of the existing engines Feb 21 02:34:20 GL is always the fastest Feb 21 02:34:27 and engine base on GL might be good Feb 21 02:34:43 Chronax, ViewPager lets you page to a specific view by index Feb 21 02:34:45 I have no idea what the current speed of drawables are. Feb 21 02:34:57 JakeWharton: Are you kitten me? Feb 21 02:35:00 How'd I miss that? Feb 21 02:35:11 TheBunny: yeah, I don't want to hog CPU with those games Feb 21 02:35:13 setSelectedItem() Feb 21 02:36:05 Hrm... Feb 21 02:36:16 ES2 is all shaders... Feb 21 02:36:18 Weird, my version of the ViewFlipper class doesn't have that method. Feb 21 02:36:24 so glow effects might be easier Feb 21 02:36:24 Only setSelected(bool) Feb 21 02:36:33 ViewPager Feb 21 02:37:27 Oh, I see. Feb 21 02:37:57 Can I disable the swipe to flip views in a ViewPager/ Feb 21 02:37:58 ? Feb 21 02:38:05 And use it like a ViewFlipper? Feb 21 02:38:47 I don't know what ViewFlipper does Feb 21 02:38:57 so I don't know Feb 21 02:39:11 Basically, I've got 2 buttons in a header control and I want to be able to flip Views based on which button is pressed. I started out using Fragments for this, and it worked fine, but I decided it was overkill. Feb 21 02:39:17 so I went with ViewFlipper, which works great. Feb 21 02:39:31 why can't you just setVisibility() ? Feb 21 02:39:42 attach both to FrameLayout Feb 21 02:39:44 toggle visibility Feb 21 02:39:47 But, it loops. That is, if I get to the last view and do moveNext(), it wraps around to the previous view. Feb 21 02:39:52 Right, but then I lose animations, right? Feb 21 02:41:16 Hrm... maybe ViewSwitcher is what I need. Feb 21 02:41:43 BTW, Jake: I recently implemented your CirclePageIndicator stuff into a project. It's so great. Feb 21 02:42:00 oh, cool Feb 21 02:42:02 glad you like it Feb 21 02:42:09 yeah I'm sorry I'm not familiar with ViewFlipper Feb 21 02:42:28 heh, thanks anyway. Feb 21 02:42:31 i'm sure it's just doing a bunch of android.view.animations on the backend in a single FrameLayout or something Feb 21 02:42:41 Probably, yeah. Feb 21 02:42:43 take a look at the source Feb 21 02:42:50 you could probably copy it into your app and add a goto method Feb 21 02:42:55 I could live without the animations. Feb 21 02:43:06 That was my next move after #android-dev. ;) **** ENDING LOGGING AT Tue Feb 21 02:59:58 2012