**** BEGIN LOGGING AT Sun Dec 22 03:00:00 2013 Dec 22 03:14:27 hello Dec 22 03:14:50 im trying to develop a video streaming app Dec 22 03:16:31 and am trying to figure out how i can setup a video server to communicate with a client android app Dec 22 03:16:53 can anyone help me? Dec 22 03:30:05 Is enabling hardware acceleration for >4.0 for a listview a bad idea? Dec 22 03:37:47 It's enabled by default if your targetSdk is >= 14 Dec 22 03:39:17 ahh thanks Dec 22 03:39:43 I have to close the softkeyboard in code at some points, but the closing of the keyboard seems to have a lag, anyone else have this issue? Dec 22 03:45:12 hi guys, how can i like communicate between an android client app and like a remote server? Dec 22 03:59:50 gota remember to remove explectivies in logging before commiting :p Dec 22 04:00:49 ....... expletives make for... interesting comments Dec 22 04:02:39 gah.... how do i communicate between client and server? Dec 22 04:07:35 anyone know how to check the local time for the Google server? Dec 22 04:26:46 why would you Dec 22 04:28:16 You uploaded an APK signed with a certificate that is not yet valid. You need to sign your APK with a certificate that is currently valid. Dec 22 04:28:47 your clock is wrong then Dec 22 04:28:59 I just created this keystore and signed the apk certificate and i'm betting i'm on a earlier time zone Dec 22 04:29:11 timezone is irrelevant Dec 22 04:29:26 anything important is always stored in utc time Dec 22 04:30:03 do i need to sync my time on my pc then? Dec 22 04:31:19 your pc's clock and/or timezone are wrong Dec 22 04:32:49 let me try this again and make a new keystore Dec 22 04:36:36 same error Dec 22 04:37:16 what's your pc's time and timezone Dec 22 04:37:48 11:37 EST Dec 22 04:38:19 keytool -list -verbose Dec 22 04:40:44 on a windows mahcine Dec 22 04:40:49 machine Dec 22 04:41:15 keytool is part of jdk Dec 22 04:41:30 right Dec 22 04:42:04 then being on Windows is irrelevant Dec 22 04:42:32 ok then how do you use the keytool cmd in windows? Dec 22 04:43:19 by running the command, same as any other os Dec 22 04:45:21 you can't run it in cmd not a recognized internat or external command Dec 22 04:45:28 how did you even generate your key... Dec 22 04:45:46 throgh eclipse Dec 22 04:46:12 Google "how do I run keytool" Dec 22 05:31:45 Is there a simple way to take the primary key from Media.Images.External content and start an intent to view the image? Dec 22 05:32:07 How do i setup like a media server and have it communicate with an android client app? Dec 22 05:32:23 Im a bit lost.... Dec 22 05:40:35 jo_shmo55: thats outside the scope of this channel maybe.. Dec 22 05:50:32 Can you quit a job you volunteered for ? :P Dec 22 05:52:23 you can quit any job Dec 22 05:52:32 but its kind of a dick move you know Dec 22 05:52:40 2wk notice so they arent scrambling to get another guy Dec 22 05:53:31 Oh, I gave notice ! That's only fair Dec 22 05:53:46 3 wk! Dec 22 05:53:48 then sure Dec 22 05:53:50 you're fine Dec 22 05:54:08 Yah I hope, I'd like to look around :) Dec 22 05:55:46 capella leaving the job you took a few months ago ? Dec 22 05:56:07 Oh I've been with these guys for two years Dec 22 05:56:18 hm Dec 22 05:56:54 They're nice - they need my help :P Dec 22 05:57:16 hehehehe Dec 22 05:59:41 Hi all Dec 22 05:59:43 how's it going Dec 22 06:00:41 pretty shitty day for me actually Dec 22 06:00:48 how so Dec 22 06:01:14 put my dog down Dec 22 06:02:20 aw man that sucks Dec 22 06:02:23 sorry to hear that Dec 22 06:02:27 thx Dec 22 06:02:47 oh no desmin88 Dec 22 06:02:53 what kind? any pictures ? Dec 22 06:03:02 I bet you your family has given the dog the best life it could ever ask for Dec 22 06:03:08 black lab Dec 22 06:03:10 he/she Dec 22 06:03:13 i'm jealous Dec 22 06:03:21 I had a border coli/husky mix Dec 22 06:03:33 was a boy Dec 22 06:03:40 nice Dec 22 06:03:42 aw shit, i have a 12 yo blind chocolate lab, the purest thing on this side of heaven Dec 22 06:03:51 they are great dogs Dec 22 06:03:59 smart ones Dec 22 06:04:00 too Dec 22 06:04:09 at getting unattended food, yeah ;) Dec 22 06:04:16 my dog was 12 going on 13 :( Dec 22 06:04:19 http://gyazo.com/5458bbaea771ab1216e1e77b5ddd4a16 Dec 22 06:04:28 When sending an intent to play some audio, how can I force it to open the media player instead of just a dialog that shows a play/stop button? Dec 22 06:05:17 desmin88 beautiful dog; if you dont mind me asking, what happened ? Dec 22 06:05:46 g00s: had a cancerous tumor on his stomach Dec 22 06:06:03 therefore he wouldnt eat, so he went from like 90 to 56pds in a week Dec 22 06:06:36 a bunch of idiots had my dog for the first year; they let him eat all kinds of shit like home construction materials Dec 22 06:06:38 was a huge dog and kinda sucked to see him reduced to skin n bones Dec 22 06:06:53 :'( Dec 22 06:07:13 how long did you have him for ? Dec 22 06:07:18 13 yrs Dec 22 06:07:19 well Dec 22 06:07:22 12 Dec 22 06:08:01 so he was a longtime companion Dec 22 06:08:17 what? Dec 22 06:08:33 Jake is still healthy; i used to take him everywhere (hikes) but being blind its really tough to get him up and down stuff Dec 22 06:08:37 eating construction materials >.< Dec 22 06:08:40 i remember being 4 driving 3 states across to get him from a breeder Dec 22 06:09:11 (16 now) Dec 22 06:10:22 hey have you guys heard about the talking dog thingy? http://gizmodo.com/your-dog-could-talk-back-with-this-mind-reading-headset-1485665261 Dec 22 06:10:34 maybe not that far, at 4 years old any where farther than a couple miles is pretty far, haha Dec 22 06:11:46 jo_shmo55 no i didn't see that one before; at NAU here they are doing research with machine learning and prarie dogs; i guess they have a very sophisticated vocabulary and social structure Dec 22 06:12:02 to deconstruct their language Dec 22 06:12:24 g00s: yeah- its kinda amazing, and crazy stuff.... Dec 22 06:12:48 http://www.theatlantic.com/technology/archive/2013/06/animal-behaviorist-well-soon-have-devices-that-let-us-talk-with-our-pets/276532/ Dec 22 06:13:23 i am a bit skeptical; basically what they are doing is recording nuances in their vocalizations and correlating them with context Dec 22 06:13:32 Whenever i think of talking animals, for some reason im reminded of Garfield. Dec 22 06:14:58 g00s: yeah. its not really clear how accurate the semantics translate over from dog talk to human speech. Dec 22 06:22:10 argh why is the virtual keyboard such a pos to deal with Dec 22 06:33:22 Anyone know how to exactly control the visibility of the keyboard? Dec 22 06:37:43 Far as I know, the closest you can get to controlling the keyboard is performing dark rituals and hoping it responds Dec 22 06:38:07 seriousily Dec 22 06:38:20 i can get it to work 98% of the time properly Dec 22 06:45:48 Squirrel ! :) Dec 22 07:54:39 virtual keyboard api sucks. Dec 22 07:57:36 java <3 Dec 22 08:05:20 ahh finally figured out how to wrangle the imm Dec 22 08:06:06 in my case anyways (have to use adjustPan on activity otherwise there is animation lag in toggling its visibility) i had to call getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN / ALWAYS_SHOWN); before calling the toggle methods Dec 22 08:14:48 capella you like java ? O.o Dec 22 08:14:59 man some of the people who make orms are so obsessed with 'simplicity' that there is no functionality Dec 22 08:15:23 i've never used one on android Dec 22 08:17:40 g00s? I'm surprised by your surprise ! Dec 22 08:18:35 It's why I went to the mobile side Dec 22 08:39:15 hi, just installed the android studio, but its not running Dec 22 08:39:20 please help Dec 22 08:40:45 lol.. Dec 22 08:40:55 this channel at night is just the best Dec 22 08:43:05 arunkumar413 You'd need to describe your problem in a little more detail :) Dec 22 08:43:58 no Dec 22 08:44:18 he expects us to use telepathy to know why it doesn't work, and then use remote desktop to fix it for him Dec 22 08:44:41 hahah! I had one guy corner me for an xml layout Dec 22 08:45:08 bitgod! I remember his nick... He still owes me tree-fiddy Dec 22 09:19:29 yay, post saving accomplished. Dec 22 09:19:46 finally found a good orm Dec 22 09:20:01 installed android studio, it asked me to define java path variable. but studio is not starting Dec 22 09:23:40 it says variable doesn't point to a valid JVM Dec 22 09:25:29 which orm? Dec 22 09:25:57 'Sugar' Dec 22 09:26:14 arunkumar413: then use the helpful error message to correct the solution, or google for an answer Dec 22 09:38:48 hi Dec 22 09:40:19 i'm trying to run the example uiautomator testcase with adb shell uiautomator runtest bar.jar -c com.foo.bar but I keep getting the class com.foo.bar is not found. Dec 22 09:40:22 could anyone please help? Dec 22 09:40:43 if i unarchive the jar, i can find the class com.foo.bar though Dec 22 10:03:24 Anyone know if the movie/music icons android 4.x are somewhere online? Dec 22 10:21:48 screenprint -> .png Dec 22 10:22:52 :p (worst case) Dec 22 10:23:35 guys, what's the proper way of updating db record from listview? i seem to shot myself in the foot. i can add records easitly, can show them but can not update. The confusing part is matching onClickItem position to record _id Dec 22 10:24:00 hi all.. Dec 22 10:25:04 hi all... is there any open source app for creating 'advices', 'memes' Dec 22 10:26:46 lets say I have a number of activities.. A, B, C, D.. and A happens to be the main activity. If the history/back stack happens to be A -> B -> C -> D and now in D I have a button called 'Home' that is supposed to lead back to A. I almost have it working properly. Dec 22 10:27:34 Clicking the Home button, I was simply doing startActivity(intentA); but I was able to press the back button to get back to activity D. Dec 22 10:28:10 captian use a cursor adapter Dec 22 10:28:11 so I changed the code in D to be startActivity(intentA); finish(); but now when i press back, I'm able to go back to C Dec 22 10:28:15 then the id will actually correspond Dec 22 10:28:46 any idea as to how when I get back to A, it is the top of the stack *and* the only item in the stack? Dec 22 10:29:40 start the activity with NEW_TASK|CLEAR_TOP Dec 22 10:31:31 lesserix, I use simplecursoradapter. I'm trying to update record via DialogFragment, which gets passed info from cursor. the problem is, I can't understand how to get _id in onActivityResult method which gets called once my dialogfragment delivers updated raw data Dec 22 10:32:25 the only ugly method i can think of is to pass _id to dialogfragment and get it back at onactivityresult, kind of a loop Dec 22 10:38:24 i'm trying to run ant build but i keep getting the error "didn't find package R". am i supposed to import R? it compiles fine in IntelliJ Dec 22 11:31:13 For a List-like Grid, I should use a GridView, right= Dec 22 11:37:53 autrilla, the horizontal one Dec 22 11:38:23 oh Dec 22 11:38:33 no i mean LinearLayout (Vertical) Dec 22 11:40:37 ItsMeLenny, Does Google Keep use a GridView? Dec 22 11:40:42 does anybody else virtual devices not run in the latest ADT Dec 22 11:40:58 not sure what Google Keep is Dec 22 11:43:48 when is it most active in here because i need help mega time Dec 22 11:48:33 hi! I'm trying to get into android development by editing an open source project and learning as I go. could you give me the buzzwords for a good way to implement the following so I'll find the right articles? when a new widget is created, it launches an activity that displays a number of items to select from. once one of these is clicked, it gets back the data and permanently configures itself to show that data; the configuration dialo Dec 22 11:48:33 g is never accessed again. currently, I've got the part up to displaying the list down, but I'm not sure how to handle the rest. is it a good idea to have the widget hand over its ID to the activity, set a sharedpreference once the user clicks the list, send an "update widgets" intent with the ID added, then refresh the newly added widget after reading the preference? Dec 22 11:49:08 this should work for an arbitrary number of widgets Dec 22 11:54:38 How could I convert a String that is a path to an image to R.drawable? Dec 22 11:57:42 Does anyone know if the mediastore video content provider columns such as artist / album actually (in general) contain any useful information? Dec 22 11:59:52 pikaro yeah Dec 22 11:59:59 it is vital you keep the id Dec 22 12:00:17 because the widget id list android keeps is a very messy warehouse Dec 22 12:00:23 Why could I get java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView on convertView = ((Activity) mContext).getLayoutInflater().inflate(R.layout.card, parent);? Dec 22 12:00:57 you need parent arguement? Dec 22 12:03:51 lasserix, parent is the rootView on getView() method of BaseAdapter Dec 22 12:04:08 oops yeah sorry going a little blind this morning Dec 22 12:04:38 i meant Dec 22 12:04:39 convertView = inflater.inflate(R.layout.listview_row_query_result, parent, false); Dec 22 12:04:45 you are missing that last bool arg Dec 22 12:05:21 also instance your layoutinflater don't do that casting and getting everytime you are inflating your row Dec 22 12:05:24 I don't think that's it, I've never given a boolean there Dec 22 12:05:30 instance = cache Dec 22 12:05:35 Oh, it is Dec 22 12:06:02 guys, another stupid question. Are db operations thread-safe if I have only 1 instance of SQLiteDatabase? Dec 22 12:06:12 right, the font used is not monospaced Dec 22 12:06:45 so when i try to print $ 10.00 and $ 8.00 within a list view, they don;t align up even if i use %5.2f for printing the float value Dec 22 12:06:53 any ideas on how I can align them up? Dec 22 12:11:43 captain not by themselves Dec 22 12:12:24 Hmmm... my ImageView doesn't show on the GridView, but the TextView does. Dec 22 12:12:53 CaptainFarrell: http://blog.lemberg.co.uk/concurrent-database-access Dec 22 12:13:14 note i had add synchronize to open / close to actually get that example working in my implementation Dec 22 12:15:46 lasserix, my helper class is a singleton Dec 22 12:16:35 internally the sqlite database doesn't handle synchronization Dec 22 12:17:20 dodobrain: maybe using Html.fromHtml modifiers? Dec 22 12:17:53 lasserix, umm.. i don't understand that.. any links to where i can read up onthis ? Dec 22 12:17:54 dodobrain but in reality why not set gravity on the textview to the right Dec 22 12:17:55 anyhow, I think i've asked the wrong question. The thing which worries me is delayed db inserts. e.g.: a user is presented with a listview which is built from db. now, the user via some interface changes 1 db row, insert takes plays in AsyncTask. let's suppose, the task is not yet finished but the user deided to make another insert. Dec 22 12:18:08 it is already to the right! Dec 22 12:18:16 i reckon it's possible to lose data even if db access is thread-safe Dec 22 12:18:49 CaptainFarrell: you can use an arrayblockingqueue to process your inserts? Dec 22 12:19:17 imagine that we talking about updates instead of inserts Dec 22 12:19:23 *we're Dec 22 12:19:31 dodobrain: dunno myself really, just know it exists: google using html from html to do text formating android textview Dec 22 12:19:33 whats a good image paste site? Dec 22 12:19:51 i want to show the output i have Dec 22 12:20:20 I'm making a GridView of cards (like the Google Now ones), how can I have a top margin without it being padding? I mean, so that when I scroll there's no blank space on top Dec 22 12:20:39 CaptainFarrell: that's getting more and more into databasing and less and less androiding, but again if you use an array blocking queue or something similar, then iterate over it prior to processing each one to see if there is a conflict, then dump that processing for the item, since it is going to be changed later Dec 22 12:21:26 in theory, user may start 2 update asynctasks of the same row, one of them would get lost Dec 22 12:21:41 captainfar Just use a thread and a handler much easier to wrangle Dec 22 12:22:18 since posting messages to the handler (on the ui thread anyways) is already synchronized queue, they'll always arrive in order and you can process them as such Dec 22 12:24:12 one result could overwrite another anyway :) Dec 22 12:25:05 anyway, thanks. I think I myself do not know what answer I'm looking for. Dec 22 12:28:00 captainfar: no they couldn't if done right Dec 22 12:28:03 that's what i was trying to say Dec 22 12:28:16 you basically post a message update1, then update2, then update3 Dec 22 12:28:39 when you process update one you can iterate over the updates, see if there are conflicts on the pk Dec 22 12:28:48 then not do that update Dec 22 12:29:05 you know they will always be in the order they were called, therefore they would never overwrite eachother Dec 22 12:29:45 i think this would be fast enough, since a user can only do so many updates (and even then you can batch operations) Dec 22 12:30:54 I think I might Dec 22 12:30:59 ve understood you Dec 22 12:31:35 stack updates, analyse and, in case of updates, process the most recent onces Dec 22 12:32:54 ahh yeah but if you go with a queue don't rearrange the queue Dec 22 12:33:19 just don't process the current one if there is found to be a conflict down the line (ie "continue" in a loop) Dec 22 12:35:02 btw, nice blog Dec 22 12:39:19 oh my, I know one of your apps. it was reviewed on 4pda Dec 22 12:42:07 oh Dec 22 12:42:11 that's not my blog :P Dec 22 12:42:18 not that smart yet :) Dec 22 12:45:09 soon... Dec 22 12:46:21 hehe if ever Dec 22 12:46:35 been stuck with the fooking keyboard visibility behavior for a while now Dec 22 12:49:24 lasserix, you mean on an edittext ? Dec 22 12:49:54 when you just switched to an activity/fragment? Dec 22 12:51:08 kind of Dec 22 12:51:23 i have an edittext that has a textchanged watcher to do search on extra chars Dec 22 12:51:42 idea is to have keyboard showing if there is no input, and not showing if there is input, unless the user clicks into it Dec 22 12:52:25 i have tried almost every permuatation of the flags for showsoft / togglesoftinput and the like, but nothing works 100% just 98% Dec 22 12:52:28 keyboard not showing if there is input? how did the input get there in the first place? Dec 22 12:52:45 umm, more like keyboard is showing if there is input Dec 22 12:52:57 or keyboard does not show if there is no input and app just started Dec 22 12:53:08 I'm making a GridView of cards (like the Google Now ones), how can I have a top margin without it being padding? I mean, so that when I scroll there's no blank space on top Dec 22 12:53:31 *keyboard will show on returning to app, even though there is input and i'm requesting focus on a view with null input type and softtogglingthe keyboard off Dec 22 12:53:39 autrilla, check the padding/margin on the container element Dec 22 12:54:07 lasserix, ah.. they you might have set on the edittext in the xml layout file Dec 22 12:54:25 if you get rid of that, then it won;t grab focus as soon as the activity is loaded Dec 22 12:54:48 dodobrain, the container has no padding Dec 22 12:54:55 aunn, and margin? Dec 22 12:55:08 autrilla, i cannot believe that there is a space Dec 22 12:55:19 Let me pastebin my layouts Dec 22 12:55:20 post your xml Dec 22 12:55:46 http://pastebin.com/PCkQmspe Dec 22 12:58:25 eclipse gui builder is weird. I once had a problem with one edittext having focus by default, there was nothing in xml for that, i moved that edittext in another linearlayout and moved it back again Dec 22 12:58:41 xml stayed the same but focus was gone Dec 22 12:59:05 i know it sounds stupid but that's what happened :) Dec 22 14:04:30 hey guys, I'm using a button as back arrow for back "<" I would want the area around the button to be clickable Dec 22 14:04:48 as currently user has to carefully click on the button Dec 22 14:31:26 hi! I've got a widget that starts a configuration dialog when it is added, and I'd like it for that to be closed before it continues to load. what's the best way to do this, seeing how widgets don't have startactivityforresult? Dec 22 14:47:24 hey all X) Dec 22 15:12:22 Does someone know how to make IntelliJ use an image from another location so I don't always have to drag it back in when I update the image? Dec 22 15:12:59 Having to do it for every single dpi takes a long time because IntelliJ moves the file instead of taking a copy. Dec 22 15:15:08 I often use a fragment without UI to store data shared among different fragments. I have a static method in the DATA fragment to get the current fragment (by tag) or add it using a fragment transaction. The issue is that the commit() of a fragment transaction doesn't happen immediately so when multiple fragment require it at the same time multiple instances are returned by the method. Any idea on how I can make this Dec 22 15:15:08 all thing works without making sure the first request is performed and committed before any other fragment ask for it? Dec 22 15:17:48 masen, what about sharedprefs ? Dec 22 15:17:56 mastro, err.. ^^ Dec 22 15:18:38 dodobrain, fragment = code, shared preference = data.. furthermore I didn't say I need the data to persist across different activities Dec 22 15:19:25 err.. lemme quote your from your initial question: "... use a fragment without UI to store data shared among different fragments..." Dec 22 15:19:53 so whats wrong with sharedprefs again? are you mistakenly assuming you cannot set/retrieve data from sharedprefs within your code? Dec 22 15:20:13 dodobrain, fragment != activity Dec 22 15:20:17 so? Dec 22 15:20:24 dodobrain, code = I can also do stuff not only share data Dec 22 15:21:21 your goal if i may remind myself is to share data.. Dec 22 15:21:48 again whats wrong with sharedprefs fir this purpose? or for that matter a singleton of your own imagination? Dec 22 15:22:01 dodobrain, it's to have a single place where I manage my data, while I have multiple places sinchronizing the view on that data Dec 22 15:22:17 dodobrain, which mean LOGIC AND DATA Dec 22 15:22:18 yeah, please read up on the singleton pattern Dec 22 15:22:30 dodobrain, yeah, but I do not need a singleton Dec 22 15:22:42 right, enjoy your coding adventures Dec 22 15:23:13 dodobrain, if you do not know how to help you are not asked to reply :) Dec 22 15:24:04 not that i do not know how to reply.. just that i think you're looking for something that can be sufficiently serviced by what i mentioned. Dec 22 15:29:05 dodobrain, you are in no position to know what I have here in my code. It is a big code base. I asked what I need and I told you the singleton pattern doesn't apply. I've been polite, can't say that about you ;) Dec 22 15:30:49 apologies if i have been rude.. its late here Dec 22 15:31:25 im in need of a backend web service to serve some XML to my app, what would other recommend?? Dec 22 15:33:00 i am terrible noob Dec 22 15:33:10 first time trying to compile something Dec 22 15:33:21 would someone be so kind to explain me where i can set TARGET Dec 22 15:34:01 do i have to set it from command line or it can be dun in project properties ? Dec 22 15:34:54 dodobrain, no problem Dec 22 15:35:44 got it Dec 22 15:35:45 Projects > Properties > Android Dec 22 15:38:11 dodobrain, apparently the only way is to make the activity store the instance of the fragment and return it (through interface) to the attached fragment. I hoped to avoid this but it's the safest solution :/ Dec 22 15:38:52 wanted to avoid it so that each fragment could be truly independent of the activity Dec 22 15:39:32 hello Dec 22 15:40:05 I have a couple of development questions for a device virtually non existent on the web Dec 22 15:40:42 anyone here? Dec 22 15:41:46 Prasad1337: are you writing an app for said device? Dec 22 15:42:45 no, I'm writing a flashable zip... needed to know if I should use amend or edify for stock 3e recovery on android 4.0.3 ? Dec 22 15:43:23 #android-root for questions like that Dec 22 15:43:31 okay thank you :) Dec 22 15:49:02 twiceaday, I doubt someone will help you with programming skill... :) anyone will tell you to follow some online tutorial Dec 22 15:53:50 wow really make sure your listviews are not wrapping content Dec 22 15:55:22 Really shouldn't make any scrollable containers wrap content Dec 22 16:01:59 Yeah I didn't think about it before, but man that feels good to see the adapter run twice as fast, thought the last weeks worth of refactoring wasn't really paying off after all :P Dec 22 16:13:07 Does someone know how to disable the annoying scrolling in the project view that doesn't let you scroll beyond your selection in IntelliJ? I think you'll understand what I mean if you use IntelliJ, it is so annoying! Dec 22 16:13:31 I don't even know what causes it, it is so annoying! Dec 22 16:17:35 hi! I've got a widget that starts a configuration dialog when it is added, and I'd like it for that to be closed before it continues to load. what's the best way to do this, seeing how widgets don't have startactivityforresult? Dec 22 16:20:33 This is weird. If I use a ListView and inflate a layout, it looks different than if I just hardcode it into the layout Dec 22 16:24:05 'different' how Dec 22 16:24:11 are you using the right Context Dec 22 16:24:34 Hmm let me see Dec 22 16:28:33 how can i still have error Dec 22 16:29:12 that states:"Project has no target set. Edit the project properties to set one." Dec 22 16:29:53 when in project -> properties i have project build target that says aandroid 4.4.2 Dec 22 16:29:56 hmm i dont get it Dec 22 16:30:13 if anyone would be so kind to tell me what i am doing wrong i would be happy Dec 22 16:41:43 Is it possible to put all of the activity xml files in another folder ("activities" for example)? Dec 22 16:42:03 Or to put it in a folder inside of layout Dec 22 16:42:27 storkme, ok, now I'm sure it looks different in those cases. What code do you need? Dec 22 16:42:34 hey so I am having trouble getting the apk file from eclipse onto my real device connected through usb Dec 22 16:42:50 I turned on debug mode when usb connected as well Dec 22 16:43:01 and downloaded the google usb drivers Dec 22 16:43:06 am I missing something Dec 22 16:43:13 Then you haven't installed it correctly Dec 22 16:43:46 well where is my device suppose to show up exactly on eclipse Dec 22 16:43:56 LoneSoldier728, it doesn't work for me either. I set up my Raspberry Pi as a bridge, it detects file change (I upload the apk file to it), installs it on my device and shows the debug log. Dec 22 16:44:20 But I don't think you have a raspberry pi available for example. Dec 22 16:44:40 twiceaday, install java JDK (not JRE!!!!) 1.6 / 1.7 in your system and set up the environment variable. Follow the guide on android to install the Android SDK and you should be good to go. If you aren't re-checks your steps with the android tutorial. You did something wrong Dec 22 16:44:55 I'll might use it for mass deployment later on. Dec 22 16:45:07 (Multiple devices) Dec 22 16:45:29 ya im using my nexus 5 4.4 Dec 22 16:45:40 so i am not sure what needs to happen more Dec 22 16:46:09 LoneSoldier728, what are you trying to say now? I'm also using a Nexus 5 running 4.4.2. Dec 22 16:47:06 basically same shit how do I get my device to show up when I am in run configurations Dec 22 16:47:11 looking at the devices Dec 22 16:49:27 LoneSoldier728, is there a commandline adb available for Windows? Dec 22 16:49:42 yes ther is Dreeass Dec 22 16:49:47 there Dec 22 16:49:55 I have adb.exe but when I try to open that too it does not stay open auto closes at the end Dec 22 16:49:58 what is it ahmad Dec 22 16:51:07 Ahmad96, can you tell him how to do that commandline on Windows then? That gives you more information then Eclipse does. Dec 22 16:51:19 you don't run it like that Dec 22 16:51:39 You run cmd and run your commands Dec 22 16:51:50 ok if i run cmd Dec 22 16:51:59 where should i be running the commands from Dec 22 16:52:01 what path? Dec 22 16:52:10 because i tried adb install etc Dec 22 16:52:12 From the path where your adb is located Dec 22 16:52:21 from where adb.exe is located? Dec 22 16:52:23 Ahmad96, what's the lsusb equivalent on Windows, Dec 22 16:52:58 LoneSoldier728, hold shift and right click open command prompt here. Dec 22 16:53:01 Don't know, I'm not a windows user Dec 22 16:53:03 on the folder. Dec 22 16:53:45 ok i just moved to the path on the cmd Dec 22 16:53:53 Ahmad96, do you perhaps know how to remove the padding in PreferenceScreen on Android? Dec 22 16:54:13 Is it possible by adding a layout? Dec 22 16:54:30 Hmm I don't think so Dec 22 16:54:46 Should be somehow possible, but never looked into that Dec 22 16:55:07 Ahmad96, damnit. It looks so ugly, the lines don't reach the edge of the screen :/ Dec 22 16:56:03 It would look ugly without padding imo Dec 22 16:56:15 There should always be padding Dec 22 16:56:23 is it adb install path/here/.apk? Dec 22 16:57:18 yes. Dec 22 16:57:22 ok well getting error device not found Dec 22 16:57:34 adb kill-server Dec 22 16:57:38 adb start-server Dec 22 16:57:41 adb devices Dec 22 16:57:55 run that in that order Dec 22 16:58:14 it is blank Dec 22 16:58:18 the list of devices attached Dec 22 16:58:41 so I am assuming my device is the problem now... maybe that is why it is not showing up Dec 22 16:58:43 Did you install the drivers for your device? Dec 22 16:59:00 I am in android sdk manager Dec 22 16:59:09 google usb driver installed Dec 22 16:59:14 is that incorrect? Dec 22 16:59:31 That just downloads the driver Dec 22 16:59:48 LoneSoldier728, did you enable developer options on your device? Dec 22 16:59:59 yep Dec 22 17:00:01 That are the driver for the nexus devices LoneSoldier728 Dec 22 17:00:07 tapped on about 7 times w.e it was Dec 22 17:00:23 and then did you enable adb ? Dec 22 17:00:27 Check device manager that you actually installed it Dec 22 17:00:39 lonequid, within developer options, enable debugging Dec 22 17:00:52 http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver Dec 22 17:01:25 i have windows 8 Dec 22 17:01:34 so i followed windows 7 instructions is that a prob Dec 22 17:01:58 Shouldn't be Dec 22 17:02:02 i dont see anything about adb on my device dodobrain Dec 22 17:02:16 Windows in general is the problem. Dec 22 17:02:48 Settings -> Developer options -> USB debugging.. make sure that is ticked Dec 22 17:02:53 install driver, verify it appears as adb device in device manager Dec 22 17:03:54 ya it is Dec 22 17:04:41 plug device in again Dec 22 17:05:29 i just did h Dec 22 17:05:35 what device manager Dec 22 17:05:38 in eclipse? Dec 22 17:05:45 windows Dec 22 17:05:57 it shows up Dec 22 17:06:11 as portable devices Dec 22 17:06:20 scrernshot Dec 22 17:06:34 type adb kill-server Dec 22 17:06:39 adb devices Dec 22 17:07:32 http://www.geeksquad.co.uk/media/1384004904-large.png Dec 22 17:07:35 looks just like that Dec 22 17:07:56 Afaik that doesn't work in winfows; you have to call adb start-server before you can list the devices pfn Dec 22 17:07:57 and i did kill-server, start-server, then adb devices Dec 22 17:08:03 that's wrong Dec 22 17:08:15 Ahmad96, wrong Dec 22 17:08:31 well if u do it without start-server Dec 22 17:08:34 it auto starts it anyways Dec 22 17:08:35 okay. Have been a while since I used Windows Dec 22 17:08:38 it does the same thing Dec 22 17:08:50 i just did that and it still shows blank Dec 22 17:08:54 LoneSoldier728, that's not the right device Dec 22 17:08:56 I wasn't like that the last time I did that though Dec 22 17:09:13 that's the mtp device Dec 22 17:09:27 Ahmad96, always been like that Dec 22 17:09:43 what do you mean Dec 22 17:10:08 LoneSoldier728, that image is the mtp device Dec 22 17:10:15 not debug Dec 22 17:10:39 so, wrong device Dec 22 17:11:04 there is alsoon top of it a other devices tab Dec 22 17:11:09 that has nexus 5 underneath it Dec 22 17:11:24 screenshot or gtfo Dec 22 17:11:31 k Dec 22 17:13:02 http://postimg.org/image/pgirj0s85/ Dec 22 17:13:03 there Dec 22 17:14:32 This is weird. If I use a ListView and inflate a layout, it looks different than if I just hardcode it into the layout Dec 22 17:15:28 Cool story Dec 22 17:15:28 LoneSoldier728, driver not installed Dec 22 17:16:25 LoneSoldier728, maybe you have to reboot of whatever it is that you have do to windows so it can load the driver properly Dec 22 17:17:09 SimonVT, :( Dec 22 17:17:10 ya thanks pfn i just installed it Dec 22 17:17:15 just realized that since u said it was mtp Dec 22 17:17:32 there we go Dec 22 17:17:34 it shows up Dec 22 17:18:06 autrilla: Noone's going to play 20 questions with you. If you're looking for help, provide some actual information Dec 22 17:18:37 ok so it shows up in eclipse now Dec 22 17:18:43 but the target shows as unknown? Dec 22 17:18:57 and it does not let me click ok Dec 22 17:19:03 does that make sense Dec 22 17:19:34 Do android devices have a UUID that I can use as an API key for my web service? Dec 22 17:19:37 nope, doesn't make sense Dec 22 17:19:43 Does someone know how to insert something in the SQLite database of Android and make it return a boolean based on whether it has been added because it was already in there or not? Dec 22 17:19:47 Or should I generate one myself, and make the users sign up to use it? Dec 22 17:19:48 GEEGEEGEE, yes, but you shouldnt Dec 22 17:20:00 pfn, how come Dec 22 17:20:01 GEEGEEGEE, just generate a unique key per install Dec 22 17:20:02 insert returns the rowId which isn't to any use of me. Dec 22 17:20:12 for* Dec 22 17:20:13 good evening boys Dec 22 17:20:17 it shows the serial number but the AVD name is N/a, target triangle with unknown debug blank, state ?? Dec 22 17:20:38 I stopped android dev about 1 month ago :( Dec 22 17:22:01 ah stupid Dec 22 17:22:04 had to click ok Dec 22 17:22:07 GEEGEEGEE, use the internets Dec 22 17:22:08 on my phone to allow it Dec 22 17:22:54 thanks pfn Dec 22 17:22:59 and the android dev fam Dec 22 17:30:54 SimonVT, I'll post all the code. My bad Dec 22 17:31:01 *related code Dec 22 17:31:21 hey, is there an easy way to populate data into the webview's cache? Dec 22 17:52:27 I'm trying to see what my app is storing in a database. I'm using Android Studio. When I navigate in DDMS to the data/data/app/databases folder I select the .db file but no db icon appears.... Dec 22 18:02:14 hello Dec 22 18:02:55 if anyone could assist me, would be nice to do so Dec 22 18:03:45 This is weird. If I use a ListView and inflate a layout, it looks different than if I just hardcode it into the layout. Layout: http://pastebin.com/2pSw8MFz Code: http://pastebin.com/G6jBZ0gT Dec 22 18:08:16 Might also want to elaborate on what it is that looks different Dec 22 18:08:58 SimonVT, screenies! Dec 22 18:09:13 yeah, where are the screenshots? Dec 22 18:09:54 http://img.imgur.com/c2n7UWY.png Dec 22 18:09:58 I want it to look like this Dec 22 18:10:05 But Dec 22 18:13:00 it looks like this http://i.imgur.com/8agXwkC.png Dec 22 18:15:19 how did you get the list item separator to appear? it does not show up after the last item Dec 22 18:16:35 dodobrain, where¿ Dec 22 18:16:43 I don't know really Dec 22 18:16:52 I don't do anything else than what you see in the code there Dec 22 18:16:58 the horizontal line in your second image Dec 22 18:17:14 Is there are way for fire up the Logo Generator wizard inside Eclipse (after Project creation)? Dec 22 18:17:17 for = to Dec 22 18:17:32 dodobrain, yeah, no clue why it shows Dec 22 18:17:52 also it looks like its adding padding/margin on your second image Dec 22 18:18:39 also the button seems to occupy a huge amount of vertical space. somewhat related to the font itself, but theres something else off as well Dec 22 18:18:58 also, why are you not using the same font on both the screenshots ? Dec 22 18:19:20 dodobrain, one is from Android Studio, the other one is from the phone Dec 22 18:19:26 But the first one looks the same on the phone Dec 22 18:19:39 And I can't set fonts on XML Dec 22 18:22:36 dodobrain, and also as you see the images don't show Dec 22 18:28:18 Well, the top part is probably just font related.. Your button size is dependant on the size of the textview Dec 22 18:28:39 Images not showing, your SquareLayout is probably broken Dec 22 18:28:48 You should just make a SquareImageView Dec 22 18:29:01 Make it match parent width, then set height = width in onMeasure Dec 22 18:30:43 i tend to use a lot of my development time to close the application on the tablet (dev device) and then restart it from eclipse... closing it from the device tab (from within eclipe) also seems to not work in all cases, am i doing something wrong? Dec 22 18:30:58 "not working" defined as not printing stuff i have in onCreate to the terminal (logcat) Dec 22 18:32:10 patrick91, if you do not make any change in the code *and* your app is the current one running, it won;t restart it Dec 22 18:32:43 i suppose you mean me, i do make changes. even building it by hand (with Build-all and run-as-android application) doesnt help sometimes Dec 22 18:32:50 What happens if I insert something in the SQLite database when the primary key is already in use? Dec 22 18:33:17 a good db should give you some sort of exception, error. primary-keys should be unique by default Dec 22 18:33:35 PatrickBic, thats strange.. i usually have to make a trivial change to force a new apk to be built and then installed and started Dec 22 18:33:51 dodobrain, you have "build automatically" set? Dec 22 18:34:03 otherwise i have to kill the app on the device (avd or real), and then hit ctrl-f11 Dec 22 18:34:07 PatrickBic, sure Dec 22 18:34:12 PatrickBic, because I'm using an API and the ID will always be different but not incremental. I need to check whether it already is in the database. I'd like to do this with only one query. Is there a way of doing so then? Dec 22 18:34:47 you wanna know if some entry is already present? .. in normal sql i would do select count(*) from someTable where id=123 Dec 22 18:34:49 Dreeass, the "query" you are referring to is actually insert Dec 22 18:34:52 and check if the return value is 0 or 1 Dec 22 18:35:03 it will fail if the id is already being used Dec 22 18:35:18 as its supposed to do :P Dec 22 18:35:39 dodobrain, i do have build _not_ set to automatically.. seems to make things "better" here. Dec 22 18:35:45 i'll try later with automatically back on Dec 22 18:35:52 PatrickBic, in one query. Dodobrain, of course I know it's insert. But I need to know whether it already exists with only 1 query. Dec 22 18:36:09 its 1 query, 1 select statement. Dec 22 18:36:15 and will you do the insert after you finished the query? Dec 22 18:36:15 and its return value is either 0 or 1 Dec 22 18:36:20 if yes, the query is pointless Dec 22 18:36:29 PatrickBic, I need to insert it too. Dec 22 18:36:40 then just insert the thing! Dec 22 18:36:42 btw: why not use an autogenerated id? :P Dec 22 18:37:00 Because I'm not providing the id. Dec 22 18:37:39 dodobrain, I want to do in in 1 query. Not 2, please respond if you have something useful to say. Dec 22 18:38:29 Dreeass, a quick google search turned up that sqlite supports "insert or ignore into " Dec 22 18:39:05 dodobrain, is this "small code change" also "allowed" within library-sub projects? Dec 22 18:39:12 PatrickBic, but I also need to know whether it exists. I don't know whether it is ignored or not. Dec 22 18:39:20 i do have 2 libraries linked to my application. Dec 22 18:39:26 It just returns true or false Dec 22 18:39:52 might be "has been inserted" true/false, hm? Dec 22 18:40:06 PatrickBic, umm.. depends.. i don;t know if eclipse realises that the deps libs need to be built again and hence the app itself as well. Dec 22 18:40:16 it would certainly work fine from ant/maven/gradle Dec 22 18:40:39 this android lib stuff is nuts.. linking an project in eclipse works when compiling but you need the jar in libs/ .. Dec 22 18:40:45 PatrickBic, I'll say it once more, is it that hard to understand? -> I need to know whether it exists and if it doesn't exist, insert it. Is it possible in one query? Dec 22 18:41:23 Dreeass, what happens if it already exists? Dec 22 18:41:37 i gave you exactly what you have been asking for. is it that hard? .. you have a statement that inserts/ignores and returns true/false to express what it did. Dec 22 18:41:37 Nothing Dec 22 18:41:42 and elsehow: why not google it yourself? Dec 22 18:41:46 Just tell the user that it exists Dec 22 18:42:20 PatrickBix, that statement only returns true or false whether it succeeded or not, it doesn't return whether it has been ignored or not. Dec 22 18:42:48 I'll just use 2 queries then if this is too hard to understand for you Patrick. Dec 22 18:43:18 Dreeass, with that stamenet, what does it mean to you if it returned 'true' ? Dec 22 18:43:32 i mean the one PatrickBic gave you Dec 22 18:43:37 dodobrain, it was my fault. it returns true even if it ignored it Dec 22 18:43:48 ah, :( Dec 22 18:44:14 I'm sorry, but how many times do I had to explain that? lol Dec 22 18:45:19 SimonVT, sorry, had to afk. That's what I do on my SquareLayout (setting height = width in onMeasure). Also, why would a font change make it all look weird? Also, how can I make the button look like I want to, without it depending on the textview? Dec 22 18:49:23 Dreeass, from looking at SQLiteDatabase code, the call should return -1 if no insert happened. if thats not the case, i dont know. Dec 22 18:50:35 PatrickBic, what happens then if the inserted values already exists (based off the primary key) Dec 22 18:50:54 @return the row ID of the last row inserted, if this insert is successful. -1 otherwise. Dec 22 18:51:00 thats in the source code. Dec 22 18:51:20 PatrickBic, alright. Thanks, is there an error thrown? Dec 22 18:51:33 @throws android.database.SQLException If the SQL string is invalid for Dec 22 18:51:33 * some reason Dec 22 18:51:42 therefore, no Dec 22 18:51:45 (imho) Dec 22 18:52:02 Thanks man Dec 22 18:52:08 Wish I could upvote Dec 22 18:54:32 Does someone know how I can find the standard return codes? So I can use those in my applications, for example 404 in web development. Is there a list with the responding meaning? Dec 22 18:55:05 Dreeass: check the docs for specific things. I don't recall any for Intents, though Dec 22 18:55:41 http://www.sqlite.org/c3ref/c_abort.html Dec 22 18:55:48 p_1, who said anything about intents? What doc do you mean? I'm talking about any programming language. Dec 22 18:56:00 I'm not talking about SQLite Dec 22 18:56:20 Dreeass: documentation/specs for specific cases Dec 22 18:56:50 p_1: I'm talking about return codes in general. Dec 22 18:57:23 for example, UNIX syscalls have errno's, there is EXIT_SUCCESS and EXIT_FAILURE for exit(3), various network protocols have their RFCs document error messages, etc. Dec 22 18:57:30 Dreeass: there's no "common" set Dec 22 18:58:56 Isn't there anything like this (http://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for C++/Java..? When using the "make" function in Linux, it always returns an exit code for example when there is an error. Dec 22 18:59:05 Dreeass: nope Dec 22 18:59:08 no such thing Dec 22 18:59:20 p_1, not even unofficial? Dec 22 19:00:27 Java extensively uses Exceptions for that kind of stuff, C has the rule regarding boolean translation of int values and the unwritten but common practice of using negative status codes for errors and positive for returned values, make has, as stnadard, only the EXIT_SUCCESS and EXIT_FAILURE codes, rest is documented in make docs Dec 22 19:00:53 ... also, fix your font Dec 22 19:00:56 i need an android developer for pertnership work , pm me Dec 22 19:02:00 with hug income :> Dec 22 19:02:21 Own3R, perhaps you failed to read the topic? Dec 22 19:03:23 oh s*it :| Dec 22 19:03:28 sorry Dec 22 19:13:10 Meh, I guess I'm just going to have to hardcode it Dec 22 19:18:06 Is it possible to change the something in the String in strings.xml when retrieving it in code? Since it returns an int. For example: "Change {NAME} in the string to the user's name." Dec 22 19:19:13 Dreeass, use a regex to replace it? Dec 22 19:19:56 GEEGEEGEE, I found a solution: getResources().getString(R.string.NAME).replace() Dec 22 19:20:04 yeh Dec 22 19:20:25 https://developer.android.com/reference/android/content/res/Resources.html#getString(int,%20java.lang.Object...) Dec 22 19:20:42 Or just use what's already built in Dec 22 19:21:48 SimonVT, thanks. I'll look for an example first then. Dec 22 19:24:04 SimonVT, can you give me an example of using the formatArgs? Every Stackoverflow question uses String.format. Dec 22 19:26:27 Found one Dec 22 19:56:50 hello. i am writing an app that communicates with a webserver. i need to poll the server every few seconds to check for data (this may happen across multiple activities). is a TimerTask a reasonable way to accomplish this? Dec 22 19:57:38 i assume, since it forks its own thread, It will persist across multiple activities Dec 22 19:59:25 Why not make the server tell you when there's new data? Dec 22 20:00:11 because there isn't an open socket, its just accessing an API Dec 22 20:00:51 GCM would be an idea. Dec 22 20:00:53 kakazza: in other words, i wasn't sure how to implement that :) Dec 22 20:01:17 Polling every few seconds is bad for the battery. Dec 22 20:03:38 kakazza: i will look into it, thanks Dec 22 20:23:35 Hey all Dec 22 20:48:02 Hi, in Android Studio, is there no window for like syntax errors etc? Like in visual studio? Dec 22 20:49:40 If I want to make an app that supports android 2.3.X to 4.4.X, do I need to download all the SDK platforms or just 2.3.3 and 4.4? Dec 22 20:52:39 Does someone know how to remove the padding in a default preference screen? The following approach suggested on several websites including Stackoverflow doesn't work because the arguments on line 3 do not matcht the requested arguments. Dec 22 20:56:08 MOUD download one SDK (19) but test on all platforms Dec 22 20:56:42 socket = mAddress.createRfcommSocketToServiceRecord(UUID.fromString("94f39d29-7d6d-437d-973b-fba39e49d4ee")); Dec 22 20:56:58 i cant seem to get anything to connect over bluetooth, even when i'm using the exact same uid as the server at the other end Dec 22 20:57:29 g00s: ok, thanks Dec 22 20:57:33 the server is from http://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-server.py Dec 22 20:58:11 what am i doing wrong with the bluetooth code? Dec 22 20:59:44 can you connect anything to the server? Dec 22 21:00:23 niro: nothing connects, including SDP Dec 22 21:00:53 what i mean is... have you proven that the server works? Dec 22 21:01:23 niro: the server can use SDP to query other nearby devices Dec 22 21:02:12 i dont have a 3rd bluetooth device to test with yet Dec 22 21:04:10 so the server works with scanning, but not listening? Dec 22 21:05:24 niro: or the client in my android is broke Dec 22 21:06:53 Would hardcoding a bunch of categories and subcategories (directly in the layout) be a very bad practice? Dec 22 21:07:08 true, but you need to narrow down which it is. so you have to gather some facts. you need to prove that your server is reliable. Dec 22 21:07:23 niro: i'm trying the usb stick on another computer now... Dec 22 21:14:31 any new info? Dec 22 21:15:46 niro: python lacks bluez support right now Dec 22 21:16:07 so its the server? Dec 22 21:16:23 different machine now Dec 22 21:16:30 so i cant recreate the problem yet Dec 22 21:18:45 hy. Dec 22 21:19:08 can anyone help me look V2L enabled kernel ROM? Dec 22 21:19:15 *find Dec 22 21:20:02 #android-root can Dec 22 21:20:06 ^ Dec 22 21:20:35 ok. Dec 22 21:20:37 thanks Dec 22 21:20:43 niro: same problem when running it with a laptop as the server Dec 22 21:20:55 Would hardcoding a bunch of categories and subcategories (directly in the layout) be a very bad practice? With this: http://img.imgur.com/c2n7UWY.png but more categories Dec 22 21:21:05 niro: System.err: java.io.IOException Service discovery failed Dec 22 21:21:15 niro: and when i try to fetch the uids list, Bundle[{android.bluetooth.device.extra.DEVICE=E0:CB:1D:D2:F9:DD, android.bluetooth.device.extra.UUID=null}] Dec 22 21:24:17 do you have a phone with bluetooth? Dec 22 21:24:24 niro: kindle fire with bluetooth Dec 22 21:24:54 and if you run the server the kindle fire connects ok? Dec 22 21:25:01 havent tried that yet Dec 22 21:25:41 i wanted the tablet to initiate the connection, so i didnt see any point in trying it that direction Dec 22 21:25:41 try that. that is what I meant about proving it works Dec 22 21:26:00 one min Dec 22 21:29:21 hello all... i looking / find / search ROM with V2L enabled kernel... any ideas??? Dec 22 21:29:37 Still #android-root Dec 22 21:29:51 This channel is for app dev. Dec 22 21:30:28 no help in android-root :( Dec 22 21:30:44 applications only? Dec 22 21:32:21 Yep. Technically it was intended for platform dev as well, but that's pretty much never discussed here.. The mailing lists are better forums Dec 22 21:32:56 ahh I am on the hunt for rom porting support Dec 22 21:35:24 Yeah, not in this channel Dec 22 21:36:11 niro: ok, strange, when i restarted bluetooth on the laptop, it responded to the sdp request Dec 22 21:36:16 which i sent several minutes ago Dec 22 21:36:25 ok Dec 22 21:38:57 that is interesting... Dec 22 21:41:04 niro: test2:[Landroid.os.Parcelable;@415f0500 Dec 22 21:41:09 sounds like you might have multiple instances of the bluetooth daemon Dec 22 21:41:23 niro: Parcelable[] uuids; Log.v(TAG,"test2:"+uuids); Dec 22 21:41:38 niro: how would i convert this over to a ParcelUuid, just cast it? Dec 22 21:42:41 java.lang.ClassCastException android.os.Parcelable[] cannot be cast to android.os.ParcelUuid[] Dec 22 21:42:44 nope Dec 22 21:44:40 but if i use .getClass, it claims it IS a ParcelUuid Dec 22 21:46:05 niro: hmmm, i think its a Parcelable[] filled with ParcelUuid Dec 22 21:46:12 so i must cast the contents, not the array itself Dec 22 21:47:12 im just reading stackoverflow Dec 22 21:47:22 what api are you on? Dec 22 21:48:09 niro: [ro.build.version.sdk]: [15] Dec 22 21:51:07 but restarting bluez on the raspberrypi doesnt have the same effect as it did on the laptop Dec 22 21:54:05 can you put the code somewhere so i can see it. Dec 22 21:55:15 niro: http://pastebin.com/R6TdtLnP Dec 22 21:55:55 niro: line 29 is currently showing NULL as the uuid list on the raspberrypi Dec 22 21:56:13 it gave some data once against the laptop, but thats now hung and refuses to restart bluetoothd Dec 22 21:57:13 niro: line 86 is when i try to connect to the service made by http://code.google.com/p/pybluez/source/browse/trunk/examples/simple/rfcomm-server.py Dec 22 21:57:45 there is a getuuid method, so you don't need to cast uuids[] Dec 22 21:58:05 yeah, but both of them where returning null at the time Dec 22 21:58:30 only once has one of them returned anything usefull Dec 22 22:01:56 bbl Dec 22 22:06:30 Would hardcoding a bunch of categories and subcategories (directly in the layout) be a very bad practice? With this: http://img.imgur.com/c2n7UWY.png but more categories Dec 22 22:07:54 yes Dec 22 22:09:23 How can one force a redraw of an individual view of a listview? I've come up with this little snippet - http://pastebin.com/reA4eP4t - but it will not redraw the row Dec 22 22:09:54 Do I have to subtract the first visible from the position? Dec 22 22:11:39 hmm, getChildAt should trigger redraw Dec 22 22:12:39 in my code, i have the adapter hook a listener into every row Dec 22 22:12:46 and store the key id in the holder Dec 22 22:12:58 so if a row is repurposed, i keep the listener, and change the keys in the holder Dec 22 22:13:10 so when the event fires, it uses the right data for updating itself Dec 22 22:13:39 bbl Dec 22 22:26:24 Hi guys, I'm trying to mod a system app on Google Glass using apktool. The problem is the following : W/ActivityManager( 204): Unable to start service Intent { cmp=com.google.glass.voice/.VoiceService (has extras) }: not found Dec 22 22:26:24 Do I need to do something special because of a system app? Dec 22 22:28:05 JulienDev: system apps go in /system/app and you must reboot after any changes Dec 22 22:29:49 clever: I pushed the app to /system/app, rebooted the device without success :( Dec 22 22:31:39 This is weird. If I use a ListView and inflate a layout, it looks different than if I just hardcode it into the layout. Layout: http://pastebin.com/2pSw8MFz Code: http://pastebin.com/G6jBZ0gT I want it to look like this: http://img.imgur.com/c2n7UWY.png but it looks like this http://i.imgur.com/8agXwkC.png Dec 22 22:33:37 oh lawd Dec 22 22:33:40 that layout xml Dec 22 22:34:05 desmin88, which one Dec 22 22:34:28 your hardcored layout xml Dec 22 22:35:49 desmin88, that is not the hardcoded one Dec 22 22:35:57 ? Dec 22 22:36:13 desmin88, on that one, I use a ListView Dec 22 22:36:21 By hardcoded I mean just use the view Dec 22 22:36:31 so category.xml is a listview item? Dec 22 22:37:01 desmin88, yes Dec 22 22:37:22 you should clean that up a bit Dec 22 22:37:43 desmin88, how? Dec 22 22:37:56 Also, doing makes it look bad Dec 22 22:38:47 add the textview and buttons above the listview Dec 22 22:38:55 each item can be reduced to simply 2 views, text and button Dec 22 22:38:56 done Dec 22 22:39:51 desmin88, TextView and button are part of the ListView element Dec 22 22:40:15 okay Dec 22 22:40:17 I don't understand what you are saying Dec 22 22:41:01 oh Dec 22 22:41:08 so each listview item has a text, button, then those 3 cards? Dec 22 22:41:21 desmin88, yes Dec 22 22:41:33 You could make it all one relative layout Dec 22 22:42:06 err Dec 22 22:43:13 nevermind Dec 22 22:44:11 desmin88, so my layout is as clean as it can be? Dec 22 22:44:21 no Dec 22 22:44:43 Android Studio Question: How can I add a source jar to one of my external libraries, so I can step into the 3rd party code while debugging? Dec 22 22:45:38 desmin88, somehow I fixed the issue with the cards themselves... now it's just the Button that says "ver más" (see more) Dec 22 23:00:15 I have a question, if I have a ListView bound to a SimpleCursorAdapter, and I want to update the data behind that Cursor bound to that ListView, should I do a separate query from the content provider to do the update? Dec 22 23:02:03 hey, is the GAME setting for acelerometer sampling consistent across devices? Dec 22 23:02:19 if not, is there some place that lists common sampling frequencies? Dec 22 23:09:23 frequencies for ? Dec 22 23:10:04 for sampling of the accelerometer, e.g. does setting the rate sample the accelerometer 20 times per second (i.e. 20hz)? 50 times? Dec 22 23:10:11 *the rate to GAME Dec 22 23:14:07 diphtherial: that's device specific, i'd imagine Dec 22 23:15:22 inter activity and inter fragment communication is such a fcking ratsnest Dec 22 23:16:31 I don't know why Android decides that my button needs more height... Dec 22 23:18:13 <|0xD34D|> diphtherial: I found the rate to vary by device and on some devices it is not a constant rate Dec 22 23:18:18 hey Dec 22 23:20:52 so I am not sure what I am doing wrong here Dec 22 23:21:06 trying to get an image path but i keep getting some weird path and it crashes the app Dec 22 23:21:14 after selecting an image from the gallery Dec 22 23:21:15 http://stackoverflow.com/questions/20735097/trying-to-get-current-path-of-an-image-being-uploaded-android Dec 22 23:22:35 ugh Dec 22 23:22:45 that's a wierd way of getting a path to URI Dec 22 23:22:57 what is a better way Dec 22 23:23:25 if you know that Uri is alocal file Dec 22 23:23:45 File myImage = new File(contentUri.getPath()) Dec 22 23:23:52 docs are your friends. Dec 22 23:24:03 also, you don't need the file in your gallery image database then. Dec 22 23:24:17 right, i did a little research, and it seems you're all right; the maximum rate does vary between devices, and that's not necessarily a guarantee even that you'll consistently get that rate Dec 22 23:24:29 apparently the delay settings are exactly that, the minimum delay between readings Dec 22 23:24:49 e.g. GAME is 20ms, meaning a theoretical maximum sampling frequency of 50hz Dec 22 23:26:42 Ok Mavrik and don't I need to store the image ultimately Dec 22 23:27:19 that sentence made no sense. Dec 22 23:27:35 yeah sorry I am trying to understand what you want me to replace Dec 22 23:28:05 which line are you referring to, just the Uri currImageURI? Dec 22 23:28:34 what do you mean by if you know that it is a local file? Dec 22 23:30:09 I'm pointing out that you needlesly wrote this horrible blob of getRealPathFromURI method Dec 22 23:30:32 which relies on data in some external database when you can get path to file from URI's that point to files directly with one line Dec 22 23:30:43 sorry I was actually following a tutorial as I am new to it Dec 22 23:30:53 http://monstercoda.wordpress.com/2012/04/15/android-image-upload-tutorial-part-i/ Dec 22 23:30:57 URI's can point also to other resources (that aren't files) and there of course that wouldn't work. Dec 22 23:30:57 that is the tutorial Dec 22 23:30:58 well Dec 22 23:31:05 understanding what you write is step 1 Dec 22 23:31:15 reading the documentation about what you want to do is step 2 Dec 22 23:32:09 right, well I thought the method described is pretty much getting the RI, it is 5 lines longer because I kept the notes otherwise it is really 3-4 lines the method Dec 22 23:32:41 http://stackoverflow.com/questions/13209494/how-to-get-the-full-file-path-from-uri Dec 22 23:32:51 can you explain what you are trying to do I found what you posted very unclear Dec 22 23:32:52 and I saw somethign similar to what you wrote here Dec 22 23:33:10 Basically I am creating a form for a user to be able to upload his profile picture Dec 22 23:33:31 ok and ? Dec 22 23:34:00 I currently have a button when it is clicked it calls the gallery to be opened Dec 22 23:34:46 and now the code shown, is what I am trying to do to basically get the path of the image and place it in the form Dec 22 23:35:02 and on submit I want to store the image on the server side Dec 22 23:35:12 I was planning on doing it through an http request Dec 22 23:35:38 sorry for writing that in 4 enters, I have to get rid of this aim habbit Dec 22 23:37:27 what in your code is being called when u click the button ? Dec 22 23:37:40 * you Dec 22 23:37:54 http://pastebin.com/CiiB66vs Dec 22 23:37:59 here I added the button code Dec 22 23:41:10 you have not added any extradata to intent data which is why I would imagine currImageURI is empty Dec 22 23:41:51 it isn't empty it shows up with a funky uri Dec 22 23:42:03 content://com.google.android.apps.docs.storage/documents/acc%3D%3d Dec 22 23:42:17 whats the problem with that ? Dec 22 23:43:13 is that correct if so then maybe something else is the problem Dec 22 23:43:40 http://pastebin.com/60V1UFFX Dec 22 23:43:46 this is the error I get so I figured it was that Dec 22 23:44:23 I still have a hard time understanding how to read errors too Dec 22 23:51:32 any cluse anyone Dec 22 23:51:36 clue* Dec 22 23:51:42 http://stackoverflow.com/questions/20735097/trying-to-get-current-path-of-an-image-being-uploaded-android I added the error now to it Dec 23 00:07:38 hello, i want to develop android on debian. I have installed the adt bundle and problems with eclipse and adb. Eclipse says (if i try to run):http://pastebin.com/Nqc3VCNe. If i close eclipse and try to do:"./adb start-server" it says: http://pastebin.com/6YjyR0ph . What am i missing? Dec 23 00:12:18 you have something listening on port 5037? Dec 23 00:23:40 are we limited to one portrait and landscape xml files Dec 23 00:23:53 forgot the question mark ?? Dec 23 00:26:44 what do you mean? Dec 23 00:27:43 you want it sideways ? Dec 23 00:27:46 45º ? Dec 23 00:27:47 :D Dec 23 00:28:07 pfn: not that i know of......how can i find out? Dec 23 00:29:46 adkins42: are you sure you don't already have an instance of adb running; perhaps in the background? What's your OS? Dec 23 00:30:00 AndreYonadam, different portrait xml files for different sized phones...so more than one. the same for landscape. Dec 23 00:30:07 Yeah Dec 23 00:30:09 you can have that Dec 23 00:30:41 Lol Dec 23 00:30:43 Idk Dec 23 00:30:53 Just load a different xml on the oncreate? Dec 23 00:30:53 right? Dec 23 00:30:57 depending on screen size Dec 23 00:31:06 ok, I asked #android, but maybe here it's worth a shot too: anyone knows of NNTP servers/groups about android? Dec 23 00:31:06 skinkitten_: https://developer.android.com/guide/topics/resources/providing-resources.html Dec 23 00:31:19 Read that, it explains how to provide resources for different configurations Dec 23 00:31:49 thanks SimonVT ! Dec 23 00:34:44 nullfxn: if i do "./adb kill-server it kills any server there is? i have debian wheezy Dec 23 00:36:09 adkins42: double checke with " ps -ef | grep -i adb ". If you get any output you may need to force-kill that adb process. Dec 23 00:37:06 What would be the best way to load a custom view repeated ontop a scrollable view? Linear layout or listview? Dec 23 00:39:13 found a couple groups in gmane (so mailing lists, not newsgroups, but worth a shot); for usenet, I have to wait until the server I use is back up again -.- Dec 23 00:39:26 Hello, I'm trying to have my app open when an NFC Tag is scanned. Here is my manifest: https://gist.github.com/MarkyC/8090215 and MainActivity: https://gist.github.com/MarkyC/8090226 It works, as in my app opens, however, my log doesn't say onNewIntent like it should, just onCreate, and onResume. Could someone shed some light as to why? Dec 23 00:39:45 adkins42: you can also check what's listening on port 5037 with " sudo netstat -nlp | grep 5037 " Dec 23 00:40:23 ah, comp.mobile.android. Dec 23 00:40:52 nullfxn: nothing listening......shall i start adb as user or as root? Dec 23 00:42:41 adkins42: should work as user, but if it doesn't, yet _does_ work as root then there's clearly a permissions issue ... probably easily solved by just creating a group with sufficient priv's Dec 23 00:45:06 nullfxn: you meant "ps -e | grep -i adb" right? you said ps -ef .......first one doesnt give me anything and nothing is listening on that port. Dec 23 00:45:33 having issues incorporating https://github.com/chrisbanes/ActionBar-PullToRefresh, wondering if anyone has a few minutes to help me out Dec 23 00:46:37 adkins42: -e should work just as well. -f just gives a "full format listing" Dec 23 00:47:31 nullfxn: f gives always something (the current command/bash i guess) e does not Dec 23 00:47:34 this is my gradle file https://gist.github.com/akatreyt/8087658 but I get cannot find symbol symbol when adding import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshLayout; to project Dec 23 00:50:19 nullfxn: i`m using gnome nm and just found on a forum that this wont work with adb on that port. ;) i`ll check in a few minutes without nm (starving....) Dec 23 00:51:09 anyone? been fighting this all day and I'm lost ;/ Dec 23 00:52:06 ah, interesting. Use xfce myself. Dec 23 01:00:04 hey Dec 23 01:00:49 I'm importing an old project into Eclipse but I get a bunch of errors on items like this: @style/NPWidget.Holo.ImageButton.NumberPickerUpButton Dec 23 01:01:09 Description Resource Path Location Typeerror: Error: No resource found that matches the given name: attr 'numberPickerDownButtonStyle'. Dec 23 01:01:23 any ideas? Dec 23 01:21:29 got disconnected... did anyone answer? :) Dec 23 01:34:45 How to handle error "No color conversion required" when using MediaCodec API? Dec 23 01:35:41 Currently doing live h264 stream decoding. I am able to decode and render on my android mini PC but failed on my Nexus 7 Dec 23 01:35:59 dequeueoutputbuffer always failed (-1) Dec 23 01:36:14 logcat shows "no color conversion required" error Dec 23 01:49:07 Why can't they rename logcat to logdog? Dec 23 01:56:13 because dog doesn't mean anything Dec 23 01:56:24 what does cat mean Dec 23 01:57:33 I am getting the following error: http://i.imgur.com/UfA3weG.png However, I have defined the DisplayMessageActivity in my Manifest file Dec 23 02:06:58 How can I fix this? Dec 23 02:09:57 smlance: pastebin the relevant part of you rmanifest Dec 23 02:12:40 Hi all. I'm rotating bitmaps using Matrix, and stack overflow got me 90% of the way there. Does anyone know of any resources that explain using Matrix? All I can find are the class docs or examples.. not explanations Dec 23 02:13:21 matrix is like tracing paper Dec 23 02:13:26 I think Dec 23 02:13:55 tracing paper? I'm confused.. Dec 23 02:16:50 f2prateek_: nvm, there was a problem with my manifest file. Dec 23 02:18:00 adahlin, me too :( Dec 23 02:20:38 hey Dec 23 02:20:46 anyone able to help me with this issue of image uploads Dec 23 02:20:53 http://stackoverflow.com/questions/20735097/trying-to-get-current-path-of-an-image-being-uploaded-android Dec 23 02:21:50 Quick question guys. Does the button source have an onDraw? Dec 23 02:21:57 Where does the abckground and everything get drawn? Dec 23 02:21:59 Is there a canvaS? Dec 23 02:22:17 *Widget.button Dec 23 02:22:18 lol Dec 23 02:22:20 ? Dec 23 02:29:10 AndreYonadam, what? Dec 23 02:31:57 CocoStorm: Like how are Widgets drawn? Dec 23 02:32:05 Are they a canvas like a custom view is? Dec 23 02:32:18 I read how android draws views. Dec 23 02:32:23 Didn't really get much out of it. Dec 23 02:35:14 CocoStorm Dec 23 02:36:00 Anyone here able to help me with getting a uri for an ima Dec 23 02:36:05 image upload button Dec 23 02:37:56 LoneSoldier728: So its a remote link? Dec 23 02:38:07 I dont think a button or a widget has an onDraw AndreYonadam Dec 23 02:38:10 it is the uri from the person's gallery Dec 23 02:38:20 when they upload a picture for their profile pic Dec 23 02:38:37 LoneSoldier728: Maybe there is no internet connection? Dec 23 02:39:05 I have an Activity that pushes a Fragment onto the stack. Should I be enabling NFC Foregound Dispatch in the Fragment, or the Activity? Dec 23 02:40:16 LoneSoldier728: ? Dec 23 02:41:19 anyone knows how buttons are rendered? Just out of curosity. Dec 23 02:42:31 They might be a nine patch Dec 23 02:42:35 not sure thoguh Dec 23 02:43:19 AndreYonadam, doubt it since you can change the color of it Dec 23 02:43:37 um not sure Dec 23 02:43:39 true Dec 23 02:43:51 does internet matter it is for the local file Dec 23 02:44:13 LoneSoldier728: Maybe the file isn't there? Or maybe you don't even have premissions. Dec 23 02:45:09 CocoStorm: color overlay? not sure. Maybe its a custom xml file where you can change the color value. Dec 23 02:46:27 AndreYonadam, that may be it Dec 23 02:47:17 Yeah I was wondering. I have a few canvases and they take up all the heap when they are all drawn at once. Imagine if each button was a canvas. ha. Dec 23 02:47:37 ohh yeah Dec 23 02:48:23 I also found out why on draw was called on all canvases. Because I had a relative layout which when you call invalidate it calls ondraw for all so it can redraw everything since everything is in relation wiht each other. **** ENDING LOGGING AT Mon Dec 23 02:59:58 2013