**** BEGIN LOGGING AT Fri Feb 24 02:59:58 2012 Feb 24 03:00:01 "No Connection" and a retry button Feb 24 03:01:52 there is a lot on google about it... Feb 24 03:03:40 try Force Stopping the Market app Feb 24 03:03:46 I think I had this happen to me once and that fixed it Feb 24 03:04:21 i'm watching a little video about reinstalling the market or something... Feb 24 03:04:23 thanks for helping out t0mless Feb 24 03:04:47 i would try Force Stop before i try reinstall :\ Feb 24 03:05:05 ok me try that Feb 24 03:05:10 let+ Feb 24 03:05:13 hehe Feb 24 03:06:32 nope, same thing. Feb 24 03:07:04 interesting Feb 24 03:07:20 its not just the market, gmail app does the exact same thing Feb 24 03:07:29 but the browser works... Feb 24 03:07:51 did you try turning off your wifi/data and then turning that back on? Feb 24 03:08:01 i havent turned this particular phone on for several months, could that have something to do with it? Feb 24 03:08:05 Does anyone have experience trying to make a listview act like a scrollview? Scrolling down is my main problem when trying to try this.. (doing this to use a pulltorefresh library) thanks Feb 24 03:08:47 drezel: i restarted the phone and the wifi seems to be fine, the browser works fine... Feb 24 03:09:29 hmm, if you restarted the whole phone and it still doesn't work, that's pretty bad Feb 24 03:09:51 aha Feb 24 03:10:04 n1 update to gingerbread 2.3.6 Feb 24 03:10:10 let me try that Feb 24 03:15:04 Do I need to keep all activities in the same package for the android manifest? Feb 24 03:17:45 I guess a better way to ask it; I'm trying to start a new activity from a button listener. That activity is in a different package than the one I'm in. Both are registered with my Manifest, but I'm getting can't find activity com.test/com.test.package.Activity. Feb 24 03:18:02 ok, i have now set an onClickListener to my holder.text, this works, but i still cannot use onListItemClick Feb 24 03:19:08 from another class Feb 24 03:48:39 good night Feb 24 03:57:18 poor Feb 24 04:10:22 how do i get the location of a picture taken from the URI returned by the camera intent? Feb 24 04:15:39 https://github.com/pfn/android-sdk-plugin Feb 24 04:15:42 whoop Feb 24 04:15:46 got my sbt plugin done, kinda Feb 24 04:20:14 pfn what does it do Feb 24 04:20:30 it kills and eats babies Feb 24 04:20:48 ron_frown, it lets you build a normal android project using sbt Feb 24 04:22:40 http://tools.android.com/recent/detailednetworkusageinddms Feb 24 04:22:47 where oh where is 4.0.3 for galaxy nexus... Feb 24 04:23:34 I guess I dont know what sbt is Feb 24 04:23:58 ron_frown, it's a different build tool Feb 24 04:24:12 How do I "emulate" a click on a ListView item so that its onItemClick callback is called? Or do I have to use setSelection + manually call onItemClick? Feb 24 04:26:35 and apparently I fucked it up Feb 24 04:28:23 ahh Feb 24 04:29:43 ron_frown, it's like a cross between maven and rake I think Feb 24 04:31:54 so I want to use the action-bar and still support pre 3.0 phones. From what I've gathered from the docs, I would need to write a fake action bar myself for older OS versions. Is this right? Feb 24 04:32:29 pretty much Feb 24 04:33:03 uggh, why isn't this in the compatibility package? =/ Feb 24 04:33:12 you might want to look at abs as I believe that will help Feb 24 04:33:19 since when does google have a toronto office o.O Feb 24 04:33:25 abs = actionbarsherlock Feb 24 04:33:48 i have nice abs Feb 24 04:34:00 i have a six pack Feb 24 04:34:43 I looked at ABS but I don't really understand why there isn't something more official. Really makes me wonder how much they plan on sticking with this. Feb 24 04:34:48 abs = absolute value in my books Feb 24 04:35:44 jayd16: afaik, the compat stuff is to help older apps move forward, not to help new stuff move backward Feb 24 04:36:34 jayd16: whats you're point? I want to use the new UI flows in old apps. Whats wrong with that? Feb 24 04:36:47 er killring* Feb 24 04:37:16 the point is that not all of the new stuff will get migrated backward. the idea is that at some point, the old versions die and go away Feb 24 04:37:54 there's all sorts of stuff in 3.x and 4.x that will never make its way back to 2.x and prior Feb 24 04:38:32 pretending gingerbread is going to go away and not be important is assuming phone companies will upgrade the tons of phones that still run 2.x to 4.x Feb 24 04:38:36 it isn't going to happen. Feb 24 04:39:37 safemode: exactly. At this point why should anyone program for an actionbar at this point? Might as well wait 6 months... Feb 24 04:39:49 even in 6 months it wont help much Feb 24 04:39:59 not everyone buys a new phone every few months Feb 24 04:40:07 only the 1% or so of users can afford that Feb 24 04:40:22 everyone else uses whatever phone they have until another one better is free...which is maybe 2 years Feb 24 04:40:46 well sure but I can assume a large amount of phones will be there by 6 months, some new and some upgraded Feb 24 04:41:02 almost no older phones will get upgraded to 4.x Feb 24 04:41:06 and 3.x is only on tablets Feb 24 04:41:20 so you will only be available to new android phones (very new) Feb 24 04:41:43 my g2x is 2011 and it wont get the official upgrade Feb 24 04:41:43 they said that about gingerbread too Feb 24 04:42:08 i'm runing ics now and t-mobile is run by retards but that's not the case for regular users Feb 24 04:42:10 How can I create a 1 channel image in android ? Feb 24 04:42:42 safemode: I'm not arguing that older phones will get upgraded to ics (hell, google is having problems just with the nexus s) Feb 24 04:43:04 however, over the next year or two, the majority of phones will most likely not be on 2.x Feb 24 04:43:11 personally, I can't wait for android 5 Feb 24 04:43:51 I'm holding out for android 6 myself :-) Feb 24 04:43:57 ;) Feb 24 04:44:00 i have no idea what the action bar is...but it sounds like a widget rather than it's own activity...right? Feb 24 04:44:02 jk Feb 24 04:45:09 the action bar is the standard way to perform specialized actions within an activity (i.e. when you select items in a list, the actionbar shows up to let you delete, copy, etc) Feb 24 04:45:12 cuz if it was an activity, why not just port the action bar back to 2.x and distribute it as a separate app, and then have your app depend on it conditionally at run-time if the os is not greater than 3.x Feb 24 04:45:42 it exists within an activity Feb 24 04:45:45 ok, sounds like a widget Feb 24 04:45:50 so that idea wont work Feb 24 04:45:52 only not really :-) Feb 24 04:46:25 it's essentially a modal collection of ui widgets within an activity Feb 24 04:46:27 well its just a slap in the face that they put up this design doc "this is how its going to be" but it doesn't support older devices. I'm not asking to backport holo either. This is deep, UI flow stuff. They're asking us to design our apps around this bar. Feb 24 04:46:40 jayd16 just use god damn abs Feb 24 04:46:55 I guarentee you'll have better luck with it than google getting their shit together Feb 24 04:46:56 going forward yes, that's what they wanty Feb 24 04:46:59 you will probably end up just deleting that functionality when your app is run on older versions ....rather than taking the time to back-port it. Feb 24 04:47:09 older versions wont miss the feature anyway. Feb 24 04:47:15 since it doesn't exist Feb 24 04:47:29 safemode: exactly Feb 24 04:48:04 thats a good point... Feb 24 04:48:21 backporting something like fragments makes more sense since it lets legacy apps both start to move forward and continue to work on tablets. but they are still legacy apps and mostly feel like it Feb 24 04:48:25 sweet.. my hack to settings is working fairly well. I can now change io schedulers for my SD cards Feb 24 04:48:28 How do i use these on 4.0? Feb 24 04:48:29 http://developer.android.com/design/static/content/principles_important_interruption.png Feb 24 04:48:54 is there some sort of reminders feature? Feb 24 04:49:03 nightmareapps: notifications? Feb 24 04:49:18 the notification shown, is that from calander or something? Feb 24 04:49:35 yeah thats the calendar app notification Feb 24 04:49:44 ah! sweet Feb 24 04:49:53 thank you jayd16 Feb 24 04:50:36 whats a good SDK to use to make social network integration easier? I dont want to deal with the Twitter and FB SDK's separately, would be nice to have one SDK that allows this. Feb 24 04:51:14 QubeZ: you would use a more generic intent. What do you want to do specifically? Feb 24 04:51:56 jayd16: when people use To Do Mapr, I'd like to give them ability (initially) to Tweet and FB Post about their experience. Later, I'd like to add more features but for now, just make it easier for them to post their experience. Feb 24 04:53:02 that's what the share menu is for Feb 24 04:53:19 just use a share intent and it'll give the user an app picker they can choose from, assuming they have the twitter or FB apps installed Feb 24 04:53:42 gotcha, ok thanks. Feb 24 04:56:21 any of you guys use vmware player with shared folders much? Feb 24 04:56:35 QubeZ: Just try a send intent with text/plain. That'll get you most of the way there I think Feb 24 04:56:58 t0mless: with vmware, not player Feb 24 04:57:16 do I have to run it in workstation? Feb 24 04:57:23 for shred folders to work Feb 24 04:57:37 dunno, I was just indicating that I use them but not with player Feb 24 04:57:51 it says I need my share in host:dir format but I don't know what "host" is supposed to be Feb 24 04:57:59 computer name of the host comp didn't work Feb 24 04:58:14 don't quote me but I want to say its possible to have a shared folder with just player Feb 24 04:58:28 have you tried localhost or 127.0.0.1 Feb 24 04:58:29 ? Feb 24 04:59:33 apparently it HAS to be .host Feb 24 04:59:44 but didn't tell me that until I added a / in front of my share name Feb 24 05:00:08 but looks like I got it working Feb 24 05:00:13 ah, cool Feb 24 05:01:11 a'lkjfdasdfa Feb 24 05:01:20 repo isn't working in the vmplayer either :-/ Feb 24 05:01:54 OSError: [Errno 95] Operation not supported Feb 24 05:07:06 well Feb 24 05:07:08 that works Feb 24 05:07:35 even though it's a unix os the shared folder is ntfs but mounted with the vmware fs that also doesn't support symlinks it seems Feb 24 05:08:01 so just going to sync it to the local disk on the guest os and then move it over to the shared folder Feb 24 05:08:10 too bad cygwin wouldn't just work! Feb 24 05:10:12 using CursorLoader to query emails from the phonebook and I want to remove duplicated emails; any ideas? Feb 24 05:36:44 Could anyone test my app for me? Works perfect on the kindle fire, but not on g2 (w/ ics) Feb 24 05:40:45 nightmareapps: I've got ics on a nexus s Feb 24 05:40:54 thatd be great Feb 24 05:40:56 mind testing? Feb 24 05:41:11 as long as you don't have any nasty permission reqs :-) Feb 24 05:41:19 just internet and vibrate :) Feb 24 05:41:25 ICS :D Feb 24 05:41:32 no problem... you have it posted somewhere? Feb 24 05:41:44 gonna send Dropbox link to apk in one second Feb 24 05:41:48 k Feb 24 05:41:48 lemme build the apk Feb 24 05:41:49 * Snuupy om nom nom's ICS Feb 24 05:42:14 ics rocks Feb 24 05:42:26 ^ +1 Feb 24 05:44:01 want it tested on galaxy s2? Feb 24 05:45:42 thatll be nice if you'd like to Feb 24 05:46:13 its very simple, just want to know why it wont work on my g2 Feb 24 05:48:06 oh, has ICS been released for G2 by Samsung then? Feb 24 05:58:42 hello Feb 24 05:59:14 hi! Feb 24 05:59:17 you made it =D Feb 24 05:59:48 yes Feb 24 06:02:50 i want to customize android OS bootup screen.... how can I? Feb 24 06:03:55 snkt: wrong channel... you want #android-root Feb 24 06:03:55 I m working on FriendlyARM mini6410 development board with Android OS.... and I have all the source Feb 24 06:04:21 oh sorry Feb 24 06:04:25 np Feb 24 06:04:42 channel is for android apps development Feb 24 06:04:58 this one is, yes Feb 24 06:05:32 changing the boot screen requires root which isn't an app dev question Feb 24 06:07:30 I wish this repo sync had a better progress status Feb 24 06:12:48 Hi all) Feb 24 06:13:17 Hello, I'm coding a simple android game. I'm new to android, so sorry bothering you. I was googling and asking on forums like for a month but I'm still here. So help me pls! The problem is following: I start my game by executing setContentView(new GameView(this)) in my GameActivity, first level starts to run. Than to create a second level I'm setting CURRENT_LEVEL++; and need to reset ContentView. But can't do it from non-activity class. How Feb 24 06:14:12 odd way to do a game Feb 24 06:14:16 your messge got cut off btw Feb 24 06:14:28 Try not to type super long paragraphs Feb 24 06:15:37 What do u mean odd? It is my first game so im glad to hear some criticism Feb 24 06:16:23 the view shouldn't be a level... it's just your drawing surface for your levels Feb 24 06:16:32 The question is how do i realize passage to the next level Feb 24 06:17:18 Mm, view isn't a level its just how the level looks Feb 24 06:17:47 But the differens between levels just background and some other constants Feb 24 06:18:15 that's just stuff you're drawing into a view, but shouldn't be a view itself Feb 24 06:18:33 new level could be new activity... Feb 24 06:19:10 even just starting a new version of the same activity with single_task and clear_top flags Feb 24 06:19:14 I think Feb 24 06:19:28 But if i have 100 levels should i have 100 activities? I dont think so Feb 24 06:19:38 with single task and clear top Feb 24 06:19:53 restarting it will make it replace the old one Feb 24 06:19:56 I think it's those flags Feb 24 06:20:04 so the other activity gets destroyed Feb 24 06:20:21 t0mless: can you open g00s's kestrelcrumb app in the market *from* your phone? Feb 24 06:20:26 I'd just have one activity with a view in it and 100 different instances (basically the same object loading different level data) that draws into the view Feb 24 06:20:40 got a qr code? Feb 24 06:20:52 let me see Feb 24 06:20:53 only one level object would exist at a time Feb 24 06:21:13 when you launch the new level, you destroy the old one Feb 24 06:21:17 t0mless: no, no code there Feb 24 06:21:18 so all those objects go bye bye Feb 24 06:21:21 qr Feb 24 06:21:36 killring though if only your background is changing, just change the background programatically Feb 24 06:21:38 Im going to find out what is single task and clear top and back.(sorry for slowleness typing from a phone.) Feb 24 06:21:42 you don't have to use setContentView Feb 24 06:22:01 let me find my phone neekers.... Feb 24 06:22:06 everytime i open any app in the weather category in the market from my n1, the market app crashes! Feb 24 06:22:12 what is that all about? Feb 24 06:22:33 t0mless: I wouldn't change the contentview at all, just create a new level object that draws the background into the existing game view Feb 24 06:22:35 it is absolutely bizarre Feb 24 06:22:36 neekers: google bugz Feb 24 06:22:51 hwrd|work: but why not in other categories? Feb 24 06:23:13 neekers: probably because they have some random logic that break when you search for the waather category Feb 24 06:23:32 what's the app neekers? Feb 24 06:23:42 kestrelcrumbs Feb 24 06:24:38 I can load it Feb 24 06:24:44 but hell if i'm paying 9.99 for that Feb 24 06:25:32 the market app just crashes when i try to load an app Feb 24 06:25:43 on my up to date n1, wtf is that all about? Feb 24 06:25:53 factory reset time? Feb 24 06:26:07 hmm Feb 24 06:26:18 do i do that from settings? Feb 24 06:26:54 yup Feb 24 06:27:00 settings->privacy Feb 24 06:27:03 factory reset Feb 24 06:27:34 ok, trying... Feb 24 06:28:19 this phone has worked beautifully up until now... Feb 24 06:30:02 JakeWharton must be busy packing or coding... he's been rather quiet tonight Feb 24 06:35:10 if i use google 2 step verification, what password do i need to put into the phone for my google account? Feb 24 06:35:26 i always forget that... Feb 24 06:36:03 application specific password... Feb 24 06:40:39 ok, the factory reset worked Feb 24 06:40:44 thanks t0mless Feb 24 06:44:51 exit Feb 24 06:55:54 I have a imageview showing an image at a certain source, is there a way to programatically replace this sources image file in code? Feb 24 07:48:40 if I have a class A extends Activity and then another static class B extends Activity inside A will B get created when A gets created? Feb 24 07:53:00 EshaanB: no Feb 24 08:08:51 k thx :) Feb 24 08:32:49 hello all of u i am building android froyo 2.2 , but i get this error http://pastebin.com/N7WDkHb5 Feb 24 08:33:03 can anyone tell me what it is causing it to go in infinite loop Feb 24 08:33:44 i have downloaded the source from android .com but still i am facing this error Feb 24 08:33:59 How can I convert an YUV frame from my camera to RGB of 3 channels only Feb 24 08:37:51 hi, i have integraded zxing's barcode app into my own app, i just refernece zxing's projects in mine, i have checked "is library" for the zxing project which have the androidmanifest, however, i always get two app icons on my phone. how do i prevent this behaviour ? Feb 24 08:38:04 vileda: why not use the intent? http://code.google.com/p/zxing/wiki/ScanningViaIntent Feb 24 08:38:53 because we do not want to have the extra dependant barcode app on the phone and because i have some modifications to it Feb 24 08:39:19 dependency i mean Feb 24 08:40:18 vileda: ok, then you need to fix your manifest Feb 24 08:40:58 appel1: ok, which and how? i have my own and i have the one from zxing Feb 24 08:41:24 vileda: in your app apk there's only one AndroidManifest.xml Feb 24 08:42:05 ok, means that i only need some modifications to my app's manifest? Feb 24 08:43:40 vileda: activities with category launcher will appear in the application launcher Feb 24 08:43:43 we have a requirement to put a tabhoster at the bottom of the screen. we target api level 8 here iirc.. Feb 24 08:44:25 appel1: ah ok, thats the hint i was looking for i think :) Feb 24 08:44:46 What do you think from scoreloop? Feb 24 08:48:12 appel1: thanks! that was what im looking for m( Feb 24 08:48:50 ok, doing more reading Feb 24 08:52:33 hi Feb 24 08:53:01 how can i make a view "modal" - e.g. eat all clicks that are outside? Feb 24 08:58:20 monsti: a dialog? Feb 24 09:04:27 whew Feb 24 09:05:26 appel1: i want to avoid using a dialog Feb 24 09:05:49 but dialog is meant for that kind of usage O.o Feb 24 09:05:54 monsti: why? Feb 24 09:06:00 appel1: there are reasons Feb 24 09:07:08 *secret* reasons Feb 24 09:16:01 i found the way a popupwindow does this Feb 24 09:16:04 thx! Feb 24 09:16:16 Hello. Why is CursorLoader asks for cursor.getCount() on loadInBackground()? As i understand this can slow down a little on big cursors Feb 24 09:16:30 monsti: if you're going to do it the same way, why not just use it directly? Feb 24 09:16:56 where can i find the 2D or 3D libraries in my build envoirment Feb 24 09:21:20 Hello everyone. Is it possible to build APK with different resources packaged depending on some condition? I can live with runtime conditions in the code but I don't want to package resources which are not used. I'm using ant directly (no Eclipse) so maybe some conditional build withing build.xml woud do? Feb 24 09:24:36 Blackhex: maybe something like this will work for you, http://developer.android.com/guide/market/publishing/multiple-apks.html Feb 24 09:37:32 neekers: So "library project" is the answer? I could work but it's not ideal, since the 99.9% of the code and 80% of the resources are shared. Ideal solution for me would be if I could specify which files are packaged for one build target and wich for another. Feb 24 09:38:23 neekers: And a note: The code and resource difference is feature based not compatibility based. Feb 24 09:44:09 hey, how to change the target binary file's mode? Feb 24 09:44:32 jyfl987: where? Feb 24 09:44:39 Blackhex: on device Feb 24 09:44:45 Blackhex: android 4.0 Feb 24 09:45:14 jyfl987: you mean chmod? Feb 24 09:45:26 Blackhex: yes, but chmod seems not works Feb 24 09:45:38 So what are my options for game dev in Android? Will I have to learn ES? Feb 24 09:46:08 Blackhex: it response Bad mode when i type chmod +x ./hello Feb 24 09:46:48 jyfl987: Hmm, I don't have experience with that. My guess: no root permissions? Feb 24 09:47:03 Blackhex: nope i am root on that device Feb 24 09:47:26 Bacta: I'm developping ES C++ game, what's the problem with ES? Feb 24 09:47:55 Blackhex: OpenGL requires knowledge of basic mathematics and I don't want to do 3D Feb 24 09:48:19 Bacta: So you can use some 3D endine like Unity. Feb 24 09:48:44 don't you need basic math for 2D graphics too? :P Feb 24 09:48:59 you need maths for everything Feb 24 09:49:13 Blackhex: Would prefer not to. Are drawables worth looking at? Feb 24 09:50:05 Bacta: Ok so are working on 2D game, then drawing drawables on canvas would do fine Feb 24 09:52:37 Bacta: for example: http://obviam.net/index.php/sprite-animation-with-android/ Feb 24 09:57:36 Ok I created an ImageView and set the src to @drawable/my_image.png , the image is under res/drawable/my_image.png but it's not being found Feb 24 09:57:37 What's up? Feb 24 09:58:10 drawable/my_image Feb 24 09:59:00 Why doesn't it care about format? Feb 24 09:59:39 because of the elephant Feb 24 10:04:21 i'm trying to get rid of the dropshadow at the top of the content of a tabhost.. i created a style with @null Feb 24 10:06:33 and tried to apply it to the different parts of the tabhost and the activity layout i put into it Feb 24 10:06:36 no dice.. Feb 24 10:26:42 hmm, a more general question: let's say i have four buttons and i want to arrange them as a square in the middle of the screen.. how would i go about thaT? Feb 24 10:26:58 guys, i have a ListActivity with onListItemClick(..) implementation. Now i need to detect gestures on my ListActivity. It is succeed: i do myListView.setOnTouchListener(myGestureListener), it works (i catch onFling() event), BUT: i return false in my onFling() event, but onListItemClick() is called anyway. How can i make onListItemClick() not to be called if i detect gesture? Feb 24 10:36:14 dfrank: the documentation for onFling says: "true if the event is consumed, else false" Feb 24 10:38:03 hmm when i set my List to have a listener for touching event it stops highlighting when i touch it, why is that Feb 24 10:38:39 Gaz`: because you consume the touch event perhaps? Feb 24 10:38:55 i guess so but its weird, the user cant really know if its been clicked prperly now Feb 24 10:40:27 anyway to bring it back Feb 24 10:40:27 Gaz`: can't you just return false in your listener then? Feb 24 10:40:41 the listener has no return vals Feb 24 10:40:51 im doing v.setOnClickListener(new OnClickListener() Feb 24 10:41:50 Gaz`: hmm, then it is something else Feb 24 10:43:05 hi Feb 24 10:52:29 hei i have some problems with my app if i rotate my phone - my threadpool always creates new threads Feb 24 10:54:06 the activity is recreated on rotate Feb 24 10:54:15 by default Feb 24 10:54:42 anyone know if u can display a pdf within an app? Feb 24 10:54:55 i have the problem with spring oauth Feb 24 10:54:59 Gaz`: no good open source solution exists Feb 24 10:55:04 iI was able to authenticate my android app with key and secret, but how can send a login information (user and password)? Feb 24 10:55:06 damn Feb 24 10:55:07 afaik Feb 24 10:55:13 you can, of course Feb 24 10:55:14 do you have any suggestions ? Feb 24 10:55:17 ok so you any idea how to stop the threads first MDijkstra? Feb 24 10:55:25 do anyone know the greenhouse project? Feb 24 10:55:31 put it in your app storage dir Feb 24 10:55:40 then set the permissions to world readable Feb 24 10:55:52 and then simply open it in an installed pdf reader Feb 24 10:56:30 problem is either finalize get called nor does the GC kills the threads Feb 24 10:57:36 the_ellipse: threads are autonomous Feb 24 10:58:27 the_ellipse: are you using finalize? Feb 24 10:58:28 the_ellipse: you should signal them to stop in some manner Feb 24 10:58:46 i tried mitch0 but its not getting called Feb 24 10:58:52 yeah, don't use it Feb 24 10:59:01 that's a broken leftover Feb 24 10:59:05 this has nothing to do with the GC, anyway Feb 24 10:59:11 mh fine Feb 24 10:59:41 mhh soo Feb 24 11:00:09 the_ellipse: there are two possibilities, either override the rotation event Feb 24 11:00:16 so it doesn't recreate the activity Feb 24 11:00:20 but simply rotates the UI Feb 24 11:00:33 ok sounds good Feb 24 11:01:35 or stop the threads by signalling them to stop Feb 24 11:01:55 ie, make a synchronized setter that sets protected boolean shouldStop; Feb 24 11:02:25 in your thread loop you check whether shouldStop is true Feb 24 11:02:28 if it is, you terminate Feb 24 11:02:32 would be no problem but i cant see at which point this should happen Feb 24 11:02:46 the_ellipse: when you receive a rotation event Feb 24 11:02:53 the_ellipse: a third option, now that I think of it Feb 24 11:02:56 mhh sounds quite simple :] Feb 24 11:03:28 is to simply have a threadpool that doesn't get recreated when the activity restarts Feb 24 11:03:36 are you creating it in onCreate? Feb 24 11:04:05 na i need the size information so i do it on size changed (for the queue size) Feb 24 11:04:08 making sure they shutdown is an issue Feb 24 11:04:30 which size? Feb 24 11:04:45 mrenouf: then after signaling them to stop, join() them Feb 24 11:05:00 'on size changed'? which size? Feb 24 11:05:30 protected void onSizeChanged(int w, int h, int oldw, int oldh) Feb 24 11:05:33 no I just meant, be careful not to leave threads running in your app when an activity is not in the foreground Feb 24 11:05:35 view size isnt it? Feb 24 11:05:47 so you're creating a threadpool when the view size changes?! Feb 24 11:05:57 why in the name of all that is holy would you do that? Feb 24 11:06:39 mhh its because i need to know how big the thread queue should get Feb 24 11:07:25 appel1: oooooh, my bad! thanks. I fixed it, but now onCreateContextMenu() is triggered, unfortunately.. Feb 24 11:07:35 The contact number in android are stored as integers or strings ?? Feb 24 11:07:49 the_ellipse: why? Feb 24 11:07:57 sounds like you're simply not using the right thread pool model Feb 24 11:08:38 seems like thats not neccessary ... i thought about saving memory Feb 24 11:09:17 are you having memory problems? Feb 24 11:09:41 i wrote my own mapView for OSM tiles Feb 24 11:09:51 even then, hardcoding stuff like this is a really bad idea Feb 24 11:09:59 or well, not hardcoding Feb 24 11:10:21 so if you move out from a place pretty far Feb 24 11:10:26 you dont want that old tiles to load Feb 24 11:10:29 the_ellipse: there are threadpools which will never create more than x concurrent threads Feb 24 11:10:45 thread amount is a fix number Feb 24 11:10:53 just setMaxPoolSize ? Feb 24 11:11:05 the_ellipse: that depends on which threadpool you use, and how you configure it Feb 24 11:11:18 and setCorePoolSize Feb 24 11:12:11 yes i know ... :] im playing with the number of threads to see what they do for performance Feb 24 11:12:26 i mean the queuesize Feb 24 11:12:30 the_ellipse: but in general it's a bad idea to only constrain the threadpool based on view size Feb 24 11:12:44 the_ellipse: then you have a user who's on a slow connection, but with a big screen Feb 24 11:12:51 nooo Feb 24 11:12:56 and it starts 15+ concurrent http connections Feb 24 11:13:02 think we have some sort of misunderstanding Feb 24 11:13:08 the thread amount wont change at all Feb 24 11:13:11 he's talking about the QUEUE size Feb 24 11:13:15 not the # of threads Feb 24 11:13:17 yes Feb 24 11:13:21 oh, right Feb 24 11:13:28 im sorry if that wasnt clear Feb 24 11:13:35 nah, I just read over it Feb 24 11:13:36 my bad Feb 24 11:13:44 no problem :] Feb 24 11:13:49 what do you do when the queue is full? Feb 24 11:14:02 i overwrite the first entries because they arent needed anymore Feb 24 11:14:06 aha Feb 24 11:14:22 exactly what I'm doing with a listview loader I made Feb 24 11:14:25 nice Feb 24 11:14:53 you never want more than N tasks queued for N views. if there are more they will be wasted because the view they were loading has been recycled Feb 24 11:15:08 (or will be soon) Feb 24 11:15:21 yeah, I'm doing the same thing in my imageloader for listviews Feb 24 11:15:21 so thing is if the screen size gets very big (tablet e.g) i need to make sure that the whole screen is coverd with tiles before some of them get overwritten Feb 24 11:15:39 but I simply check, whenever I receive a load request for imageview x Feb 24 11:15:39 gotcha Feb 24 11:15:53 whether a load request has been queued for that same imageview Feb 24 11:15:57 yeah, one thing I wrong hard-codes that number and I agree it would break on too large a screen Feb 24 11:15:58 then I know it has been recycled Feb 24 11:16:04 *I wrote Feb 24 11:16:24 MDijkstra, using a WeakHashMap? Feb 24 11:16:27 so thats why i "restart" the threadpool Feb 24 11:16:28 yep Feb 24 11:16:32 right Feb 24 11:16:40 I forgot, that's what I switched to Feb 24 11:16:46 yep, thats a good solution Feb 24 11:17:13 so i think i'll have a look in that rotate event Feb 24 11:17:28 what was the other solution again? Feb 24 11:17:39 overwrite it completely - or just kill the threads Feb 24 11:17:51 MDijkstra you said you have a third one? Feb 24 11:19:53 nvm think the rotate event will do - thanks for help ;) Feb 24 11:19:53 well, implementing rotation yourself is going to be a bit hard Feb 24 11:20:14 ye i guess i'll simple kill the threads Feb 24 11:20:17 killing the threads seems easiest Feb 24 11:20:25 yep thanks :) - afk Feb 24 11:41:50 is there a way to aquire a "lock" to the external storage for the lifetime of an application? Feb 24 11:41:58 or at least for the duration of a function? Feb 24 11:42:32 in the sense that if the function start checks for the external storage it can be assured that the storage does not go away until the end of the function? Feb 24 11:43:33 does anyone here like daft punk? Feb 24 11:43:38 has anyone had problems specifying a custom animation for when an activity exits/finishes? I can't seem to get my animation working... http://pastebin.com/CptFuVYV Feb 24 11:44:28 haha iOS has no pushmail anymore at least in Germany it hasn't :P Feb 24 11:44:47 yay Feb 24 11:44:53 Apple should stop patentwhoring Feb 24 11:45:36 wow, this is getting awful Feb 24 11:45:50 potshots at specific features Feb 24 11:45:59 everyone loses Feb 24 11:46:21 patent term needs to be reduced to 1 year Feb 24 11:46:41 at least for software or consumer electronics Feb 24 11:46:48 Is it possible to manually trigger a ContentObserver? That is, trigger the onChange() method without actually changing the content? Feb 24 11:46:54 a 1 year lead is an eternity Feb 24 11:47:02 after that, fair game Feb 24 11:47:25 jepp Feb 24 11:47:35 I hate this patentfights -.- Feb 24 11:48:13 tapas, you cannot prevent me from ejecting the SDcard or removing the battery. there's no such thing as a lock. Better to fail and recover gracefully Feb 24 11:48:32 Kittens, YES Feb 24 11:50:23 http://t.co/B3UtoAhd < daft punk remix and lightshow Feb 24 11:51:18 mrenouf: just for you Feb 24 11:51:29 mmm Feb 24 11:51:53 hey is it possible to launch an intent to view a pdf at a url? Feb 24 11:53:06 if u have a pdf reader that can read from url yes :D Feb 24 11:53:26 but usually browser got the intent and is download it Feb 24 11:53:33 no sound, will have to watch later Feb 24 11:53:35 for that we wrote a mupdf based pdf reader Feb 24 11:54:57 seems its not working - Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(path, "application/pdf"); Feb 24 11:55:18 ActivityNotFound exception Feb 24 11:58:05 Gaz`: yeah, that's because android doesn't include a pdf reader by default Feb 24 11:58:15 Gaz`: you'll either have to prompt the user to install one Feb 24 11:58:32 or provide your own activity to do so Feb 24 11:58:51 MDijkstra, but ics includes one Feb 24 11:59:33 it does? which one? Feb 24 11:59:52 oh yeah, think it does Feb 24 12:00:14 MDijkstra, just a default one Feb 24 12:00:19 on my GNex, there is Feb 24 12:00:25 zhongfu: what's it called? Feb 24 12:00:48 dunno Feb 24 12:01:58 can't find it on my gnex Feb 24 12:02:14 either way, most vendor roms do provide a pdf viewer Feb 24 12:02:28 MDijkstra i installed 2 readers but its still doing it Feb 24 12:02:29 some free version of an office suite Feb 24 12:02:45 Gaz`: let me see how I'm doing it Feb 24 12:03:02 thanks dude Feb 24 12:03:16 MDijkstra, on my stock 4.0.2 Feb 24 12:03:18 and 4.0.3 Feb 24 12:03:28 MDijkstra, just download a random doc/pdf/xls/whatever Feb 24 12:03:30 try to open it Feb 24 12:04:25 zhongfu: I installed acrobat Feb 24 12:04:49 so I won't be able to see that Feb 24 12:04:52 MDijkstra, no Feb 24 12:04:54 try a .doc Feb 24 12:05:01 no wait Feb 24 12:05:11 MDijkstra, did you set acrobat to automatically open .pdfs Feb 24 12:05:13 if no Feb 24 12:05:18 there might be a "Document Viewer" entry Feb 24 12:05:38 yeah, sure Feb 24 12:05:42 not very relevant though Feb 24 12:05:50 since only 1% of the android users at most have ICS Feb 24 12:05:58 yea Feb 24 12:06:09 i've got docstogo, samsung mobile print Feb 24 12:06:14 when i try to open a doc file Feb 24 12:06:25 i get word to go, samsung mobile print and Document Viewer Feb 24 12:06:28 (the default) Feb 24 12:06:47 pretty good i guess Feb 24 12:07:07 Gaz`: Feb 24 12:07:07 Intent intent = new Intent(Intent.ACTION_VIEW); Feb 24 12:07:08 intent.setDataAndType(Uri.fromFile(f), "application/pdf"); Feb 24 12:07:12 is what I do Feb 24 12:07:42 is it from sdcard or from a url? Feb 24 12:07:56 internal app storage Feb 24 12:08:07 ah, seems different from url Feb 24 12:14:15 MDijkstra which rotate event did you mean? onConfigurationChanged? Feb 24 12:14:59 yeah Feb 24 12:15:18 mh doenst fire Feb 24 12:16:05 mhh maybe i need a sensor listener Feb 24 12:16:16 then i could rotate my canvas manually Feb 24 12:16:16 the_ellipse: http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android Feb 24 12:19:21 ok at least oncinfigchanged fires now Feb 24 12:19:28 should do for now Feb 24 12:19:31 ty Feb 24 12:24:34 Has anyone been building android file systems for gingerbread version ? Feb 24 12:26:24 So i have a design question involving a ContentProvider, ContentObserver and a central db (RESTful webservice). Im using the pattern presented here: http://www.youtube.com/watch?v=xHXn3Kg2IQE (although very slightly modified). Feb 24 12:26:27 The situation is like this: the activity queries the ContentProvider, the CP *could* immidiately return the tuples currently in the local DB, initiate the REST method, and return the new data from the server to a ContentObserver. But that feels a little strange to me, because then you have to handle the data in 2 places - Once for the local DB, and once for when the REST method completes. Ofcourse you could create a method for handling it, which helps, but Feb 24 12:26:27 still? If i could manually trigger the ContentObserver, without actually changing the content, handling the data would only happen in one place - in the ContentObserver. Is this possible? If its possible, initiating the query would become a bit awkward, as the cursor returned from the CP would likely be empty/null, but isnt that acceptable if it allows me to handle everything in one place? Feb 24 12:28:18 Sorry for the wall of text, hope someone will take the time to go through it :P Feb 24 12:30:26 Hello, I am reading this : http://developer.android.com/guide/publishing/publishing.html and i know that apple has much more restricitons / testing / validation policies concerning apps, but i am wrong or is it true that uploading to market.android.com will do zero automated testing /validation for the app ? Feb 24 12:30:46 i mean in terms of stability and such , not in terms of incorrect manifest file or such Feb 24 12:31:29 mupdf works on android? Feb 24 12:32:36 Is there the same font in all android devices? Feb 24 12:34:31 fornext__: no Feb 24 12:36:40 appel1, how bad :( Feb 24 12:37:18 So Eclipse is showing me 72 RUNNING Threads but app is still doing fine ... i guess its some kind of indication error Feb 24 12:37:29 I hope it is possible to load a external font for canvas drawing. Feb 24 12:37:41 fornext__: sure Feb 24 12:38:38 I am completly new with using fonts. Feb 24 12:38:41 Its a mess Feb 24 12:41:31 this is insane it should be easy to view a pdf from a url Feb 24 12:41:33 but it isnt Feb 24 12:43:08 These days I get security warnings trying to read PDFs. Feb 24 12:43:14 How can I execute a timertask every minute ON the minute? Feb 24 12:43:46 Gaz`: They can contain malware, so it shouldn't be _too_ easy. Feb 24 12:43:52 as in 16:01:00, 16:02:00 .., and not i.e 16:02:12 16:03:12 ? Feb 24 12:44:28 * Workboot remembers the days when PDF was the safe and secure option, but Adobe thought better of that idea. Feb 24 12:44:34 well it seems impossible! Feb 24 12:44:42 Then you're safe. Feb 24 12:45:04 No Activity found to handle Intent Feb 24 12:45:42 Gaz`: print an example url? Feb 24 12:45:50 you're putting in the intent Feb 24 12:45:57 *that you're Feb 24 12:46:04 Gaz`: so you need to detect first if there is an activity available that handles pdf files and direct the user to the market when there is none available :) Feb 24 12:46:34 appel1 no i have like 3 pdf viewers installed Feb 24 12:46:37 they dont do anything Feb 24 12:46:45 I'd have thought PDF reading was an essential built-in for any OS, now. Feb 24 12:46:51 yeh Feb 24 12:46:53 me too Feb 24 12:47:41 Gaz`: perhaps they all only handle local pdf files? Feb 24 12:47:48 yeh i think so Feb 24 12:47:50 lame Feb 24 12:48:13 Workboot, well... at least ICS has it Feb 24 12:48:25 builtin pdf/doc/xls etc reader Feb 24 12:48:51 Workboot: most do, have heard that there are android devices out there without it, never seen one myself Feb 24 12:49:09 public void run() {while(doWork) {...}} Feb 24 12:49:12 i set doWork = false; Feb 24 12:49:23 threads[i].join(200); Feb 24 12:49:26 but threads[i].isAlive() is still true Feb 24 12:49:55 you're doing it wrong Feb 24 12:49:59 okey Feb 24 12:50:20 you're missing some synchronized parts there Feb 24 12:50:24 the_ellipse: perhaps your thread is still executing ... and haven't gotten around to the condition :) Feb 24 12:50:45 mhh Feb 24 12:51:22 public synchronized void doStop() { doWork_ = false; } ; public synchronized boolean doWork() { return doWork_; } ; ... while (doWork()) { ...} Feb 24 12:51:57 you might use some other object as monitor though (depending on circumstances) Feb 24 12:52:14 * alankila notes that AtomicBoolean is probably better than synchronized-peppering everything Feb 24 12:52:16 I usually prefer to use something else than "this" as monitor Feb 24 12:52:21 okey sounds good Feb 24 12:52:43 alankila: could be ;) Feb 24 12:54:37 What is the difference between @id/ vs @+id/ vs @android:id/ Feb 24 12:55:20 android: is simply a package prefix Feb 24 12:55:39 no prefix implies your own package Feb 24 12:56:02 @+id allocates a new id if it does not yet exist, otherwise reuses the already defined one Feb 24 12:56:28 appel1, maybe a stupid question. I can measure the textwidth, but how can I measure the height? Or is it calculateable by the fontsize? Feb 24 12:56:47 Well, with a built-in PDF reader, I guess the next question is, does it have the implicit malware support which is part of the standard? Feb 24 12:56:53 @id uses a defined id (either defined in a values.xml or by a previous @+id), and will give an error if it doesn't exist Feb 24 12:57:01 say, I am creating abc.xml under res/values/ so which one should I use? Feb 24 12:57:03 If it does, that might explain why it prefers to ignore non-local content. Feb 24 12:57:52 vikash, if you're defining an ID somewhere, you want to use @id so it's clear it's prefefined, but either will work Feb 24 12:57:54 Also, I tried wirh @id and @+id the app didn't run rather when I used @android:id/ it did, can you please explain why? Feb 24 12:58:02 most of these built-in pdf readers suck, though Feb 24 12:58:14 MDijkstra: yeah Feb 24 12:58:24 vikash, as always, a pastebin sample would help Feb 24 12:58:38 I need to go AFK for a bit, but others can/will help too Feb 24 12:58:46 i love repligo Feb 24 12:58:50 well I got jbox2d compiled in my android workspace Feb 24 12:58:55 now tiem to rip of angry birds Feb 24 12:59:01 *time to rip off Feb 24 12:59:13 hmm i cant even get a webview to load a url Feb 24 12:59:31 the funny thing is, when you play with the jbox2d testbed it is like playing angry birds Feb 24 12:59:38 pretty sure they just modified the examples to make that game Feb 24 12:59:56 mrenouf, the java file -> http://fpaste.org/2eg0/ the xml file -> http://fpaste.org/BC66/ Feb 24 12:59:58 I am being partly ironic Feb 24 13:00:02 partly Feb 24 13:01:41 today i got my xoom2! Feb 24 13:02:38 in the Timer class, what's the difference between schedule(task, delay, period) and scheduleAtFixedRate(task, delay, period) ? :s Feb 24 13:05:29 ? Feb 24 13:08:04 Greetings :) I am going to write an app that should pop up/notify the user no more than 5 seconds after an alarm goes off, as I see it, there are two possible ways: have the app pull a server for status every N seconds, or have the app listen on a udp port and send a packet to it, but I am worried about battery usage Feb 24 13:08:29 Do someone in here know how this is usually done? Feb 24 13:10:24 So you want a server to initiate *some* action on the phone? You may be interested in C2DM Feb 24 13:10:33 DusteD: with the 5 seconds requirement I doubt it is possible without killing the battery Feb 24 13:11:07 yeah Feb 24 13:11:19 and you can't guarantee the 5 seconds over a mobile network Feb 24 13:11:45 you should instead, if possible, schedule the alarm to go off on the client from the server Feb 24 13:12:04 ie, as soon as the server knows the alarm is going to fire push something to the client saying 'fire the alarm at xx:xx:xx Feb 24 13:12:12 mgj, I will look into that, thank you :) Feb 24 13:12:14 hey guys when iive got a list where i click and it goes to a webiew, when i hit back it doesnt go back to the list but to the activity before it, why is that? Feb 24 13:12:45 whoops Feb 24 13:12:52 *ive got a list where i click and it goes to a webiew, when i hit back it doesnt go back to the list but to the activity before it, why is that? Feb 24 13:13:49 MDijkstra, this alarm thing is an actual alarm, so people will need to be dispatched fairly quickly Feb 24 13:14:54 DusteD: you can only guarantee best-effort delivery on the internet in general Feb 24 13:15:05 so it may sometimes take longer than 5 seconds Feb 24 13:15:11 MDijkstra, it's not on the Internet, it is wifi Feb 24 13:15:32 depends on the circumstances then Feb 24 13:15:36 Having a thread/service/whatever polling the server every <5 sec is going to make the users of your app hate you :P As others already pointed out, it will kill the battery Feb 24 13:15:47 have the clients connect to a notification center Feb 24 13:16:03 mgj, that was what I was worried about, how about listening to a port for a broadcast ? Feb 24 13:16:05 have the server at the notification center push out notifications to the clients when an alarm fires Feb 24 13:16:38 MDijkstra, but will this connection not kill battery as fast? Feb 24 13:16:59 depends Feb 24 13:17:17 I see, I need to write some tests then :) Feb 24 13:17:22 should be alright over wifi Feb 24 13:17:31 DusteD, That would still require a lot of activity on the antenna = killing the battery. I really think C2DM is the way to go, although i have no practical experience with it myself Feb 24 13:17:47 c2dm is a) over the internet Feb 24 13:17:56 which you want to avoid if you can do it locally Feb 24 13:18:04 and b) doesn't guarantee delivery at all Feb 24 13:18:06 also, there is no internet Feb 24 13:18:16 No internet? Oh ok. No c2dm then Feb 24 13:18:22 go kill the battery :) Feb 24 13:18:39 ah, damn, I was looking into that, because I thought one could setup a local server :) Feb 24 13:18:40 c2dm does exactly the same thing as what I'm proposing Feb 24 13:18:40 MDijkstra, really? No guarentee of delivery? Well that sucks Feb 24 13:18:54 only over the internet Feb 24 13:19:16 It does, sure, but i have more faith in google's ability to do it *well*, than doing it yourself/myself Feb 24 13:19:36 sure, but if you need 5 secs resolution Feb 24 13:19:51 then the tricks google employs to keep battery consumption to a minimum won't work Feb 24 13:20:18 okay, nothing left to do but try :) Feb 24 13:20:25 I'm sure this something trivial but why is the edittext.getText() only outputting the first word - not the entire string? networkTask.SendMessage(editTxt.getText().toString()+" \r\n"); Feb 24 13:20:38 I just wondered if people had some simple solution that everyone used :) Feb 24 13:23:29 t432: are you sure the problem isn't in SendMessage? :) Feb 24 13:24:05 t432: store the string in a local var before you call sendmessage, use the debugger to verify what's in that string, use the debugger to verify what's in editTxt. Feb 24 13:24:22 appel1: That method just gets the string and call the outputstream Feb 24 13:24:32 writer.write(cmd); Feb 24 13:24:36 ok Feb 24 13:24:46 haters.gonnahate(cmd); Feb 24 13:26:40 I'm trying to understand if there is a way to do the following: I have an edittext where you can put an address and it resolves to a location on a map, but when I put a lat/lon, it takes me to the wrong location... is there a way to do both properly at the same time? Feb 24 13:27:26 DammitJim: without knowing what scheme you're doing, I have no idea what to suggest. Feb 24 13:27:36 DammitJim: if you're using the geo: scheme, triple check the input you're providing. Feb 24 13:27:43 Consider adding some test cases with known good content. Feb 24 13:27:52 geo scheme Feb 24 13:28:36 lov, so, you are suggesting I check the type of information provided in the input field? like if it is of the format 28.0000 -81.00000 vs an actual address? Feb 24 13:29:41 geo coding with getFromLocationName is what I am using Feb 24 13:30:17 er Feb 24 13:30:19 ok, so. Feb 24 13:30:28 anyone worked on any nfc related stuff? Feb 24 13:30:29 you want to give a lat/lon, and turn that into an actual location to display on a map. Feb 24 13:30:52 http://developer.android.com/guide/appendix/g-app-intents.html Feb 24 13:30:56 look at the Google Maps part Feb 24 13:31:02 in particular, look at the geo schema Feb 24 13:31:20 the schema being defined by http://tools.ietf.org/html/draft-mayrhofer-geo-uri-00 Feb 24 13:31:57 so, geo:28.0,-81.0 would probably be sufficient Feb 24 13:35:23 mrenouf: ok, good point.. Feb 24 13:38:02 mha threads wont die Feb 24 13:39:16 the_ellipse: monster. Feb 24 13:39:35 :> Feb 24 13:39:38 the_ellipse: why are you managing your threads yourself instead of using AsyncTask? Feb 24 13:39:42 :) Feb 24 13:40:12 because i have balls Feb 24 13:40:12 :D Feb 24 13:40:51 the_ellipse: ok then, have fun :) Feb 24 13:41:17 depr derp Feb 24 13:41:43 So, one more time pls explisn me how do i set an activity from non-sctivity class? Can i get a little example, pls? Feb 24 13:41:43 appel1: because AsyncTask isn't the One True Way to handle multithreading? Feb 24 13:41:50 Defuera: huh? Feb 24 13:41:54 anyone know how to allow the emulator instance to use the actual host's nic? Feb 24 13:42:02 Defuera: call startActivity with an intent :P Feb 24 13:42:04 or the network router? Feb 24 13:42:21 gaara_akash: what do you mean? it should be routing network traffic over the host as normal. Feb 24 13:42:42 gaara_akash: use adb forward to port forward certain ports to the emulator Feb 24 13:43:18 Im coding a game here, im noob. Im stuck with it. Feb 24 13:43:19 lov, do i have to do that even after a tcp connection gets established? Feb 24 13:43:54 I have GameAcrivity, wich setContentView Feb 24 13:44:05 lov, also, lets say i have communication happening in port :2000, do i have to forward 2000 to 5554/5037? Feb 24 13:44:18 lov: but if it is easier to use why shouldn't one? Feb 24 13:44:28 appel1: it's not always the appropriate thing to use. Feb 24 13:44:36 lov: which is why I asked Feb 24 13:44:37 How do I call ChangeLevelActivity from the View class? Feb 24 13:44:45 appel1: asynctask is for performing background operations, but having an easy way to have hooks into the UI thread. Feb 24 13:44:52 appel1: this isn't necessarily relevant for Services, for example. Feb 24 13:45:26 Defuera: A) you probably shouldn't be doing your engine work inside of a View. B) getContext().startActivity(...); Feb 24 13:45:43 gaara_akash: possibly. Feb 24 13:46:05 lov, assuming 5554 is the port that the emulator is listening to Feb 24 13:46:12 gaara_akash: http://developer.android.com/guide/developing/tools/adb.html#forwardports Feb 24 13:46:32 lov, will it get routed internally again automatically? i checked out that in detail, its not working, thats why i came here as last resort :/ Feb 24 13:46:33 gaara_akash: you don't have to use 5554; that's the port that ddms is using for debug communication Feb 24 13:46:45 lov: no, but a lot of time they're great for services as well.. although IntentService is probably better in many cases Feb 24 13:46:51 gaara_akash: if you want to communicate on port 2000, consider just doing adb forward tcp:2000 tcp:2000 Feb 24 13:47:03 :/ Feb 24 13:47:04 appel1: in many cases IntentService is the appropriate thing to do, but in many cases it is NOT. Feb 24 13:47:10 lov, it gives error :/ Feb 24 13:47:11 appel1: use the right tool for the job. Feb 24 13:47:18 gaara_akash: that's not a helpful description. Feb 24 13:47:30 lov, sorry, i'll tell u what the error is..one sec Feb 24 13:47:31 gaara_akash: note that the port forwarding works in ONE direction Feb 24 13:47:45 gaara_akash: it forwards connections from your computer's port X to the emulator's port Y Feb 24 13:47:49 lov: exactly, so one should not dismiss AsyncTask for no good reason Feb 24 13:47:54 gaara_akash: it doesn't forward connections from the emulator's port Y to the computer's port X Feb 24 13:48:06 Im not doing it in my View I have a GameThread and Engine class, just trying not to bother you with excessive info. Thx for advise, going to try it now Feb 24 13:48:11 lov, so where is that setup? Feb 24 13:48:17 08:39:43 < appel1> the_ellipse: why are you managing your threads yourself instead of using AsyncTask? Feb 24 13:48:25 lov, on the host? Feb 24 13:48:34 appel1: you're implying that you should only use asynctask, and not handle threads yourself at all Feb 24 13:48:50 gaara_akash: that being adb forward, yes, I guess? The question isn't clear. Feb 24 13:49:19 gaara_akash: if you want to connect from the emu to your computer, you might be able to put in the ip/hostname for your computer Feb 24 13:49:20 lov: I wasn't implying anything, I was asking. Could've worded it better I suppose. Feb 24 13:49:49 lov, ok thanks i'll try it out Feb 24 13:50:40 lov, but what you are also saying is, by default, the emulator is configured in such a way that, the app running in the emulator should be able to access the remote systems in my network, right? Feb 24 13:51:21 lov, so if my ip is 192.168.0.10 , and there is a server running on 192.168.0.11, the app should be able to access it by providing the same ip address? Feb 24 13:55:44 lov, any idea? Feb 24 13:55:47 gaara_akash: yes Feb 24 13:55:59 gaara_akash: the emulator performs networking as normal, as if it were a device living on your network Feb 24 13:56:12 lov, awright thanks a bunch Feb 24 13:56:25 gaara_akash: that said, it is actually a device living on your desktop, so you'll need to forward ports if you want anything on your network to connect INTO it. Feb 24 13:56:51 gaara_akash: and because the emulator does not realize that it is an emulator, trying to connect to localhost:8080 if that's what's running on your desktop will fail, because it will only try to connect to the emulator on 8080 Feb 24 13:57:08 lov, thanks for the info... reading it Feb 24 13:57:13 lov, again, my same question, do i have to forward ports even if the connection is initiated by the app inside the emu, a tcp connection Feb 24 13:57:25 gaara_akash: but yes, you should be able to tell the emulator to point to 192.168.0.11, as long as your desktop can also access that IP Feb 24 13:57:39 gaara_akash: that depends. Feb 24 13:57:46 lov, on? Feb 24 13:58:16 gaara_akash: are you initiating a connection FROM a device outside of your emulator TO a port on your emulator? Feb 24 13:58:36 gaara_akash: if you are initiating the connection FROM the emulator to anywhere else, the emulator will handle punching a hole through for the TCP connection Feb 24 13:58:56 lov: its the latter scenario...and thats what is not performing properly :/ Feb 24 13:59:13 i wonder why in this case: http://pastesite.com/32027 maxHeight is ignored.. Feb 24 13:59:14 gaara_akash: what's the behavior that you're seeing? try using adb shell and pinging the ip. Feb 24 13:59:24 gaara_akash: consider using tcpdump to get an idea what's happening too Feb 24 13:59:38 I'm not really a subject matter expert, so there's only so much I can suggest :P Feb 24 13:59:57 th first image view is just a 1 pixel wide image which fits seamlessly onto the second.. Feb 24 14:00:16 lov, so if im able to ping an ip from within shell it means the app can also connect to it without an issue right?, and since it is being initiated from within the emu, it should take care of all the tcp connection... Feb 24 14:00:38 lov, alright, i'm going to trying everything patienttly once more, hopefully i'll get it this time Feb 24 14:01:00 lov, thanks a bunch Feb 24 14:01:59 gaara_akash: that is the "should" :) Feb 24 14:02:38 lov, :) Feb 24 14:02:47 lov, you work in google is it? Feb 24 14:02:51 actually, I think my problem is not related to geo coding... my problem is more like... how can I differentiate if a user entered an address vs a lat/lon Feb 24 14:03:14 but a lat/lon can be supplied as lat, lon or lat/lon or lat lon Feb 24 14:03:27 Good Morning everyone~ Feb 24 14:03:45 in my app, if I have the lat lon, I don't need to do any geo coding 'cause I can just display that location on the map directly (no need to call getFromLocationName Feb 24 14:03:49 morning mantas322 Feb 24 14:03:59 ah, missing adjustViewBounds="true" Feb 24 14:04:30 I finally got around to finishing that App that I was 90% in November of last year :D Feb 24 14:04:39 congrats, mantas322 Feb 24 14:04:43 thanks Feb 24 14:04:51 waiting for dude to upload it to market Feb 24 14:04:53 Hi, anyone here use the ADK? Feb 24 14:05:20 would the most efficient way be to do a regular expression check? Feb 24 14:05:28 SmashCat: just ask what you need help with instead Feb 24 14:05:33 DammitJim: this is a difficult question. Feb 24 14:05:53 DammitJim: I'd recommend sidestepping the issue by having them enter lat and lon in two different fields Feb 24 14:06:00 of course ... queue.wait was blocking the threads - need to notify them to kill em Feb 24 14:07:47 Mikellip: Ok, enough of the pleasantries... I've noticed the ADk apps only connect to the board if the Android device is plugged in to launch the activity. If the activity is shutdown and launched manually, then the Android device does not recognise an ADK board attached. This happens in the Google DemoKit demo too. Wondering if anyone's had experience in getting around this bug. Feb 24 14:08:02 lov, so, passing something like 28.12345 -81.54321 into a getFromLocationName will not return me the same entered information, will it? Feb 24 14:08:18 I tested that and it didn't but I don't know if I was implementing something wrong Feb 24 14:10:22 morning Feb 24 14:10:28 DammitJim: you can't depend totally on what Google's geolocation services will do. If you're just using it to turn user entered lat/lon into a lat/lon, I'd really recommend you just parse the damn thing yourself. Feb 24 14:10:42 you're honestly making a network call because you're too lazy to parse it. Feb 24 14:11:30 yes, in a way I am being lazy, but at the same time wanted to know the capabilities. I'm going to do the parsing myself Feb 24 14:11:52 DammitJim: that call is basically for parsing general addresses like "123 4th St, Townsville, USA" Feb 24 14:12:39 yeah! I can do any regular expression checks, right? Feb 24 14:13:21 all I'm checking is for the existence of 2 numbers that can be separated by space, comma and slash Feb 24 14:14:28 fuck uuuuu http://androidpinexchange.appspot.com/# Feb 24 14:15:05 DammitJim: sure. Feb 24 14:15:13 DammitJim: but what happens when the user enters 15N, 30W ? Feb 24 14:15:20 N and W aren't numbers. Feb 24 14:15:29 dammit! Feb 24 14:15:30 ...jim Feb 24 14:15:49 maybe I need to do some more research to capture the prossibilities Feb 24 14:16:02 DammitJim: Maybe don't allow users to just type anything into a text field? Feb 24 14:16:03 I wonder what others do... or do they never have just 1 field that can do it all? Feb 24 14:16:31 LOL @ SmashCat I wish... actually, I did that when I started the app and the find button didn't have an action LOL Feb 24 14:16:41 no no, the editext was disabled Feb 24 14:16:43 LOL Feb 24 14:16:47 you guys Feb 24 14:16:56 what was that about, mikedg ? Feb 24 14:17:18 DammitJim: Think maybe you need to start with the UI - get that working in a sensible way, then wire it up to work. Feb 24 14:17:55 DammitJim: If you're being lazy on the frontend filtering, you'll have a shitload of work to do to sort it out Feb 24 14:18:32 SmashCat, I don't think I can do the filtering on the UI because all I provide the user is 1 edittext field Feb 24 14:18:51 DammitJim: Well... don't just provide them with 1 field. Feb 24 14:18:55 I might have to force the user to put in a lat lon in a particular format Feb 24 14:19:12 our webpage and iPHone app only provide 1 field for this Feb 24 14:19:35 DammitJim: Doesn't mean you can't improve it! Feb 24 14:19:36 it wasn't until recently where I discovered that the android app was taking the user to a slightly different location when they entered the lat lon Feb 24 14:20:11 like I wonder what the maps application does when one enters the lat lon, because it is always accurate (at least the way I enter it) Feb 24 14:20:20 DammitJim: I thought you could just use the same regex library in Android as normal Java though (although 've never found a need for it to be honest) Feb 24 14:20:40 SmashCat, right! Feb 24 14:20:59 maybe I need to download the source code for Maps Feb 24 14:22:17 DammitJim: Either that, or if you're stuck on using 1 text field, just write a regex. Feb 24 14:22:49 DammitJim: if you mean google maps, that's not open source. Feb 24 14:23:03 DammitJim: figure out how your iPhone/website handles parsing the address, do it that way. Feb 24 14:23:11 DammitJim: Having separate text fields, restricted to numeric digits (and periods) will make life a lot easier for you and the user though. Feb 24 14:26:16 I just talked to the other developers... they let the geocoder figure it out Feb 24 14:26:34 DammitJim: Although as long as the location is always entered as {LAT}random crap{LONG}random crap, it'd be easy to just parse it without a regex. Just scan the characters sequentially until you get to a non-numeric character (or period), and store that, then keep going until you find a numeric character again, then store the characters until you get to a non numeric. Then you have your 2... Feb 24 14:26:36 ...numbers. Only a few lines of code. Feb 24 14:27:09 they claim that the work is done by the system to figure out if it is a 1409 main st, miami, fl vs seminole county, fl vs new york, NY vs 28.0000 -81.00000 Feb 24 14:27:37 lov, thanks for clarifying that about Google Maps being closed sorce Feb 24 14:27:55 How can I find out, wich size a TableLayout can maximal have, when it shall exactly fit the underlaying view? Feb 24 14:29:28 DammitJim: then there's very little you can do; you have to let everything go to the geocoder. Feb 24 14:30:02 DammitJim: if you're getting different geocoder results from different platforms, especially if they all ostensibly use google maps, that sounds like a legitimate issue you should talk to Google about Feb 24 14:30:08 that's what I was doing, but the geocoder is returning me the lat lon with a different value LOL Feb 24 14:30:52 and that's why I was wondering if I was doing something wrong when calling getLocationFromName or if there is a different method I should be using Feb 24 14:31:15 when one says 28.0000 -81.0000 in the iPhone app (that uses Google), it returns 28.0000 -81.00000 Feb 24 14:31:24 and on android? Feb 24 14:31:32 mine returns something like 28.02314 -81.04213 Feb 24 14:31:37 that's odd. Feb 24 14:31:43 That's really odd. Feb 24 14:31:45 I know! that's why I think I'm doing something wrong Feb 24 14:31:56 or using the wrong method Feb 24 14:32:14 DammitJim: Looks like the iPhone app is rounding the values Feb 24 14:32:18 DammitJim: I'd strongly recommend that you create a simple test case app, and submit it to google telling them that there's a problem with the geocoder. Feb 24 14:32:47 lov, will do... I'm going to create a test app... I've been hacking my app doing the tests, but I'm probably introducing other problems Feb 24 14:33:05 so, you guys don't know if I need to use a different method than getLocationFromName()? Feb 24 14:36:07 Hello, I'm trying to encrypt and decrypt media files and I can encrypt and decrypt fine in one pass. How can I save the key somewhere so that I can always decrypt items that have been encrypted before hand. my code is here, it was put together by googling. http://pastebin.com/UmZdmHJa First pass if the shared prefs isn't set it encrypts and decrypts fine and stores the key. then if I run it again just to decrypt it doesn't work I'm assuming Feb 24 14:36:07 because the key isn't being set correctly again. Feb 24 14:36:52 How can I get looper thread exceptions? Feb 24 14:37:12 DammitJim: getFromLocationName is the only method that accepts arbitrary strings. Feb 24 14:37:29 Ah, know what Feb 24 14:37:44 DammitJim: geocoder normally turns lat/lon into addresses and other points of interest Feb 24 14:37:53 I bet the location you're getting back is a nearby street address that you "snapped" to Feb 24 14:38:05 the inconsistent behavior for iphone and android is kind of strange and shocking Feb 24 14:38:22 you should double check with the developers for iOS that they don't do some sort of parsing to ensure that lat/lon remains the exact same. Feb 24 14:41:26 weird my logcat.py doesnt work anymore... Feb 24 14:41:48 shows some lines and then seems to get stuck Feb 24 14:41:48 close and reopen Feb 24 14:42:26 roger_padactor, i dont think thats it....just seems to be stopping for some reason Feb 24 14:42:44 adb logcat works fine Feb 24 14:43:22 sorry. anytime its acts up for me I just close and re open. Feb 24 14:45:38 lov. do you think you could give me a hand when you have time? Feb 24 14:48:28 roger_padactor: I'm not sure you asked a coherent question. Feb 24 14:48:46 :) Feb 24 14:49:17 roger_padactor: also, consider using File objects Feb 24 14:49:22 instead of doing all of your file operations using Strings Feb 24 14:49:29 down that road lies madness and lack of maintainability Feb 24 14:49:33 I'm trying to save a encryption key so I can always use that key to decrypt some files. But when I store it and retrieve it, the decryption doesn't work. Feb 24 14:50:28 editor.putString("secret_key",new String(key_encoded)); Feb 24 14:50:35 consider not storing the encryption/decryption key in shared prefs. Feb 24 14:50:44 consider just saving the damn thing to a file in app private storage. Feb 24 14:51:17 bear in mind that creating a String out of a byte[] actually tries to create a string, and assumes that the byte[] is a UTF8 representation. Feb 24 14:51:36 Because Java stores strings in unicode, new String(bytes).getBytes(); won't necessarily return the same thing. Feb 24 14:51:58 ok. so how do I insure that it does? Feb 24 14:52:05 don't be obtuse Feb 24 14:52:08 DON'T STORE THIS IN A STRING Feb 24 14:52:13 DON'T STORE THIS IN SHARED PREFS Feb 24 14:52:19 SAVE THE KEY AS AN ACTUAL FILE Feb 24 14:52:36 thx :> Feb 24 14:52:45 come back when you wrap your head around those 3 things Feb 24 14:56:56 is there an official maguro car dock yet? Feb 24 14:57:00 i see the verizon dock Feb 24 15:03:47 i installed adt on eclipse, but it give adb error ? Feb 24 15:03:53 can someone help me please? Feb 24 15:04:38 BenLadden: did you manage to install and set up the SDK? Feb 24 15:04:51 BenLadden: did you configure the ADT plugin to reference the Android SDK? Feb 24 15:04:56 lov, yes Feb 24 15:05:12 I try using the addView(view, xsize, ysize) method off a LinearLayout or TableLayout. But the view is always larger than it sould be. What is wrong? Feb 24 15:06:24 fornext__: that's.... that's not how you do it >:( Feb 24 15:06:36 addView shouldn't be accepting xsize, ysize Feb 24 15:06:48 it should accept values that specify whether it's match_parent, wrap_content, etc. Feb 24 15:07:09 fornext__: I VERY strongly recommend that you not programmatically add/remove views unless you know what you're doing. Feb 24 15:07:38 fornext__: see http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html Feb 24 15:07:43 lov, http://developer.android.com/reference/android/view/ViewGroup.html#addView%28android.view.View,%20int,%20int%29 Feb 24 15:08:23 I cant use the XML, cause my layout is dynamic. Feb 24 15:09:30 addView (manual): Adds a child view with this ViewGroup's default layout parameters and the specified width and height. Feb 24 15:09:39 .... yes, but width/height are not in pixels. Feb 24 15:09:48 hmm Feb 24 15:09:58 see http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#ViewGroup.LayoutParams(int, int) Feb 24 15:10:12 you SHOULD NOT be using absolute values; down this road leads configuration problems. Feb 24 15:10:26 What are you doing that can't be handled by setting views as visible/gone, or using another view such as listvie? Feb 24 15:10:29 *listview? Feb 24 15:10:51 whatever you're trying to do, a view probably already exists for it. consider not reinventing the wheel. Feb 24 15:10:57 well, I need absolute positioning off the Buttons. Maybe I will better use a SurfaceView and implement InputHandling by myself. Feb 24 15:11:52 why, exactly, do you need absolute positioning? Feb 24 15:12:05 SO THAT IT LOOKS PERFECT ON THE IPHONE Feb 24 15:12:12 how will you handle the case of the 20 odd different screen resolutions you'll run into? Feb 24 15:12:14 lov, I nees buttons in a grid, but the grid size can change. All buttons shall perfectly fit the Screen. Feb 24 15:12:26 >_< Feb 24 15:12:33 consider using a TableView or GridView. Feb 24 15:13:15 or GridLayout Feb 24 15:14:02 I think not, that it is a problem to manage it, if you get the width and height off the drawarea in pixels. Feb 24 15:14:03 is Gridlayout in the compatability apis yet? Feb 24 15:14:15 fornext__: ok, whatever, do it your way. Feb 24 15:14:28 fornext__: when you spend the next 20 hours trying to figure out layout problems, don't complain, at all. Feb 24 15:15:40 I'll just recommend that you read the Layout section of http://developer.android.com/reference/android/view/View.html http://developer.android.com/reference/android/view/ViewGroup.html Feb 24 15:15:53 have fun with your iphone app! Feb 24 15:16:09 "no lov, you misunderstand...it's an android app!" Feb 24 15:16:19 lov, where did you say I can submit this? Feb 24 15:16:32 b.android.com Feb 24 15:16:42 or where can I check that this is a problem (submitting 28.12345 and getting 28.12533 in return) Feb 24 15:16:46 DammitJim: I didn't. b.android.com, maybe, but it'll probably just get resolved as external or something. Feb 24 15:16:50 You might want to email a devrel. Feb 24 15:16:55 LOL Feb 24 15:16:57 EMAIL A DEVREL Feb 24 15:16:59 good one Feb 24 15:17:00 oh shut up. Feb 24 15:17:08 what is a devrel? Feb 24 15:17:09 you're literally the only person I know who has a bad experience here Feb 24 15:17:14 +1 Feb 24 15:17:17 well ive had like 5 bad experiences Feb 24 15:17:20 i.e. they ignore my emails Feb 24 15:17:22 yeah well Feb 24 15:17:22 lol Feb 24 15:17:23 guess what Feb 24 15:17:32 that's not the case for, really, anyone else. Feb 24 15:17:47 doesnt change anything Feb 24 15:17:50 uummmm... who is a devrel and what are they? Feb 24 15:17:55 my exprience is that they're useless Feb 24 15:18:04 I haven't had an email ignored Feb 24 15:18:14 , Im much closer now, so thank you for the advice. It looks like i should use FLAG ACTIVITY NEW TASK now, to set the ChangeLevelActivity on top, how do i set it? Feb 24 15:18:34 DammitJim, what about a mailing list? Feb 24 15:19:15 I'll do whatever... where should I submit this? LOL... that's all I'm asking Feb 24 15:19:45 it seems to be losing precision or something when the casting is done or something... 28.12345 returns 28.1253494 Feb 24 15:20:18 DammitJim: A developer relations person, like reto meier or roman nurik Feb 24 15:20:29 er... Feb 24 15:20:30 wait. Feb 24 15:20:38 yes? Feb 24 15:20:55 is it an issue with the precision changing when you convert from string or long to float? Feb 24 15:20:58 because, uh Feb 24 15:21:01 floats only have limited precision. Feb 24 15:21:06 just putting that out there. Feb 24 15:21:22 and the way they are stored causes extra confusion... Feb 24 15:21:58 dammitjim: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html Feb 24 15:22:11 are you using float and double interchangeably here? I've always used double to store lat/lng in To Do Mapr and I get 6 places after decimal point i.e. 44.123456 Feb 24 15:22:15 lov, good point.... I honestly don't know... I mean, I getText() from the field where "28.12345 -81.54321" is and then do gc.getLocationFromName(THAT TEXT) Feb 24 15:22:29 Yes, I understand that. Feb 24 15:22:38 iI was able to authenticate my android app with oauth key and secret, but how can send a login information (user and password)? Feb 24 15:22:39 no one can give me some advice Feb 24 15:22:47 then I just do a x.getLatitude() Feb 24 15:23:03 cybertop, read up on oauth, it doesn't use username and password Feb 24 15:23:05 so, I don't know what getLocationFromText() does with the string Feb 24 15:23:17 Im away for a sec, so dont respond me untill im back pls) Feb 24 15:23:17 fuck it, I've got work to do. Feb 24 15:23:18 good luck! Feb 24 15:23:26 LOL... thanks lov Feb 24 15:23:45 I'll find Reto Meier or Roman Feb 24 15:23:53 ok thanks, but after the authentication of consumer, how can authentcate the user Feb 24 15:24:13 cybertop, please read an oauth tutorial Feb 24 15:24:19 and the documentation for the service you are using Feb 24 15:24:45 DammitJim, where is the data in the string generated? Feb 24 15:24:46 where i can find Feb 24 15:25:08 michaelnovakjr, I created a test app where I'm just doing: String addressInput = "28.1234500000 -81.5432100000"; Feb 24 15:25:09 cybertop, how about you try the site for the service you are using. Feb 24 15:25:42 hi. i have a question on http://developer.android.com/design/patterns/navigation.html: in the section "System-to-app navigation" it says "For the Back key, you should make navigation more predictably by inserting into the task's back stack the complete upward navigation path to the app's topmost screen.". how do i do this? Feb 24 15:26:09 i use a custom provider that i develop in spring Feb 24 15:26:24 cybertop, this isn't the place to ask about oauth Feb 24 15:26:32 you should really learn it before you try and implement it Feb 24 15:26:51 izibi: generally, you shouldn't need to do anything. Feb 24 15:27:11 izibi: the idea is that if you override the back button's behavior, that the user is eventually able to press "back" and reach the main part ofy our app. Feb 24 15:27:11 lov: then why does it say i should? Feb 24 15:28:09 izibi, is this for a tablet interface? Feb 24 15:28:12 lov: so i'd have to override onBackPressed? Feb 24 15:28:19 michaelnovakjr: no, at least not at the moment Feb 24 15:28:21 lol.... I knew Reto Meier sounded familiar... I read his Professional Android 2 Application Development book LOL Feb 24 15:28:28 michaelnovakjr yes but my problem are in android app Feb 24 15:28:46 cybertop, no, they aren't Feb 24 15:29:02 ok Feb 24 15:29:11 sorry Feb 24 15:29:24 does one send him an email through his google account? Feb 24 15:29:32 I don't want to piss anyone off LOL Feb 24 15:29:39 I would suggest an android mailing list first Feb 24 15:29:49 which one? Feb 24 15:29:53 izibi: NO Feb 24 15:30:01 izibi: the idea is that, if you DO, then you should make the experience consistent. Feb 24 15:30:16 DammitJim, one relevant to your question :) Feb 24 15:30:52 android-platform, right? Feb 24 15:30:55 lov: but my problem is that the back stack is messed up if you click a notification Feb 24 15:31:17 DammitJim, you can try there. Feb 24 15:34:48 hello Feb 24 15:37:21 i have a little question. Afaik I can store data in the integrated SQLite Database - is it right that e.g. the Contacts are stored in an extra databse (at least i know that the contacts are stored in a extra *.db file) Feb 24 15:37:42 michaelnovakjr, I submitted it... this is not a quick medium of resolving an issue, is it? Feb 24 15:38:05 DammitJim, lol neither is emailing someone directly Feb 24 15:38:20 understood... just setting expectations Feb 24 15:39:25 DammitJim, yea it may take some time to get a response Feb 24 15:40:15 how does one uninstall a developer app from a phone? Feb 24 15:41:04 DammitJim, huh? Feb 24 15:41:20 I just created a test app and had to run it on my phone Feb 24 15:41:38 now that test app is in my phone, but I want to uninstall it, but I don't see a button to do so in manage applications Feb 24 15:41:46 Settings > Applications > Manage Applications > App > Uninstall Feb 24 15:42:24 the app only has a button for Force Stop, Clear Data and Disable Feb 24 15:42:27 no Uninstall Feb 24 15:42:49 remember... this is a development app (not downloaded from market) Feb 24 15:43:23 On ICS, you can drag the icon to the deinstall action. Feb 24 15:43:26 Worst case: "adb remove com.example.app" Feb 24 15:43:58 Worst case: "adb uninstall com.example.app" Feb 24 15:44:00 DammitJim, you are not making sense Feb 24 15:44:14 if it is an app you installed you have the option to uninstall Feb 24 15:44:24 if it came pre-installed, you get the disable option Feb 24 15:44:40 michaelnovakjr, you develop apps, right? if you connect your phone via USB and deploy the app to your phone through that, you don't have an uninstall option Feb 24 15:44:46 DammitJim, this is the only way I uninstall, I don't uninstall from the market Feb 24 15:44:52 that is false DammitJim Feb 24 15:44:55 DammitJim, you do Feb 24 15:44:58 where? Feb 24 15:45:06 * michaelnovakjr shoots self in foot Feb 24 15:45:23 https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/android-market/technical-help/dr6thH1VxJg Feb 24 15:46:00 wait what Feb 24 15:46:08 Hi all Feb 24 15:46:11 that post has nothing to do with your phone Feb 24 15:46:17 DammitJim: you're talking about apps published to Android Market? Feb 24 15:46:31 nope Feb 24 15:46:33 DammitJim: that is TOTALLY unrelated to your question Feb 24 15:46:35 what the hell Feb 24 15:46:36 lol Feb 24 15:46:40 alright, it seems that works on 4.0 Feb 24 15:46:44 DammitJim: adb uninstall your.package.name Feb 24 15:46:45 christ Feb 24 15:46:49 * michaelnovakjr shoots self in face Feb 24 15:47:00 DammitJim: because that is what that topic is about Feb 24 15:47:04 sighhhh Feb 24 15:47:05 lov. Thanks it worked. Feb 24 15:47:16 DammitJim: the only case where this has odd behavior is where the app is preinstalled, and you're installing on top of that Feb 24 15:47:23 DammitJim: I'm 99.9% certain this is not the case for you Feb 24 15:47:38 if it is the case, well, I'm not really surprised by OEMs or your behavior at this point. Feb 24 15:47:43 or if you pushed it to the system partition Feb 24 15:47:58 thanks Feb 24 15:48:26 and yes, my link was wrong Feb 24 15:49:12 we know that Feb 24 15:49:53 I guess the proper way of saying that is: "I'm sorry for pasting a bad link which confused everybody" Feb 24 15:49:56 does adb restore restore your launcher icons in the right place Feb 24 15:50:49 fuuuuuck it doesnt =\ Feb 24 15:52:52 I have an app called API Demos on the phone Feb 24 15:53:08 how do I find out the package name to uninstall it using adb? Feb 24 15:53:15 the Uninstall button is grayed out Feb 24 15:54:07 >_< Feb 24 15:54:13 DammitJim: did you install a custom rom? Feb 24 15:54:19 API demos is probably a preinstall with that rom. Feb 24 15:54:22 no, this is my Nexus S Feb 24 15:54:35 and I installed it at some point when I was learning development Feb 24 15:54:45 if the uninstall button is grayed out, then you probably cant uninstall via adb Feb 24 15:54:52 ^^ Feb 24 15:55:04 dammit Feb 24 15:55:04 this is your scarlet badge of shame, DammitJim Feb 24 15:55:05 ...jim Feb 24 15:55:52 maguro is finally running CM9 :) Feb 24 15:55:53 DammitJim: did you copy it to the system partition? Feb 24 15:55:59 now i dont have to wait for google to push out updates Feb 24 15:56:10 I keep seeing that people use a Matrix object to create scaled bitmaps. Why do they do that instead of using http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap, int, int, boolean)? Feb 24 15:56:24 appel1 I don't think so Feb 24 15:56:37 it's in the internal sd card... Feb 24 15:56:38 hi group, i'm trying to get latitude and longitude with my Location Class http://pastebin.com/myVt8QYW, in android device MXT 2.3 works fine, but in galaxy Xoom 3.1 . I always get the same Latitude and longitude, even elsewhere. This error is possible? Feb 24 15:57:02 No the error is unpossable Feb 24 15:57:43 DammitJim: ah, the API Demos contains a Device Admin sample :) Feb 24 15:57:45 jalmeida: getLastKnownLocation does exactly that; it gives the last known location. Feb 24 15:57:49 It does not give the ACTUAL location Feb 24 15:57:51 DammitJim: you need to disable that first Feb 24 15:57:54 (unless the actual location is the last known location) Feb 24 15:58:09 if no location was acquired since the device was booted, getLastKnownLocation may return null. Feb 24 15:58:22 DammitJim: settings -> security -> device admins or something similar Feb 24 15:58:52 jalmeida: I don't know what AdicionarLocationTask is, or why it would affect what locations you get. Feb 24 15:59:09 lov: yes , get the same coordinate Feb 24 15:59:09 jalmeida: without any code to actually look at, I can't really tell what's wrong here. Feb 24 16:00:34 galaxy xoom? :p Feb 24 16:00:47 lov: http://pastebin.com/utGH68pw Feb 24 16:01:05 my thread to run a getLocation in background Feb 24 16:01:30 jalmeida: wtf. Feb 24 16:01:38 jalmeida: why aren't you calling requestLocationUpdates? Feb 24 16:01:47 if you don't call requestLocationUpdates, the location manager doesn't start updating locations Feb 24 16:02:08 jalmeida: you're not getting new locations because YOU'RE NOT ACTUALLY RUNNING THE GPS OR NETWORK PROVIDER Feb 24 16:02:27 jalmeida: read a tutorial on LocationManager and getting GPS updates, please. Feb 24 16:03:22 In the future, please clean up your pastebin. I know if your code you have all that shit commented out but its really bad to post it to pastebin if you really want someone to help by understanding what you have coded. Feb 24 16:03:48 And names in English o.O Feb 24 16:04:13 öhm anyone knows where in a contact provider the actual data access (on the database) is implemented ??? Feb 24 16:04:38 lov: the complete location class is http://pastebin.com/pzPC4Sba Feb 24 16:04:47 Pinas: you mean onQuery()? Feb 24 16:05:41 QubeZ honestly i have no idea. I have the content provider Contacts.java (from the android source) and I need to find the location where the actual data access is performed :) Feb 24 16:05:49 holy cow, appel1, you know your stuff Feb 24 16:05:50 that did it Feb 24 16:05:52 interesting Feb 24 16:06:26 Pinas: I believe content providers actually require implementation of onQuery() where you query the DB Feb 24 16:07:06 Likely to have some db access in insert() and delete() as well Feb 24 16:07:26 QuebZ ok thx then I made another mistake - cant find an onQuery method :) Feb 24 16:07:40 i believe its just called query() Feb 24 16:07:47 ahh ok, my bad Feb 24 16:08:29 lov: im starting the gps provider here : http://pastebin.com/jVMBRg0P Feb 24 16:10:21 query() seems fine - thank you Feb 24 16:10:32 Pinas: sorry about that Feb 24 16:10:45 QubeZ absolutely no problem :) Feb 24 16:18:44 Pinas: now you must check out my app, should be in the Market after the beta program is over: www.todomapr.com :) Feb 24 16:22:57 is it possible to find out which activity launched the current one? Feb 24 16:23:30 jalmeida: you're getting the location by, instead of using a listener, simply BUSY WAITING in a while loop and calling getLastKnownLocation. Feb 24 16:23:47 jalmeida: if you don't understand why pegging the CPU at 100% instead of using a callback is bad, please read about callbacks thx Feb 24 16:23:57 I don't even know what's happening your code and I don't want to. Feb 24 16:24:19 consider refactoring your code to use (gasp) LocationListener callbacks and handlers. Feb 24 16:26:53 izibi: you can access the intent that started it.. maybe that has the info about the owner.. Feb 24 16:28:46 izibi: in any case you can put extra information into the intent that encodes the activity that started your current activity Feb 24 16:29:20 hello Feb 24 16:29:23 izibi: this solution would require you to be able to change all activities that might start your intent. if you create a reusable component than this might not be the case Feb 24 16:29:40 guys , I got a problem Feb 24 16:30:14 luci1093: good luck with that. Feb 24 16:30:19 *golf clap* Feb 24 16:30:23 luci1093: cool story bro :D Feb 24 16:30:35 lol I was typeing about it -.- Feb 24 16:31:43 tapas: i know that i can do this but i wanted to know if the platform has a way to do this. but i guess it doesn't Feb 24 16:31:58 izibi: http://developer.android.com/reference/android/app/Activity.html#getCallingActivity%28%29 Feb 24 16:32:25 I just started learning android using some tutorials from youtube and I got a problem .... so when I used the "Intent" command to start an application (following that tutorial) , I got an error saying "The application has stopped unexpectedly" and forcing me to close. I tryed a lot of ways to start it pproperly and got the same error every time. Feb 24 16:32:33 izibi: yes, but you have to use startActivityForResult( Feb 24 16:32:45 luci1093: check logcat Feb 24 16:32:58 luci1093: if you get crashs it always helps to check the exception stacktrace that you might have gotten Feb 24 16:32:59 luci1093: logcat will probably show an exception being thrown Feb 24 16:33:06 well I kinda tryed that but didn't actually understand anything -.- Feb 24 16:33:13 s/probably/certainly/ Feb 24 16:33:19 and I've been looking at it for quite some time :| Feb 24 16:33:38 luci1093: the activity that you are starting, is it in the manifest? Feb 24 16:33:41 luci1093: paste relevant code snippet.. paste exceptpn trace.. Feb 24 16:33:46 none of the r17 tools will launch for me Feb 24 16:33:49 but not in this channel, but to some pastesite Feb 24 16:33:51 they all say i dnt have java or something :S Feb 24 16:34:10 I got it uploaded on a site if you want to take a look :| Feb 24 16:34:21 canadiancow|work: ADTr17-preview1? Works for me. Feb 24 16:34:21 tapas, evancharlton: why does this only work for startActivityForResult? :-/ i guess i'll just use an extra Feb 24 16:34:22 luci1093: the app? no, we only care about the code Feb 24 16:34:29 Failed to convert path to a short DOS path: C:\Windows\system32\java.exe Feb 24 16:34:40 ahh there's your problem, you're using windows Feb 24 16:34:43 :\ Feb 24 16:34:54 people still use windows these days? Feb 24 16:34:56 it's not the app , It's a rar with the folder from the workspace Feb 24 16:35:03 My problem with the adt17 is that my built-from-sources SDK lacks "android-15" directories and Eclipse ends up not finding java.lang.Object... Feb 24 16:35:09 luci1093: we dont want that, just show us the code in pastebin (relevant code) Feb 24 16:35:18 luci1093: ouch no.. :D please paste the relevant snippets to some pastesite.. Feb 24 16:35:22 i.e. your intent, your called activity and manifest Feb 24 16:35:32 izibi: a proper explanation would take a long time, so I'll just say "because that's the way it works" :) Feb 24 16:35:51 ok , just a sec Feb 24 16:36:26 btw , do you want me to paste the classes and the android manifest or something else ? Feb 24 16:36:41 luci1093: the most important thing would be the exception.. Feb 24 16:37:14 ok , well I don't know excatly how to get that but I'm gonna look a bit Feb 24 16:37:46 luci1093: wat development environment do you use? Feb 24 16:37:48 they broke find_java.bat in the new tools :( Feb 24 16:37:54 eclipse Feb 24 16:37:56 luci1093: logcat will show the exception Feb 24 16:38:14 Is there no way to set a view's layout_span with Java when adding it to a TableRow? Feb 24 16:38:24 ow , so I should coppy the things from the logcat ? Feb 24 16:38:42 or just read them Feb 24 16:39:06 it'll probably be pretty apparent what's going on, since they usually have a string saying how to fix it :) Feb 24 16:39:51 I wouldn't be here if I didn't try for like 3 h to understand what is wrong Feb 24 16:40:32 ok, then copy and paste the stack trace to a pastesite :D Feb 24 16:40:48 luci1093: ya the exception, is it like ActivityNotFound or what? pastebin Feb 24 16:40:55 luci1093: if you don't know which part the stack trace is, just copy the whole thing to a pastesite Feb 24 16:42:31 http://pastesite.com/32034 , I hope this is it .... Feb 24 16:43:26 luci1093: yeah, at the very bottom: ActivityNotFoundException Feb 24 16:43:54 ya so my point, you need to have your other activity that the Intent is calling in your manifest Feb 24 16:44:53 i always wondered if having to declare things in the manifest isn't a bit redundant.. couldn't the same be done by inspection of the .class files in an app bundle? Feb 24 16:44:57 1 sec , I'm checking ... Feb 24 16:47:24 hm Feb 24 16:48:09 ok , so I modified that thing in the manifest and it seems like it's running (didn't get the error anymore) but my list doesn't appear ....I'll check again Feb 24 16:48:26 then your code is broken somewhere, read docs and fix it Feb 24 16:48:32 at least your activity runs now Feb 24 16:49:58 ok, I'm still checking it Feb 24 16:50:11 anyway , thankyou a lot for the help <3 Feb 24 16:52:34 ok it works , thank you again ^^ Feb 24 16:52:45 I was starting to give up hope ... Feb 24 17:07:32 tapas: what do you do about things like BaseActivity extends Activity? Feb 24 17:12:43 And intent filters Feb 24 17:16:47 maaaaan it sucks that getTableName() doesn't work with most vendor JDBC drivers. Feb 24 17:18:26 anybody got any experience with query joins with a jdbc driver that doesn't support getTableName? i'm working around it by performing separate queries for each join which could potentially be super slow. Feb 24 17:19:21 or just jdbc queries in general? Feb 24 17:31:14 moonlightcheese, why would you need getTableName to join Feb 24 17:31:52 moonlightcheese, and for that matter, is this android-relevant? Feb 24 17:31:53 i don't. i need it to determine which table a particular column in the query result comes from for json parsing. Feb 24 17:32:32 and it's not in the resultsetmetadata? Feb 24 17:32:40 not really relevant no. this is actually for a web service that my Android app will use to get remote db results, so i guess the question doesn't really belong here. Feb 24 17:44:41 Hi guys I've a qustion I got an error on this instruction: mFragment.storeBuy.getBuyDialog(getActivity()).show(); Error is: java.lang.NullPointerException at com.designfuture.music.ui.fragment.plbl.XLBLFragment$ViewHolder$3.onClick(XLBLFragment.java:255) Feb 24 17:44:57 what does that 3 mean? that in that instruction the third object is null? Feb 24 17:45:37 Does anyone know if it is possible to prevent your app from being uninstalled from Settings->Applications? Feb 24 17:45:57 wow Feb 24 17:46:13 We have noticed that "Uninstall" is greyed out on our app and I'm not sure if there is something in our app causing that. Feb 24 17:46:38 jrgarcia: i believe its related to system apps Feb 24 17:47:23 Estragon: How do you declare something a system app? Is that firmware related? Do you declare it by package name? Feb 24 17:48:28 jrgarcia: was this app preinstalled on the phone? Feb 24 17:48:29 jrgarcia: you don't declare something a system app Feb 24 17:48:42 hi guys.. i want to know how to get data from mms.. for example to get to video/image.. is that supported in 2.2? i was googling too much.. Feb 24 17:48:53 lov: i know you would know :) Feb 24 17:49:01 :) Feb 24 17:49:17 * DammitJim is developing yet another FriendFace app ;) Feb 24 17:49:57 whats that? Feb 24 17:49:58 hi, I have an IntentService that connects a java.io.Socket to a remote TCP/IP service. Once connected, the onHandleIntent method reads from the socket in an infinite loop and broadcasts the incoming information (communication is one-way). Now, when my application is 'closed' (actually just suspended) the connection is kept alive. What would be the best way to disconnect the service when the application is actually closed? As onHandleIntent keeps run Feb 24 17:50:30 lov: I'm working for a product that will be preinstalled. The version I'm testing is *not* preinstalled though. I'm wondering if that is because the system already knows or if this unexpected behavior. Feb 24 17:51:44 bl4ckcomb: don't use an IntentService with an infinite loop. Spin up a background thread. Feb 24 17:51:47 well Feb 24 17:51:54 Use a Service or IntentService, but don't block onHandleIntent Feb 24 17:52:04 when your service is being destroyed, stop the thread. Feb 24 17:52:26 lov, ok Feb 24 17:52:30 dammit... they changed the service from supporting XML/JSON to only XML now... what library should I use for XML parsing? Feb 24 17:52:31 thanks Feb 24 17:52:44 XML is stupid Feb 24 17:52:47 DammitJim: lmgtfy.com Feb 24 17:52:53 it totally is... I hate it Feb 24 17:52:56 lov: you have any idea about mms data? how to get to it? Feb 24 17:52:59 mbarisa: no Feb 24 17:53:05 I like XML Feb 24 17:53:37 lov, I already googled... it talked about sax and woodstox and staxmate Feb 24 17:53:43 that's why I'm asking :D Feb 24 17:53:55 or maybe it doesn't matter Feb 24 17:54:37 <_|_> how important are xml layouts and xml in general for android development? Feb 24 17:54:40 DammitJim: you could try http://bit.ly/A38XOa Feb 24 17:54:43 <_|_> starting dev. Feb 24 17:54:47 _|_: extremely Feb 24 17:54:53 _| Feb 24 17:54:54 er Feb 24 17:55:21 man, whatever happened to protobuffers Feb 24 17:55:24 _|_: Using XML resources and the res folder allows you to safely make resources and layouts for your project that handle a variety of configurations, which is the biggest issue to worry about with Android Feb 24 17:55:25 ? Feb 24 17:55:29 DammitJim: I use them all the time Feb 24 17:55:33 protobufs are awesome Feb 24 17:55:51 <_|_> ahh ok. i'm just going to go through the hello world tutorials etc to start off. Feb 24 17:55:51 I know! but the developers for the services on our servers don't like them Feb 24 17:55:53 *sigh* Feb 24 17:56:01 psh Feb 24 17:56:05 tell them to get some clue Feb 24 17:56:08 _|_: It also allows you to offload some of the design work to designers, since the layouts, etc. can be viewed in the GUI editor. Feb 24 17:56:10 everyone's life would be so much easier if we used pbs Feb 24 17:56:14 <_|_> whats the best way to learn the android api? Feb 24 17:56:24 _|_: d.android.com then writing code Feb 24 17:56:24 <_|_> looking at sample code or making your own? Feb 24 17:56:28 _|_: tutorials and experience I guess. d.android.com Feb 24 17:56:39 lov: when I spawn a thread in my intentservice, won't I have to synchronize stuff first in order to broadcast? Feb 24 17:56:39 just be warned that there are a LOT of shitty tutorials out there Feb 24 17:56:48 some of them will actually be examples of what NOT to do Feb 24 17:56:48 +1 on that, lov we do that here and it is awesome 'cause I don't have to worry about the constant changes to the layout designs Feb 24 17:56:58 <_|_> lov i'm using the dev.android ones on the site? Feb 24 17:57:19 <_|_> API revision for 4.0 is taking along timme to install -.- Feb 24 17:57:20 bl4ckcomb: if you're doing multithreading yes you need to worry about synchronization, etc. Feb 24 17:57:45 <_|_> are the updates in the Android SDK Manager important Feb 24 17:57:56 <_|_> the packages Feb 24 17:58:07 generally Feb 24 17:58:16 you can probably get away with just installing the 4.0.3 sdk Feb 24 17:58:20 the SDKs are fully backwards compatible Feb 24 17:58:39 make sure you install the SDK tools as well; if you're using windows you'll probably need the USB drivers. Feb 24 17:58:45 One question: I closed eclipse, shut my PC down and restarted it. Now my app doesnt work anymore. (import android.support.v4.view.MenuItem; cant resolve in one fragment, but in the other it works) Feb 24 17:58:54 <_|_> simple question but just wondering Feb 24 17:58:55 <_|_> tv.setText("Hello, Android"); Feb 24 17:58:55 <_|_> setContentView(tv); Feb 24 17:59:04 <_|_> why do you need the setContentView(tv); Feb 24 17:59:11 that sets the activity's view. Feb 24 17:59:26 <_|_> so it can be seen? Feb 24 17:59:29 generally you'll set that on a viewgroup, or on an entire layout Feb 24 17:59:30 yes Feb 24 17:59:36 you're specifying, for the whole activity, what the root view is Feb 24 17:59:41 that view has children, which has other children, etc. Feb 24 17:59:47 lov: if I instead do one read per Intent, and then broadcast an Intent with the data I read or a timeout Intent in case of read timeout, then in both cases resend an intent (for reading) to the service unless some flag in the application (which will cause this indirect loop to end), would that be acceptable or is it too much overhead? Feb 24 17:59:48 yo dawg Feb 24 17:59:51 i heard you like children Feb 24 17:59:59 bl4ckcomb: I don't really care :> Feb 24 18:00:00 oh god i cant believe i just said that Feb 24 18:00:05 Taking it too far, canadiancow|work :p Feb 24 18:00:07 canadiancow|work: that's disgusting Feb 24 18:00:09 basically a view is like a woman in the ghetto... just tons of children everywhere Feb 24 18:00:15 ... Feb 24 18:00:19 so we put a child in your child so you can...? Feb 24 18:00:26 go to prison for 25 years >:( Feb 24 18:00:26 ... >_> Feb 24 18:00:33 * canadiancow|work leaves Feb 24 18:00:38 ... and this has gone downhill... Feb 24 18:00:47 lov: you mean you don't care about the overhead? Feb 24 18:00:56 lov: s/for 25 years/to die by inmate/ Feb 24 18:02:13 bl4ckcomb: I don't really care about your solution or what you do. Feb 24 18:02:17 bl4ckcomb: sorry Feb 24 18:02:24 bl4ckcomb: the solution is to have your networking live in a background thread Feb 24 18:02:37 instead of having some sort of long lived case for onHandleIntent where you're probably just blocking a looper Feb 24 18:02:45 <_|_> lov i'm also kind of new to java.. is android a good learning tool to help me? Feb 24 18:02:53 use semaphores or something to tell the thread that it's time to do something, idk Feb 24 18:03:02 _|_: you might want to learn java before you learn android Feb 24 18:03:16 <_|_> i know basic java. Feb 24 18:03:24 <_|_> not like a huge amount but i know enough Feb 24 18:03:26 http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html should be familiar to you before you worry about Android Feb 24 18:03:46 is there a possibility to finish an intent within a static function ? Feb 24 18:03:51 if you're familiar with those, you're probably ok to start android dev Feb 24 18:04:03 lov, ok, I'll see what it gives. thank you Feb 24 18:04:03 danieldeusing: you mixed three things there that are unrelated. Feb 24 18:04:08 hi guys Feb 24 18:04:15 i need $400 to buy the unity plugin for android Feb 24 18:04:16 thanks Feb 24 18:04:28 can u explain a bit lov ? Feb 24 18:04:49 there's no such thing as "finishing an intent" Feb 24 18:04:49 that sounded sexy Feb 24 18:04:54 do you mean finishing an activity? Feb 24 18:04:54 tof finish my activity Feb 24 18:04:55 sorry Feb 24 18:05:05 yes, that's probably possible if you have a reference to the activity. Feb 24 18:05:10 it is probably the wrong way to do it, though. Feb 24 18:05:27 i know thats the wrong way but i think that there is no other solution Feb 24 18:05:36 there is, look harder. Feb 24 18:05:45 danieldeusing: how can the wrong way be the only solution? Feb 24 18:06:00 if you want to have static references to activities, you are very likely to start leaking them or have NPEs Feb 24 18:06:58 im guessing if you need to close an activity from another activity or class, then you can just pass it the context and close using that Feb 24 18:07:28 yeah but how Feb 24 18:07:31 i have the context Feb 24 18:08:17 ogad Feb 24 18:08:25 please don't try finishing an activity from another activity Feb 24 18:08:29 just don't do this >_< Feb 24 18:08:36 isn't that what he's trying to do? Feb 24 18:08:42 I don't even know ._. Feb 24 18:08:45 doesnt mean he *should* do it :P Feb 24 18:08:47 it is not another activity Feb 24 18:08:51 its a bit strange Feb 24 18:08:54 new MyActivity().onCreate(null); Feb 24 18:08:58 danieldeusing: explain what you are trying to do Feb 24 18:09:08 canadiancow|work: don't even start Feb 24 18:09:20 :) Feb 24 18:09:30 why wont it show though :( Feb 24 18:09:56 i dont mean from another activity... like for example, my mapview activity has another overlay class where I have my onTap()... based on what happens in there, I need to close out the mapview activity from there. So I pass the context and use that to close our the activity. Feb 24 18:10:12 im working with andengine and i have a gamebaseactivity, within this activity im using an updaterclass with static functions ... in one function i enter a room and while entering this room i want to go back to my main menu, which is the previous activity Feb 24 18:10:13 not from another activity but from another class (using the Overlay) Feb 24 18:10:56 danieldeusing: why not make your menu class more generic then inherit it where ever you need it? Feb 24 18:12:12 cause its not needed in this app i guess Feb 24 18:12:23 when i enter the menu i dont want to have the game open Feb 24 18:12:23 QubeZ: sweet activity leak bro Feb 24 18:12:38 lov: how does that leak? Feb 24 18:13:49 lov: unless he's storing the reference somewhere, it won't leak Feb 24 18:13:55 So I pass the context and use that to close our the activity. <--- i guess thats what i want, and i passed the context but now how can i close ? Feb 24 18:15:44 finish() Feb 24 18:18:47 ok, maybe it's not a leak, I might have misread Feb 24 18:19:13 hello Feb 24 18:20:03 well, i did a mistake, now it works :D Feb 24 18:33:01 so whats the deal with widgets in android, how similar are these to widgets for kde or something? Feb 24 18:33:36 is there a basic developement platform or phone emulator to test developement on for linux, or rather what is a good one Feb 24 18:36:06 Hi guys Feb 24 18:38:05 Im making a password database for android 4.0, i already have made the SQLite database and have a simple log in screen and now need to go about encrypting the SQLite database, what would be the best way of implementing this? Thanks ps n00b Feb 24 18:38:46 malcontent: each SDK target comes with its own emulator. You can also test on any phone. Feb 24 18:38:58 malcontent: Linux is the primary supported dev platform, so you should be fine. Feb 24 18:39:13 malcontent: http://developer.android.com/guide/developing/device.html Feb 24 18:39:21 also, http://developer.android.com/guide/developing/devices/index.html Feb 24 18:39:40 ok. so is it a painful process to get one's stuff on the market? Feb 24 18:39:50 android market? Feb 24 18:39:53 no Feb 24 18:39:57 very easy Feb 24 18:40:00 too easy! Feb 24 18:40:05 agreed Feb 24 18:40:07 this aint iphone Feb 24 18:40:54 malcontent: pay a $25 one-time fee for a developer account, then just upload your apps and publish. Feb 24 18:42:55 ah ok. just wondered 'cause one app was from 'an untrusted source' etc... didn't know how rigorous android market testing was Feb 24 18:43:13 malcontent: there's no approval process, but there is automated malware scanning on new uploads Feb 24 18:43:22 hmm, I gotta pay to give my apps away free Feb 24 18:43:27 malcontent: yep. Feb 24 18:43:51 alternately, just put the APKs up on your website, convince people to download them, show them how ti enable "install from untrusted sources", deal with AT&T users who are unable to change that due to firmware, etc Feb 24 18:44:14 Didn't at&t fix that yet? After the whole amazon appstore Feb 24 18:45:28 one can not fix what is not broken Feb 24 18:45:37 very zen Feb 24 18:45:58 SimonVT: I think that they're not doing that going forward, and they're probably requiring that the option be put back for any OTA updates Feb 24 18:48:28 funny how ppl want to sell the productivity of a smart phone, ever since I got mine i've done nothing but waste time on it Feb 24 18:48:56 got to put it down and get to work. thnx for the help ppl Feb 24 18:49:29 smart phones/tablets "can" be productive Feb 24 18:49:34 but hardly ever are used as such Feb 24 18:49:41 yea Feb 24 18:49:46 you can check corporate email, OOOOOOOR you can play Angry Turds Feb 24 18:49:53 we sell an android app along with tablets for our sites. our mobile app is basically an Android version of our PC software that keeps track of transactions for scrap metal dealers. Feb 24 18:50:04 I wonder what the cost to business is for Angry Bird Leg Feb 24 18:50:05 * Jug6ernaut hates angry turds a;ldjd birds Feb 24 18:50:16 Jug6ernaut: oh no Feb 24 18:50:27 Angry Turds is when you go into the bathroom and then pull out your smartphone and start playing a game. Feb 24 18:50:38 :| Feb 24 18:50:38 Angry Bird leg is when you do this for 15 minutes and your leg falls asleep Feb 24 18:50:50 * Jug6ernaut had no idea Feb 24 18:50:56 These are legitimate medical terms. Feb 24 18:51:01 lol Feb 24 18:51:09 hehe Feb 24 18:52:36 <_|_> http://gyazo.com/32f78b5a60a0545a850394dce9b166d0 | my emulator is stuck o n that screen? Feb 24 18:53:00 probably not stuck. Feb 24 18:53:10 that's just how slow it is. Feb 24 18:53:14 <_|_> its just slow? Feb 24 18:54:23 <_|_> moonlightcheese is it just really slow? Feb 24 18:54:27 emulator is super slow Feb 24 18:54:29 <_|_> its loading but you can't see that on the android thing Feb 24 18:54:32 there are two facets to this. Feb 24 18:54:37 one, the emulator is slow in general Feb 24 18:54:43 two, the first time you start up, it has to do some setup Feb 24 18:55:08 you should enable snapshot so that it doesn't take as long to load (except the first time) Feb 24 18:55:12 bear in mind that you don't need to kill and recreate the emulator each time you change and install your app Feb 24 18:55:18 yeah, snapshots definitely help Feb 24 18:55:23 Does anyone know of a formula to scale one screen resolution to the other? Feb 24 18:55:48 float scale = newHeight/oldHeight; Feb 24 18:56:05 if the width/height ratios aren't the same, well, that'll just be fun for you, won't it. Feb 24 18:56:07 dlaroche: there's no guarantee that will work. if you have different aspect ratios the image will either be stretched or have blank space Feb 24 18:56:12 (shoulda let the runtime handle this) Feb 24 18:58:21 What is the best way to encrypt an SQLite database? Feb 24 18:58:39 golfman: triple rot 13 Feb 24 18:58:54 im taking touch event coordinates from a tablet, and sending them to a computer to move the mouse. Right now I just send the computer the tablets x, y coordinates of the touch event, however, I can only move the mouse around a limited bounds of what the tablet screen resolution is. Feb 24 18:58:55 i heard quadruple is more secure Feb 24 18:58:59 _|_: if you're curious what's happening, look at the logcat tab (or open it if it's not present in eclipse). Feb 24 18:59:01 lol Feb 24 18:59:05 golfman: why? Feb 24 18:59:23 canadiancow|work: I've heard there's a fatal flaw in quadruple where your plaintext can be easily discovered Feb 24 18:59:31 no Feb 24 18:59:32 dlaroche: so, uh.... Feb 24 18:59:34 its more secure Feb 24 18:59:35 is there a formula I can use to scale these coordinates? Feb 24 18:59:39 >_< Feb 24 18:59:46 evancharlton: im trying to make a password safe Feb 24 18:59:56 dlaroche: scaledX = x * scaleFactor; Feb 24 19:00:10 i'll let you figure out the formula for scaledY Feb 24 19:00:11 right, but this doesn't give the desired results Feb 24 19:00:33 dlaroche: float scaleX = targetWidth/ourWidth; float scaleY = targetHeight/ourHeight; sendTouchEvent(((int)((float)getX()) * scaleX), ... Feb 24 19:00:52 when you multiply like that it starts stepping Feb 24 19:00:53 enough brakcets? Feb 24 19:00:57 golfman: don't bother encrypting. http://developer.pidgin.im/wiki/PlainTextPasswords Feb 24 19:00:57 dlaroche: welp Feb 24 19:01:11 dlaroche: There's really not a lot you can do. Feb 24 19:01:23 dlaroche: if you want to start doing interpolation yourself or smoothing, you're more than welcome. Feb 24 19:01:49 How do I absolutely, programatically position a view using a FrameLayout? Feb 24 19:01:49 dlaroche: if you only have a 100x100 input resolution, and a 4000x4000 target resolution, you're going to be making 40x steps, no matter what. Feb 24 19:01:52 golfman: no one will be able to read your database except your app, unless they have root. and if they have root, any encryption you do will be useless anyway. Feb 24 19:02:06 I set the width, height, leftMargin and topMargin Feb 24 19:02:09 richcollins: you don't. Use AbsoluteLayout Feb 24 19:02:16 but its staying at the top of the screen Feb 24 19:02:26 evancharlton: I thought it was deprecated Feb 24 19:02:31 * evancharlton waits for people to jump down his throat Feb 24 19:02:33 there we go :) Feb 24 19:02:43 lov: alright thanks, I will see if I want to dive into interpolation or not Feb 24 19:02:49 richcollins: you can use AbsoluteLayout; just make sure you have a damn good reason to be doing so Feb 24 19:03:02 richcollins: AbsoluteLayout was deprecated so that people think twice before using it Feb 24 19:03:14 evancharlton: I need the view in a specific position from the top and left, with a given width and height Feb 24 19:03:33 so use a margin... Feb 24 19:03:44 richcollins: hey, I'm not a jury; don't need to convince me :P Feb 24 19:03:57 canadiancow|work: I did but the margin doesn't appear to be applied Feb 24 19:04:08 so use a margin properly? :P Feb 24 19:04:20 14:02:18 < evancharlton> richcollins: you don't. Use AbsoluteLayout Feb 24 19:04:22 I will cut you. Feb 24 19:04:29 :) Feb 24 19:04:38 evancharlton: Ok i see thanks for the reply, i have installed the app on my rooted phone and am able to explore to the database file then open it as plain text, do you mean that this will not be possible on a non rooted phone? Feb 24 19:04:59 golfman: correct. Feb 24 19:05:07 ah I need to call requestLayout Feb 24 19:05:08 golfman: /data/data does not have read permissions to non-rooted users Feb 24 19:05:23 golfman: each app has its own private directory. Do ls -l and see for yourself. Feb 24 19:07:23 lov: ok i see, so if the app is backuped with titanium along with the data then put on another rooted and restored they will be able to view the data? Feb 24 19:08:28 lov: *database in plain text Feb 24 19:08:29 yes. Feb 24 19:08:46 golfman: you shouldn't be storing sensitive customer information in plaintext anyway, if you must store it on the device. Feb 24 19:08:53 golfman: if they're using titanium, and titanium is able to read your database, then the user has root Feb 24 19:08:56 period Feb 24 19:08:58 ^^ Feb 24 19:08:59 lov: wat Feb 24 19:09:20 lov: what possible benefit is there to encrypting your data in your app-private database? Feb 24 19:09:54 evancharlton: good point i see what you mean Feb 24 19:09:57 evancharlton: security through obscurity isn't the best thing, but it does offer a speedbump. Feb 24 19:10:07 evancharlton: Not technically true Feb 24 19:10:16 lov: x^2sin(1/x) Feb 24 19:10:25 dlaroche: gehsundheit Feb 24 19:10:26 found it Feb 24 19:10:31 the only thing you can do is offer speedbumps in this case Feb 24 19:10:39 evancharlton: Some devices have bootloaders which allow reading/writing of the device flash out-of-body from android (motorola for example) Feb 24 19:10:46 or well, I didn't scroll up to read what this case was :p Feb 24 19:10:55 dragorn: wut Feb 24 19:11:16 dragorn: that seems like a security hole that you could drive a truck through Feb 24 19:11:17 does that look familiar Feb 24 19:11:17 evancharlton: look up 'mdm'. The same interface that lets you flash a sbf onto the phone lets you read aribtrary flash data Feb 24 19:11:20 evancharlton: sure is Feb 24 19:11:35 evancharlton: and it's in a fair number of deployed phones Feb 24 19:11:42 *facepalm* Feb 24 19:11:46 evancharlton: yup. :P Feb 24 19:12:11 evancharlton: it's an edge case but a real one Feb 24 19:13:02 dragorn: all I can find is press releases about it; no actual technical info Feb 24 19:13:07 And Google bought them? Sheesh :p Feb 24 19:14:02 lov: thanks for all your help, how would i go about encrypting the database so that a password is required in app to open it? Feb 24 19:14:50 :| Feb 24 19:14:58 golfman: do a google search for "Java AES" Feb 24 19:16:41 Thanks on stack over flow finding some info Feb 24 19:18:56 Use a layout_height of 0dip instead of 1dip for better performance Feb 24 19:19:02 ...but i want it 1dp tall Feb 24 19:20:10 Hello and sorry, could someone recommend me the best way to jump into android/java development? like a book or something? thanks : Feb 24 19:20:31 canadiancow|work: trying to use weights to size the width, eh? Feb 24 19:20:41 i dont know Feb 24 19:20:45 im jus tlooking at the warning Feb 24 19:20:56 it just seems like that would never be a correct suggestion Feb 24 19:21:05 i want it a specific height, and its telling me to set it to 0 Feb 24 19:21:26 usually when I see that warning it's because I did something like... layout_weight=10, layout_height=0dp /* i want this one to expand, per weight */ layout_width=1dp /* this one I want 1dp, not to expand */ Feb 24 19:24:19 nalty: there's not a lot of good tutorials, interestingly enough Feb 24 19:24:24 nalty: d.android.com is your starting point Feb 24 19:24:53 and your finishing point! Feb 24 19:27:13 not market.android.com? Feb 24 19:27:46 Your work isn't finished when your app hits market Feb 24 19:27:51 the finishing point is apple.com, when your boss tells you to make it run on iOS too, and you hari kari. Feb 24 19:28:00 so there is no finishing point then! Feb 24 19:28:40 Forever doomed to support Feb 24 19:29:45 haha thanks lov, i've been skim reading through that site for a while, i think i might take a deeper look :) Feb 24 19:31:09 hi. is it possible to have an autocompletetextview show word suggestions on top of the keyboard like edittext does? Feb 24 19:31:28 like the keyboard does* Feb 24 19:31:50 SimonVT: ghost developer, hit new sitcom on spike Feb 24 19:32:06 :p Feb 24 19:32:25 so baiscally it would be an autocompletetextview with custom suggestions (popup) + word suggestions on top of the keyboard Feb 24 19:35:17 javier: So you just want the keyboard to show spelling suggestions when typing in your autocompletetextview? Feb 24 19:40:28 market sucks so hard :( Feb 24 19:40:44 why? Feb 24 19:41:32 i need to change the LVL test response Feb 24 19:41:33 and accounts Feb 24 19:41:54 but because there are no subaccounts for the market, i have to go through >9000 levels of bureaucracy to get anthing done Feb 24 19:42:09 canadiancow|work: subaccounts? Feb 24 19:42:12 like Feb 24 19:42:17 i should be able to login to the zynga acconut Feb 24 19:42:20 oh that Feb 24 19:42:30 and play with the LVL response for JUST ONE APP Feb 24 19:42:39 without having the power to change "Words With Friends" to "suck my cocks" Feb 24 19:42:44 s/cocks/cock/ Feb 24 19:42:44 wait, why? can you customize the LVL response? Feb 24 19:42:51 the test response Feb 24 19:43:08 oh, that's done on the developer console? Feb 24 19:43:14 http://developer.android.com/images/licensing_public_key.png Feb 24 19:43:16 yes Feb 24 19:43:17 I've never developed an app with LVL, in case that wasn't obvious Feb 24 19:43:19 i have no idea what im doing haha Feb 24 19:43:35 evancharlton fix my problem :( Feb 24 19:43:39 go learn LVL Feb 24 19:43:41 and write my app Feb 24 19:43:49 kthxbai Feb 24 19:43:59 what are you writing? Feb 24 19:44:09 good try nalty Feb 24 19:44:17 trying to get me to talk about unreleased products Feb 24 19:44:23 I C WUT U DID THAR Feb 24 19:44:31 i dont even Feb 24 19:50:04 you work for zynga, right? or am i confusing you Feb 24 19:50:12 yes Feb 24 19:50:13 in which case it's likely some lame game Feb 24 19:50:15 :) Feb 24 19:50:18 hay! Feb 24 19:50:27 i think its pretty neat actually Feb 24 19:50:32 * abaratican wins. Feb 24 19:50:32 which is a first :P Feb 24 19:50:35 is it called mallville Feb 24 19:50:39 no Feb 24 19:50:57 It's called old maccanadian's farm Feb 24 19:51:41 "neat" Feb 24 19:52:07 in canada neat means cool and straight means gay Feb 24 19:52:21 what Feb 24 19:52:32 so it's a cool game. :) Feb 24 19:53:07 yep Feb 24 19:53:14 well i mean everything i work on is cool ;) Feb 24 19:53:16 anyone knows where the actual content provider for the contacts is implemented ??? Feb 24 19:58:26 canadiancow|work: are you working on "dongs with friends?" Feb 24 19:58:33 i dont know what that is Feb 24 19:58:39 how about angry birds with friends? Feb 24 19:58:48 SPILL YOUR SECRETS Feb 24 20:00:29 if you spend 5 minutes looking at our history of ios and android Feb 24 20:00:32 you can probably figure out what im doing Feb 24 20:00:49 well I'm not that interested. Feb 24 20:00:52 :) Feb 24 20:01:00 syntax error insert } to complete classbody Feb 24 20:01:02 that sounds like work Feb 24 20:01:08 i dont know what that means :( Feb 24 20:01:08 nalty: so, uh Feb 24 20:01:13 nalty: you might want to learn java first. Feb 24 20:01:15 yeah Feb 24 20:01:18 i thought that :L Feb 24 20:01:18 yeah. Feb 24 20:01:31 http://docs.oracle.com/javase/tutorial/ Feb 24 20:01:38 take a look at the "basics" part Feb 24 20:01:50 aha thanks mate Feb 24 20:02:01 do at least these trails: http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Feb 24 20:02:08 general java questions in #java, please Feb 24 20:02:26 sorry :) Feb 24 20:02:43 np Feb 24 20:07:25 read thinking in java Feb 24 20:12:46 "Thinking in java" - That is what, a programmers definition of insanity? =) Feb 24 20:13:07 I wonder if it's ok to disable server Feb 24 20:13:36 mgj: it does sound pretty unappealing Feb 24 20:13:51 öhm any idea how I could trace all functions called to performe a certain action ??? Feb 24 20:15:01 Pinas: if you're using eclipse, right click the method and click "open call hierarchy" Feb 24 20:15:27 lov if this works I'll kiss you - i currently do this manually Feb 24 20:15:40 better hope it doesn't work, lov Feb 24 20:15:52 ^^ Feb 24 20:16:06 you currently kiss manually? Feb 24 20:16:15 how else... Feb 24 20:16:25 come on antilvl Feb 24 20:16:27 what's a fari /hr rate for android dev for New York? Feb 24 20:16:33 WHO'S YOUR DADDY Feb 24 20:16:35 UNGH!!!! Feb 24 20:16:38 about $3.50 Feb 24 20:16:48 abaratican: you mean tree fitty Feb 24 20:16:53 DigitalKiwi: $215/hr Feb 24 20:16:55 s/fari/fair/ Feb 24 20:17:01 TREE FIDDY Feb 24 20:17:08 fairy? Feb 24 20:17:13 ive never hired a fairy android dev Feb 24 20:17:18 ha Feb 24 20:17:41 nope not really what i need - it should even tell me the methods from the android system itself not just from my app Feb 24 20:17:42 this is one of those situations where someone says "one in 3 people are ... look to your left and right, if you don't see one, it's you." Feb 24 20:17:55 in this case, X=fairy, and the cow is the middle guy. Feb 24 20:19:04 We all know it's you Feb 24 20:20:42 SimonVT: yep, spelling suggestions Feb 24 20:21:26 + custom suggestions (drop down list) Feb 24 20:22:59 DigitalKiwi: it's an open ended question. I can tell you that there's definitely a dearth of good Android developers in the NYC area, so if you're decent then you can definitely go 6 figures Feb 24 20:23:47 javier: By default there should be spelling suggestions, so I suppose it's turning them off.. See if you can find out how Feb 24 20:24:39 you specify that in imeoptions i think Feb 24 20:25:56 vaguely remember seeing textNoSuggestions as an input type Feb 24 20:26:10 yeah there's that Feb 24 20:27:20 I have android:inputType="text" in my xml Feb 24 20:27:26 and as far as getting the ime to show the suggestions, if the suggestions are turned on in the options, as long as you aren't using some sort of custom inputconnection that does weird things to the editable, the default implementation sees data as it enters the editable and the IME reacts accordingly Feb 24 20:27:38 at least that's my understanding Feb 24 20:28:13 Well, it doesn't make a whole lot of sense to have two sets of suggestions showing at once, so it's most likely turning them off somehow Feb 24 20:28:17 I've been playing with different options, and I have no problems with edittext. Autocompletetextview is a different story. Feb 24 20:28:29 no spelling suggestions so far Feb 24 20:28:38 there are default attributes for each of those views Feb 24 20:28:49 edittext's attributes may differ from autocompletetextview in a significant way Feb 24 20:30:56 it seems to be android:autoText Feb 24 20:33:02 lov mikedg ; oh Feb 24 20:40:38 by default, edittext has spelling suggestions. no attribute is needed, unlike autocompletetextview Feb 24 20:40:50 still, trying to find out why it doesn't work Feb 24 20:48:43 ahoy! wondering about the simplest proper way to programmatically instantiate a styled View from an XML resource? Thanks! Feb 24 20:49:22 javier: i use autocompletetextview and it shows me suggestions (althought im using swype as my default kb) Feb 24 20:49:42 Are margins broken for FrameLayout on 2.2? Feb 24 20:52:15 QubeZ: interesting. here it doesn't work on both the emulator and cyanogenmod Feb 24 20:54:24 The view can just set flags for what kind of keyboard it would like, it's up to the keyboard whether they want to respect that Feb 24 20:55:38 I'm using the standard keyboard Feb 24 20:55:41 boh Feb 24 21:02:22 what's a good IRC channel for Java?? Feb 24 21:02:28 ##java Feb 24 21:02:37 Eh, strange stacktrace.. ArrayIndexOutOfBoundsException in String.equals(..) Feb 24 21:03:14 moonlightcheese: I'm the only one in there. The room didn't exist. Feb 24 21:03:26 yes it does. Feb 24 21:03:30 two hash marks. Feb 24 21:03:33 not one. Feb 24 21:03:37 i know Feb 24 21:03:42 I see 380 people in there :p Feb 24 21:03:48 just do /j java .. there's plenty ppl Feb 24 21:03:53 grrr.....alright Feb 24 21:04:23 sweet....im in Feb 24 21:04:25 thanks Feb 24 21:04:31 thats what she said Feb 24 21:04:37 Can anyone think of a reason that requestLayout wouldn't case the view's appearance to change on the screen (after changing the parameters) Feb 24 21:04:40 no, that would be what he said Feb 24 21:04:46 thats what you think ;) Feb 24 21:04:50 canadiancow|work: you messed up that reference big time :P Feb 24 21:04:52 lol Feb 24 21:05:11 maybe in Thailand, thats what he-she said Feb 24 21:05:14 It works on 4 but not 2.3 Feb 24 21:05:33 chicks with dicks. Feb 24 21:05:38 now on VHS. Feb 24 21:06:35 By C. A. Nadian Feb 24 21:06:50 what type of interpolation should I use if I want to factor mouse movements from a tablet resolution to a computer monitor resolution? Feb 24 21:07:13 bipolar Feb 24 21:07:29 anyone here worked w\ the Java API for google calendar? Feb 24 21:07:43 the dependencies are seemly a real pain Feb 24 21:08:29 canadiancow: you mean Bilinear right? Feb 24 21:08:36 nope Feb 24 21:10:53 do you need a permission for Secure.ANDROID_ID Feb 24 21:11:03 Don't think so Feb 24 21:13:38 Does anyone know if it's possible to show the keyboard without an animation? I want it to be open already when an Activity appears. Feb 24 21:14:32 grantland: just set focus to a view that requires keyboard input when the app comes up. Feb 24 21:14:45 like an EditText or something. Feb 24 21:15:26 moonlightcheese: that brings it up automatically, but it animates and has to re-adjust the content. was wondering if it were possible to have it be there when the activity shoes Feb 24 21:16:22 man Astrid is one big pile of ... Feb 24 21:18:18 hey guys, I made my app for API 8 but it's not compatible on ICS -- any ideas what I missed? Feb 24 21:18:29 "it's not compatible" Feb 24 21:18:31 what does that mena Feb 24 21:18:54 canadiancow|work: when I try to install it on a 4.0 phone from the Market Feb 24 21:19:01 canadiancow|work: that's the response I get Feb 24 21:19:35 do you have a maxSdkVersion set? Feb 24 21:19:58 don't think that's needed. Feb 24 21:20:10 targetSdkVersion and minSdkVersion. Feb 24 21:20:13 ... Feb 24 21:20:26 i know its not "needed" Feb 24 21:20:29 canadiancow|work: this is what I have: Feb 24 21:20:31 but it oculd be the cause of his problem Feb 24 21:20:36 no maxSdkVersion Feb 24 21:20:38 whats the app Feb 24 21:20:56 https://market.android.com/details?id=com.fliprabbit Feb 24 21:21:12 This item cannot be installed in your device's country. Feb 24 21:21:20 Same Feb 24 21:21:42 shipit, you probably uses-feature something that isn't available Feb 24 21:21:45 shipit, pastebin your manifest Feb 24 21:21:50 ok Feb 24 21:22:09 shipit, it should also say what it limits when you publish Feb 24 21:22:11 Country is set in the dev console Feb 24 21:22:13 shipit, upload an apk, and screenshot Feb 24 21:22:19 when it tells you what it filters on Feb 24 21:23:13 thx guys, manifest - http://pastebin.com/3DcaUDRv Feb 24 21:24:16 interesting Feb 24 21:24:32 well i cant really test it because its not available in canada Feb 24 21:24:43 canadiancow|work: lemme add Canada to country list as I restricted it for testing Feb 24 21:24:44 question about android market search: if you have a title of an app called foobar, and users would search for 'foo', do you think it matters whether the title is 'foobar' or should it be 'foo bar' for seo purposes? Feb 24 21:25:06 g00s, you can put "foo bar" in your description, the search looks there as well Feb 24 21:25:19 pfn: ok, thanks Feb 24 21:25:55 canadiancow|work: I added Canada now but it'll take some time for it to propagate - thx a lot! :) Feb 24 21:26:16 why do you need wake locks? Feb 24 21:26:47 nothing pops out as filtering, though Feb 24 21:26:59 shipit, maybe you filtered it from the list of available devices in the console Feb 24 21:27:18 pfn: thx - lemme look Feb 24 21:27:21 Just check the reason on the web market Feb 24 21:27:39 it just says incopatible with no reason Feb 24 21:29:00 shipit: paste output of: aapt dump badging whatever.apk Feb 24 21:29:08 p_l: http://priceonomics.com/headphones/#headphones-for-hackers Feb 24 21:30:22 canadiancow|work: http://pastebin.com/HE9AW89L Feb 24 21:30:46 uses-feature:'android.hardware.screen.landscape' Feb 24 21:30:46 uses-feature:'android.hardware.screen.portrait' Feb 24 21:30:48 canadiancow|work: this is the one that's published and targetSdkVersion is set to 8 Feb 24 21:30:54 Does anyone know what format the ndk-build.mk files are using? Feb 24 21:31:08 Does anyone know a reliable way of determining CPU architecture on an Andrtoid device? Feb 24 21:31:08 Err, Android.mk Feb 24 21:31:13 canadiancow|work: that is affecting it? Feb 24 21:31:18 dunno Feb 24 21:31:22 ive just never seen that before Feb 24 21:31:22 :P Feb 24 21:31:27 should be fine Feb 24 21:31:58 i have no idea what could be causing it Feb 24 21:32:01 that looks fine Feb 24 21:32:08 g00s: I can recommend Superlux and AKG Feb 24 21:32:40 its compatible with my galaxy nexus shipit Feb 24 21:32:42 p_l: did i remember that you lost your headphones ? i thought you mentioned something yesterday Feb 24 21:32:45 i can install it from the market Feb 24 21:32:48 what device are you testing with? Feb 24 21:32:54 canadiancow|work, pfn - from the publish page doesn't look like Samsung Galaxy Nexus S is excluded Feb 24 21:33:11 canadiancow|work: I'm testing it nexus s Feb 24 21:33:30 running ICS? Feb 24 21:33:40 canadiancow|work: yes, 4.0.4 Feb 24 21:33:43 *4.0.3 Feb 24 21:33:45 i have no idea whats wrong Feb 24 21:33:51 but it works fine on my galaxy nexus running 4.0.3 Feb 24 21:33:51 damn Feb 24 21:33:57 canadiancow|work: awesome! Feb 24 21:33:58 wr Feb 24 21:34:00 etf Feb 24 21:34:15 its not rooted or anything? Feb 24 21:35:19 it is rooted Feb 24 21:35:24 but thats irrelevant Feb 24 21:35:24 g00s: no, that was't me Feb 24 21:35:29 *wasn't Feb 24 21:35:36 oops, sorry Feb 24 21:35:40 galaxy nexus s? Feb 24 21:35:49 canadiancow|work: btw can you scan a book where you're at - because I grab the book info from amazon? Feb 24 21:36:05 I'm still using my Superlux HD669 + FiiO E5 p-amp Feb 24 21:36:13 no, i just uninstalled it :P Feb 24 21:36:24 btw, studio closed headphones are good thing for server rooms Feb 24 21:36:37 canadiancow|work: damn I can't figure it out. I also tried running on 4.0.3 emulator and it doesn't work Feb 24 21:44:54 I am making a server application, and want to send snapshots of a particular window back to the client. I know sending screenshots back to the client is possible. But I am only interested in getting a screenshot of a single window. Is this possible? Feb 24 21:45:26 a particular window on what? Feb 24 21:45:30 on android? on windows? Feb 24 21:45:32 the server runs on a desktop Feb 24 21:45:47 i need screenshots from the desktop Feb 24 21:46:08 * Gumboot wonders how far away GPU compute for Renderscript is. Feb 24 21:46:33 dlaroche, so you use the apis available on that desktop Feb 24 21:47:24 Gumboot: why would you want to add that to renderscript? Feb 24 21:47:29 why not simply port over opencl Feb 24 21:48:23 oh, it already does this Feb 24 21:48:24 cool Feb 24 21:48:44 MDijkstra: Because without GPU compute it's _sloooooow_. Feb 24 21:49:22 it depends on what you're computing, of course Feb 24 21:49:34 GPU's will also be very slow on certain workloads Feb 24 21:50:10 I made a video, and it looked a bit crappy, so I fixed some timing issues and made a new video and recorded it at HD, and with the clarity in the recording it actually looks even slower. Feb 24 21:50:51 MDijkstra: I don't think GPUs should be all that slow at mandelbrot sets, even if they're not able to use floating-point. Feb 24 21:51:00 hi all, one question, i am starting programming for android, have a java background... is it worth any book to buy?? or it should be ok with the web Feb 24 21:51:15 GPUs hate not using floating point. They're just like scientists. Feb 24 21:51:30 pokkerface: I recommend the Mark Murphy book,s they're pretty good. But generally, you should be fine with web tutorials. Feb 24 21:51:31 i wonder with windows phone 8, if there will be OpenGL ES or if they will have their DirectX stuff Feb 24 21:51:41 But a book is nice to carry around and ready Feb 24 21:52:08 g00s: directx, definitely Feb 24 21:52:14 i still think instead of renderscript, google should have picked up something more portable Feb 24 21:52:22 but what - thats the question Feb 24 21:52:27 opencl? Feb 24 21:52:28 QubeZ: yeah Feb 24 21:52:33 still doesn't have a lot of traction Feb 24 21:52:36 OpenCL was nvidia, but did they make that an open spec ? Feb 24 21:52:41 CUDA is nvidia Feb 24 21:52:49 ok Feb 24 21:52:51 OpenCL is by the group behind OpenGL Feb 24 21:53:02 so they should have gone with OpenCL i think Feb 24 21:53:04 I'm not sure that's right. Feb 24 21:53:20 I think Apple pushed OpenCL initially. Feb 24 21:53:24 yeah, they did Feb 24 21:53:31 yeah, i think apple worked with nvidia for the 1st impl Feb 24 21:53:35 but the khronos group manages these standards Feb 24 21:53:45 it was in the 9400 Feb 24 21:54:00 I kind of wonder what's nvidia's role in all this Feb 24 21:54:03 Zii did some work porting OpenCL to Android, I believe. They linked an article on it but I didn't bother reading it. Feb 24 21:54:09 Renderscript is what we've got. Feb 24 21:54:24 why would they push something that competes with CUDA? Feb 24 21:54:31 funnily enough, the first more portable SDK was IMHO from ATi Feb 24 21:54:40 ie, they spent a lot of money promoting CUDA Feb 24 21:54:43 MDijkstra: for the same reason they aren't making their own OpenGL version Feb 24 21:54:54 g00s, apple has traditionally used ati in their macs Feb 24 21:55:04 p_l: in that case they shouldn't have bothered with CUDA at all in the first place Feb 24 21:55:08 and cuda is nvidi, so it'd stand to reason that opencl is pushed by ati moreso than nvidia Feb 24 21:55:19 p_l: it seems just plain stupid to first sink millions into CUDA Feb 24 21:55:23 Also, I used Renderscript because I was paid to, and now I've invested time and effort in it and so I want to see some returns. Feb 24 21:55:28 and then start cannibalizing that with a cross-platform standard Feb 24 21:55:29 MDijkstra: CUDA and FireStream SDK happened before OpenCL got any traction Feb 24 21:55:34 Except I got my returns up front, because they paid me to do it. Feb 24 21:55:40 But I want _more returns! Feb 24 21:55:43 _ Feb 24 21:55:48 p_l: yes, so they could've made CUDA an open standard Feb 24 21:56:11 I think nvidia already stamped the word "Open" on CUDA. Feb 24 21:56:16 MDijkstra: even if they wanted to (maybe they did), other manufacturers would have pushed back Feb 24 21:56:18 I don't know if that actually changed anything about it, though. Feb 24 21:56:29 because Nvidia would have had a market advantage with GPUs already available and ready Feb 24 21:56:43 MDijkstra: CUDA would have been useless for that, iirc - it was too much implementation-specific (it's not just an API, it's also a language with a compiler etc. and a much more specific one than the GLSL-style OpenCL) Feb 24 21:57:06 p_l: well, true, it just seems that with some foresight they could've prevented this Feb 24 21:57:12 An expert! Feb 24 21:57:22 p_l: it's also in some ways more flexible than OpenCL Feb 24 21:57:23 MDijkstra: you can't make an omelette without breaking few eggs Feb 24 21:57:34 they were first to market with general purpose vector processing hardware in the GPU though Feb 24 21:57:38 at least in the consumer space Feb 24 21:57:41 Hello may i can ask how should i fix this i am retriving line of text from web page into string and when i call method in tx.setText(and call method in here i get error as i have unhandled CPException and IOException at this class but if i handle this in my class i will override the main class here is code if someone can help me: http://pastebin.com/sjNU8dRN Feb 24 21:57:47 by quite a large margin as well Feb 24 21:57:57 MDijkstra: first to market were crazies with GLSL Feb 24 21:58:03 (for all I know lots of experts have contributed here already, but using less famous handles) Feb 24 21:58:05 *equipped with GLSL Feb 24 21:58:40 p_l: well, sure, but I mean with a rendering pipeline implemented in general purpose vector hw for 90% Feb 24 21:58:55 I'm doing a remoteView.setImageViewBitMap() in a widget, but the image doesn't display. I'm also calling appWidgetManager.updateAppWidget() after the setting of the bitmap, but it doesn't work. Feb 24 21:58:56 Question, if you have time: I have an app that when it sits in the background, and it starts back up (through the recent apps menu or something) it crashes because the Fragment isn't attached to the activity? Feb 24 21:59:05 p_l: iirc the 8800 only had texture filtering units and something else as fixed hw implementations Feb 24 21:59:05 Anybody know why? Do I need to do something else to refresh the widget? Feb 24 21:59:06 MDijkstra: that was GeForce 3 and Radeon 8500, afaik ;) Feb 24 21:59:30 the rest was all done by the flexible fp vector stream processors Feb 24 21:59:57 pfn: http://www.candlepowerforums.com/vb/showthread.php?331176-*NEW*-Fenix-light-at-Shot-show-2012&s=0ad6628f0a7d0355f8682b90f3d2fe15 Feb 24 22:00:20 actually, first gpgpu was somewhere in early 90s, but it didn't catch on Feb 24 22:00:49 p_l: For altogether unrelated reasons I might be interested in that. What was it? Feb 24 22:01:42 Gumboot: I don't remember details, but there was a fully programmable card available as 16bit ISA for IBM PC, with graphics implemented through a DSP iirc Feb 24 22:01:59 Ah. a DSP is probably not what I need. Feb 24 22:02:19 I do remember people talking about programming their graphics cards directly back in those days, though. It may not have been that uncommon. Feb 24 22:02:26 Gumboot: the shader units are essentially DSPs Feb 24 22:02:49 Kinda. Feb 24 22:02:49 Gumboot: what they were talking about was direct access to blitters Feb 24 22:03:09 eventually doing crazy things like constantly switching around palettes on amiga Feb 24 22:03:35 We're well past Amiga in the early 90s, surely. Feb 24 22:03:59 It was the dark days of DOS boxes and pretty much nothing else. Feb 24 22:04:14 Gumboot: Amiga died around halfway through 90s Feb 24 22:04:44 * Gumboot remembers watching that video around 1991. Feb 24 22:04:54 But they were screwed long before that. Feb 24 22:05:00 around 1993 MS even approached Commodore about porting Windows NT for Amiga Feb 24 22:05:10 Gumboot: no, they got screwed in 90s Feb 24 22:05:36 they had several good chances for income, all destroyed by inept leadership Feb 24 22:05:44 I've got an Amiga One X1000 Feb 24 22:05:44 including a licensing deal with Sun! Feb 24 22:05:49 Anyway, I was talking to PC programmers. If they had a blitter to tweak then it was on a dedicated graphics card of some sort. Feb 24 22:06:00 http://venturebeat.com/2012/02/22/symantec-mobile/ Feb 24 22:06:30 Gumboot: yes, the VGA standard included some basic blitters, and people I think dug deeply for every bit of extra power back then into non-standard parts Feb 24 22:06:48 How would you define a blitter to say that VGA had one? Feb 24 22:07:27 Gumboot: a blitter is a common part of graphic devices since ancient times... how else would paint sprites? :) Feb 24 22:07:28 It had a few shadow register thingumies you could use to speed some operations up, but they rarely helped in doing anything useful. Feb 24 22:07:41 We're talking about VGA, here. Feb 24 22:08:02 You did it the hard way. Like you did everything on the PC. Feb 24 22:08:03 Gumboot: IIRC VGA included basic "copy region" operation, didn't it? Feb 24 22:08:15 or at least a very simplified form of it Feb 24 22:08:18 g00s, can't tell what's new with that... darn Feb 24 22:08:20 don't remember much of that time Feb 24 22:08:29 I remember too much of that time. Feb 24 22:08:38 hehe Feb 24 22:09:04 You'd spend too much time configuring the registers to make use of any of the features. I saw a split-screen demo and that was about the only useful thing above and beyond a basic framebuffer. Feb 24 22:09:23 And faster memset, but not fast blit. Feb 24 22:09:39 right Feb 24 22:10:05 * Gumboot wonders if Renderscript will have GPU acceleration before his youtube video finishes uploading. Feb 24 22:10:30 it already does, doesn't it? Feb 24 22:10:38 Eh? Feb 24 22:10:39 * p_l is pretty sure some of the oldest hardware he had seen in action post-286 era used non-standard extensions and drivers for them Feb 24 22:10:41 What platform? Feb 24 22:10:50 Oh, I mean for compute. Feb 24 22:11:06 Gumboot: I think there were examples of using it for computing already Feb 24 22:11:07 oh, that I don't know Feb 24 22:11:17 You can use it for compute, but it uses the CPU. Feb 24 22:11:29 Gumboot: no, on the GPU Feb 24 22:11:35 To its credit, it uses _all_ of the CPUs, which seems to work better than multi-threading in Dalvik. Feb 24 22:11:43 That and it's not Java. Feb 24 22:12:09 any idea why the hell Toast is not showing up as a recognized symbol when i have import android.widget.Toast at the top of my java file? Feb 24 22:12:18 p_l: The plan is that scripts for GPU compute are the same as for CPU, and the platform decides for you which will get the job. Feb 24 22:12:21 fail Feb 24 22:12:24 Only, right now the decision is pretty static. Feb 24 22:12:53 lots of cool stuff in 3.x and 4.0 though Feb 24 22:13:06 can't wait until I'm able to use it ;) Feb 24 22:13:16 Get a pandaboard? Feb 24 22:13:21 I have a gnex Feb 24 22:13:32 * Jug6ernaut doesnt believe you Feb 24 22:13:35 but I can't target 4.0 on phones yet Feb 24 22:13:59 Y u limit yourself to old APIs, when you can just check the API level Feb 24 22:14:12 ^^^ Feb 24 22:14:14 this Feb 24 22:14:33 because the new API's usually determine whether it's feasible to do something Feb 24 22:14:39 What do you do after you've checked the API level? Feb 24 22:14:42 i limit myself because its the easiest thing to do, and gets me 80% of what i need without headaches Feb 24 22:14:49 * g00s runs Feb 24 22:14:51 Call the new methods Feb 24 22:14:54 while you could, for example, implement your own face detection algorithms for pre-4.0 devices Feb 24 22:15:01 You get headaches anyway, g00s :p Feb 24 22:15:01 it's not really feasible as a hobby project Feb 24 22:15:27 at this rate, i have a feeling i will still be saying minSdk = targetSdk = 8 by THIS XMAS Feb 24 22:15:30 I guess you can be one of those apps which claims to be compatible with everything and then only fails when you download it. Feb 24 22:15:35 And try to use it. Feb 24 22:15:39 why wouldn't you set targetSdk to 14 or 15? Feb 24 22:15:43 at least i thought it would be min = target = 9 bu q4 2012 Feb 24 22:16:01 I do that, of course, with ActionbarCompat or Sherlock Feb 24 22:16:08 JakeWharton: i will probably put target = 15 or so when that lint feature is implemented Feb 24 22:16:17 it's just that coding all the fallbacks for this cool stuff is a lot of work Feb 24 22:16:23 the one that warns you if you are using apis < target Feb 24 22:16:25 but you're compiling with 8 Feb 24 22:16:30 romainguy_: Are there changes in the pipeline for compute scripts to support texture-formatted image buffers, by the way? Feb 24 22:16:30 JakeWharton: did you get the email for what you subscribed to? Feb 24 22:16:31 oops > min i meant Feb 24 22:16:34 target can still be 14 Feb 24 22:17:03 yeah, I compile with min = 8, target = 14 Feb 24 22:17:04 QubeZ, I did. Haven't had a chance to take a look yet though Feb 24 22:17:04 should be adt 17 Feb 24 22:17:04 I see nothing wrong with only supporting some features on newer android versions Feb 24 22:17:13 JakeWharton: no worries, great. Feb 24 22:17:19 g00s, compile API != target API Feb 24 22:17:25 JakeWharton: of course Feb 24 22:17:29 all you have to do is set it to 11 or higher so us cool people get the action bar :) Feb 24 22:17:31 SimonVT: It's quite a testing burden, though, isn't it? Feb 24 22:17:32 compile twice, once on min and once on target Feb 24 22:17:32 oh wait, wut Feb 24 22:17:41 Gumboot: How so? Feb 24 22:17:49 I mean, you write an app, it uses a feature.... can people still do anything useful with it when that feature isn't there? Feb 24 22:17:56 pfn: that is a good idea Feb 24 22:18:00 I have an app that compiles with 1.6 but targets 15 Feb 24 22:18:03 nothing wrong with it, but not every feature is an 'addon' you can just take away Feb 24 22:18:14 Eh.. Feb 24 22:18:17 It'd be like early web pages that used javascript. They just sat there completely static when javascript was absent, and they were unusable. Feb 24 22:18:22 Still compliant, but completely useless. Feb 24 22:18:23 of course, that means it's much more difficult to use new apis Feb 24 22:18:24 If they couldn't do anything useful.. Your app would be useless anyway Feb 24 22:18:31 Until webdevs figured out they had to write the whole page twice. Feb 24 22:18:56 anyone know how to use https://android-review.googlesource.com/#/c/32670/ Feb 24 22:18:58 well, simple example, say you're using all this fancy renderscript stuff for image processing Feb 24 22:19:01 you gotta do everything through reflection or put newer code in new directories Feb 24 22:19:07 now you need to have 2.2 support Feb 24 22:19:18 3.0 I think. Feb 24 22:19:30 you dont need reflection or "new directories" Feb 24 22:19:33 are you going to write your entire image processing layer twice so you can work with renderscript? Feb 24 22:19:35 Oh, going backwards after the renderscript dependency. Feb 24 22:19:49 fuck yeeeah, awesome http://www.fanboy.com/2012/02/building-the-millennium-falcon-brick-by-brick.html Feb 24 22:19:54 if you minimum is 2.1+, you can just do if (im on ICS) { newIcsApi(); } else { oldCrappyApi(); } Feb 24 22:19:55 canadiancow|work, if you set target = min you do Feb 24 22:19:58 I wouldn't, I'd rather wait until renderscript is widely supported Feb 24 22:20:00 and then switch Feb 24 22:20:04 MDijkstra: Not just write. Also test. Feb 24 22:20:16 Because if you write it twice, you have to test it twice too. Feb 24 22:20:19 there should be a lint check for people that set min and target to the same value Feb 24 22:20:19 MDijkstra: If it requires rewriting your whole app, sure, it's not worth it Feb 24 22:20:25 ie what I said earlier about compiling twice Feb 24 22:20:47 So what kind of features are new but can be utilised optionally in an app? Feb 24 22:20:58 calendar integration Feb 24 22:21:06 account manager Feb 24 22:21:12 ^, listview appwidgets Feb 24 22:21:23 yeah new resizable widgets FTW Feb 24 22:21:37 * Gumboot knows none of these by name. Feb 24 22:21:45 the contacts API Feb 24 22:21:50 there's tons Feb 24 22:21:57 action bar Feb 24 22:22:07 I'm no android dev. I've pretty much used Android, and Java, as a shim to use Renderscript and nothing else. Feb 24 22:22:30 So, say you have to do without the contacts API. What do you do instead? Feb 24 22:22:45 nothing Feb 24 22:22:53 You're assuming using the contacts api is your core functionality Feb 24 22:22:57 you just don't get things from your app in the contacts list Feb 24 22:22:58 So what did you do with the contacts API in the first place? Feb 24 22:23:06 Gumboot: what have you been doing with RS out of curiosity? Feb 24 22:23:11 publish tweet/facebook/G+ posts to it Feb 24 22:23:14 romainguy_: pm? Feb 24 22:23:14 etc. Feb 24 22:23:19 Gumboot: sure Feb 24 22:24:26 Gumboot: and to answer your question, yes, we're working on being able to sample texture buffers from RS Feb 24 22:26:39 anyone know how to pass params to the AaptExecTask in ant? Feb 24 22:26:49 im not the most expierenced ant Feb 24 22:26:51 more of a cow Feb 24 22:27:11 canadiancow|work, whaddya mean... you use the aapt tag Feb 24 22:27:29 i dont know what that means :P Feb 24 22:28:04 fat cow Feb 24 22:28:15 edit build. xml and change the options to aapt Feb 24 22:29:04 my build.xml has no aapt Feb 24 22:29:29 * pfn has a new sbt plugin for android now too Feb 24 22:29:43 Congrats JakeWharton !!! Feb 24 22:29:50 canadiancow|work, tools/ant/build. xml Feb 24 22:29:57 ? Feb 24 22:29:59 i cant edit that one Feb 24 22:29:59 simpligility, haha thanks :) Feb 24 22:30:23 should be awesome to work with antixian, bob and gang Feb 24 22:30:33 canadiancow|work, copy stuffbthat you needboutbof it into yourbown Feb 24 22:30:55 oh yeah i'm looking forward to it. will finally be doing Android work which will be nice too Feb 24 22:31:04 I swear I hate the space bar on soft keyboards Feb 24 22:31:34 so i have to duplicate the entire ?? Feb 24 22:31:37 Oops, you meant to press space but instead you'll hit period. Feb 24 22:31:43 canadiancow|work: awesome isn't it. Feb 24 22:31:48 canadiancow|work, pretty much Feb 24 22:31:57 but Feb 24 22:32:01 but Feb 24 22:32:05 canadiancow|work, what do you need touchable exactly? Feb 24 22:32:06 canadiancow|work: I wish there were a few more hooks and overridable elements Feb 24 22:32:11 canadiancow|work: no buts. enjoy this shit. Feb 24 22:32:12 to change Feb 24 22:32:36 package name Feb 24 22:32:43 ah, so. Feb 24 22:32:59 check out my sbt plugin, it drops right into an ant project and works Feb 24 22:32:59 https://android-review.googlesource.com/#/c/32670/1/anttasks/src/com/android/ant/AaptExecTask.java == <3 Feb 24 22:33:04 I actually have a target that modifies the package attribute in the manifest. Feb 24 22:33:07 i dont know what sbt is Feb 24 22:33:30 canadiancow|work: oh god oh god oh god Feb 24 22:33:31 sbt is another build tool Feb 24 22:33:37 please tell me that this will be in upcoming sdk tools Feb 24 22:33:37 lov wut Feb 24 22:33:41 it will Feb 24 22:33:42 r17!!!! Feb 24 22:33:44 i will kiss you Feb 24 22:33:48 uh oh Feb 24 22:33:52 well ok Feb 24 22:33:53 what's new. Feb 24 22:33:53 * canadiancow|work puckers Feb 24 22:33:58 I will just say I will kiss you Feb 24 22:34:03 but not actually do that, because we're dudes. Feb 24 22:34:08 how bout you buy me a beer at i/o Feb 24 22:34:13 :D Feb 24 22:34:18 I think this can be arranged, assuming I get to I/O Feb 24 22:34:27 doit Feb 24 22:34:35 bromance Feb 24 22:34:38 hot Feb 24 22:34:43 I hope I get to go to I/O Feb 24 22:34:44 I want eclipse on android Feb 24 22:34:49 hmm rename Feb 24 22:34:58 of course, that won't happen until we get octocore processors and 16gb of ram Feb 24 22:35:01 in a tablet Feb 24 22:35:07 anyway back to my main issue Feb 24 22:35:08 I'm doing a remoteView.setImageViewBitMap() in a widget, but the image doesn't display. I'm also calling appWidgetManager.updateAppWidget() after the setting of the bitmap, but it doesn't work. Feb 24 22:35:15 Any ideas? Feb 24 22:35:16 how do i not have to duplicate the entire file Feb 24 22:35:22 Widget development is hard and annoying. Feb 24 22:35:56 canadiancow|work, you don't, what flag do you want to change exactly Feb 24 22:36:07 canadiancow|work: er Feb 24 22:36:13 canadiancow|work: you just copy/paste the tag you want to override Feb 24 22:36:17 and then edit it Feb 24 22:36:23 huh? Feb 24 22:36:36 if you want to modify ... Feb 24 22:36:42 then you copy all of that to your build.xml file Feb 24 22:36:46 then modify it as you see fit in your build.xml file Feb 24 22:36:50 you need to copy and paste the entire targetbblock Feb 24 22:36:56 [17:31:34] so i have to duplicate the entire ?? Feb 24 22:36:58 yes, i realize that Feb 24 22:37:02 yes Feb 24 22:37:02 its a massive fucking target though :( Feb 24 22:37:08 well Feb 24 22:37:10 it's not the whole file :P Feb 24 22:37:13 they should split it up Feb 24 22:37:28 sbt :p Feb 24 22:37:28 canadiancow|work: are you just modifying the packagename? Feb 24 22:37:33 also what is this sbt Feb 24 22:37:33 yes Feb 24 22:37:38 just the package name Feb 24 22:37:46 scala build tool Feb 24 22:37:49 scala build tool Feb 24 22:37:50 oh pah Feb 24 22:37:53 com.canadiancow.awesomeapp and com.canadiancow.awesomeapp.paid Feb 24 22:37:56 get out of here, scala pusher Feb 24 22:37:59 *crappyapp Feb 24 22:38:04 supposed to be simple, but it sure isn't Feb 24 22:38:06 CraptionBar Sherlock Feb 24 22:38:09 gggg Feb 24 22:38:13 qq Feb 24 22:38:15 hahaha Feb 24 22:38:16 canadiancow|work: so, here's a couple of alternatives Feb 24 22:38:35 canadiancow|work, I solve that be using app and lib projects Feb 24 22:38:35 canadiancow|work: 1) turn your app into a library. Create 2 app projects; .awesomeapp and .awesomeapp.paid Feb 24 22:38:55 then i have to duplicate the manifests Feb 24 22:38:58 :( Feb 24 22:38:59 yeah, that's how I'm doing it Feb 24 22:39:00 2) Create an auxiliary xml file that your build.xml file includes, which modifies the AndroidManifest.xml file as one of its targets. Feb 24 22:39:14 #2 is actually how we're doing it Feb 24 22:39:18 the nice thing you get with library projects is that you can easily customize more than just the package name Feb 24 22:39:22 if you want to eventually Feb 24 22:39:40 MDijkstra: the downside is that sometimes you have to duplicate things even if nothing changes :P Feb 24 22:39:41 cant i just.... s/packageName="whatever"/packageName="whatever.paid"/ Feb 24 22:39:49 canadiancow|work: yes, see #2 Feb 24 22:39:55 lov: true, but the amount of code duplication is pretty minimal Feb 24 22:40:00 cant i just tap into the aapt packager task thingy :( Feb 24 22:40:02 MDijkstra: depends on the size of your manifest :P Feb 24 22:40:10 canadiancow|work, if you use fully qualified names for activities and services and stuff Feb 24 22:40:17 yeah Feb 24 22:40:21 we do Feb 24 22:40:24 because we knew this was coming :) Feb 24 22:40:27 huzzah! Feb 24 22:40:30 lov: the only pain is the search subsystem Feb 24 22:40:30 also! Feb 24 22:40:34 when your R.java file is generated Feb 24 22:40:34 then that's rast Feb 24 22:40:38 easy Feb 24 22:40:39 you may want to modify its packagename and location. Feb 24 22:40:42 oh fuck no Feb 24 22:40:44 FUCK Feb 24 22:40:45 lov: ie, you have to define some constants in code there Feb 24 22:40:45 NO Feb 24 22:40:47 haha Feb 24 22:40:50 didn't think of that one did you. Feb 24 22:40:54 fa;lkjfds;ldsakjfsa;lkfd;lkjdsalkjfdsfdsa;lkjfdsa Feb 24 22:40:58 i did not :( Feb 24 22:41:02 welp! Feb 24 22:41:15 SO! Feb 24 22:41:17 lib projects makes this easy Feb 24 22:41:19 that's actually not hard at all. Feb 24 22:41:25 s/foo.bar.baz/foo.bar/ Feb 24 22:41:28 mv R.java .. Feb 24 22:41:36 though you'll probably want to set some absolute paths Feb 24 22:41:51 I actually set up a macro target in ant for this Feb 24 22:42:04 opensource or it didnt happen Feb 24 22:42:21 lolno Feb 24 22:42:26 look up ant macros Feb 24 22:42:29 i'll give you $5 Feb 24 22:42:53 I googled some ant regex shit that just looks for old package and substitutes new package :p Easy solution! Feb 24 22:43:18 SimonVT: and it deals with R.java? Feb 24 22:43:34 oh yea, it renames manifest, imports and xml namespaces :p Feb 24 22:43:36 Then builds Feb 24 22:43:37 win Feb 24 22:43:49 [17:42:03] opensource or it didnt happen Feb 24 22:43:53 if you don't clean first should be able to use the original r. java Feb 24 22:43:56 copy apk, git rebase --hard HEAD Feb 24 22:44:35 Right, a sec Feb 24 22:47:28 oh right, it doesn't fix manifest package.. I use another ant target for that :p Anyway, imports and xml http://pastebin.com/WbACXuHP Feb 24 22:47:38 All rights goes to random page on the interweb I can't remember Feb 24 22:48:39 Just remember to not use R in any classes in net.simonvt.awesomeapp .. When R is moved to .paid, it fux up :p Feb 24 22:49:34 The --rename-package thing goes around this by just adding a R import to all of them Feb 24 22:49:51 --rename-manifest-package that is Feb 24 22:50:36 wait what im confused Feb 24 22:50:39 so where does this go Feb 24 22:50:55 i guess in prebuild? Feb 24 22:51:00 or its a dependency of.. Feb 24 22:51:06 or Feb 24 22:51:08 oh Feb 24 22:51:32 Feb 24 22:51:36 ant build-awesomeapp Feb 24 22:52:47 man Feb 24 22:52:51 i have the most odd bug Feb 24 22:53:05 Android 2.1 isn't displaying this view that's clearly set to visible Feb 24 22:53:25 works fine on 2.2+ Feb 24 22:53:25 Still haven't figured that one out? :p Feb 24 22:53:44 nope Feb 24 22:53:59 do you really care about 2.1? Feb 24 22:54:05 i do Feb 24 22:54:20 i write libraries so I care about all the elderly platforms Feb 24 22:55:20 soon the elederly platforms will go into retirement and put a budget strain on medicare Feb 24 22:56:33 It already puts a strain on JakeWharton Feb 24 22:56:36 canadiancow|work, ifvyou wanna try out sbt and my plugin sometime ill walk youbtrough it Feb 24 22:56:49 maybe if this doesnt work :P Feb 24 22:56:50 looks like eclipse indigo got an update today Feb 24 22:58:04 so if eclipse is pissing you off (some bug) might as well get SR2 now Feb 24 22:59:09 http://download.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/index.php Feb 24 22:59:12 wait so SimonVT , how do you fix the manifest package? Feb 24 22:59:35 g00s you're just getting it now? Feb 24 22:59:48 Does setAdapter / notifyDataSetChanged need to be called from the main thread? Feb 24 23:00:01 canadiancow|work: it was just released today :D Feb 24 23:00:09 and ive had it all day! Feb 24 23:00:10 :P Feb 24 23:00:10 oh yeah, ADT17 Feb 24 23:00:17 no Feb 24 23:00:19 not adt17 Feb 24 23:00:20 but is adt 17 out ? Feb 24 23:00:23 oh? Feb 24 23:00:25 preview release is Feb 24 23:00:31 well, yeah Feb 24 23:00:35 close enough Feb 24 23:01:00 canadiancow|work: Defined in a properties file, copied over by a different target Feb 24 23:01:11 was really hoping for jar library projects, but does not seem to be in there Feb 24 23:01:16 why can't they support .apklib already :( Feb 24 23:01:18 yeah! Feb 24 23:01:23 :-/ Feb 24 23:01:25 unzip whatever.apklib, add to build path Feb 24 23:01:32 done Feb 24 23:01:38 ADT18 released Feb 24 23:01:46 hah, if only Feb 24 23:02:06 go getyour copy of adt 18.1 http://www.adt.com/ Feb 24 23:02:06 putting them in a .jar is probably a lot more complicated Feb 24 23:02:07 there's some other good stuff being worked on too that's at least as important. Be patient. Feb 24 23:02:44 Well it makes no difference to me, thankfully. I'm lobbying for my users. Feb 24 23:02:52 like me Feb 24 23:02:52 ! Feb 24 23:03:02 like cow Feb 24 23:03:10 but you're not dumb Feb 24 23:03:18 for a bovine Feb 24 23:03:51 JakeWharton: hate to take advantage of your presence here, but I was wondering why in actionbarsherlock the minSdk is set to 4, and targetSdk is 13, but if I try to build with anything less than 13, I can't do it. what am I doing wrong? Feb 24 23:03:53 it's the people who try to use ABS as a .jar or constantly complain about having to depend on a library project that are the ones I'm thinking of Feb 24 23:04:14 nothing, v3.x requires compilation against 3.2 Feb 24 23:04:15 I am one of those Feb 24 23:04:35 JakeWharton: oh ok, cool. including the samples, right Feb 24 23:04:36 mrenouf|work, yeah but you're not dumb either, nor do you complain Feb 24 23:04:50 readme, indeed Feb 24 23:04:59 thank you for the help + actionbar Feb 24 23:05:09 no problem, let me know if you have any other questions Feb 24 23:05:12 or post to the group Feb 24 23:05:14 well, not publically anyway :-) Feb 24 23:05:58 Well, I emailed xav and tor about it but got no response yet. I hope that's because they're busy working on it... Feb 24 23:06:50 bundling in .jars would be nice because then I could deploy artifacts to maven central Feb 24 23:07:03 but really i'd be happy with .apklib Feb 24 23:07:14 anything to allow it to be included as a single object in the libs/ folder Feb 24 23:08:00 btw there is a bit of discussion about that happening on adt-dev Feb 24 23:08:11 i think i got it working Feb 24 23:08:12 :333 Feb 24 23:08:14 would be good to get e.g. JakeWharton to weigh in tere Feb 24 23:08:26 to direct future dev of xavier and team Feb 24 23:08:30 i read that as "to get e.g. JakeWharton into a tree" Feb 24 23:09:10 is there a well defined java (single-method) java interface that takes a single generic argument? Feb 24 23:09:33 canadiancow|work, Hmm.. I could pick up owling as a hobby... Feb 24 23:09:35 preferably void. There's Guava's Function Feb 24 23:09:50 maybe callable Feb 24 23:10:16 Callable declares call(); Feb 24 23:10:27 guess not Feb 24 23:10:32 oh well Feb 24 23:10:39 good > perfect I guess Feb 24 23:11:06 i am so smart Feb 24 23:11:07 s m r t Feb 24 23:12:07 simpligility, i'll take a look tonight, on my way out the door. thanks for the tip Feb 24 23:13:26 SimonVT it worked <3 Feb 24 23:13:43 yay ^_^ Feb 24 23:14:01 Feb 24 23:14:18 id be tempted to change that to "${from_package}.R" Feb 24 23:14:24 so that any fully qualified instances will work Feb 24 23:14:32 package from.package Feb 24 23:14:40 no Feb 24 23:14:44 Want to change that as well? Feb 24 23:14:45 :p Feb 24 23:14:48 oh Feb 24 23:14:52 no Feb 24 23:14:55 but thats why the .R Feb 24 23:15:00 oh Feb 24 23:15:03 Right! Feb 24 23:15:08 i guess that would be bad if i had com.zynga.whatever.Racism Feb 24 23:15:18 haha Feb 24 23:15:22 nah but even there it should work Feb 24 23:15:25 if it changed it everywhere Feb 24 23:15:39 debug: Feb 24 23:15:39 BUILD SUCCESSFUL Feb 24 23:15:39 Total time: 2 minutes 54 seconds Feb 24 23:15:45 why is git diff not working on the github pull of cyanogenmod for me? i should be able to run git diff and it show me my changeset but it keeps giving me a usage error Feb 24 23:15:48 that wasnt even a full clean Feb 24 23:15:57 go to #Cyanogenmod safemode Feb 24 23:17:05 On an unrelated note.. The order for your BlackBerry PlayBook tablet is now being processed and we expect to ship the unit to you within the next 72 hours. Feb 24 23:17:59 write me a guide on how to go from my apk to a bb app Feb 24 23:17:59 :) Feb 24 23:19:16 1. download your app from market cus your project isn't set up 2. copy apk to computer 3. go to website and use their online thing to sign and stuff 4. publish Feb 24 23:19:47 ah, have to use the repo command from them to do git diffs ...must be an env variable issue. Feb 24 23:25:21 what the fuck. Feb 24 23:25:37 Anyone here using Intelli J Idea and had problems with app signing and google maps? Feb 24 23:26:05 Because if I create a signed .apk and install it, the map doesnt work. If I start it via usb cable.. its working just fine Feb 24 23:28:17 and thats bugging the hell out of me. Feb 24 23:32:26 DashCC: probably different signatures Feb 24 23:33:30 DashCC: you probably made a key for your debug.keystore and not for your production signature Feb 24 23:44:15 chocolate cake with breakfast, yeaaah ! http://biosingularity.com/2012/02/24/chocolate-cake-breakfast-could-help-you-lose-weight/ Feb 24 23:46:26 * g00s wonders id there is something like dbUnit for android Feb 24 23:47:28 herriojr: naw, its the right key and keystore Feb 24 23:47:44 g00s: quite frankly, just eating breakfast is what will do it. Feb 24 23:48:18 overwhelmingly, people who eat breakfast regularly maintain healthier weights than those who do not. Feb 24 23:49:05 but, you know, causality and causation are complicated :) Feb 24 23:51:15 indeed Feb 24 23:54:07 wow, cool http://diydrones.com/notes/ArduPilot http://code.google.com/p/ardupilot-mega/wiki/Mission Feb 24 23:54:27 jasta: rojo might have one of these set on you Feb 24 23:54:39 does the ant "project name" (as set by 'android update project', in build.xml's field) have any effect on the resulting .apk, other than its filename? Feb 24 23:54:40 g00s .. if you abstract your db access code into java only code and then reuse that in the android access layer Feb 24 23:54:54 i'm sure jake has a drone watching over me Feb 24 23:55:00 you can use dbunit straight out of the box on the client rather than fuzzing around with the device Feb 24 23:55:22 simpligility: hmm Feb 24 23:55:43 I know .. not idea Feb 24 23:55:45 ideal Feb 24 23:56:10 I got a whole bunch of testing of my db later happening just with normal integration tests Feb 24 23:56:34 instrumentation Feb 24 23:56:43 but something like dbunit on device would be nice Feb 24 23:57:06 as would be liquibase Feb 24 23:58:21 ot, but which sirtiun does resveratrol upregulate ? Feb 24 23:58:27 its friday and slow :) Feb 24 23:59:26 g00s: come to ##nutrition Feb 25 00:00:03 readme: nobody there really Feb 25 00:00:04 :( Feb 25 00:01:07 g00s: yeah but i'm there and if you wait around sometimes a few people are talking... even here there's about 10 people who are usually active. the diff in nutrition is that only the active people are there. Feb 25 00:01:21 lolz Feb 25 00:01:26 I've had some good conversations in there. Feb 25 00:04:00 that channel is awful Feb 25 00:04:27 i think its only trolls because i refuse to believe anyone can be that stupid Feb 25 00:04:46 who did you speak with? Feb 25 00:05:02 all of them were talking Feb 25 00:05:09 of course, the first thing i install with a fresh eclipse install is http://www.eclipsecolorthemes.org/ Feb 25 00:05:30 except it wasnt talking it was like they were vomiting on me Feb 25 00:05:58 storkme: wow that's quite unpleasant. sorry to hear about your bad experience. Feb 25 00:06:15 except it wasnt vomit because all they eat is like celery and if they could vomit thwyd probably die due to malnutrition and overexertion Feb 25 00:06:55 g00s: and what theme? I use the Netbeans one, because their default is better than Eclipse default. Feb 25 00:07:21 i use a dark and light one depending on the time of day Feb 25 00:07:28 at night i use a dark one Feb 25 00:27:56 Having a bit of trouble with getting adb to connect with my phone, it's not showing up on the list of devices, any ideas? OSX, Thunderbolt with CM 7.1.1 Any ideas? Feb 25 00:30:19 How are OS OTA updates delivered to tablets? Feb 25 00:30:46 MalRD: depends on vendor, it seems Feb 25 00:31:06 I created a CustomAdapter that extends ArrayAdapter, In getView I set the background color depending on values of the objects, but how can I make it update the current view when an item is changed? Feb 25 00:32:23 I got my dad one of those Acer tablets around Thanksgiving and it has some issues that are (supposedly) fixed by an OS update, but he's telling me his device doesn't have it and Acer told him Google pushes the updates. It looks like it has been out for almost two months now. Feb 25 00:32:58 might need to manually check for an update in the settings Feb 25 00:33:03 phuzion: did you follow all the steps listed here? http://developer.android.com/guide/developing/device.html#setting-up Feb 25 00:34:47 leslie: I just tried and it said there was no update. I was going to manually push the update before he leaves, if I can't find a reason it hasn't updated. Feb 25 00:35:15 hm. not sure then, sorry Feb 25 00:36:15 The more I look, the more it looks like it may not be available for the US. Feb 25 00:36:47 but any Android news seems to be the same article copied across 180 different blogs. Feb 25 00:36:51 oh, the joys of android updates Feb 25 00:37:31 updates are overrated Feb 25 00:37:44 indeed, froyo FTW ! Feb 25 00:37:54 Not when the alternative is this buggy ass Acer crap. Feb 25 00:37:56 I'm still on ios 4.0.2 or whatever on all my idevices (ipod and ipad) Feb 25 00:38:04 Although Feb 25 00:38:16 I don't see why I'd think that Acer's next update would be any less buggy. Feb 25 00:38:45 * g00s is excited about the iPad 3. i might get my first tablet ! Feb 25 00:39:01 display should be good enough for kindle reading Feb 25 00:39:10 i didnt think the displays on 1 & 2 were good Feb 25 00:39:35 * g00s wonders if canon has any software for the iPad Feb 25 00:39:36 they weren't Feb 25 00:39:53 displays on 1 and 2 were great Feb 25 00:39:56 ipad3 might be my first tablet too Feb 25 00:39:58 you don't need high dpi to read ebooks Feb 25 00:40:08 pfn: i do :D Feb 25 00:40:10 how come tablets caught on so fast and netbooks didn't? Feb 25 00:40:15 considering the printed page i something under 250dpi Feb 25 00:40:18 need, maybe not. but it's nice to have Feb 25 00:40:18 because netbooks are useful! Feb 25 00:40:23 hah Feb 25 00:40:42 i still have my eee pc from 4 years ago, i barely use it Feb 25 00:40:43 iPad 1 and 2 are only like 130 PPI Feb 25 00:40:43 people wanted netbooks to be little laptops, and realized their performance sucked Feb 25 00:40:50 or more like 3 years, whateva Feb 25 00:41:07 hello why is this giving me an error: cv.put(columnscomplete[counter], null); Feb 25 00:41:21 talking about SQLLite, creating an entry Feb 25 00:41:23 leslie: Yeah, but the iPad 3 is rumored to be around the same DPI as the iPhone 4 and 4S Feb 25 00:41:46 Surfer2010: pastebin? Feb 25 00:42:00 pastebin? ? sry what do you mean? Feb 25 00:42:00 An error! How descriptive Feb 25 00:42:05 phuzion: not really, iPhone 4 is about 330 PPI, iPad 3 is rumoured to be about 260 PPI. but that's still decent. Feb 25 00:42:46 "the method put(String, String) is ambigious for the type ContentView Feb 25 00:43:12 Surfer2010: it's hard to deduce what you're doing with a single line of code. it helps to paste the entire function or relevant lines to a pastebin website and drop the link in here for people to help you Feb 25 00:43:21 e.g. http://pastebin.com/ Feb 25 00:43:25 * pfn updates his sbt plugin Feb 25 00:43:30 now it works more or less pretty well Feb 25 00:43:30 ahh okay i will do that :) Feb 25 00:43:31 i wish the iPad 3 was thinner and not thicker though, it could suck holding it long periods for reading Feb 25 00:43:37 leslie: Hmm, thought I read somewhere that they were rumoring that the screens were going to be about the same DPI. Oh well, 260 is great. We're getting offtopic though, lo Feb 25 00:43:40 lol* Feb 25 00:44:20 Surfer2010: null could be any object.. Which of the methods should it call? Feb 25 00:44:24 I've got a Galaxy Tab 10.1 and it's good enough for me, for reading ebooks Feb 25 00:44:36 The one that takes a String? Or an Integer? Maybe a Float? Feb 25 00:45:04 you guys should get the Galaxy NOTE instead of iPad3! haha http://www.samsung.com/global/microsite/galaxynote/note/index.html?type=find Feb 25 00:45:23 it's a phone! it's a tablet! it's both!! Feb 25 00:45:41 http://pastebin.com/1MHW3KTt Feb 25 00:46:29 creating an entry in a database ... it's not possible to fill just ... the first 5 elements and leave the rest empty correct? Feb 25 00:46:52 what's the error? Feb 25 00:47:04 "the method put(String, String) is ambigious for the type ContentView" Feb 25 00:47:11 Surfer2010: you can set them null, theoretically Feb 25 00:47:31 beacuse those other values should be edited later on Feb 25 00:47:49 You don't have to add them to the contentvalues Feb 25 00:48:02 ahhhhh THANKS :) i found it :) thanks phuzion Feb 25 00:48:09 https://github.com/pfn/android-sdk-plugin Feb 25 00:48:13 finall Feb 25 00:48:36 those entries have been defined as INTEGER so i had to put 0 instead of nulll Feb 25 00:48:38 thanks :) Feb 25 00:48:49 np Feb 25 00:49:38 is there a way to apply a style using methods to a view? Feb 25 00:50:32 synic, yo, have you been using my local_build.xml to build? Feb 25 00:50:47 what does "java.lang.ArrayIndexOutOfBoundsException" mean .... = i tried to write in column 10 having only 8 ? Feb 25 00:51:19 Surfer2010: Yes. Feb 25 00:56:03 on this Line: Cursor c = ourDatabase.query(DATABASE_TABLE, columns, null, null, null, null, null); does "columns" have to have ALL columns or could it be online ... the first 5 out of 20 ? Feb 25 00:56:15 online = only Feb 25 00:56:46 columns A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. Feb 25 00:57:55 sorry i'm not sure if i translated it correct ;) ... columns = those which i want to ... edit/view/... Feb 25 00:58:11 Yes, those you want your query to return Feb 25 00:58:17 okay Feb 25 01:13:56 My project is crashing seemingly before anything is run - I set an early exit on the launcher method so I could see if the problem was somewhere before my code, and it crashed then. I compared it to my HelloAndroid project, totally by the book, and there, the code appears under a package. In my project, it's under a bunch of directories. Could this be the problem, and how can I fix it? Feb 25 01:16:01 is there a way to define an interface that inherits a class? Feb 25 01:16:06 freecandy, you find out the cause of your crash by reading the device's log output Feb 25 01:16:11 pigsnowball, interfaces can only extend interfaces Feb 25 01:16:38 so i can't guarantee that what is being passed is also X, like Activity Feb 25 01:16:45 grr.. Feb 25 01:21:00 just gotta do it right Feb 25 01:24:09 I am not yet fluent in log-reading, but it says "caused by," so: 11-16 19:52:21.567: E/AndroidRuntime(3039): Caused by: java.lang.ClassNotFoundException: com.google.zxing.client.android.CaptureActivity in loader dalvik.system.PathClassLoader@44e8e258 Feb 25 01:25:28 Which makes sense, because in the manifest file, it says com.google.etc, while in the directory tree, that's under com/google/zxing/etc., so I can see why it couldn't find it. Feb 25 01:28:00 But when I try moving my code to a different folder with an eye towards putting it all in a com.google.zxing.etc package that the compiler would find, it fills up with errors. Feb 25 01:28:15 for some reason it is not displaying me what is inside the DataBase ... and i can't find the problem since there are no errors compiling it ... but to be honest it's quite some code :( could someone anyway look over it? Feb 25 01:30:00 freecandy, so fix the manifest Feb 25 01:33:25 http://pastebin.com/GbEatfvS <--- is this correct even if there are more than the listed 5 clomuns in the Table ? Feb 25 01:38:05 * Gumboot likes the word clomun. Feb 25 01:38:23 ooh Feb 25 01:38:26 i love clomuns Feb 25 01:38:30 i eat them for breakfast everyday Feb 25 01:38:47 I like a big stack of them. Feb 25 01:39:14 ^ Feb 25 01:40:07 6yjenter Feb 25 01:51:11 Tell the world that Nokia and Microsoft are together, at last. Feb 25 01:51:13 Tell the world that finally, there’s a device everyone can agree on. Feb 25 01:51:26 Tell the world that Nokia has the hardware, Microsoft has the software, and the device you’re pushing (not the devices, not the line of phones, the one device, even if there ARE multiples) is the greatest thing since sliced bread. Feb 25 01:51:30 Hmm Feb 25 01:51:51 Is this guy writing a news story, or is he getting payola from Microsoft/Nokia? Feb 25 01:52:17 This is the kind of thing you read in the Onion... Feb 25 01:52:56 yea Feb 25 01:53:11 wp7 may look nice sometimes Feb 25 01:53:19 nokia's lumia phones may look nice Feb 25 01:53:25 but then, it feels kinda limited Feb 25 01:53:38 i want the functionality of winmo with the good UI of wp7 Feb 25 01:55:32 im trying to figure out how to version my app from the standpoint of svn... do you guys typicall do x.y.z where x is major change, y is minor feature, and z is bug fixes? Feb 25 01:55:32 http://mobilewars.tumblr.com/post/17229292370/mobile-wars-part-1 Feb 25 01:56:15 im at the decision point to branch/tag my trunk code, trying to figure out which way to head Feb 25 01:57:18 Also they keep talking about wp8's tiles...but Android is designed to have a flexible home screen. There are plenty of tile-based Android homescreens out there. Feb 25 01:58:03 So all this talk about tile interfaces goes out the window with that. Then they will say it has a consistent design from phone to phone, but that's like Henry Ford selling every Model T in one color Feb 25 02:04:10 QubeZ: I would name branches after what their purpose is Feb 25 02:04:30 readme: what do you mean? not 1.0.x? Feb 25 02:04:48 QubeZ: If the purpose is to create a v1.0, then sure, name it 1.0 Feb 25 02:05:20 but you might also want to refactor some part of it, or implement some feature, or maybe someone is forking a branch for their own development.. people often just name the branch after the purpose Feb 25 02:05:36 i thought you work from trunk and use that as the "purpose" then when you are ready to release, you make a branch and tag. So you fix bugs in trunk, merge them into branch then do a new tag for that bug fix. Feb 25 02:05:40 all the while working from trunk. Feb 25 02:05:47 readme: do you work from branch? Feb 25 02:05:55 if you're on a team, you do Feb 25 02:06:18 hmm, someone told me, possibly erroneously, that you should always work from trunk Feb 25 02:06:21 you make several branches for developing different stuff, then you merge it into trunk after it's been tested and such, then you test again Feb 25 02:06:28 nah, there's such thing as creating a feature branch. Feb 25 02:06:48 but if you're solo, you might as well just always work in trunk. Feb 25 02:06:48 right, thats what i thought but thats not what i was told Feb 25 02:07:03 readme: solo right now, so I can always change later Feb 25 02:07:24 if you're going to go in a direction that would significantly alter the project and you aren't sure if you want it in trunk, you make a branch Feb 25 02:07:44 readme: yup, got it. Thank you! Feb 25 02:08:51 alright cool, i just branched my trunk to 1.0.x and also a tag of 1.0.0 Feb 25 02:08:59 www.todomapr.com is alive :) Feb 25 02:09:19 should be in the Market in 2-3 weeks, just doing a small beta program to make sure all is well Feb 25 02:09:32 With git, if I'm doing something small I do it in trunk. If it's a little more complex, I do it in a branch. Feb 25 02:10:02 Ologn: makes sense, i've done that before too... then if the idea doesn't pan out, i trash it and go back to my prestine trunk Feb 25 02:11:37 Adwhirl has an Adsense option. I wonder what this is. Maybe I put by general Adsense ID in, and get Adsense mobile ads on my app as backfill. Feb 25 02:43:01 Hi, just got transformer prime Feb 25 02:43:17 plug it in to charge it turns on for a second shoes empty battery sign and screen goes black Feb 25 02:43:56 shows* Feb 25 02:44:05 mantas322, wrong channel Feb 25 02:44:09 try #android Feb 25 02:44:28 k thanks Feb 25 02:44:35 k Feb 25 02:48:11 i love you Feb 25 02:49:27 NoorulIslaam, what the..? Feb 25 02:53:03 what's up nerds Feb 25 02:53:24 t0mless: we're well, you? Feb 25 02:53:38 Finally taking a week off of coding Feb 25 02:53:40 freezing, but otherwise I'm well Feb 25 02:53:40 so tired Feb 25 02:53:48 t0mless: same here, in MN **** ENDING LOGGING AT Sat Feb 25 02:59:58 2012