**** BEGIN LOGGING AT Fri Nov 22 03:00:00 2013 Nov 22 03:00:03 Sorry, bankai_..., and to you as well Leeds, but I'm at a loss. Nov 22 03:00:13 at a loss with what? Nov 22 03:02:29 I have a huawei h866c here, with a corrupted os (Gingerbread 2.3.6). I'm in need of help with trying to find a stock ROM. Nov 22 03:02:44 yup, wrong channel Nov 22 03:02:45 could have just started with that ... Nov 22 03:02:46 :) Nov 22 03:03:00 * Netgodddd sighs Nov 22 03:03:09 Thanks then Nov 22 03:03:10 read the topic, kiddo :) Nov 22 03:03:19 Netgodddd: you could try #android-root, but don't expect too much... otherwise, you're probably going to end up trawling xda-developers, or just lots of Nov 22 03:03:26 oh... didn't want advice then Nov 22 03:03:45 haha Nov 22 03:08:44 hey guys Nov 22 03:12:13 hi Nov 22 03:12:50 I have a question here, can I ask here? Nov 22 03:13:15 no Nov 22 03:14:22 you get 1 question Nov 22 03:14:24 u just used it Nov 22 03:14:26 sorry Nov 22 03:15:54 seriously though dont ask to ask Nov 22 03:18:04 lol kidding. So I'm building an app for user to upload their photos and get Rate/Comment. Question is how do I make the comment/like system? Nov 22 03:18:31 Just started learning a month ago. Too newbie :( Nov 22 03:18:32 I'm pretty sure there is 100 packages like that already Nov 22 03:18:49 but then android Nov 22 03:18:53 that is super nebulous of a question Nov 22 03:19:35 Really? I found Socialize, but it's too complicated for me. Nov 22 03:19:52 And I don't want the comment to be shared on facebook etc Nov 22 03:20:53 I have no idea on how to make it from scratch. But I already have the user management system. So I might just use that of course. Nov 22 03:29:22 piracyd3: are you asking how to make the server side, how to communicate, how to implement a rating/comment interface, all of the above? Nov 22 03:30:38 Not the full code though I know you guys wouldn't help me with that. Nov 22 03:30:45 Well at least the algorithm is fie Nov 22 03:30:47 fine* Nov 22 03:31:16 what algorithm? Nov 22 03:31:26 lol Nov 22 03:32:27 I have come up with a table in db which has comment(varchar), from_user_id(int), to_photo_id(int). Which basically maps which user comments to which photo Nov 22 03:33:28 that doesnt look very good Nov 22 03:34:12 why not? I too am somewhat of a db noob Nov 22 03:34:27 I don't know if it works in a long term Nov 22 03:38:31 nothing wrong with that, I think Nov 22 03:39:49 i would do a document store Nov 22 03:39:53 can anyone help me make it so my java app will listen for a key press (physical buttons, not softkeys) and then handle it? Nov 22 03:39:57 photo { comments {} } Nov 22 03:40:06 sample code? Nov 22 03:40:14 without a text box Nov 22 03:40:38 (edittext) Nov 22 03:40:49 desmin88: yeah, json exchange would be good in this case. thanks Nov 22 03:41:51 ficklepickle: onItemClick() with some layout id blabla Nov 22 03:42:17 eh wait, physical buttons? Nov 22 03:42:22 yes Nov 22 03:42:34 like do something when i press middle button, or volume buttons Nov 22 03:43:44 ficklepickle: google "android detect hardware menu button" Nov 22 03:44:37 ficklepickle: presumably you mean while your app is running, not all the time? Nov 22 03:44:59 while its running Nov 22 03:45:06 Jebus writing javadocs takes a long time o.O Nov 22 03:45:14 i should really get into the habit of writing them as i go Nov 22 03:54:22 repeating question from before… what's a good way for a service to hold a wakelock, now that screen_bright_wake_lock etc are deprecated? Nov 22 04:21:28 son of a gun having so much trouble with this retrofit Nov 22 04:25:21 is there such thing as opengl for android? Nov 22 04:25:55 sure why not Nov 22 04:26:03 yes Nov 22 04:26:16 interesting Nov 22 04:26:53 did you consider doing the slightest bit of research - like, say, putting exactly that question into Bing - before asking? Nov 22 04:27:17 leeds my internet access is effed up now Nov 22 04:27:24 around 24k speed Nov 22 04:27:40 and I am already downloading rather large file (for that connection speed) Nov 22 04:27:42 he didnt even bing it Nov 22 04:27:59 ah, and that makes IRC your search engine... cool Nov 22 04:28:00 so yes I normally google Nov 22 04:28:10 lol <3 u Leeds Nov 22 04:28:21 whaddayaknow, google images has a license filter Nov 22 04:28:58 how do i fetch a drawable in java code by theme? Nov 22 04:29:17 what function tells me how many things are in an array? Nov 22 04:29:26 * in java Nov 22 04:29:43 i know in python it's len(array) Nov 22 04:29:54 ficklepickle: fscking google it Nov 22 04:30:05 are u srs. Nov 22 04:30:07 srs. Nov 22 04:30:11 .length dude Nov 22 04:30:16 thats java 101 Nov 22 04:30:51 guys how do i start my pc? Nov 22 04:33:15 how do I type on keyboard Nov 22 04:33:24 but u just. Nov 22 04:33:29 how is babby formed? Nov 22 04:33:36 lol Nov 22 04:34:48 omfg Leeds Nov 22 04:34:50 <3 Nov 22 04:34:56 http://www.youtube.com/watch?v=Ll-lia-FEIY in case anyone hasn't seen it :) Nov 22 04:35:07 i'm scared to click on that after your last comment Nov 22 04:36:04 I have tough guts and brain but my internet access is lacking Nov 22 04:37:54 23 minutes to download 24 mb file bah Nov 22 04:38:02 thats with 7 mb done Nov 22 04:38:16 XXCoder2: 1 second me for, if I can get a good link :P Nov 22 04:38:18 gee where are you, australia ? Nov 22 04:39:20 bank nah just effed up network. I'm using my phone connection. its barely getting 3g so that dont help either Nov 22 04:39:53 reminds me of days I had to wait 2-3 hours for 4 mb file lol Nov 22 04:51:06 lol, fragments have onCreateView and onViewCreated? that's not confusing at all Nov 22 04:51:37 think thats initial create and after its done Nov 22 04:51:40 but then I'm probably wrong Nov 22 04:54:01 you're probably right Nov 22 04:54:07 I say it's pretty bad word choice though Nov 22 05:13:27 durka42: yeah what would be better though? Nov 22 05:17:34 yeah I dunno I guess Nov 22 05:17:47 maybe onBeforeCreate and onDoneCreating or onAfterCreate Nov 22 05:18:29 add View then maybe. Nov 22 05:22:23 up :) Nov 22 05:23:57 what is the java equivalent of ?attr/my_image ? Nov 22 05:24:45 pfn did you ever put qicr on github? Nov 22 05:31:12 wait is this legal Nov 22 05:31:13 great scott i think ive got it. Nov 22 05:31:14 YourActivity.this.setListAdapter(adapter); Nov 22 05:31:17 how can that possibly work Nov 22 05:33:59 try it out Nov 22 05:35:31 k guess not still cant get this to work Nov 22 05:38:15 i dont think ill be able to use retrofit as much as i want to Nov 22 05:39:28 I'd like show text and icon in option menu, is it possibile? Nov 22 05:50:56 desmin88 there's only like several hundred rest clients; try another ;) Nov 22 05:51:43 true. Nov 22 05:52:17 ok 1 more try Nov 22 05:52:57 here's one i pulled out of my butt http://docs.spring.io/spring-android/docs/1.0.x/reference/html/rest-template.html Nov 22 05:53:24 eww i dont want to touch it then Nov 22 05:53:31 :) Nov 22 05:54:41 hey, if i have R.drawable.search_dark and R.drawable.search_light for holo dark/light themes, how do i make an R.drawable.search that's accessible depending on the theme? Nov 22 05:54:49 well i got it working, but its quite ugly. Nov 22 05:55:21 seand: have one drawable with a color thats a ?attribute that is in your theme Nov 22 05:55:48 these are icons Nov 22 05:55:57 oh. Nov 22 06:00:05 then i dont know :p Nov 22 06:01:59 a project in C# that I'm using as reference for my project has a class converting ASCII to Unicode. Why would I want to do this? Nov 22 06:10:13 this is ridiculous, why is it so hard to find out how to do this Nov 22 06:12:35 seand: where are you setting your theme? Nov 22 06:12:45 androidmanifest Nov 22 06:13:11 then base your choice on the theme you are choosing Nov 22 06:13:14 damccull: that is not possible for us to say. The reason is not in what it does, the reason is in how it fits into the larger whole. Nov 22 06:13:42 canvs2321: the idea is to provide 2 themes which the user can switch between Nov 22 06:13:48 alankila: I see...if I tell you it takes text from a mud/telnet server and displays it in a window, does the context help? Nov 22 06:14:18 well if you are in control of the switch, why not the choice of light/dark search too? Nov 22 06:14:28 only very mildly. This is why java has stuff like 'new String(bytearray, coding)' Nov 22 06:14:49 alankila: Ok. thanks :) I'll look at it Nov 22 06:15:00 canvs2321: i don't understand what you're saying Nov 22 06:15:08 when you receive data from the network, it is a byte stream. If you want to display it, you must turn it into a string. There is generally two ways to do it, by a reader API, or by direct conversions like this. Nov 22 06:15:32 seand: he's saying that you should be able to define the icon to use inside of your style/theme xml file Nov 22 06:15:33 java strings are always in unicode, technically utf-16. Nov 22 06:15:44 i'm saying if you have it as an option to change themes, then when you are changing themes you have your light/dark search icon set in the theme you are loading Nov 22 06:16:03 in order to convert between byte data and unicode strings, a coding is required. This coding is guessed from your environment if you do not provide it, but as a rule of thumb it can always be provided. Nov 22 06:16:09 canvs2321: that is my question. how do i access the icon based on the theme in java code Nov 22 06:16:21 alankila: I see! Thanks, that's very helpful Nov 22 06:16:34 in xml it's easy: style="?attr/icon" Nov 22 06:17:38 seand: http://stackoverflow.com/questions/13735675/change-drawable-based-on-theme Nov 22 06:17:55 seand: you should use xml whenever possible in android Nov 22 06:17:57 damccull: that is xml Nov 22 06:18:27 seand: why do you not just build two theme files, and then select one with java code? Nov 22 06:18:31 i'm passing this icon into a MatrixCursor for a SearchView Nov 22 06:19:40 g00s, yes Nov 22 06:20:38 no idea what that means. Try using getTheme() in conjunction with instance of or some other object comparison and then just a simple if will do it Nov 22 06:21:16 my auto importing doesnt work in Android Studio Nov 22 06:21:17 g00s, https://github.com/pfn/qicr Nov 22 06:21:25 any one have same issue ? or way to fi it ? Nov 22 06:21:38 damccull: are you saying compare getTheme() to my light/dark theme and hardcode the respective drawable ids in the java code? Nov 22 06:21:48 I have to go to every error and cmd+1 to import each one Nov 22 06:21:59 seand: something like that yes Nov 22 06:22:07 now, whether getTheme() exists or no, I hav eno idea. Nov 22 06:22:27 damccull: i considered that but i know there's a correct way to do it Nov 22 06:22:49 seand: the correct way is to use xml themes and let it load the resource dynamically Nov 22 06:23:26 damccull: i'm pretty sure you can't use xml in this case Nov 22 06:23:43 i don't know of a UI element in android that can't be defined in xml Nov 22 06:24:07 damccull: let me introduce you to one, it's called http://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_ICON_1 Nov 22 06:24:10 unless maybe you're drawing to a surfaceview :) Nov 22 06:24:19 learnin' time hang on Nov 22 06:25:22 hmm. is this the thing that searches my apps from the google search bar? Nov 22 06:25:53 probably the same component... it's used for search autocomplete results Nov 22 06:26:18 seand: i suggest storing a sharedpreference with the currently chosen theme, and then sending the icon based off the result Nov 22 06:26:18 but that can be.. Nov 22 06:26:42 pfn can be what? Nov 22 06:28:35 pfn cool thanks; wanted to take a look at the service that manages all the irc connections Nov 22 06:33:08 hmm Nov 22 06:33:20 forget appcompat, im just going to use minsdk14 Nov 22 06:35:18 Hi, is there a way to set up a daemon on Android studio and do get fetch every 30 mins for example? Nov 22 06:35:33 git* fetch Nov 22 06:38:45 anyone have any idea why optimize imports dont do anything ? Nov 22 06:38:52 in AS/Idea Nov 22 06:39:00 maybe already optimized? Nov 22 06:39:07 no Nov 22 06:39:24 i remove all my imports to see if it is just struggling to find the classes Nov 22 06:39:35 but wont even import basic android.app stuff Nov 22 06:39:48 Blou_Aap i have 'optimize imports on the fly' Nov 22 06:39:58 me to Nov 22 06:39:59 oh Nov 22 06:40:00 nothing Nov 22 06:40:14 well, maybe new as tomorrow better luck then :D Nov 22 06:40:19 went and fiddled over and over trying to see what stopped it Nov 22 06:40:22 it used to work Nov 22 06:40:44 i had issues with it a long time ago, maybe 0.3.0 or something Nov 22 06:42:26 what is scala? Nov 22 06:43:02 google it. Nov 22 06:47:49 lol ok now it doesnt import, it updates it to direct access Nov 22 06:48:02 so instead of import class at top Nov 22 06:48:13 it turns to direct access Nov 22 06:48:14 :/ Nov 22 06:53:35 may as well just use vim then Nov 22 06:53:37 :D Nov 22 06:57:34 autocompletion and other stuff still works fine Nov 22 06:58:28 so now i lost my actionbar Nov 22 06:58:45 googleit, might find it again Nov 22 06:59:08 hilarious Nov 22 07:01:54