**** BEGIN LOGGING AT Mon Apr 15 02:59:57 2013 Apr 15 03:02:33 cyberrog I think that actionbarsherlock and the viewpager might both be trying to manage which tab is displayed at the same time. so ABS thinks one of your tabs is the viewpager, but then also has a tab with another view on it. Apr 15 03:02:50 cyberrog the weird ordering of views is because there are two nested tab sets Apr 15 03:03:13 cyberrog but it's all a bit of a wild-a** guess Apr 15 03:07:59 davcamer how to I put the tabs into the action bar instead of the TabWidget? Apr 15 03:08:20 davcamer or how do I disable the actionbar from managing the tabs? Apr 15 03:09:30 android:id="@android:id/tabhost" Apr 15 03:09:30 android:layout_width="fill_parent" Apr 15 03:09:32 android:layout_height="0dip" Apr 15 03:09:34 android:layout_weight="1.0"> Apr 15 03:09:36 Apr 15 03:09:37 android:orientation="vertical" Apr 15 03:09:42 android:layout_width="match_parent" Apr 15 03:09:44 android:layout_height="match_parent"> Apr 15 03:09:46 android:layout_width="fill_parent" android:layout_height="wrap_content"> Apr 15 03:09:50 android:id="@android:id/tabs" Apr 15 03:09:52 davcamer I think the problem is with the fragment itself.. Apr 15 03:09:54 android:orientation="horizontal" Apr 15 03:09:56 android:layout_width="match_parent" Apr 15 03:09:56 whoa there with the pasting! Apr 15 03:09:58 android:layout_height="wrap_content" Apr 15 03:10:00 android:layout_weight="0"/> Apr 15 03:10:02 cyberrog that's a bit of the layout that you need Apr 15 03:10:04 also Apr 15 03:10:06 http://developer.android.com/reference/android/widget/TabWidget.html Apr 15 03:10:14 use pastebin or similar! Apr 15 03:11:33 davcamer I've loaded a fragment that was running perfectly in another activity, and it is loaded in the correct position, but the fragments with problem keep showing problems.. I'm gonna recheck these fragments one more time.. Apr 15 03:11:39 is there a way to get the eclipse ui editor to show the actual text of a string (in a textview for example) when u reference it like this @string/welcome? Apr 15 03:13:50 davcamer could u please repost the code on paste.ubuntu.com, this code is kind of messy. heheh Apr 15 03:14:54 <__import__> So, I have a ListView, I was using a ListAdapter to keep it populated, but I moved to an ORM, and how would I keep that list correctly populated now? Apr 15 03:14:59 cyberrog the problem fragments have problems even if they are loaded in another, non-paged activity? Apr 15 03:15:04 <__import__> I'm using ORMLite Apr 15 03:15:15 davcamer so I should use a HorizontalScrollView inside the TabHost? how does that helps me? Apr 15 03:16:09 davcamer I didnt get what you said.. say it again plz; Apr 15 03:17:23 davcamer this HorizontalScrollView is useless in my layout. It can have only one child. Apr 15 03:18:15 davcamer the tabwidget is a subclass of linearlayout that can have multiple tabs Apr 15 03:20:07 davcamer ok.. I'm not understanding your point. what exactly are u suggesting me to do? Apr 15 03:20:55 cyberrog i'd suggest you add logs to all the lifecycles for your activities and fragments to see if anything is getting created more often than you want it to be Apr 15 03:21:49 davcamer also, it doesnt make sense. it's implemented exactly the same way of another activity that works perfecly. I basically copied the code from another activity with fragments and viewpager, and just changed for the purpose. Apr 15 03:22:02 I have a dialog fragment with a single edittext. I have the keyboard being shown automatically when the dialog is shown, and I am wondering how I can "submit" the dialog (equivalent to a positive button click) programatically (so that I can do it when the user presses done on the softkeyboard). Apr 15 03:22:12 davcamer, yeah i'm gonna add the logs, and see what happens.. thanks for the tips anyways. Apr 15 03:22:26 * __import__ waves his hand sadly. Apr 15 03:22:31 cyberrog no worries Apr 15 03:22:31 Hello Apr 15 03:22:46 I'm saying "hi" in all of the #android-* channels Apr 15 03:23:02 __import__ you still need to use a ListAdapter, but back it with your ORM Apr 15 03:23:09 <__import__> How? Apr 15 03:23:11 Do you guys only discuss userspace in here, or is android kernel-space dev discussed? Apr 15 03:23:19 <__import__> The adapter wants a raw list instance Apr 15 03:23:58 <__import__> Unless I stick a list instance somewhere and update it every time I change something. Apr 15 03:24:14 __import__ my bad, you need to implement Adapter yourself, unless your ORM includes an implementation (seems like they may have?) Apr 15 03:24:21 __import__ you can still your listadapter. the only difference now is that, the ORM will make it easy for you to retrieve the data. You can return a List from the ORM queries, and send this List to the adapter. Apr 15 03:24:35 dansan: app development Apr 15 03:25:23 __import__ do you know how ormlite works? Apr 15 03:25:32 __import__, have you read the docs? Apr 15 03:25:40 ahh, ok Apr 15 03:26:41 <__import__> I must admit, I haven't much :P Apr 15 03:26:49 <__import__> I'll read up then come back with any questions. Apr 15 03:27:00 <__import__> RTFM, etc. Apr 15 03:28:00 __import__ so when you read it, you will see that you will keep using your ListAdapter, you will only change the way you access your database. Maybe you will have to make small modifications to your Adapter constructor, but it's not a big change. Remember, the ORMLite will only handle the database operations, not your adapter. got it? Apr 15 03:28:33 <__import__> Correct, I understand that. Apr 15 03:33:08 __import__ add me on twitter @rogcg, if you have more doubts later, DM me.. , ok? i'm outta time now, solving these fragments problems.. but maybe I can help you later. Apr 15 03:34:20 <__import__> Will do. Apr 15 03:35:12 <__import__> "Roger" Apr 15 03:35:58 __import__ what's ur twitter ? Apr 15 03:36:05 <__import__> @entityreborn Apr 15 03:36:08 <__import__> Just added you. Apr 15 03:37:55 __import__ ok. Apr 15 03:37:58 <__import__> Ok, I think part of the issue is 1) I'm developing using a tablet, and 2) I'm using a two pane view. Apr 15 03:38:20 <__import__> the left side is a list of servers, and the right side is a bunch of controls for the selected server. Apr 15 03:38:21 __import__ what developing using a tablet? u mean coding on a tablet? Apr 15 03:38:31 <__import__> No, no, meaning my device is a tablet :P Apr 15 03:38:50 <__import__> I'm coding on my laptop. Apr 15 03:41:51 __import__ got it.. Apr 15 03:42:03 oh WTFF!! my dog just fart!! it was so loud. hahahahh Apr 15 03:42:42 <__import__> =D Apr 15 03:43:34 davcamer, see?? the problem is not with the actionbar and the tabwidget, but with the fragments itself. just loaded all of the other fragmetns that work properly, and it works like a charm.. Apr 15 03:51:15 What would be the best way to capture a swipe across a listview row? Apr 15 03:56:37 lasserix, http://stackoverflow.com/questions/937313/android-basic-gesture-detection Apr 15 04:09:29 ahh doh that makes sense thanks :) Apr 15 04:33:04 Hi guys, I have an app that send sms txt to other users.Like a chat with sms. Seems that works fine, but in some countries I'm getting the error: Generic failure. Do you know what it mean? Why in some countries works perfect and others not? Thank you! Apr 15 04:35:36 anyone can help me? Apr 15 04:42:09 hey guys, can I use Eclipse to build an jquery-mobile/phonegap app? Apr 15 04:43:44 anyone? Apr 15 05:40:00 When screen is moved from vertical to horizontal position, the actual "activity" is recreated ? Apr 15 05:40:46 Is it better or not to use Holoeverywhere to give an app on an device running pre-holo ui a cleaner look? Apr 15 05:41:56 Hi guys, anyone worked with sms and get this error: "generic failure"? Apr 15 05:45:00 bluesm: yes Apr 15 05:46:33 bluesm: potentially Apr 15 05:46:55 Leeds: under what circumstances dont it ? Apr 15 05:47:04 when you tell the system not to? Apr 15 05:47:25 well yeah, but thats a little odd :) Apr 15 05:48:14 i have three ListViews inside ViewPager, how can I attach onClickListeners to each of the entries? Apr 15 05:48:38 any help is deeply appreciated. Apr 15 05:48:41 agent47: would you not want onItemClickLis* Apr 15 05:48:53 yup Apr 15 05:49:05 rather than onClickLis* Apr 15 05:49:39 StingRay_: http://dpaste.com/1058336/ http://dpaste.com/1058337/ Apr 15 05:50:00 StingRay_: this is what i have implemented so far Apr 15 05:51:34 ok, so whats your question ? Apr 15 05:52:54 i want to attach an onClickListener that would start a new activity, just looking for a basic syntax for the same. Any links? Apr 15 05:53:16 Leeds:How can I tell system to not ? Apr 15 05:53:16 onClickListener for what ? Apr 15 05:53:28 bluesm: http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange Apr 15 05:53:38 Leeds: To recreate view (but not recreate anything else) Apr 15 05:54:38 onItemClickListener* to trigger activity based on which item from which listView is selected Apr 15 05:54:58 I said you need an onItemClickListener Apr 15 05:55:02 for the listView Apr 15 05:55:09 and thats it really Apr 15 05:55:44 nothing much too it if you look at the examples Apr 15 05:55:54 you get a position/index Apr 15 05:56:00 for the clicked item Apr 15 05:56:07 and do what you want based on what it is Apr 15 06:10:48 If I have not android:icon="@drawable/app_icon" Why my app have icon of ugly green robot ? :D Apr 15 06:11:02 It's default for apps that don't provide ? Apr 15 06:11:59 drop an icon in drawable and point @drawable/my_app_icon Apr 15 06:23:58 lasserix: res/drawable Apr 15 06:27:19 yeah Apr 15 06:28:17 you can use this to help you too Apr 15 06:28:40 https://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Apr 15 06:29:39 under launcher icon, you suffix the drawable as res/drawable-xxhdpi res/drawable-xhpi etc etc but this tool will convert what you input into all those for you Apr 15 06:30:28 although always better to do your own based on what the icon is Apr 15 06:30:33 as in resize etc Apr 15 06:31:58 StingRay_: could you please help me understand what im doing wrong in onItemClick() -> http://dpaste.com/1058771/ Apr 15 06:33:37 agent47: how does the listView know to use that onItemClick ? Apr 15 06:35:46 well the point is from what I glanced at, it doesnt and has no relation to the listView at all Apr 15 06:35:47 StingRay_: do i have to bind the onitemclicklisteners to each of the views then? Apr 15 06:35:59 indeed, you should go thought the tutorials Apr 15 06:36:17 they are quite good for intro stuff Apr 15 06:37:09 how does a button know how to use an listener ? or any view ? Apr 15 06:37:32 you "set" it Apr 15 06:37:51 but seriously, should look at the guides/getting started Apr 15 06:38:27 StingRay_: i want to but the thing is I am making a collage open course ware app and my deadline is 3-4 days Apr 15 06:38:56 StingRay_: i know its stupid and what i'll make will end up really horrible Apr 15 06:39:04 then you should REALLY start looking at the guides quickly then Apr 15 06:39:06 but i cant do anything else for now Apr 15 06:39:59 you will waste more time with "missing" or "miss-understanding" and "waiting for help here" than quickly learning it Apr 15 06:40:52 short deadline = urgency to learn Apr 15 06:44:07 StingRay_: will do, thanks for the advice :) Apr 15 06:46:44 hi guys i am trying to show more than three PagerTabStrips in my ViewPager but only three is being shown .Can anyone tell me how can i show more than three PagerTabStrips in a ViewPager? Apr 15 06:55:01 why do right side textview have right text alignment? http://d.pr/i/vbI7+ Apr 15 06:55:56 xml layout https://gist.github.com/anddam/5386212 - also can I have the TextViews inherit android:padding and android:textSize from their parent? Apr 15 06:57:24 What does these symbols mean for the android devices? http://imagebin.org/254084 Apr 15 06:59:38 where do I store files that are removed when app is uninstalled? Eclipse says my call to getExternalFilesDir() is not available in API 7, so I can't call it. I can call getExternalStorageDirectory(), but those files aren't removed with the uninstall.... Apr 15 07:00:51 benlieb: do you really need to support api level 7? Apr 15 07:00:59 that's my question too Apr 15 07:01:00 Why in docs I spotted activities started with "dot" such as .MyActivity ? Apr 15 07:01:14 my followup is that there isnt a location that will be automatically removed in 7 Apr 15 07:01:37 bluesm, if your app's package name is com.example.app, .MyActivity resolves to com.example.app.MyActivity Apr 15 07:01:41 appel1: canadiancow: Maybe not, this is my first app, and i'm just modifying someone else's code. They have it set to support back to 7. Apr 15 07:01:44 it's just a shorter way of writing it Apr 15 07:01:50 change it to 8 :) Apr 15 07:01:53 or 14 :P Apr 15 07:02:14 canadiancow: 8 sounds fine. Is that just in the manifest, or is that all over the place? Apr 15 07:02:22 manifest Apr 15 07:02:25 minSdkVersion="8" Apr 15 07:03:15 canadiancow: that makes my life so much easier right now. How do I know what % of users are on what api? Isn't that on the website somewhere? Apr 15 07:03:22 http://developer.android.com/about/dashboards/index.html Apr 15 07:03:40 Leeds: awesome Apr 15 07:03:45 nobody using 7 :) Apr 15 07:03:45 8+ gives you 98% of active users Apr 15 07:03:50 canadiancow: So it is shortcut ? Apr 15 07:04:17 also, I reckon the OGL chart could probably go away given 99.7% on OGL 2 :) Apr 15 07:04:38 hello there! is there someone with expirience in the android maps v2 api? Apr 15 07:04:38 bluesm: IIRC it's in Java language definition, check its reference Apr 15 07:09:31 can anybody tell me if there is probably a known bug or something in the google maps v2 api for android which involves disappearing markers? Apr 15 07:31:50 hi , i am testing out ADT is there any lib that i can call to make sound from JNI ? or how can i call back to java from JNI? Apr 15 08:19:08 hey guys, what's the maximum size of an APK that you can upload to the playstore? Apr 15 08:19:51 iirc, 50MB.. Apr 15 08:20:04 any advances on 50mb? Apr 15 08:20:23 hi Apr 15 08:21:02 Im having problems connecting to my device with adb.exe, however I can see my device with an old adb.exe version Apr 15 08:21:22 feesh: http://lmgtfy.com/?q=google%20play%20store%20maximum%20size%20of%20apk Apr 15 08:22:18 adb devices: with lastest adb.exe version it doesnt show anything, but starting the old adb.exe version from 2012 shows the device connected Apr 15 08:23:14 I did google it timroes Apr 15 08:23:20 pretty much the same query and everything Apr 15 08:23:31 feesh: first 2 entries are the answers you are looking for Apr 15 08:23:43 and i guess also the next ones will have usefull information, i just clicked the first two ones :) Apr 15 08:23:54 the first 2 for me were like :( 60k apps booted off the store Apr 15 08:24:06 cheers timroes, I'll come back when I need to know where I can find basketball shoes also Apr 15 08:24:44 any hint about the text alignment thing? I'm sure it's trivial but I don't get why the text is right-aligned in the last three views Apr 15 08:49:02 Reading on http://www.vogella.com/articles/AndroidSQLite/article.html#overview_sqlite about managing and creating an SQLite db it is suggested that I have both a class for creating and upgrading a specific table and a class for querying, inserting and deleting entries in said table. Why is this a good idea? Apr 15 08:50:01 The issue I have with this being that I need 3 tables and as such would need to create 6 classes instead of making the job of creating and upgrading the table generic allowing me to only need 4 classes for the task Apr 15 08:50:26 I just use 1 Apr 15 08:50:35 for all tables in a db Apr 15 08:50:46 I like the idea for 1 class per table. Apr 15 08:50:58 I dont :) Apr 15 08:52:51 how do I make the textview width even in https://gist.github.com/anddam/5386808 ? Screenshot http://d.pr/i/17yf+ Apr 15 08:53:08 s/textview/TextView's/ Apr 15 08:53:37 anddam width = "0dp" weight="1" on all them Apr 15 08:53:38 anddam: make android:layout_width="fill_parent" Apr 15 08:54:00 I thought that having the same weight they would automatically but if I don't set width at all the view are collapsed Apr 15 08:54:04 ah okay, take xorgate's answer i missunderstood you Apr 15 08:54:21 xorgate: isn't having all weight 0 the same? Apr 15 08:54:27 no Apr 15 08:54:28 timroes: fill_parent wouldn't work, it would then only show the first textview Apr 15 08:54:30 I find the 0dp assignment confusing Apr 15 08:54:42 weight = what 'percentage' of *leftover* space do i get Apr 15 08:54:55 f2prateek: i thought he had a vertical linear layout with all below each other, and want them to have even widths Apr 15 08:54:58 oh, it's 0dp and then the remaining space, in this case all, is divided by weight Apr 15 08:55:05 if leftover space is ALL space, and all weights are the same, they get equal size Apr 15 08:55:11 got it thanks Apr 15 08:55:17 having hard time with layouts Apr 15 08:55:18 anddam: the 0dp in width isn't needed if you find it confusing Apr 15 08:55:21 first steps Apr 15 08:55:30 what would be default width for a textview? Apr 15 08:55:47 default width = wrap_content Apr 15 08:55:48 you can set there whatever you want, but if you set something like fill_parent, android iwll calculate the width, and then anyway throw it away because it has to apply weight Apr 15 08:55:58 so it it just easier to net let it calculate any width in the first place Apr 15 08:56:02 now game of thrones Apr 15 08:56:27 Eh, no timroes ;/ Apr 15 08:56:44 morning Apr 15 08:56:59 xorgate: weird thing is that if I remove explicit layout_width="wrap_content" from my xml I get http://d.pr/i/6qbX+ Apr 15 08:57:04 why is that? Apr 15 08:57:17 I read it somewhere and tested it afterwards, and at least on my device it was true, because didn't believe it either Apr 15 08:57:22 SimonVT: ^ Apr 15 08:58:20 Weight distributes leftover space to any view that has weight.. if a view is wrap_content, it'll be its measured width + its part of the leftover size Apr 15 08:59:21 that would explain why it ended up the same in my case Apr 15 08:59:29 SimonVT: yep, I read that part but I hadn't figured that 0 would provide no part in the leftover space assignment Apr 15 08:59:48 but I guess it's part of the "proportional" assignment, a proportion with a 0 factor is 0 Apr 15 08:59:59 because having empty edittexts with wrap_content will end up all the same, and then distribute the same weight on it, what causes the same effect like giving them 0 width and distrbute weight equaly Apr 15 09:00:03 yay for even width http://d.pr/i/XHtu+ Apr 15 09:00:12 anddam: 0dp is both a way to ensure that all views end up with equal size, but also an optimization so the views aren't measured twice Apr 15 09:00:15 what connection timeout and timeoutsocket would you set on a httppost? Apr 15 09:00:34 should I use dp or dip? Apr 15 09:00:40 Doesn't matter Apr 15 09:00:56 I remember a blog article about it Apr 15 09:01:04 dp == dip Apr 15 09:01:07 it needs to work on gprs -> LTE :P Apr 15 09:01:10 ok Apr 15 09:02:25 can I have the TextViews inherit textSize and padding rather than setting values in each TextView? Apr 15 09:02:34 like setting it in their container Apr 15 09:04:13 anddam: have you looked into styles and themes? http://developer.android.com/guide/topics/ui/themes.html Apr 15 09:04:19 timroes: Lets say you have two views with a weight of 1, and the total size is 20. They're both wrap_content. View 1 is measured at 10, view 2 is measured at 6. When weight is distributed, view 1 will be 12 and view 2 will be 8.. Now, if the total size was 14, view 1 would be 9 and view 2 would be 5 (weight can also make views smaller) Apr 15 09:05:01 yeah understood it, just my test what i used after i read this was very bad in that case (see above) :D Apr 15 09:05:05 not yet Apr 15 09:05:10 Tss :p Apr 15 09:06:33 again a good situation of the famous quote: "Never believe what you read in the internet." - Abraham Lincoln Apr 15 09:08:58 SimonVT: hmm. in case of fill_parent I think the behavior is a bit not intuitive. Having two buttons beside each other with fill_parent will stretch the first one, and second one will vanish. Now giving both the weight of 1, they will be 50:50. In that case it's not the 'leftover space' that is distributed between both Apr 15 09:09:50 As I said, weight can make views smaller Apr 15 09:10:16 It's just easier to leave that part out when talking about it Apr 15 09:10:48 Basically, it distributes the delta between the linearlayout size and the combined child size Apr 15 09:10:50 so fill_parent completely behaves like 0dp, because it calculates the with anyway afterwards? Apr 15 09:10:54 The delta can be negative Apr 15 09:11:07 Yes, but not really Apr 15 09:11:32 The result is the same Apr 15 09:11:38 (actually never would have occured to me to use fill_parent, just wanted to test :D) Apr 15 09:11:53 Except, with fill_parent your child views are each measured twice Apr 15 09:12:01 With 0dp they're only measured once Apr 15 09:12:17 yeah that's also what i meant above (only that i generalized it a bit too much :D) Apr 15 09:12:39 As long as you never do it, that's fine :p Apr 15 09:12:53 ofc not, master :) Apr 15 09:24:13 I know that you can select resource drawables according to DPI (i. e. drawable-hdpi) and acording to scaled device screen size (i. e. sw720dp) but what if you need to select drawables according to target device screen resolution in pixels? Is there something like sw1024px? Apr 15 09:26:23 I have to develop an app with two fragments for user input: each will have title, meta-information fields, but one will have picture content and the other just text comment, is there any easier way to blob this for transfer to a server / if there is what is this process called? Apr 15 09:26:36 *text content Apr 15 09:26:52 How can I enable kvm on a x86 android build? Apr 15 09:27:14 timroes: great quote by Lincoln ;0 Apr 15 09:27:58 yeah this guy knew what was going on :) Apr 15 09:38:09 Does anyone know of an elegant way to get a ListView's item to shrink if you shrink its text size? Apr 15 09:44:57 notbyrant maybe not so ellegant, but invalidate it Apr 15 09:51:07 I've tried invalidating the singular view and it doesn't seem to work. I can call "invalidateViews()" on the Listview, but then none of the listview items are clickable anymore :\ Apr 15 09:52:24 some jetbrains stuff 40-50% off http://blog.jetbrains.com/blog/2013/04/15/50-off-jetbrains-tools-and-help-to-plant-a-billion-trees/ Apr 15 09:53:14 Does anybody know of any freely available implementation of implementing AccountManager with GUI, similar to how for instance Google Keep does it? Popping up a list of accounts, with a prompt to create a new account on the device? And preferrably something that will run in the emulator (a lot of the google stuff only runs on the devices..)? Apr 15 09:54:10 goos: those trees better be native to the area or what's the point ;? Apr 15 09:54:29 this would increment i by 2 for each iteration right? http://pastebin.com/CzaaqXpk Apr 15 09:55:18 Lte_ this is not the correct room but just so you are aware Apr 15 09:55:25 nice, layout with style became https://gist.github.com/anddam/5386808 - any obvious comment? Apr 15 09:57:25 notbyrant: what are you trying to do actually? Apr 15 09:59:48 whats a good way to change margins of a nested linearlayout dynamically? I want to remove bottom margin when ads are displayed at the bottom Apr 15 10:00:18 I'm trying to create a custom ListView that has the middle item larger than the rest, (like some of the skins for XBMC if you have heard of that), and I've got it to grow the text, but when it shrinks it, there is space around the text Apr 15 10:00:31 Create two sets of LayoutParams. One for AdsDisplayed and one for NoAdsDisplayed Apr 15 10:00:44 Quacked, eate two sets of LayoutParams. One for AdsDisplayed and one for NoAdsDisplayed Apr 15 10:00:46 create* Apr 15 10:00:51 http://img12.imageshack.us/img12/6923/screenshot124e.png, for those interested Apr 15 10:02:08 Lite_: http://pastebin.com/DXt2SS1F ? Apr 15 10:03:01 Quacked, something along those lines yes Apr 15 10:03:11 notbyrant one sec Apr 15 10:03:27 Lite_: makes the entire screen white except for the actionbar :/ Apr 15 10:03:29 thanks, been banging on head on this for several hours :) Apr 15 10:04:07 is it allowed to print screenshots of a google maps library based app on a poster? :> Apr 15 10:04:40 notbryant: possible to set padding for the items in the listview? Apr 15 10:04:57 Margins are set in pixels Apr 15 10:05:17 SimonVT: or dp? Apr 15 10:05:26 In code, it's in pixels Apr 15 10:05:35 hmm so I did something similar with listview, in the onitemclick save the position/id of the row, then invalidate the listview, in the adapter if the selected pos/id matches view (row) being inflated, use different layout (ie add padding or whatever) Apr 15 10:05:38 SimonVT: oh Apr 15 10:06:03 Quacked: I don't think it's the padding, unless Android automagically sets that when you shrink text, but it could be. I'll try it. Apr 15 10:06:12 public void setMargins (int left, int top, int right, int bottom)Added in API level 1 Apr 15 10:06:12 Sets the margins, in pixels. Apr 15 10:06:31 lasserix: well the problem is it works great if I call invalidateViews(), but then none of the items are clickable, and I have absolutely no clue why Apr 15 10:06:38 notbryant: just thought it could be possible to set a negative value for padding as workaround :) Apr 15 10:07:03 ugh, sounds like a dirty hack. but it might just work :P Apr 15 10:07:10 notbryant: I agree completely ;) Apr 15 10:08:32 ok so I think I figured out the not-clickable problem. Apparently calling invalidateViews() makes the items focusable Apr 15 10:09:25 SimonVT: I see.. Apr 15 10:09:47 negative padding for the win Apr 15 10:10:40 ok, I guess I solved my own problem, though I hate the idea of having to invalidate all the views then iterate over them Apr 15 10:11:05 why you iterating over them? Apr 15 10:11:37 because calling invalidateViews() makes all of the children focusable, so I have to set them as not focusable to allow them to be clicked Apr 15 10:11:58 hmm i don't have too in my own implementation of the same thing Apr 15 10:12:11 actually, it looks if I can do linearLayout.setPadding(0,0,0,0)... is that a bad idea compared to the layoutparams? Apr 15 10:12:25 It's a different thing Apr 15 10:12:34 margin != padding Apr 15 10:12:58 yeah, but I just realized that the linear had padding for all directions Apr 15 10:13:08 I think eclipse put it there automatically Apr 15 10:13:16 and created dimen/activity_vertical_margin Apr 15 10:13:19 notbyrant if you are really worried just time benchmark it and see if it actually anything more than 3 ms ;p Apr 15 10:14:06 I'm more worried about it lagging when the user is scrolling up or down Apr 15 10:14:10 i have to do that for all views in any layout with edit texts where i want to make sure the keyboard will close when clicking out Apr 15 10:14:36 i doubt it'lll be a problem Apr 15 10:15:02 can't you just set the focusability on the getview of the adapter since it's already "iterating" them? Apr 15 10:15:35 hmm, let me try Apr 15 10:16:40 bygum, it works.....I thought I had already tried that. Thanks, lasserix :) Apr 15 10:17:34 ahh no problem sorry it took me so long took a 2.5 break to dive into opengl Apr 15 10:17:40 2.5 month Apr 15 10:19:07 back to work, goodluck notbyrant Apr 15 10:20:05 thanks man Apr 15 10:48:42 guys, how would i do AsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, ..) if i were to build it for api level 8 and above? Apr 15 10:51:23 there were some changes with asynctask whether or not to start tasks instantly or after the previous one was finished Apr 15 10:55:40 hullo Apr 15 10:58:03 i'm just trying to make my first proper android app, which contains drawing to the screen, i get that to render with a canvas we keep the drawing/flushing to the screen bit seperate from the logic in my SurfaceView implementation, but what kind of object should i use to store the brush strokes the user makes (which come in through touch events on the view)? Apr 15 11:06:24 er_dos that kinda depends on what you're drawing Apr 15 11:06:53 the user will be drawing simple lines like you would in ms paint Apr 15 11:07:38 i'm kind of following the LunarLander example Apr 15 11:10:46 why can't I upload screenshots to google play which do not contain the android 3 menu bar? after all, it is totally confusing when browsing play store Apr 15 11:12:52 seeing a menu bar in a menu bar, with the screenshot scaled down a tiny bit Apr 15 11:13:11 I always wondered why developers are so careless with it, and now I realized its google forcing us Apr 15 11:17:23 hey guys just trying to build a new kernel from source, did it for first time the other day on stock source from htcdev Apr 15 11:17:39 i have built a model in excel showing the cash flows of a mobile game app. can someone take a look at it and see if they think its correct? Apr 15 11:17:44 but have a new kernel source that should allow me to run a JB based build on the handset Apr 15 11:18:00 i have built a model in excel showing the cash flows of a mobile game app. can someone take a look at it and see if they think its correct? Apr 15 11:18:18 can someone refresh my mind as the commands to build kerne as i have gotten lost in other things and forgotten as am noob lol forgot to make notepad with command lists for easy use Apr 15 11:20:35 guys this chan is for app development. try #android-root Apr 15 11:30:42 er_dos think of a datastructure halfway between a motion/touch event and brush stroke Apr 15 11:31:16 hmm, a collection of vectors? Apr 15 11:31:41 how do you rebuild the activity on orientation change ? Apr 15 11:31:44 anyone here used touchDB? I know it's not android-sdk specific, but I'm a bit stuck. I always get an empty list from my query. Apr 15 11:31:55 or 'restore state' is the proper term Apr 15 11:32:23 but if you can translate the touch events/motion events into some instructions to draw on screen, then keep an array of that or whatever Apr 15 11:32:39 heh, i haven't really thought that far ahead yet but i'm guessing i'll save the state in onSaveInstanceState right? Apr 15 11:32:48 right but what state are you going to save? Apr 15 11:33:00 and do you for instance want a history that the user can undo step by step Apr 15 11:33:08 the state of the custom view, which would somehow contain those strokes i guess Apr 15 11:33:29 hmm yes, that would be a good idea! Apr 15 11:33:34 it really depends on the complexity of your implementation, but for now you could either do some vectors containing the brush stroke information, or if you wanted to be really simply just the bitmap Apr 15 11:33:53 maybe i'll start with the bitmap Apr 15 11:34:06 i can just draw lines to that right? Apr 15 11:34:12 but i personally would try and translate the touch events into some data structure that can be used to do things like undo or change the color of some set of touch events stuff like that Apr 15 11:34:30 yeah draw them to a canvas then bitmap the canvas Apr 15 11:34:35 then draw the bitmap to the canvas Apr 15 11:34:44 would be the simplest way to restore state Apr 15 11:35:42 what about for a really simple implementation (just so i have something working), a canvas that does nothing but store the strokes, like, when the view gets the touch events i draw to the canvas, in the other thread that draws the picture, take that canvas, get the bitmap, and place it in the real canvas? Apr 15 11:35:59 ah, hehe you were typing the same thing i was typing! Apr 15 11:36:01 cool Apr 15 11:36:16 it's good to get some clarification, because this is so far what i'm normally used to doing! Apr 15 11:36:46 thanks lasserix, i'll try see if i can get that working Apr 15 11:38:39 the key, i think it applies to games too, is to translate the touch input into a format / data struct that is atomically useful to your implementation, since the touch/motion events are general themselves Apr 15 11:39:21 atomic may not be the right word, but anyways :P Apr 15 11:39:39 i gtg eyes been glued to the screen and im forgetting to blink again, good luck! Apr 15 11:58:16 I'm controlling the actions on back key presses and I do "if (helpText.getText().equals(getResources().getString(R.string.help_text)))", but it won't work because i have set in my string. Any suggestions? Apr 15 12:02:38 maybe I just need a tostring.. testing Apr 15 12:03:37 yah, workie :) Apr 15 12:23:35 hi. i want to pass data from edittext to textview of another activity. i write textView.setText(getIntent().getExtras().getString("string")); and i get error textView cannot be resolved Apr 15 12:23:42 help please Apr 15 12:31:11 ... that would mean textView doesn't exist Apr 15 12:31:20 what is textView supposed to be? Apr 15 12:32:45 you should most likely try to get a reference to it with findViewById() which is a part of the Activity class Apr 15 12:38:46 er_dos, now i am getting error that edittext cannot be assigned to textview. how can i achieve this? Apr 15 12:38:59 do you know what casting is? Apr 15 12:39:09 ohhh yeah Apr 15 12:39:18 let me try that Apr 15 12:39:38 heh, that's a pretty common thing since that findViewById will always just return a.. View i think Apr 15 12:39:49 Abhijit: do you use the adt bundle? Apr 15 12:40:12 eclipse Apr 15 12:40:35 if you've got that set up properly when you get an issue like that, you can put the cursor over the line with the error, press ctrl+1, and it will suggest a fix Apr 15 12:40:51 it reminds you that you need to cast in those situations, it's very handy Apr 15 12:42:04 actually, you won't be able to cast, if you're grabbing an edittext, it needs to be assigned to an edittext object Apr 15 12:42:08 not a textview object Apr 15 12:42:15 ok Apr 15 12:44:15 free app with ads + pro app without ads or free app with ads + in-buy option to remove ads? what do you prefer? Apr 15 12:44:21 I want to put an ImageView in the upper right corner of a LinearLayout, how can I do that? I can't find the android:gravity attribute Apr 15 12:44:33 in-app buy option* Apr 15 12:46:22 @elegos, @Abhijit, EditText is a subclass of TextView, so casting it to textview should work. Apr 15 12:46:39 oops my bad Apr 15 12:46:49 er_dos*. woops. wrong person Apr 15 12:46:55 lol Apr 15 12:47:56 ok Apr 15 12:48:08 so EditText and TextView have the same setText method? Apr 15 12:51:23 er_dos, Xerixe how can i limit the app upto certain date? for demo. Apr 15 12:51:38 ? Apr 15 12:52:02 client has not paid remaining balance. Apr 15 12:52:10 lol Apr 15 12:52:32 he want to use app for 15 days before payment Apr 15 12:53:19 ?? Apr 15 12:53:36 hmmm Apr 15 12:54:00 i guess you could just check the date when it runs Apr 15 12:54:08 close it if it's past the due date Apr 15 12:54:18 easy to hack / fudge / bypass Apr 15 12:54:45 then do activity.finish? Apr 15 12:54:51 Heya folks, quick question - Did anyone here try to implement a "location sensitive" viewpager? I am referring to something like google chrome uses, where swiping around the mid point scrolls around the page (the fragment), while swiping at the edges will trigger the viewpager Apr 15 12:55:05 what's the deal with publishing, is there some standard way to try to stop people from modifying your code? java's pretty easy to decompile i would imagine Apr 15 12:55:33 i don't know what code signing is, but i have a feeling it has something to do with that Apr 15 12:55:37 any idea how to make dialogs with some kind of hierarchy? Like, I have main dialog with 2 options (food, drink), user will click on food, and choose some food from list, then, he'll return to main dialog, select drink (or not), and then after confirming the main dialog, order will be sent. Apr 15 12:56:37 StringRay_: how would you approach that? Apr 15 12:59:05 I am thinking about using dialog fragment and manipulate it's content... Apr 15 13:04:03 I'd just make the app check with my remote server for a timestamp with an md5sum/crc and disallow the app to continue to run if the timestamp or md5/crc were invalid or there was no network Apr 15 13:05:34 pragma-, will finish and system.exit will do? Apr 15 13:10:46 this is not working if(mMonth == 4 && dayofmonth != 10) { finish(); System.exit(0); } Apr 15 13:11:32 thats a very odd statement for what you want Apr 15 13:12:18 so it's going to run on every day + or - except the 10th of moth 4 ? Apr 15 13:12:25 your going to stop it for a day ? Apr 15 13:12:53 oh sorry Apr 15 13:13:16 ok. i changed it. now its working. Apr 15 13:13:26 very odd Apr 15 13:13:27 :) Apr 15 13:13:58 if(dayofmonth == 15) works Apr 15 13:14:07 erm Apr 15 13:14:10 well... it's the 15th today Apr 15 13:14:29 you should be doing a timestamp millis > Apr 15 13:14:35 are you just copy and pasting this from somewhere? Apr 15 13:15:37 StingRay_: what about if you had some small part of your application unencrypted, that contacted a server with the current time, and the server sent back a key that in combination with the time made up key to decrypt and run the rest of the program Apr 15 13:15:46 that would be pretty close to foolproof Apr 15 13:16:04 actually Apr 15 13:16:08 not really Apr 15 13:16:17 they could just sniff one key.. Apr 15 13:16:30 and modify the unencrypted bit to always use that key Apr 15 13:16:32 at the end of the day you want a solution that assumes your program is open source :) Apr 15 13:16:40 oh good, it's "roll your own copy protection" time in #android-dev Apr 15 13:16:42 oh and then they could use the key to get the contents >_ you should do what EA did with SimCity, because that worked out so well Apr 15 13:17:01 you mean make a game that kept no promises? Apr 15 13:17:14 a game where the poop pathfinding can be broken, causing your sewer lines to back up? Apr 15 13:17:23 o/ lov Apr 15 13:17:30 a game which, in fact, has POOP PATHFINDING Apr 15 13:17:33 it's my last week in android-dev ;| Apr 15 13:17:34 lol, bring up controversial topic, suddendly everyone starts talking, where were you guys when poor Abhijit need help with casting Apr 15 13:17:34 no, I mean make a game which didn't work for a large proportion of buyers, because they were so keen to make sure that nobody pirated it Apr 15 13:17:44 er_dos: still on the train to work probably? Apr 15 13:17:51 ^_^ Apr 15 13:18:12 Leeds: the game also didn't work for a large proportion of buyers because the gameplay was fundamentally broken Apr 15 13:18:18 does anyone have any idea why on an SGS3, HOX and AndroVM, accessing my expansion pack works fine, but on a Nexus 4, it fails due to FileNotFoundException (/storage/emulated/0 is not a folder) Apr 15 13:18:26 traffic ouroboros, etc Apr 15 13:18:32 lov: but the important thing is that nobody pirated it Apr 15 13:18:33 :-) Apr 15 13:19:02 Well, no one pirated it in the magic hours when it was still fresh and new. Apr 15 13:19:17 And then people figured out how to make it play offline, but by then people realized that it was terrible and didn't want to pirate it. _. Apr 15 13:19:20 ._> Apr 15 13:19:20 asfuiohasdiuh Apr 15 13:19:23 I think I know of only 1 way to make it pritate proof Apr 15 13:19:24 too early for facial emotes Apr 15 13:19:40 make it free Apr 15 13:19:42 StingRay_, yeah, you don't release your game Apr 15 13:19:54 so back to my important problem everyone Apr 15 13:20:06 or I'm going to buy an iPhone or iPad etc etc Apr 15 13:20:15 go and buy Apr 15 13:20:21 you wont be dissapointed Apr 15 13:20:46 I hope my sarcasm was detectable, despite the lacking ':P' smiley Apr 15 13:21:04 I hope you detected none in my comment Apr 15 13:21:06 :) Apr 15 13:21:06 feesh: back to your problem, I do not know what's broken. Apr 15 13:21:17 feesh: if you can make a nice reproducable test case, file a bug at b.android.com Apr 15 13:21:58 lov, BUG: Expected: sample code to work. Actual result: it did not. Apr 15 13:22:39 hmm... Apr 15 13:22:45 hah Apr 15 13:22:49 file that shit then Apr 15 13:22:58 it's either a documentation bug or a platform bug Apr 15 13:23:07 shouldn't you only see /storage/emulated/0 on 4.2? with the multiuser support? Apr 15 13:23:53 or do you mean you're seeing /storage/emulated/0 on the N4, but it's wrong? in which case, what is the right location? Apr 15 13:24:13 Leeds, the folder doesn't exist, but Environment.getExternalStorageDir() returns that Apr 15 13:24:29 does the problem happen on devices where your app was installed before the 4.2 upgrade? or where the app was installed after? Apr 15 13:24:34 Do you have permission to read external storage? Apr 15 13:24:38 are you looking at a 4.2 N4 or a 4.1 one? Apr 15 13:24:43 SimonVT, read & write Apr 15 13:24:44 lots of possible variables Apr 15 13:24:51 fresh install of the app on the device Apr 15 13:24:54 4.2.2 Apr 15 13:25:13 fresh install from the market^Wplay store, presumably Apr 15 13:25:21 I'll write a simple test case Apr 15 13:25:49 Leeds, I'm just plonking my obb file in ~/Android/obb/my.package.name/main.1.my.package.name.obb Apr 15 13:26:06 wait, you're manually installing it? Apr 15 13:26:12 the zip_file library in sdk/extras/google/.../zip_file/library works on several devices apart from the n4 Apr 15 13:26:15 for now yes Apr 15 13:26:45 charging my n7 to see if the issue is consistent across google devices Apr 15 13:30:04 on my 4.2.2 N7 there are 3 different obb directories mounted as tmpfs or through FUSE Apr 15 13:30:58 yeah, I've noticed that Apr 15 13:31:04 I wonder if the location has changed in 4.2.2 :O Apr 15 13:31:13 K.O, my quest for the rowntree continues Apr 15 13:31:32 point is, it's not simple, and what matters is where the play store puts the obb Apr 15 13:32:03 yeah Apr 15 13:32:20 sadly I don't have the provisions to test from the playstore for now Apr 15 13:33:26 game over man, game over. cheers Leeds, you gave me a ……… LEAD Apr 15 13:33:49 a unicode unicode unicode LEAD? :) Apr 15 13:34:08 oh man, pardon OS X Apr 15 13:34:26 I meant ellipsis, ellipsis, ellipsis LEAD Apr 15 13:34:33 as in "wait for this bad pun" Apr 15 13:35:17 uh-huh... Apr 15 13:35:18 i got an android-project on my windows-pc that i wanna host/push/share on github. How should i go about doing this? Apr 15 13:35:35 cHarNe2: sign up for a github account, use git? Apr 15 13:35:43 I don't know why you're asking the question here. Apr 15 13:36:18 i mean if there are some files that i should not add to the repo, and what files that has relevanve beeing there? Apr 15 13:36:35 or should i just add the entire directory? Apr 15 13:36:36 don't add any of the autogenerated files/directories. Apr 15 13:36:40 dont do it, github will eat your soul! Apr 15 13:36:57 so, skip gen, skip local.properties if it exists. You probably don't want to add the .classpath or .project eclipse files if you use eclipse. Apr 15 13:38:46 ok Apr 15 13:39:06 should i check the box "add .gitignore: Android" ? Apr 15 13:39:11 you could do Apr 15 13:39:15 it'll handle some of those cases for you Apr 15 13:39:25 nice Apr 15 13:39:26 but check for .classpath and .project as they might not be included Apr 15 13:39:39 it was :) Apr 15 13:39:52 off you pop, on your github adventure Apr 15 13:40:34 got a couple of things there already, tho none of them are in "project"-form Apr 15 13:45:52 what connection timeout and timeoutsocket should I set on a httppost? Apr 15 13:46:08 * kaneda^ shrugs Apr 15 13:46:09 30 seconds? Apr 15 13:46:17 i think 30 seconds is the default anyways Apr 15 13:46:45 atm I have timeout to 5000 and timeoutsocket to 10000.. hmm Apr 15 13:46:53 are those in seconds or MS? Apr 15 13:46:59 i think that's 5 seconds and 10 seconds Apr 15 13:47:00 ms :) Apr 15 13:47:03 :) Apr 15 13:47:08 yah Apr 15 13:47:17 Quacked, depends, i sometimes open up a socket just to knock, so i say give it back in 0.5 seconds Apr 15 13:47:42 what do you mean? Apr 15 13:47:44 Remember that mobile connections can be slow Apr 15 13:47:50 Not everyone is connected to wifi at all times Apr 15 13:48:04 SimonVT: yeah, I capped the emulator to test for that Apr 15 13:48:38 but maybe I should still increase it Apr 15 13:48:39 radio can take 2 seconds to spin up from cold Apr 15 13:48:41 1.5 when warm Apr 15 13:49:21 + it might momentarily lose connectivity in the middle of a post Apr 15 13:49:38 Have to give it time to handle that as well Apr 15 13:50:03 SimonVT: you have a suggestion for periods? Apr 15 13:50:44 30 sounds reasonable Apr 15 13:51:36 and for the connection? Apr 15 13:52:16 I don't know, really Apr 15 13:52:28 Just assume the worst conditions possible, handle that Apr 15 13:52:58 maybe I should let the user be able to abort the search Apr 15 13:59:53 but how do I abort the httppost while its running? :S Apr 15 14:00:27 the httpclient.execute Apr 15 14:06:40 Quacked: you can call abort on the HttpPost object Apr 15 14:07:31 Quacked: I'm assuming you're using the Apache stuff? Apr 15 14:09:25 so, I have a thread that loads a Bitmap for an ImageView, and when it's done, I want to set it as the ImageView's bitmap. my separate thread runs, and upon completion, I do something like imageView.post(new Runnable(){ imageView.setImageBitmap( bitmap ); }); -- problem is, while setImageBitmap issues a requestLayout, the imageView is only SOMETIMES re-measured. After debugging, I figured out that when Apr 15 14:09:27 it fails to re-measure the image (leaving its measured size set to 0, and no bitmap showing), that's actually because android was in the middle of a layout phase, while my runnable was executed, which caused the PFLAG_FORCE_LAYOUT flag set by requestLayout's to get unset (when the layout phase ends). As a result, the next measure phase didn't measure the image view (it didn't have PFLAG_FORCE_LAYOUT). Apr 15 14:09:29 how do I deal with this? How do I make sure my runnable gets executed AFTER the main thread is done laying out? Apr 15 14:12:43 Hello all... Apr 15 14:12:56 lhunath: what happens if you toss in a postInvalidate() as well? Apr 15 14:13:29 I'm having LAG problems with a few android devices, and I'd like to find out which app takes most time/memory. I'd like to do that with an 'adb shell'. Any pointers? Apr 15 14:15:10 jjnye: yah Apr 15 14:16:08 jjnye: no difference. does invalidating even cause a re-measure? Apr 15 14:16:34 Lachezar: how about "adb shell dumpsys meminfo"? It's a lot of information but it might get you something Apr 15 14:16:55 jjnye: how would I do that if I have the http post request onHandleIntent() in an IntentService? Apr 15 14:17:41 jjnye: Trying... Apr 15 14:18:31 jjnye: 23751 kB: com.facebook.katana (pid 7970) Apr 15 14:18:54 jjnye: It seems... Low... Still more than all other services combined :-/ Apr 15 14:19:11 Hmm, I'm not seeing the problem re-occur if I do imageView.postOnAnimation(new Runnable() {... Apr 15 14:20:19 Lachezar: that's comparable to what facebook is doing on my device... Apr 15 14:22:04 lhunath: huh, neat. when/where are you starting your thread that it behaves like that? i'm not sure that i've ever run into that problem Apr 15 14:22:32 jjnye: send an extra with the intent and check to either abort or start new request? Apr 15 14:23:30 jjnye: Load: 5.65 / 6.12 / 7.8 Apr 15 14:23:32 Quacked: i'd be more inclined to do a bound service in that situation Apr 15 14:23:50 lhunath, post a runnable to your handler during layout Apr 15 14:24:38 jjnye: dont know that yet.. is it necessary? :P Apr 15 14:29:11 * Lachezar is puzzled: CPU use around 0.5%, yet load is >5! and anything I do is laggy, choppy and slow... Apr 15 14:30:12 Lachezar, IO blocking? Apr 15 14:31:05 Lachezar: yeah I was gonna say your RAM is near-full and you're thrashing disk Apr 15 14:32:12 jjnye: Ram is abou 250, it has 512... Apr 15 14:32:52 jjnye: Well... meminfo totals around 250-300 MB, and the device has 512 memory... Should be enough. Apr 15 14:33:05 Quacked: kind of? IntentServices are more for "fire and forget" kind of work Apr 15 14:33:26 jjnye: The funny thing is: there are a handful of processes in 'D' state... But I assumed those are used for IO sync. Apr 15 14:36:20 Huh! My phone: Load: 36.56 / 18.57 / 11.62 Apr 15 14:36:35 that's awfully high Apr 15 14:36:44 unless you have 36CPUs Apr 15 14:37:21 jjnye: yeah, I guess Apr 15 14:37:51 kaneda^: It would be high for 36 CPUs too! Apr 15 14:38:09 maybe I should just ignore letting users abort the search :P Apr 15 14:40:08 Hello Apr 15 14:40:22 Trying to get Gravity vertical to work.. Apr 15 14:40:47 Have a custom ViewGroup with several TextView objects Apr 15 14:40:59 TextView objects generated in code Apr 15 14:41:24 has anyone worked with the htc flyer? Apr 15 14:41:24 Setting Gravity to Center only centers horizontal. Verical fails Apr 15 14:42:16 wordToDaBird: yes Apr 15 14:42:17 i love it Apr 15 14:42:28 until they put honeycomb on it Apr 15 14:42:37 mikedg: you have any issue with it? Apr 15 14:42:44 dev or user wise? Apr 15 14:42:46 what problems you experience? Apr 15 14:42:48 dev Apr 15 14:43:08 I haven't noticed any dev problems. I've been doing pretty basic appy stuff though Apr 15 14:44:00 i also havent touched it in like a year though Apr 15 14:44:11 I am trying to get the users location through html5 and all the other devices, probably 20 now work. But, the flyer will not call the callback onGeolocationPermissionsShowPrompt Apr 15 14:45:12 i've checked to make sure that the device has location sharing enabled. Apr 15 14:45:49 I have had the QA person turn the device on and off, I have even had the QA person go to a site that gets your long and lat, can't get location through there either. Apr 15 14:45:56 Device specific implementation errors? You don't say! Apr 15 14:46:12 This problem on exists when using the default android browser, firefox works fine but webkit is dying Apr 15 14:46:59 lov: I know but, I have to fix this. Client wants this to work on all devices Apr 15 14:47:21 have the client pay for you to fly to taiwan to badger HTC to fix their shit. Apr 15 14:47:25 * lov shrugs Apr 15 14:47:36 * wordToDaBird nods Apr 15 14:47:58 noone is using a flyer :) Apr 15 14:48:12 my QA team is :( Apr 15 14:48:48 hmm... Apr 15 14:48:58 wonder if there is an htc chat room somewhere Apr 15 14:49:13 not with anyone competent Apr 15 14:49:23 your best bet is probably stackoverflow or newsgroups Apr 15 14:50:17 lov, I have SO this to death, google as well. I generally don't ask here until i can't find diddly. Apr 15 14:50:36 yeah, you're pretty good about that. Apr 15 14:50:41 mikedg is really your best bet Apr 15 14:50:44 he's the only one that bought a flyer Apr 15 14:50:59 :) Apr 15 14:51:10 mikedg: do you own it now? Apr 15 14:51:23 yeah, it's in a drawer at home Apr 15 14:52:05 hi what is the easiest way of getting the current day of the week, full string i.e monday Apr 15 14:53:35 coco89: seriously? Have you tried typing that into google yet? Apr 15 14:53:47 coco89: simplest way I can think of is find the day the year started on then do a modulous on the number of days Apr 15 14:53:48 there is an entire class about Dates in Java Apr 15 14:53:57 simpledateformatter Apr 15 14:54:00 ah okay Apr 15 14:54:18 format* Apr 15 14:59:11 actually, coco89 simpledateformat might handle this, but there is usually a method that gets the current date as of sometime in 1971. If you use that convert to days and then mod by 7 you will know what day of the week it is Apr 15 15:00:32 oh man i'm in the big leagues now http://i.imgur.com/ohWBmzi.png Apr 15 15:01:53 so day = DateFormat.format("EEEEEEEE").toString() would return something like Monday? Apr 15 15:02:51 huh Apr 15 15:03:00 use Calendar.get(Calendar.DAY_OF_WEEK) Apr 15 15:03:01 ... Apr 15 15:03:07 I think that would return an object string ref Apr 15 15:03:11 :) Apr 15 15:03:34 StingRay_, oh :S Apr 15 15:04:32 http://stackoverflow.com/questions/7651221/android-how-to-get-the-current-day-of-the-week-monday-etc-in-user-languag Apr 15 15:05:18 is there a reason why they use 4 E's? Apr 15 15:05:31 xorgate: which one is yours? Apr 15 15:05:38 oh nvm Apr 15 15:05:39 because with less than you get Mon instead of monday Apr 15 15:05:42 read the post Apr 15 15:05:44 and comments Apr 15 15:06:26 4 Es gives the full output of the placeholder Apr 15 15:06:33 read the apidocs Apr 15 15:07:39 yeah just saw it, and for the current time I shuold use the same simpleDateFormat? Apr 15 15:08:47 why not Apr 15 15:08:51 what do the docs say Apr 15 15:09:34 pfn: for people not used to reading documentation they can be a bit daunting and obscure. I will oftern google something because the docs didn't make any damn sense Apr 15 15:09:44 use getTimeInstance? Apr 15 15:09:46 learn to read the docs Apr 15 15:09:55 programming is completely about understanding specifications and documentation Apr 15 15:10:15 I know, I usually can understand docs to an extent but this one just goes way over my head :S Apr 15 15:10:30 It really is one of the acquired skills of coding Apr 15 15:10:41 whether its your own, or documentation supplied to you Apr 15 15:12:30 so I use DateFormat.getTimeInstance() ? Apr 15 15:13:01 but then that's not for human use so it wouldn't work if i posted it to my PHP script to put in a query Apr 15 15:13:42 Is the onResume method run after the activity is on screen? Apr 15 15:13:42 pfn: I'm unsure what you mean. My thread that loads the bitmap from a stream doesn't know when android is doing layout; how is it supposed to post during layout? Apr 15 15:14:47 pfn, SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); Apr 15 15:14:47 <--- like that? Apr 15 15:15:36 http://developer.android.com/reference/java/text/SimpleDateFormat.html Apr 15 15:15:44 coco89: you see the examples right ? Apr 15 15:15:48 StingRay_, yeah Apr 15 15:16:08 oh ok Apr 15 15:17:25 SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); Apr 15 15:17:25 String time = sdf.format(new Date()); Apr 15 15:17:28 that works? Apr 15 15:17:50 are you being serious ? Apr 15 15:17:59 it would take you 5 secons to find out Apr 15 15:18:00 lol Apr 15 15:18:17 seconds* Apr 15 15:19:30 my code is all over the place atm i'm scared to run anything lo Apr 15 15:19:31 l Apr 15 15:19:36 one sec Apr 15 15:20:47 add a main method in any file, paste those two lines + System.out.println, right click, run Apr 15 15:21:14 hmm when you put it like that I change my estimate to 10 seonds Apr 15 15:23:10 that feel when you know everythin is going to go tits up when you build D: Apr 15 15:28:06 JakeWharton so you are the person that put mains in all my classes Apr 15 15:32:19 gonna try to build here goes nothing.. Apr 15 15:32:57 ahhh feck Apr 15 15:33:03 my usb cable is in the carr Apr 15 15:33:05 dammit Apr 15 15:33:28 brb Apr 15 15:47:53 Should there be limitations on setting mp3s as ringtones? Apr 15 15:48:53 omg not too bad :D :D :D Apr 15 15:48:56 dangg Apr 15 15:49:04 it only does the sign in process recursively thuogh which is bad.. Apr 15 15:51:21 Okay guys, so I have a method that starts a thread and within that thread another method is called which connects to the PHP script and signs the register.. the only problem is, it keeps doing it and wont stop. How do I prevent this and only make this happen once? http://pastebin.com/gavArVvx Apr 15 15:52:23 I'm almost finished with the app Apr 15 15:52:27 just this problemm Apr 15 15:52:28 :P Apr 15 15:52:38 and a few other trivial things which i'll get ruond to later Apr 15 15:52:49 hm Apr 15 15:54:21 anyone? Apr 15 15:56:25 Hi guys, I have an app that send sms txt to other users.Like a chat with sms. Seems that works fine, but in some countries I'm getting the error: Generic failure. Do you know what it mean? Why in some countries works perfect and others not? Thank you! Apr 15 15:56:57 makin: format maybe different Apr 15 15:57:12 I love those "Generic failures" Apr 15 15:57:21 format? what you mena with format? Apr 15 15:57:26 mean* Apr 15 15:57:32 well depends how your sending them Apr 15 15:57:38 and assembling them Apr 15 15:57:47 if your not playing with PDU Apr 15 15:57:52 it depends on country? Apr 15 15:58:08 not sure tbh Apr 15 15:58:20 I think there are differences in the PDU headers Apr 15 15:58:33 think it's based on network type rather than country though Apr 15 15:58:42 aha, interesting Apr 15 15:58:51 dont take this as bible though Apr 15 15:58:58 I'm speculating Apr 15 15:59:01 When I try to set a mp3 as ringtone, I get the 2step ringtone instead, thats so annoying Apr 15 15:59:17 makin: could just be the network failed to send for some odd reason Apr 15 15:59:46 I know here in the UK on O2, I have nightmares Apr 15 16:00:03 coco89: put a break point Apr 15 16:00:09 network failed you are refering about the connection? I'm almost 99% sure that the users have network Apr 15 16:00:09 figure out what part of code is running many times Apr 15 16:00:21 it looks like that method is getting called and you are getting an assload of threads created Apr 15 16:00:30 makin: could be that 1% then ;) Apr 15 16:01:28 I have a general question about Kernals. I'm using a custom kernal for my phone since I wanted to see it run jellybean. I'm wondering how do they make these kernals and do they have to support/target that one device or can you make a kernal for multiple different hardwares? Apr 15 16:01:52 schuranator: #android-root Apr 15 16:02:05 Step 1: learn how to spell kernel Apr 15 16:02:15 this is the list of errors: http://developer.android.com/reference/android/telephony/SmsManager.html#RESULT_ERROR_GENERIC_FAILURE, there is one for no service Apr 15 16:02:54 so, I think that the generic failure is not related with no network service.. I think.. Apr 15 16:03:08 mikedg, i'll give it a shot Apr 15 16:03:53 StingRay_ and about the PDU, 99% of all messages are keywords, not text. So, the text messages are very short and I not need to assemble them Apr 15 16:08:02 I solved the problem, I accidentally placed the phone on top of the nfc tagged.. so it kept on scanning... Apr 15 16:10:01 does putString in systempreferences.edit() override the old value? Apr 15 16:17:34 how can i manually start a click event on a button ? Apr 15 16:17:46 a radio button actually Apr 15 16:18:46 ufk: I'm pretty sure a generic Button has a method to simulate a click, but it depends on the Android API used Apr 15 16:19:01 3.2 Apr 15 16:19:53 i see callOnClick() Apr 15 16:20:04 directly call any attacked onClickListener Apr 15 16:20:10 i think that should suite my needs Apr 15 16:20:50 oh it requires api level 15 Apr 15 16:20:57 not good :) Apr 15 16:21:05 Hello Apr 15 16:21:15 Can someone point me in the right direction to compile a single binary (getevent)? Apr 15 16:21:44 ok performClick() Apr 15 16:30:28 how do i see the device id of my virtual android ? i need to add it to the test devices in google admod because i see real ads and that's not good Apr 15 17:16:30 Is anybody using the Java 7 JDK for android development? Apr 15 17:16:58 jda2000: afaik, you can't Apr 15 17:17:14 maslen, That's really what I wanted to know. Apr 15 17:32:15 hi Apr 15 17:33:20 if i have an sqlite integer column and i put in "-" into it, what will happen if i want to query using greater than or less than? Apr 15 17:38:19 by "I put in "-" into it" do you mean "I put a negative number into it" Apr 15 17:38:30 or did you literally put the hyphen in Apr 15 17:42:40 funny that he used shorthand for "-" and made things confusing but "<" and ">" might not hav been confusing Apr 15 17:44:41 Can someone please tell me why, if I have two imageviews (both 169X55) and set their widths to the same value in XML, that one is bigger than the other on some devices and not others? Apr 15 17:46:04 They're placed in a linear layout and both images are given a weight of 50 and height set to WRAP_CONTENT Apr 15 17:49:30 Any mods here, Can help me to remove ban on my official nick? I don't why it got banned Apr 15 17:51:27 hi, i want to make an app that will intercept call before dialer dialing a call. how can i do that? Apr 15 17:52:45 jahid: do you know android develeopment ? Apr 15 17:52:56 StingRay_, I think so Apr 15 17:53:11 "think" ? Apr 15 17:53:27 handle the dialer intent Apr 15 17:53:29 StingRay_, I think the best way you can know that, just tell me how can I do that Apr 15 17:53:48 what dragorn said Apr 15 17:53:54 or do a dailer Apr 15 17:54:01 one of the same … kinda Apr 15 17:55:05 how my app will be invoked before the dialer? i have a broadcast receiver, i see events get trigger Apr 15 17:55:24 same way any other app is invoked when multiple handlers exist: the user is prompted Apr 15 17:55:32 but the thing is, still native(i mean the original) dialer gets notified Apr 15 17:56:54 Any mods here, Can help me to remove ban on my official nick? I don't know why it got banned :( Apr 15 17:57:31 gnuanu: considered there are only 2 ops in the channel and neither has responded I would assume the answer is "no, there are not." Apr 15 17:57:53 dragorn, sorry for my bad explanation. my intention is, i just want to know before user dials. and let me program decide if the dial should take place or not. Apr 15 17:58:32 dragorn: ohh, okie Apr 15 17:58:45 the only way I can think of to do that is if the user choses you as the dialer handler and then you explicitly call the proper dialer by a direct intent. This would likely vary per rom/manufacturer Apr 15 17:59:39 i am using sony xperia T and ZL Apr 15 17:59:56 by dialer handler you mean a broadcast receiver? Apr 15 18:01:14 Can someone who is more familiar with custom kernels help me with a few things? Apr 15 18:01:32 Contingency: #android-root Apr 15 18:01:39 Ah ty Apr 15 18:16:02 anyone knows what does "android:priority" means? and what value -1 means for priority? Apr 15 18:17:55 priority helps to determine what order an ordered broadcast gets delivered Apr 15 18:18:08 mikedg_, thanks Apr 15 18:18:11 and -1 for? Apr 15 18:18:29 no clue Apr 15 18:18:32 probably means something Apr 15 18:18:47 never mind, i will find that out Apr 15 18:27:17 yo yo yo feesh up in this bitch. Ok, so expansion files can't be uploaded the first time around on the new developer console, the help is a little confusing though, it says to put your first set of expansion files inside an APK :S? Apr 15 18:27:54 If you use "androidsrc=" on an ImageView, and set the width to, say, 50dp and the height to wrap_content, the ImageView should fill the width and keep the height proportional to the original image, right? Apr 15 18:29:55 jdawes, yeah Apr 15 18:31:59 feesh: And the same should work if you were setting their widths using weights? Like width=0dp and layout_weight=1 on both for an even distribution across the screen? Apr 15 18:32:26 id expect it to Apr 15 18:32:34 what are you observing? Apr 15 18:32:52 OK, because it's not and I don't know why. Also, I see a very small gap between the two images, not large, but noticeable. Apr 15 18:33:13 Also, it seems one image isn't getting set to the same height as the other, even though the images have the same pixel dimensions. Apr 15 18:34:11 jdawes, ok, what pixel size, which device and which density bin Apr 15 18:35:14 not being a dick, I'm just going to reproduce it now as I wait for 500meg to upload Apr 15 18:35:24 I'm kind like that Apr 15 18:36:16 Right, the images are 507X166 in hdpi. Apr 15 18:36:42 cheers Apr 15 18:37:09 I'm testing on a motorola xt910 and Galaxy Nexus (everything works fine on the galaxy nexus btw in xhpdi with different resolutions of 676X222) Apr 15 18:37:42 Could it have to do with the odd number in the width or the images? Apr 15 18:37:46 yeah Apr 15 18:37:47 of the images* Apr 15 18:37:57 well, I was going to say, it's possible that the scaling would fall on a .5 Apr 15 18:38:04 what resolution is the xt910 Apr 15 18:38:19 540 x 960 pixels, 4.3 inches (~256 ppi pixel density) Apr 15 18:38:49 brilliant Apr 15 18:38:50 so Apr 15 18:39:21 you've not got adjustViewBounds set to true? Apr 15 18:39:29 Yes Apr 15 18:39:34 yeah, thought so Apr 15 18:39:35 I do actually, sorry. Apr 15 18:39:37 seeing the same issue Apr 15 18:39:42 mhm Apr 15 18:40:02 so it's the pixel size, it can't scale it perfectly Apr 15 18:40:10 so go to even numbers? Apr 15 18:40:15 would be ideal Apr 15 18:40:35 no problem, I'll just let the guy who made the images know to keep stuff divisible by 2 Apr 15 18:40:40 I'll test now, thanks. Apr 15 18:41:22 Hi Guys, I'm using the SMS manager and sometines I'm getting random Generic Failures. http://developer.android.com/reference/android/telephony/SmsManager.html#RESULT_ERROR_GENERIC_FAILURE Do you what can be? Apr 15 18:42:30 I rly don't know what can be, in some countries I have more general failures than others.. But I think that the country is not a factor.. anyone have deal before with smsManager and generic failures? Apr 15 18:45:00 inclusive if the same number send two messages, the first one works good but the second get a general failure.. I rly don't know why it happens.. seems that there is something random Apr 15 18:45:36 makin: welcome to SMS. Apr 15 18:45:41 you might want to just retry sending. Apr 15 18:45:41 hi all Apr 15 18:46:07 lov, but maybe I'm doing something wrong.. Is very strange .. Apr 15 18:46:13 is there a way to get a list of AppWidgetProviders in my app's package? Apr 15 18:46:21 in spain works fine.. but in some countris like Mexico, have a lot of problems Apr 15 18:46:33 yeah, it's almost certainly just the telephony farting or something. Apr 15 18:46:38 ESPECIALLY if it's country specific Apr 15 18:47:02 so, what you recommend? did you have deal before with this problem? Apr 15 18:47:46 makin, wait a period, try again Apr 15 18:47:59 i got a pebble bitches Apr 15 18:48:10 mikedg_, you bastard, I've got 2 on the way Apr 15 18:48:33 feesh, how many tries? Apr 15 18:48:42 first app idea: Listen to the accelerometer for the gangnam style dance; play the song on my android devices Apr 15 18:48:48 you think that is a random error? or I can fic it with some code? Apr 15 18:48:51 lol Apr 15 18:48:59 feesh: keep waiting the sdk sucks Apr 15 18:49:07 mikedg_, :( Apr 15 18:49:21 makin, I'm guessing it'll be something you'd have to try for a few minutes Apr 15 18:49:29 that's what apps like Whatsapp do Apr 15 18:49:58 but whatsapp work via network protrocol.. not sms, right? Apr 15 18:50:10 the nice/terrible thing about the pebble sdk is it's pure C Apr 15 18:51:06 makin, the auth/registration is SMS Apr 15 18:51:13 mikedg_, haha, yeah just downloaded it Apr 15 18:51:15 interesting Apr 15 18:51:41 i compiled a test app last night and uploaded it, blank screen ftw Apr 15 18:51:44 ah ok! btw, I have about 70% of my sms with generic failure Apr 15 18:52:15 i started working on adding weather to the watchface then realized theres no communication yet Apr 15 18:52:20 makin, I'm not saying "this is the problem!" but if you don't have access to an environment where you can test stuff, all you can do is try try again Apr 15 18:52:29 mikedg_, ._. Apr 15 18:52:34 makin: there's not much you can do. You can either notify the user that the sms failed to send, or you can wait a little bit and retry. Apr 15 18:53:52 ok, I will try to resend. BTW, I think that there is something wrong in my code, I can't understand why 70% of the sms from mexico, Chile are failing...and the other ones are working Apr 15 18:54:18 makin, do you know what the network infrastructure is like in those countries? Apr 15 18:54:44 yes, I know the telephone operator Apr 15 18:55:05 is there a way to inspect my own manifest at runtime Apr 15 18:55:56 I have everything from the error. This is one line of my log> Generic failure:MX:+52:1.7.1:2.3.3:ST15a Apr 15 18:56:13 karakuri, yeah, there is a lot of stuff in PackageManager (getPackageInfo for example might be helpful) Apr 15 18:56:29 error:country:appversion;androidversion:mobiledevice Apr 15 18:57:07 makin: show an icon of the bugdroid holding a letter taking a nap when the message isn't delivered on time. Apr 15 18:57:09 feesh: do you know if I can get a list of AppWidgetProviders that are in my app's package? Apr 15 18:57:34 probably, I mean, the home screen can Apr 15 18:57:43 so you will be able to also Apr 15 18:57:49 karakuri: Use PackageManager :P Apr 15 18:58:25 lov, I will try it.. Apr 15 18:59:07 thank you! Apr 15 18:59:35 lov: can you be more specific? Apr 15 18:59:54 karakuri, play the game man Apr 15 18:59:57 d.android.com Apr 15 19:00:38 feesh: thats what i'm doing Apr 15 19:00:44 I'm still getting a 1 pixel wide strip between my imageviews, Apr 15 19:00:49 i dont see anything that directly solves me issue Apr 15 19:00:51 karakuri, I've found it Apr 15 19:00:52 or at least what looks like a pixel Apr 15 19:00:54 thats why i'm \here Apr 15 19:01:12 http://developer.android.com/reference/android/content/pm/PackageInfo.html Apr 15 19:01:25 http://developer.android.com/reference/android/content/pm/PackageManager.html#getPackageInfo(java.lang.String, int) Apr 15 19:01:32 in the PackageInfo object, the providers Apr 15 19:02:26 no, those are content providers Apr 15 19:02:34 i need appwidgetproviders Apr 15 19:02:40 those are different Apr 15 19:03:01 i can get receivers, but not all receivers are appwidgetproviders Apr 15 19:03:23 you can poll for receivers based on actions they receive Apr 15 19:03:29 and good job on passing the test .... Apr 15 19:03:33 PackageManager.queryBroadcastReceivers, but using an intent set for APPWIDGET_UPDATE and setPackage for your packagename Apr 15 19:03:52 or use AppWidgetManager.getInstalledProviders but then you need to manually filter that list to just your packagename Apr 15 19:04:00 feesh why you asked for the network infrastructure? Apr 15 19:04:07 Hi! After installing android ev plugin into eclipse and restarting eclipse, I got some "welcome to android dev" screen which attempted to dowload and install some more software (android sdk probably). I canceled that and now I don't now how to get to that screen again. Any ideas? Btw, I'm running this on linux. Apr 15 19:04:17 thanks kevinb Apr 15 19:04:57 makin, just wondering is all Apr 15 19:06:08 is possible to get a general failure if the sms is sent? Apr 15 19:06:17 hello Apr 15 19:06:25 Can anyone tell me I'm getting a small gap between my imageViews, Here's the XML (please let me know if there is a better way to get the gaps I want without using an empty View): http://pastebin.com/D15Sh9XQ Apr 15 19:06:37 and an image of what's happening:http://i.imgur.com/crTLaad.png Apr 15 19:06:40 jdawes, pixel size this time? Apr 15 19:07:05 what might cause a a 2048x2048 texture refuse to load throwing a out of memory error when OpenGL of the device claims it supports 4096x4096 and I can use much more memory if I load the textures split in 1024x1024? Apr 15 19:07:28 508X166 Apr 15 19:08:47 jdawes: Why not just have the image be just the icon, and the background be a background color Apr 15 19:09:39 SimonVT: The button has rounded corners and a drop shadow, I managed to cut those off, sorry. Apr 15 19:09:43 buttons* Apr 15 19:09:47 have* Apr 15 19:10:01 I'm trying to use tiled maps inside a Webview, but none of them seem to work. Mapquest and CloudMade maps both work from Chrome, but not from the webview. Yes, I have enabled javascript on the webview. Very frustrating. Apr 15 19:10:49 So a 9 patch then Apr 15 19:11:23 (rounded corners, how ios-y) Apr 15 19:11:49 I'm not the one designing the app. Apr 15 19:11:51 But yes Apr 15 19:12:32 How would I keep the background the same size as what the ImageView was supposed to be? Keeping the aspect ratio of the original image? Apr 15 19:12:45 :( Apr 15 19:12:49 none can help with my issue? Apr 15 19:13:29 Why do you need the aspect ratio to be the same.. Looks like a button bar, those are usually fixed height Apr 15 19:13:58 speeder: You might have your texture in the wrong drawable bucket and it's trying to scale up an image in a lower bucket that goes over your limit. Apr 15 19:14:32 jdawes: that is a problem… I have no idea what you mean Apr 15 19:14:47 SimonVT: I'm not pointing fingers at my bosses but they want to make the app look the same on all devices, scaling proportionally for every screen size, tablets included. Apr 15 19:15:06 this is an old story :D Apr 15 19:15:23 the characters are different, but the story remains the same Apr 15 19:15:28 That's just retarded Apr 15 19:15:40 speeder: Do you know what texture is causing the problem? Is there some image in your drawable folder that comes up in the error messages. Apr 15 19:15:44 well.. Apr 15 19:16:52 jdawes: oh, ANY 2048x2048 image fails to load Apr 15 19:16:53 How are you gonna handle a 16:9 screen vs a 16:10 screen Apr 15 19:17:10 speeder, does it throw an exception? Apr 15 19:17:11 I even tried to load only them, and they fail anyway, they are png Apr 15 19:17:21 such as out of memory Apr 15 19:17:28 or drawing out of buffer or something Apr 15 19:17:28 kaneda^: yes: 04-15 15:30:58.222: E/dalvikvm-heap(15894): Out of memory on a 15482896-byte allocation. Apr 15 19:17:38 yep Apr 15 19:17:47 there are some 4:3 tablets out there too Apr 15 19:17:52 that's normal Apr 15 19:17:58 but if I divide the image in 4 parts, I can load it Apr 15 19:18:04 also normal Apr 15 19:18:15 in fact if I divide the image in 4 parts, I can load it about 10 times before running out of memory Apr 15 19:18:25 kaneda^: why? Apr 15 19:18:35 speeder, because it has time to grow the heap dynamically most likely Apr 15 19:18:36 OpenGL claims the device supports 4096x4096 files Apr 15 19:18:37 SimonVT: I feel like if we talk about how stupid what I'm doing is I wont get anywhere. I agree with you. I'm the only having to deal with it. I don't think my question about the gap between imageviews is beyond the scope of this channel. Apr 15 19:18:38 eeek, good thing i decided not to goto boston this week :| Apr 15 19:18:48 I'm the one* Apr 15 19:18:51 speeder, it's device dependent, so i'm not sure about that Apr 15 19:19:05 kaneda^: I tried loading lots of images, then unload them all and load the 2048 image, it failed too... Apr 15 19:19:10 mikedg_, when you going? Apr 15 19:19:11 does the heap shrink as soon as it can? Apr 15 19:19:19 no Apr 15 19:19:22 speeder, no Apr 15 19:19:30 you just cant load this much into memory at a time Apr 15 19:19:50 probably early may, ugh. i hate my travel schedule Apr 15 19:20:02 mikedg_, i'll be there starting early may :) Apr 15 19:20:28 kaneda^: it is a limitation of the heap system then? Apr 15 19:20:57 speeder, it's some limit imposed by android in some way ;p Apr 15 19:21:07 SimonVT: No offense intended. Apr 15 19:21:27 I see Apr 15 19:21:27 :( Apr 15 19:21:29 damnit Apr 15 19:22:10 If your approach is bad, that's gonna get commented :) Apr 15 19:23:50 JakeWharton I love your nineoldandroids Apr 15 19:23:51 aww Apr 15 19:24:21 hello Apr 15 19:25:00 do any of you know of any apis for call web services Apr 15 19:25:14 call web services? Apr 15 19:25:16 SOAP and Restful Apr 15 19:25:25 consuming Apr 15 19:26:09 HttpsUrlConnection is a good class for using web services Apr 15 19:26:13 There's also HttpClient Apr 15 19:26:18 And Socket Apr 15 19:26:20 Lots of choices Apr 15 19:26:27 alexi5: I like http://loopj.com/android-async-http/ Apr 15 19:26:28 "no no but I want some library that has DoAllMyWorkForMe()" Apr 15 19:27:52 http://pastebin.com/B7NSm3H9 Apr 15 19:28:10 group cannot be resolved or is not a field Apr 15 19:28:18 on line 16, what could be the issue? Apr 15 19:28:37 There's no framework id called group? Apr 15 19:28:45 I'm going to go with SimonVT on this one Apr 15 19:29:46 thanks andrewcarter Apr 15 19:30:01 alexi5: :) Apr 15 19:30:27 SimonVT: I have one, also tried different values but no luck Apr 15 19:30:30 yeah what SimonVT said. Apr 15 19:30:45 riccoski: instead of randomly typing words, why not try to figure out what you want to do? Apr 15 19:30:47 You might have one, but you're trying to look for one in the framework Apr 15 19:30:53 ^^ Apr 15 19:30:59 remove the "android." part Apr 15 19:31:04 import the R file Apr 15 19:31:07 https://developer.android.com/reference/android/R.id.html doesn't mention "group" Apr 15 19:31:52 omd Apr 15 19:31:53 thanks Apr 15 19:31:56 lol Apr 15 19:32:47 ive been looking at a version i have right and didnt spot the difference, someone gief me sleep but yah thank yall Apr 15 19:46:12 hi there. There is a way in order to create a simple auto extractor that when was opened extract the file(or files ) which contains into a specific folder Apr 15 19:46:48 probably. Apr 15 19:47:52 Hey folks, I'm about to embark on something that needs to ensure every item in a list of strings gets successfully HTTP POSTed to a service. Retry when failed. Parallelised if too many. Stored locally for when no connection. It seems like something that would have been solved already. Any good libraries for this? Apr 15 19:48:05 Something similar to the spirit of Core Data Sync (if that worked), but for android. Local cache for when offline and tries to push to online when it can Apr 15 19:48:16 nobody has any idea?! Apr 15 19:48:25 jewels: we have plenty of ideas but you're being pretty vague Apr 15 19:48:39 "Is there a way to make a thing that extracts files into a directory?" Apr 15 19:48:42 yeah, I'm pretty sure there. Apr 15 19:49:01 is Apr 15 19:49:24 lov, btw thx for your advise regarding the use of a library project and subclasses/dependency injection to create free/paid versions of a project. works like a charm :) Apr 15 19:50:22 lov, my idea is this one : " I put this auto extracting file which I call AUTO_FILE. When the user open the AUTO_FILE, which could contain some files, all of them will be extracted in a specific( configurable ) directory of the device Apr 15 19:52:06 jewels, so AUTO_FILE is in fact a program? Apr 15 19:52:52 EPC, mmmm yes. I've called it file just because I don't know if there is a program which create this particular auto extracting file. Apr 15 19:55:14 I don't want to force the user to installa another application with mine. But I just want to give him the file and then he can simply click on it and wait until the extraction is finished. Apr 15 19:55:48 afaik that's not possible Apr 15 19:56:02 EPG: you're welcome Apr 15 19:56:25 jewels: that doesn't really work on android. auto-extracting files are in fact programs. Apr 15 19:56:48 either you're giving the user a program, or you're giving him a program with a mime-type that your program understands, which your program can then open and extract. Apr 15 19:58:25 maybe only a simple script could be good. But I still need a way in order to grant to the user the possibility to execute it. Can I run a script from a simple application which hasn't an interface? Apr 15 19:59:46 lov, what do you think about that? Apr 15 20:00:19 you'd still need an app which executes the script Apr 15 20:01:27 there aren't native API which grant this possibility? Maybe with the NDK? Apr 15 20:02:58 is it android convention for the actionbar up button to always point left? Apr 15 20:03:21 EPG, in pratice, I have to send to my device a specific xml file that I create with the server application. This xml file must be put in a specific directory. I will find a way to automatize this operation. Apr 15 20:03:25 ie: if the client wants it pointing up but wouldn't want it pointing up if the standard android practice was pointing left, we should make it point left, right? Apr 15 20:05:26 It always points left Apr 15 20:06:09 jewels, do you have a client application or not? Apr 15 20:07:44 jewels: arbitrary code execution on device is generally frowned upon. Apr 15 20:08:00 jewels: just have your client application know how to handle a certain file. Apr 15 20:08:09 thanks Simon Apr 15 20:09:03 anyone know of a real iphone emu for windows yet? surely theres a way Apr 15 20:09:21 #iphone-dev ? Apr 15 20:11:18 Is there an irc channel specifically for snapdragon Android developers? Especially interested in fastcv and similarly snapdragon tuned stuff from Qualcomm. Apr 15 20:11:27 iphone emu inside mac os x inside virtualbox, heh Apr 15 20:11:41 as usual i work my ass of for a client and they come back with some insulting nonsense about its not like the iOS one Apr 15 20:11:59 nullie yeh i guess that would do fine Apr 15 20:12:03 feel sorry for the boston lot Apr 15 20:12:39 Gaz`, ask them to buy you an iPhone Apr 15 20:13:06 if they want to get you to perform analysis between android and iOS they need to provision you with what you need to do so Apr 15 20:13:08 yeh thing is its perfectly to spec, its just one of them builds that seems a bit rough since u did so many changes in one go Apr 15 20:13:28 yeh im sick n tired of havin yo copy ios Apr 15 20:13:36 to Apr 15 20:14:19 but im gobsmacked we cant run ios on windows yet, i had a god damn ipod touch but my ex stole it Apr 15 20:14:37 little does she know hows shes ruined my life Apr 15 20:17:47 Gaz`, just don't put 'depressed' on your live journal and you'll be fine Apr 15 20:18:21 hey guys, i have a question Apr 15 20:18:32 we're having an issue here with dalvik Apr 15 20:18:45 we're reaching the method limit on our development builds Apr 15 20:19:01 it clients who depress me, they could not believe id spent all day localising the app, since it only has one language, thats a language i dont understand, so i had to make an english build Apr 15 20:19:22 Hey guys. I have a question about listviews and highlight states. I seem to have a default Androidhighlight colors right now. I need to change more than just the background color...need the text to become darker, too Apr 15 20:19:25 proguard fixes this problem Apr 15 20:19:40 but there's still the issue with the debug builds from eclipse Apr 15 20:19:48 lagann, method limit! only head of that in one phone ever - how many methods is that Apr 15 20:19:51 sounds like there might be a way to specify in the xml how to draw each state?? Apr 15 20:20:07 ProgramMax, set the text colour to a ColorList resource Apr 15 20:20:16 ProgramMax, res/color/yourxml.xml Apr 15 20:20:32 reaching the method limit sounds like madness in a java phone of 2013 Apr 15 20:20:32 Gaz`: I'm not sure, we have practically every cloud storage library under the sun in our app, and they tend to be poorly coded, so it adds a ton of methods Apr 15 20:20:43 then inside that xml can be the states? What about background color? Apr 15 20:20:49 ah yeh Apr 15 20:20:58 ProgramMax, you do that in a selector drawable Apr 15 20:21:14 lagann, I read an article but you're not going to like it Apr 15 20:21:21 it involves programmatically loading classes at runtime Apr 15 20:21:41 I'm a newbie and not sure what you mean by "selector drawable" Apr 15 20:21:42 i'm pretty sure that Dalvik only allows 65,535 methods Apr 15 20:21:51 you mean the xml for the list item? Apr 15 20:23:31 feesh: i know about that Apr 15 20:23:40 sorry bro Apr 15 20:23:41 there's no reason to go that far, because the release build is fine Apr 15 20:23:45 it's just for debug builds Apr 15 20:24:00 i tried looking into running proguard for all the debug builds Apr 15 20:24:18 ProgramMax, sorry man, assumed an incorrect amount of knowledge, look up selector drawables Apr 15 20:24:19 but, that wasn't easy Apr 15 20:25:00 ProgramMax, in short, you can define a drawable for each state of a view, and a similar method can be used for text colours Apr 15 20:25:10 thx Apr 15 20:29:04 Does this work (or at least fall back to good behavior) for older versions of Android, like 2.3 Apr 15 20:32:26 ProgramMax, this has been the method since 1.x Apr 15 20:39:08 Hi all. When I do startActivityForResult, after I get the result I see my fragment being relaunched again, is this normal? Apr 15 20:41:34 i guess nobody has a solution Apr 15 20:42:32 First rule of IRC: You wait :p Apr 15 20:48:52 lagann: to the 65k method limit ? Apr 15 20:49:32 yeah Apr 15 20:50:05 curious: what libs are you using that are pushing you to that limit? Apr 15 20:50:15 (if you dont mind me asking) Apr 15 20:51:16 arch, does it take a while for an expansion file to become available? Apr 15 20:51:42 woop, never mind, is working now :D Apr 15 20:55:10 Njsboeb42 Apr 15 20:59:59 Njsboeb42 indeed ! Apr 15 21:02:16 Thank you, feesh Apr 15 21:02:27 welcome bro Apr 15 21:02:45 robtow, ot oh, best change your password Apr 15 21:03:03 and don't use a dictionary word next time Apr 15 21:13:18 How did you come to that conclusion? Apr 15 21:13:51 As in, how come you're telling robtow, I only see one line of him in my history. Apr 15 21:16:12 Is there a standard save icon for the actionbar? Apr 15 21:21:46 the android.media.MediaPlayer plays through the larger speaker in which songs play but i'd like android.media.MediaPlayer to play through the small speaker on which we listen to the caller. is it possible? Apr 15 21:25:17 im looking for the cost per user rather then cost per loyal user - similar to the green graph on this link: http://www.fiksu.com/resources/fiksu-indexes# any ideas? Apr 15 21:26:09 In other words, I'd like the MediaPlayer play on the smaller speaker instead of the speakerphone. can anyone help me out? Apr 15 21:31:17 * DAudioLink frowns, "Stupid question: If you can ask adb to install a program to the SD card why can't you ask Google Play to do so?" Apr 15 21:42:30 testt: that's a really interesting question. I have no idea, but it's still very interesting. Apr 15 21:47:31 How do I make it so that if someone unzips my apk, that they cannot read my xmls? Apr 15 21:48:14 Delvien: you can't, in general Apr 15 21:48:40 Your app has to be able to read them Apr 15 21:48:43 DexGuard can obfuscate the XML, but still if android can read it a person can Apr 15 21:49:18 hmm Apr 15 21:53:56 unless you do online only and keep them on your server Apr 15 21:54:52 In which case the "attacker" grabs them from the server :) Apr 15 21:55:02 SSL! Apr 15 21:55:12 doesn't help Apr 15 21:55:43 the attacker isn't sniffing, they're initiating the connection Apr 15 21:56:01 hi, i have two activities A, B and a broadcast receiver that launches B, A can also launch B, when I launch B from the BR and call finish on B, A shows up Apr 15 21:56:12 Yeah..caesar cipher? Apr 15 21:56:17 rot13 Apr 15 21:56:33 Apparently vzw decided 4g wasnt going to work today. Anyway. So I can use dexguard for some minor security vs prying eyes in my xmls? Apr 15 21:57:26 One of the people that stole some of my work is using something to make his xmls un-readable so i was curious (I wanted to see how he did something) :( Apr 15 21:58:34 it can't be unreadable or it wouldn't work in the app either, but some (maybe all existing) tools to reverse engineer XML might fail Apr 15 21:58:35 sup Apr 15 21:58:35 I know it has something to do with encoding.. but Im too new to determine Apr 15 21:58:36 And you're sure you're not facing a binary XML file? Apr 15 21:58:54 Delvien: you're using apktool, right? :) Apr 15 21:59:00 not just extracting the apk with a zip tool? Apr 15 21:59:08 nope, just unzipping the apk Apr 15 21:59:14 I suspect thats my issue Apr 15 21:59:16 try it on your own app :) Apr 15 21:59:20 you'll get a similar result Apr 15 21:59:27 mine works that way though, his doesnt Apr 15 21:59:35 I can read all my xmls by simply unzipping the apk Apr 15 21:59:44 umm.. Apr 15 21:59:47 no, you can't :) Apr 15 22:00:04 sec Apr 15 22:00:09 Anyway, try apktool Apr 15 22:00:12 not if they're resource xmls, and the apk works on android Apr 15 22:02:07 JesusFreke you sneaky devil, you're right.. i must of had a copy i apktool'd of mine that I was referencing. Problem solved Apr 15 22:02:11 thanks gies! Apr 15 22:03:20 Delvien: Now tell us who stole your resources. Clearly he now needs to hide it from you and use DexGuard. Apr 15 22:03:36 Now you're the evil guy! Apr 15 22:03:46 lol! Apr 15 22:03:55 for updatign appwidgets, Google docs page suggests starting a service if the update could take some time Apr 15 22:04:01 Well he made a good chunk of money off alot of my work, so we'll call it even :P Apr 15 22:04:20 could I use an IntentService? or does the appwidget update need to be on the same thread as the onUpdate call? Apr 15 22:13:25 I need opinions.. Donate version + free version, or paid version only? Which do yall find makes more money, or do you find them about the same? Apr 15 22:15:15 idk if this is the proper channel for the Q tho :P Apr 15 22:15:21 i would suspect in-app purchase works best Apr 15 22:15:39 i would do that over paid+unpaid Apr 15 22:20:47 I am using a fragment for part of my application, I am wondering where I should place my event handlers for some of my UI elements in the fragment class. Would I put them in the onCreateView function? Apr 15 22:22:15 Well I want to post it on xda, which is why i was leaning towards free version + paid version. Im not even sure how to make it possible for an in app purchase :P Apr 15 22:22:29 Not a bad idea though Apr 15 22:43:12 I have a small question Apr 15 22:43:35 So, I have a GridView with a lot of square images. While the images are loading, I set this placeholder icon in the ImageView. Apr 15 22:44:00 So, it seems that drawable resources are inflated on the main thread for ImageView… should I forsake setting the placeholder and have a parent reference to the bitmap in an adapteR? Apr 15 22:44:09 *in the adapter? Apr 15 22:46:14 evening all! Apr 15 22:46:58 Hi! Anybody supporting in-app purchases in your apps/games? Apr 15 22:57:38 JakeWharton: Thanks for ABS 4.3.0. Has the custom-menu been postponed to 4.4.0, though? Apr 15 23:10:45 is any devs here? Apr 15 23:11:04 I guess none? Apr 15 23:11:07 388 of them Apr 15 23:11:26 lol Apr 15 23:11:32 387.. Apr 15 23:11:41 that's kinda the thing here Apr 15 23:11:50 btw have you used the Notification class? Apr 15 23:12:14 I wonder whether the app comes to focus when we click on the Notification or not Apr 15 23:15:12 kakazza: yes Apr 15 23:15:27 kakazza: it's on a branch. feel free to finish it Apr 15 23:15:31 I simply haven't had the time Apr 15 23:17:05 Anybody know why after pausing a MediaPlayer and later resuming it, it would resume from a position as if it had never been paused in the first place? Apr 15 23:17:38 Did anyone read my question? :( Apr 15 23:18:32 I'd like the app to be shown (come to focus) whenever a user clicks on the notification. Apr 15 23:18:51 testt: clicking a notification will launch the pending intent attached to it. check out the documentation http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Actions Apr 15 23:20:24 testt, it does whatever you told it to do Apr 15 23:20:46 JakeWharton, you're gonna make me update all my apps, aren't you :P Apr 15 23:21:18 only if you want to avoid impending doom Apr 15 23:21:51 that WOULD be nice Apr 15 23:22:38 fforde, canadiancow I am unable to figure out how to set the pendingintent to an already running Activity. Apr 15 23:23:08 there's some flag to have it launch an already running one Apr 15 23:23:37 I see Apr 15 23:27:52 if the activity is already running, why not consume the notification and not disturb the user? Apr 15 23:28:46 abs 4.3.0 is out? Apr 15 23:28:51 yes Apr 15 23:29:02 * birbeck looks Apr 15 23:35:05 canadiancow: the changelog looks relatively minor, updating should be safe and painless ;-) Apr 15 23:35:11 famous last words Apr 15 23:44:33 JakeWharton: for what it's worth, thanks a ton for sharing so many useful projects. the android community is better because of them/you. Apr 15 23:45:15 <3 JakeWharton Apr 15 23:46:24 well if you use them to write awesome apps then it all will have been worth it Apr 15 23:47:46 :) Apr 15 23:53:34 feesh - I got pulled into meetings but finally was able to add that color list and it works perfectly. Thank you, again. I'll get on the selector drawable next Apr 15 23:55:02 JakeWharton: reading the source of okhttp now Apr 15 23:55:12 havent started implementing it, but will be shortly Apr 15 23:55:45 cool. we're working on docs and a site for it over the next few weeks Apr 15 23:56:24 cool. it would be nice to have docs, readmes or samples for each, but i know youre a busy guy Apr 15 23:56:48 * capella doesn't understand why you'd declare a new JSONObject as final, then |put| attribute pairs into it ... Apr 15 23:57:12 maybe i should just checkout the source, it would be easier to follow in the ide Apr 16 00:00:03 I mean, it's just an HttpUrlConnection implementation Apr 16 00:00:19 the only class you interact with is like OkHttpClient and it just returns you HttpUrlConnections Apr 16 00:00:19 yeah i noticed Apr 16 00:00:35 so beyond configuring OkHttpClient everything is standard Apr 16 00:00:50 why is ever class final, and why not a builder for OkHttpClient? Apr 16 00:03:40 good night Apr 16 00:03:46 it's a factory Apr 16 00:03:49 time for beer :) Apr 16 00:04:05 you can mutate it so that behavior changes (e.g., add/remove a proxy) Apr 16 00:04:21 yup Apr 16 00:04:22 I guess making the JSONObject var final means you can't assign another JSONObject to it, but you can still modify it's internal values through method calls Apr 16 00:04:36 capella: yes Apr 16 00:04:50 ah ... whew ... Apr 16 00:14:53 <__import__> What would be the recommended way to export my app's data to the internal SD card? Apr 16 00:18:25 anyone know why a searchview in an actionbar would be expanding in place (between two other actionitems) rather than over on the left, on a nexus 10? Apr 16 00:18:27 cc JakeWharton Apr 16 00:20:44 is it possible to create multiple developer accounts from my one google account? Apr 16 00:20:49 I have a question about this selector drawable thing and highlight states for a listview Apr 16 00:21:04 I have a res/layout/channel_item.xml Apr 16 00:21:16 which describes the list item, with an image and some text in it Apr 16 00:21:45 I guess I could move this over to res/drawable/channel_item.xml and then make the root node be a selector with several items Apr 16 00:21:55 then just put this contents into the default item state Apr 16 00:22:12 not sure if that is anywhere near correct or valid. All the selector drawable stuff I see are empty nodes Apr 16 00:22:16 with an attribute set Apr 16 00:22:43 oh wait, the attribute drawable can just refer to another xml Apr 16 00:22:52 so I can just create one xml for each state and do that? Apr 16 00:36:54 <__import__> What would be the recommended way to export my app's data to the internal SD card? Apr 16 00:40:49 what kinda data? and do you mean 'external sd card' ? Apr 16 00:56:02 canadiancow: because you didn't set the collapsibleActionItem flag? Apr 16 00:56:08 yep Apr 16 00:56:09 thanks Apr 16 00:56:15 sorry, i should ahve posted when i realized that :P Apr 16 01:27:48 Hi guys, somebody have used smsManager and received random Generic failure error messages? Apr 16 01:28:01 on sending messages. Apr 16 02:01:32 Hi, I am seeing a problems with a base64 string (encoded image). The image is being encoded and then uploaded to a server. But sometimes what we get back from the server is different (contains extra \n and \/ characters) and the base64 decode of the image fails. Not sure if this is happening client or server side. Has anyone seen this before or have any advice ? Apr 16 02:27:55 mobydev: is the server running PHP and escaping chars ? Apr 16 02:28:38 it could be. I will have to check with the server admin. Apr 16 02:29:13 have you tested with telnet to see the raw transfer? Apr 16 02:30:34 not me. I am currently checking the string before i send it, and right after i get it back as a server response Apr 16 02:37:54 <__import__> bankai_, no, I mean internal memory you can view in windows when you turn USB Storage on. This is a Tablet. Apr 16 02:37:54 <__import__> Basically, my app creates a sqlite db file, and I want to expose that/ Apr 16 02:39:53 is this for yourself or users ? Apr 16 02:40:52 if this is just for your own personal use, adb shell is probably the easiest way Apr 16 02:47:15 <__import__> Both. I'll provide an option to export the .db file. Apr 16 02:47:17 <__import__> I notice under Android/data there seems to be data for different apps. Apr 16 02:49:59 <__import__> Hah, nevermind. This was another RTFM moment. **** ENDING LOGGING AT Tue Apr 16 02:59:58 2013