**** BEGIN LOGGING AT Thu Feb 07 02:59:58 2013 Feb 07 03:10:28 i was just talking with someone on IRC but closed the window...is there anyway for me to find out his nick again? Feb 07 03:13:28 depends what you were talking about Feb 07 03:13:36 what do you mean? Feb 07 03:13:38 jk :) Feb 07 03:13:46 is there anyway please help Feb 07 03:14:22 i remember the first two letters of his nick is there any command to search for all users connected to a server? Feb 07 03:14:55 cant you narrow it to a channel ? Feb 07 03:15:27 he was in this channel about 6 hours ago and got kicked... Feb 07 03:15:40 he got kicked... lov said because he was looking for contractors or something Feb 07 03:15:58 oh and you offered your services Feb 07 03:16:06 no, for free i did Feb 07 03:16:06 interesting Feb 07 03:16:33 jeez dude, it was a kid in school who needed help with an app. we couldn't get it working and i just figured out why Feb 07 03:16:56 oh that ih**** guy from denmark Feb 07 03:17:00 yes Feb 07 03:17:07 oh dude Feb 07 03:17:11 give me his nick plz Feb 07 03:17:32 i dont remember Feb 07 03:17:40 ih**la maybe Feb 07 03:17:58 are you screwing with me? Feb 07 03:18:15 Ilhami Feb 07 03:18:28 thank you stringray very much very much Feb 07 03:18:40 i just searched :) Feb 07 03:19:25 thank you very much appreciated Feb 07 03:19:30 i owe you dude Feb 07 03:32:03 Does anyone know how to output JUnit XML test results when running `ant test` ? Feb 07 03:37:14 hey bastids Feb 07 03:41:58 ron_frown: ubuntu smartphone oct 2013 :) Feb 07 03:42:13 yeah I may have one sooner than that =) Feb 07 03:47:19 android smartphone now :) Feb 07 03:48:14 what's the limit on pastes here? Feb 07 03:48:41 jda2000 if you have to ask, use pastebin Feb 07 03:49:05 So it's not zero.... Feb 07 03:49:27 I was looking at this: SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags) Feb 07 03:49:52 and then this: bindView(View view, Context context, Cursor cursor) Feb 07 03:49:52 Binds all of the field names passed into the "to" parameter of the constructor with their corresponding cursor columns as specified in the "from" parameter. Feb 07 03:51:29 I think I see a typo, anybody agree? Feb 07 03:51:53 .msg neekers Feb 07 03:51:58 :) oops Feb 07 03:52:11 The to parameter is an int. No names passed there. Feb 07 03:53:49 g00s you still keep in touch with that little bitch? Feb 07 03:53:59 tell him ron_frown said hes a little bitch =) Feb 07 03:54:00 haha Feb 07 03:54:01 ron_frown: yeah :) Feb 07 03:54:15 So I think I should do a bug report on adt-bundle-linux-x86/sdk/docs/reference/android/widget/SimpleCursorAdapter.html Feb 07 03:56:30 Unless by "Field Names" they meant resource IDs. Feb 07 03:57:12 Anyway, can I get an expert opinion? Feb 07 03:58:32 columnIndexes ? Feb 07 03:58:46 way too tired to think Feb 07 03:58:56 <-- 4:00 am Feb 07 03:59:11 coffee and nicotine running low Feb 07 03:59:16 StingRay_, Yeah, that's why I'm not trusting my own judgement. Feb 07 04:02:41 public SimpleCursorAdapter (Context context, int layout, Cursor c, String[] from, int[] to, int flags) Feb 07 04:02:41 Added in API level 11 Feb 07 04:02:41 Standard constructor. Feb 07 04:02:41 Parameters Feb 07 04:02:41 context The context where the ListView associated with this SimpleListItemFactory is running Feb 07 04:02:43 layout resource identifier of a layout file that defines the views for this list item. The layout file should include at least those named views defined in "to" Feb 07 04:02:46 c The database cursor. Can be null if the cursor is not available yet. Feb 07 04:02:48 from A list of column names representing the data to bind to the UI. Can be null if the cursor is not available yet. Feb 07 04:02:51 to The views that should display column in the "from" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the from parameter. Can be null if the cursor is not available yet. Feb 07 04:02:55 flags Flags used to determine the behavior of the adapter, as per CursorAdapter(Context, Cursor, int). Feb 07 04:03:42 on so a list of text id's Feb 07 04:03:47 textViews Feb 07 04:04:24 string[] = column name > int[] textViews Feb 07 04:04:34 ugh, brain failing Feb 07 04:07:55 StingRay_, So it might have been better said that it Binds all the textViews identified by their Resource IDs in the "to" parameter to the cursor columns identified by name in the "from" parameter. Feb 07 04:10:55 hello all Feb 07 04:11:14 <_genuser_> hello, need to run an alarm type service in the background to determine if a certain is due now checking it's time specified for it in DB and the current system time. Is writing a local service the best approach? The notification needs to happen on main activity (if running) and widget (if running). Feb 07 04:11:27 just posted new build of TDM to google play and its taking forever Feb 07 04:11:29 <_genuser_> *certain task Feb 07 04:11:29 to show up Feb 07 04:12:05 <_genuser_> QubeZ: what is TDM? Feb 07 04:12:19 To Do Mapr Feb 07 04:12:23 todomapr.com Feb 07 04:12:29 <_genuser_> thx, checking. Feb 07 04:12:35 oh np Feb 07 04:12:54 _genuser_: im not sure what you're trying to do, you have some missing words in your sentences Feb 07 04:13:12 which makes it very difficult to make out your intention Feb 07 04:13:26 Is there really no util out there that will let me feed in a strings file and get a nice ZIP with res/values-fr/strings.xml, res/values-es/strings.xml, etc? Kind of like the icon generator? Feb 07 04:13:42 I know the Translator toolkit does some stuff but to be honest it kind of sucks Feb 07 04:13:46 <_genuser_> QubeZ: sorry. have a tasks DB which have time for when they're due. Would like to check current system time and compare against tasks time to see if it should be triggered. Feb 07 04:13:50 Id rather just get 20 languages back in one shot, you know? Feb 07 04:14:11 achuinard: yes, they will all suck. You know how difficult it is to translate to various languages? That's why automated methods are bad. Feb 07 04:14:14 i've had problems with this before but i forget how i solved it... getSupportFragmentManager() is not recognized but i imported androidsupportv4 Feb 07 04:14:57 _genuser_: you dont need a service for that, use AlarmManager to set the alarm based on the time its due from the DB. Android will trigger an alert that you can capture in a Broadcast Receiver Feb 07 04:15:21 nevermind i didn't import fragmentactivity Feb 07 04:15:39 <_genuser_> awesome. I was reading that I might not need to write my own and that's why I asked. Ok, so use AlarmManager and implement Broadcast Receiver, that it? Feb 07 04:15:57 _genuser_: yup Feb 07 04:16:21 <_genuser_> really liking the todomapr. is it free to download? at least for trial? Feb 07 04:16:24 then if the user changes the date of the task and you update the DB, just call your code again with the same resultcode ID and Android will override the old alert and update it so it has the new trigger time Feb 07 04:16:32 _genuser_: completely free Feb 07 04:16:43 just added proximity tasks but the damn thing is not showing up on Google Play Feb 07 04:16:50 its been 30 mins now and thats kind of long for me Feb 07 04:17:06 <_genuser_> really nice site. and presentation. GUI looks nice in the pictures. will download and try it out. Feb 07 04:17:20 _genuser_: to accomplish what you want to do, search (google) a few things: AlarmManager, PendingIntent, BroadcastReceiver Feb 07 04:17:40 _genuser_: thanks, the new build has actionbar implemented now (ActionBar Sherlock) Feb 07 04:17:49 we are trying for quality :) Feb 07 04:18:29 <_genuser_> QubeZ: my next task is to get an android 3.0+ phone so I can view my app in a nicer UI env. Currently phone is android 2.0 and the UI elements don't look as ... "shiny". especially dialogfragments. Feb 07 04:19:05 _genuser_: use emulator to test your code on new Android OS Feb 07 04:19:23 I have an ICS phone but I use emulator to test against Gingerbread (old) and Jelly Bean (new) Feb 07 04:20:16 <_genuser_> that I do for all testing. but real phone looks much nicer when I see them for real. Plus developing the app and then using the old interface on my phone feels as if I'm not able to to use the nicer interface. Feb 07 04:20:44 Its's here too: http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html Feb 07 04:20:59 <_genuser_> I can say thatI coded the app to my specs and for my need and it's working real nice so far and is used everyday. so hopefully nicer UI will make it more enjoyable. Feb 07 04:21:10 _genuser_: what is the app? Feb 07 04:21:58 <_genuser_> my own todo list. shows the tasks on a widget (as many as possible) on teh homescreen. Feb 07 04:22:16 whats the name? Feb 07 04:22:24 <_genuser_> QubeZ: however unlike other apps, it doesn't categorize or add extra items that will make it harder for me to use. Feb 07 04:22:31 i have this code http://pastebin.ca/2311391, how can i get one item selected my listview Feb 07 04:22:34 <_genuser_> QubeZ: it isn't published. name is TODO. Feb 07 04:22:37 _genuser_: ok Feb 07 04:23:42 <_genuser_> QubeZ: lol, when it's local, TODO works as a name. But I thought I might add due date on tasks and then shoot alarms or change colors so it's easy to identify as approaching due time and then going past due. Feb 07 04:24:06 tona: read up on SimpleCursorAdapter and onItemClickListener (I believe thats it) Feb 07 04:24:39 <_genuser_> widget UI is very limited in android < 3.0 so that makes it harder to design scrolling listview, etc. Feb 07 04:24:50 can two different fragmenttransactions, to add fragments, be placed in a FragmentActivity in the onCreate method?> Feb 07 04:25:36 <_genuser_> QubeZ: the to do mapr is a one man app? Or you had lot of devs working on it? Feb 07 04:26:26 _genuser_: 3 people, me as the sole dev, 1 UI guy and 1 guy writing our backend service so we can sell the sharing of tasks Feb 07 04:26:33 that service should be available later this year Feb 07 04:26:55 <_genuser_> QubeZ: oh sharing tasks between people? that would be cool. Feb 07 04:27:12 we're testing out the beta... im very picky about features and how things work so I like to wait on releases until I am satisfie Feb 07 04:27:31 ok onitemClickListener could be but where should i put it into my code Feb 07 04:27:33 _genuser_: *nod* sharing, delegation with multi-user not just 1:1 Feb 07 04:27:49 <_genuser_> QubeZ: with quality, you should attract loyalty. Feb 07 04:27:57 tona: in your activity that extends ListActivity Feb 07 04:28:09 _genuser_: hope so, the app is very stable Feb 07 04:28:32 and I document crashes using ACRA so any time I see reports, I'm working to fix right way Feb 07 04:28:42 i change it and it stop sudenly Feb 07 04:28:55 change what? Feb 07 04:29:27 <_genuser_> QubeZ: anyway, thanks for your help. Will go read on AlarmManager, etc. Like your website/vids, etc. nicely done. :) Will be trying it out on the phone later. Feb 07 04:29:45 np, if you need any more help I'm here for another 2 hrs Feb 07 04:29:57 i chagne activity for extends listactivity my app run but it stop suddenly Feb 07 04:30:35 tona: right, you cant just do that... you need to define a ListView in your activity and use an adapter to handle adaptation of the code Feb 07 04:30:35 Quebez can i paste my code , you can check it Feb 07 04:30:45 what are you populating in your listview? Feb 07 04:30:55 Sttrings Feb 07 04:30:58 and more importantly, from where are you populating it Feb 07 04:31:07 <_genuser_> thx Feb 07 04:31:11 sqlite Feb 07 04:31:28 so show me the code where you have your list adapter Feb 07 04:31:36 which extends SimpleCursorAdapter Feb 07 04:31:36 ok Feb 07 04:32:16 this is my code http://pastebin.ca/2311393 Feb 07 04:33:11 tona: where is your listadapter? that's just the activity Feb 07 04:33:16 you need code to drive the listview Feb 07 04:33:38 oh wait I see your arrayadapter Feb 07 04:35:20 then how can i select one item my listview Feb 07 04:36:45 Quebez are you there Feb 07 04:38:03 ya one sec Feb 07 04:39:17 tona: look at these examples: http://stackoverflow.com/questions/2468100/android-listview-click-howto Feb 07 04:39:21 examples/answers Feb 07 04:39:49 you need to use the lstOpciones.setOnItemClickListener... listener added Feb 07 04:40:43 I have a fragment that sends back a boolean to MainActivity via an interface ... I need fragment2 call a method when that boolean is true. Feb 07 04:40:50 ok no matter where i set it Feb 07 04:41:02 voilà: http://code.google.com/p/android/issues/detail?id=46643 Feb 07 04:41:35 KillmeSoftly why not just call methods directly ? Feb 07 04:41:54 get a reference with fragmentManager Feb 07 04:42:08 and call method on fragment from fragment2 Feb 07 04:44:15 that is what i am doing, had a braIN FART sorry Feb 07 04:46:44 wait StringRay you mean like this: MyFragment myFragment = (MyFragment)fragmentManager.findFragmentById(R.id.MyFragment) then do myFragment.doThisMethod()???? Feb 07 04:47:31 well Feb 07 04:48:22 ((myfrag)getActivity().getSupportFragmentManager().findByTag("sometag")).someMethodOnThis(); Feb 07 04:48:42 oh ok thnx Feb 07 04:48:42 or findById if it's static xml placed Feb 07 04:48:54 thanx much thanx Feb 07 05:12:11 . Feb 07 05:12:28 ; Feb 07 05:15:09 : Feb 07 05:15:10 yo Leeds Feb 07 05:29:36 hey y'all Feb 07 05:29:51 hi Feb 07 05:29:52 I'm trying to get a hiding footer (on scroll) thing going on Feb 07 05:29:58 http://pastie.org/private/7hx8cicvhsol6kk47wz7ea is what I've got so far Feb 07 05:30:38 but I'm stuck with either not getting the footer to move or not getting the framelayout to fully expand to its layout_weight Feb 07 05:30:54 depending on whether or not I use mEverythingElse.requestLayout(); Feb 07 05:31:20 I'd appreciate an extra pair of eyes Feb 07 05:37:06 I also can't get my footer to actually stay put when I use mFooter.offsetTopAndBottom Feb 07 05:46:10 agh, how come I can getTop since APIv1 but not setTop until APIv11 Feb 07 05:47:39 I have a ListView and custom adapter.. what I want to do is have 3 items going horizontall that will , I would like the TextView to be layout last to fit into the remaining space after I layout the other 2 image views Feb 07 05:47:44 here is my layout http://pastebin.com/2Sds09cj Feb 07 05:48:40 but it the last ImageView @drawable/remove_deal_icon is no were to be found in the ui when I test.. its like the row doesn't clip to the max width but allows overflowing Feb 07 05:49:06 I should say I'm using Sherlock and this view is displayed via an ActionProvider if that matters Feb 07 05:49:13 via a Popup Feb 07 05:51:32 so in an activity, onResume is not only called when the user returns to the activity but also in the construction of the activity. after onCreate and onStart? Feb 07 05:53:03 dberg: correc Feb 07 05:53:04 t Feb 07 05:53:55 good morning Feb 07 05:54:32 ok, missed that while reading facebook's oauth sdk Feb 07 05:55:45 you need to hook onResume,onPause and onActivityResults if you are using the widget.LoginButton dberg Feb 07 05:57:21 alright. on to their AuthorizationClient.AuthorizationRequest class to understand how this part works. Feb 07 06:00:32 dberg what method are you using.. are you handling the sessions yourself.. or using the Login widget+LoginActivity.. I joined late so not sure what your issuse is Feb 07 06:01:58 no issue, was just reading the code and trying to understand what's going on. In their LoginActivity I missed the part that onResume() is also triggered in the activity creation. Feb 07 06:02:08 I'm following the method Session.openActiveSession() Feb 07 06:02:21 o ok Feb 07 06:02:46 Implementing an oauth client, checking how they're doing that Feb 07 06:03:03 I ended up mirroring their implemention for twitter Feb 07 06:03:43 looks pretty solid so far Feb 07 06:03:51 does twitter also offer a single sign on option? Feb 07 06:04:26 yeah but you have to implement it yourself Feb 07 06:06:24 hmmm, is there an official twitter android sdk? Feb 07 06:06:24 I ended up referencing http://davidcrowley.me/?p=410 and http://web.archive.org/web/20130116032926/http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/ Feb 07 06:06:41 I couldn't find one, I used twitter4j Feb 07 06:06:45 sec Feb 07 06:06:46 yeah, saw this one twitter4j Feb 07 06:07:19 oauth 1? with a webview? Feb 07 06:08:24 http://pastebin.com/MTV9qSp7 Feb 07 06:08:26 there you go Feb 07 06:09:18 Create a layout for your button and change that then hook into TwitterSession.getSession().onAcitivityResult in your activity Feb 07 06:09:47 I have a Fragment that has a button in it... when I simply put Button startButton = (Button) getView().findViewById(R.id.startButton); Feb 07 06:09:56 in the oncreateview method it crashes the app Feb 07 06:10:05 forget about trying to put an onclicklistener to it Feb 07 06:10:07 have you checked the stacktrace? Feb 07 06:10:29 are you talking to me? Feb 07 06:10:53 hmmm, the facebook implementation offers both a fragment and activity option Feb 07 06:11:19 yes sorry KillmeSoftly that was for you Feb 07 06:11:42 correct dberg since it was only for my use I didn't bother on using the fragment usage Feb 07 06:12:06 thanks for the link, I'm interested in both how developers use it and the sdk Feb 07 06:12:47 dberg np Feb 07 06:12:56 well yes i checked the stacktrace Feb 07 06:13:04 could you paste it? Feb 07 06:15:02 sorry it was a stupid mistake on my part, i fixed it Feb 07 06:15:06 sorry but thanks Feb 07 06:15:17 idiotic mistake Feb 07 06:18:11 KillmeSoftly cool Feb 07 06:18:53 KillmeSoftly: you can't call getView() in onCreateView... Feb 07 06:19:35 So I've got to load a local image in a webpage shown by a webview. in iOS, I use the NSURLCache to specify the image to load when it loads . I'm having trouble finding a way to do this in Android Feb 07 06:19:37 any ideas? Feb 07 06:21:34 so you need to load an local image otiose? Feb 07 06:22:45 yes; but as part of the layout, not just the image itself. And if I can, I would prefer not to manually loadData()... ideally I could just go to the cache and say 'my.fake.url/img.png is this image' Feb 07 06:24:40 can anyone with an N10 tell me what the physical path to the external storage dir might be ? Feb 07 06:25:09 http://www.androiddom.com/2011/06/adding-local-images-to-android-webview.html seems kind of OK, but kind of messy at the same time Feb 07 06:27:25 otiose this may help http://pastebin.com/S56KQGec Feb 07 06:27:36 if you need to load and cache images into a ImageView Feb 07 06:27:45 from an external source Feb 07 06:28:37 hmm, how does the nexus 7 get internet connectivity? SIM card? Feb 07 06:28:41 imageCache.download(url,imageView,true) Feb 07 06:28:55 depends.. there are 2 versions Trinity Feb 07 06:29:06 cellular and wifi Feb 07 06:29:12 we have that kind of thing in the non-webview portions of our app Feb 07 06:29:40 g00s /sdcard as with all android devices Feb 07 06:29:51 xastey: thanks Feb 07 06:30:15 you can use android.os.Environment.getExternalStorageState(); though Feb 07 06:30:18 now, i have a mac, and to xfer between android and mac we need http://www.android.com/filetransfer/ Feb 07 06:30:20 xastey: what? Feb 07 06:30:28 just to make sure.. actually g00s check out that link I posted Feb 07 06:30:33 but what I want to do is load http://www.ourserver.com/page.html which has and replace it with a local image at file://wherever/image.png Feb 07 06:30:39 check out getCacheDirectory Feb 07 06:30:53 so, what do people need to xfer files between android external storage and their Windows box ? Feb 07 06:31:04 xastey: talking about the cellular, so theres just a sim card? Feb 07 06:31:08 aww gotcha otiose Feb 07 06:31:10 g00s: nothing - MTP is built into windows Feb 07 06:31:38 Leeds: ok, so when you connect your android device to a windows box, does it require any drivers at all … or everything is seamless ? Feb 07 06:32:01 can't recall how to invoke javascript onto a webview otiose Feb 07 06:32:02 not that I've ever done it... but AIUI for file transfer, nothing is needed Feb 07 06:32:16 I don't use windows Feb 07 06:32:27 xastey: even if you call javascript, i dont think actually changing the src to be the local file will work Feb 07 06:32:46 Leeds: me neither :) Feb 07 06:32:52 otiose you can use webView.loadUrl("javascript:...") Feb 07 06:33:16 otiose: or when you load the page you can pass an query param that will load the image Feb 07 06:33:27 so sometihng like file:// I think will work Feb 07 06:33:56 if just file:// would have worked, i wouldnt be asking... Feb 07 06:34:18 no need to get defensive, you didn't explain what you have already tried Feb 07 06:34:44 I have a button in a fragment... I need to identify the button OUTSIDE of the onCreateView method.... how can i do this... normally if the view i'm inflating is called view i would do view.findViewById(...). would getView().findViewById(...) work? Feb 07 06:34:46 i'm not getting defensive at all Feb 07 06:36:10 otiose : you could try base64 encoding the image and passing it to the element by using webView.loadUrl("javascript:document.getElementById(name).src=") Feb 07 06:36:15 KillmeSoftly: store it in an instance variable Feb 07 06:36:43 http://www.androidsnippets.com/webview-with-custom-html-and-local-images Feb 07 06:36:49 xastey: thats what we're trying to avoid Feb 07 06:36:57 but if it comes to it, that would work Feb 07 06:36:58 otiose check that out.. seems to work but says it only works with /assets/ dir Feb 07 06:37:19 getView() works...dont answer thanks Feb 07 06:37:28 thank you JakeWharton Feb 07 06:38:34 and yes, we could load the entire page into a string, parse for the URL and then replace it; but I've heard that then if you have other relative paths, it will read them all from the assets dir, which would break a lot of things, so thats kind of a last resort Feb 07 07:01:16 hello all, does anybody here have experience with phpforandroid? i am getting a lot of build errors when i try to follow their instructions and would probably need some handholding. Feb 07 07:04:10 Moult: wut is this abomination Feb 07 07:05:06 g00s: hum :) it's an opportunity for all properly decoupled PHP code to turn into native android apps :) Feb 07 07:05:44 "properly decoupled PHP code" Feb 07 07:05:46 so... none? Feb 07 07:06:34 JakeWharton: eh, just because PHP doesn't care and most are terrible doesn't mean there aren't real php programmers out there. enough with the language hate, eh? Feb 07 07:07:21 Failed to convert 0 into a drawable Feb 07 07:07:39 0 Feb 07 07:07:51 #0 doesn't work too Feb 07 07:07:53 squ: try 0xFF000000? Feb 07 07:08:03 er, #FF000000 Feb 07 07:08:03 @null ? Feb 07 07:08:12 getColor() ? Feb 07 07:08:18 what are you trying to make? black or transparent? Feb 07 07:08:33 transparent is built-in as @android:color/transparent Feb 07 07:08:44 ! Feb 07 07:08:52 thank you :) Feb 07 07:09:10 but if anybody wants to go on a PHP experimental adventure and help me out, give me a ping. i don't know java and so i guess any android developer who can point me in the right direction should be enough, even if they've never used the "abomination" phpforandroid Feb 07 07:11:41 sounds like S&M Feb 07 07:11:50 * g00s passes Feb 07 07:13:00 answering my own question from earlier: Feb 07 07:13:01 public WebResourceResponse shouldInterceptRequest (WebView view, String url) Feb 07 07:13:09 from WebViewClient works fine Feb 07 07:13:21 but its from API 11+, so that sucks; i need to support 8 :( Feb 07 07:15:09 JakeWharton, after viewing numerous tutorials from google io, I'd like to ask help to review my listview's getview + newview + bindview code, what is best way to do that? Feb 07 07:15:40 make a Gist on GitHub and link it Feb 07 07:16:23 to be more specific, I'm curious should I have used getViewType, etc or switch adapters.. or my way (inflate different layouts inside newview) Feb 07 07:16:46 if you are intermixing different layouts you should use view types Feb 07 07:17:15 i wouldn't recommend switching adapters unless your dataset AND views are fundamentally different Feb 07 07:17:44 but all list items at any given time can consist of only one type of layout Feb 07 07:19:28 then you should be fine with a single adapter and single view type Feb 07 07:33:10 can a fragment replace itself... meaning can I do a fragmenttransaction to replace a fragment within the fragment that needs to be replaced? Feb 07 07:35:55 and how to check if previous fragment get released? Feb 07 07:36:40 for example, I do 99 fragment replacement, how can I know if memory consumption grows? Feb 07 07:36:46 or not Feb 07 07:40:38 squ: of course you can, you just access fragmentmanager from your fragment and replace yourself Feb 07 07:41:04 squ: if you use eclipse, there is a memory analysing tool available in the marketplace Feb 07 07:41:14 squ: if you use something else, google it Feb 07 07:42:23 squ: also if you want to be sure, you can log your fragment's ondestroy method calls Feb 07 07:44:30 stiggpwnz, thanks Feb 07 07:46:40 onDestroy happens everytime :) Feb 07 07:47:13 every time after transaction.replace Feb 07 07:48:55 "Developer options" provide CPU usage stats, something such about memory usage doesn't exist or I haven't noticed that in options? Feb 07 08:15:08 I do clearChoices() on my listview but the highlight on the items that I selected before won't get turned off, what's up with that? Feb 07 08:20:16 Hello! I have listview with custom header. How can i set custom background for header and for list view itmes? Feb 07 08:25:04 Good morning Guys :) Feb 07 08:25:37 gah this bug >_> my list view laks maddly when its at iether end of the list (first or last element). not even sure how to track what's causing this Feb 07 08:25:43 lags* Feb 07 08:35:00 Guys. I have a problem: I want to extract a Zip but i am getting out of memory on any device and the devices hanging up completly, what can i do against it? Feb 07 08:37:16 if the zip is too large for memory I assume you cannot do anything against it. You will need to write it out to disk directly and not keep it in memory Feb 07 08:37:54 yes, but how? i dont need this zip in memory, just on disk... Feb 07 08:39:17 currently i am using FileInputStream > BufferedInputStream > ZipInputStream and then FileOutputStream > BufferedOutputStream and then zipinput.read > bufferedout.write Feb 07 08:39:33 hey guys Feb 07 08:40:06 morning, lime Feb 07 08:40:15 gutes morgen :) Feb 07 08:40:19 guten* Feb 07 08:40:22 oh Feb 07 08:40:23 der morgen :) Feb 07 08:40:31 yeah yeah Feb 07 08:40:40 you get the gist of what i'm trying to get across :p Feb 07 08:40:51 it's morning, and it's good :D Feb 07 08:40:59 50% agreeing with you :D Feb 07 08:41:05 hehe Feb 07 08:41:36 guyze, is it okay to have SQLiteHelper as a singleton, static writableDatabase and not to close it at all? Feb 07 08:41:51 I want to synchronize my db between multiple threads Feb 07 08:42:04 I got tired of sqlite returned: error code = 5, msg = database is locked Feb 07 08:42:11 alright, so i'm getting really sick of trying to elimiate memory leaks that might not even be there.. and i'm gonna go ahead with a different attempt Feb 07 08:42:22 ..how much is too much for a simple device to handle? Feb 07 08:42:43 yeah some german <3 Feb 07 08:42:51 :D Feb 07 08:43:08 my code is producing a gradient background and about 100 bezier curves (cubicTo) every frame... Feb 07 08:43:20 ..all with a different alpha value Feb 07 08:43:20 Hi all, can you take a look at my SO question? Feb 07 08:43:21 http://stackoverflow.com/q/14746766/1056359 Feb 07 08:43:23 timroes: the leak was my onProgressUpdate. It stopped the UI from doing anything else :D Feb 07 08:43:46 lime: drawing a lot of alpha stuff over each other might be a fps breaker Feb 07 08:44:00 lime: drawing a lot of alpha stuff over each other might be a fps breaker Feb 07 08:44:15 yeah, that's what i'm experiencing Feb 07 08:44:50 Hello! I have listview with custom header. How can i set custom background for header and for list view itmes? Now i set background 1 for header in layout and for other listview (listview items) in getView in adapter Feb 07 08:45:01 but i'm all out of ideas of trying to fix this Feb 07 08:45:05 because you gpu has to draw each layer in a buffer, and then use that buffer to blend with the other buffer, so its no easy just drawing stuff over each other Feb 07 08:45:29 alright Feb 07 08:45:46 but when i set in getview in adapter - i can't use converview and view holders and it affect on perfomanc Feb 07 08:45:48 e Feb 07 08:45:48 (take my words here with a fine grain of doubt, my computer graphics lectures has been some time ago :D) Feb 07 08:46:11 yeah sure, i have no background knowledge whatsoever Feb 07 08:46:31 but from what i can make out of my experience is that blending colours is quite tough for my device Feb 07 08:46:46 are you using opengl oder canvas? Feb 07 08:46:53 canvas Feb 07 08:47:03 since i couldn't find any support for bezier curves in opengl Feb 07 08:48:04 there especially :) I tried drawing all stuff on the canvas ~60fps, then created a fullscreen transparent bitmap and draw half of the stuff on the bitmap and half of the stuff directly on the canvas, and drawing the bitmap at the end to the canvas: ~30fps Feb 07 08:48:29 yeah Feb 07 08:48:53 well, i'm stuck at 9-10 fps.. at the lowest settings i can reach ~15 fps Feb 07 08:49:11 which still isn't very impressive Feb 07 08:49:14 opengl could help you there :D Feb 07 08:49:28 but i think you would need to do the bezier calculation yourself Feb 07 08:49:41 yeah, that's what i'm worrying about :D Feb 07 08:49:46 i would have to rewrite alot Feb 07 08:50:06 or copy it :D Feb 07 08:50:12 i have found some topics about drawing beziers with opengl on stackoverflow Feb 07 08:50:15 I guess there are millions of implementations for that out Feb 07 08:50:19 yeah Feb 07 08:50:33 i guess there's no avoiding it Feb 07 08:51:08 so anyway, just to clarify.. the drawing of 200 lines is fine.. it's the alpha-part that's killing the framerate? Feb 07 08:51:27 I would assume so Feb 07 08:51:41 alright Feb 07 08:51:44 but perhaps the bezier calculation is very slow implemented in canvas, but I don't think that Feb 07 08:52:01 try to draw with 100% oppacity everything you could see if it gets faster Feb 07 08:52:18 well, i tried varying between a cubicTo and a lineTo.. and it's about the same result really Feb 07 08:52:30 and yeah, without the alpha it does run way smoother Feb 07 08:52:40 http://www.pixelnerve.com/v/2010/05/11/evaluate-a-cubic-bezier-on-gpu/ Feb 07 08:52:57 but that also kills the illusion i'm trying to achieve with my code :D Feb 07 08:53:26 but ok, there's no way around, i need to learn opengl Feb 07 08:53:39 i was planning on getting into that with my next project anyway Feb 07 08:53:58 http://www.amazon.com/OpenGL-ES-2-0-Programming-Guide/dp/0321502795/ref=sr_1_1?ie=UTF8&qid=1360227228&sr=8-1&keywords=opengl+es+2.0 Feb 07 08:54:21 i refuse to RTFM :p Feb 07 08:54:25 but thanks though Feb 07 08:54:33 i used this book, but it's not very good if you have absolutely no idea of what is going on in opengl Feb 07 08:54:48 i've come quite far with google alone Feb 07 08:54:48 because there are a lot of words, they don't explain and assume you know them Feb 07 08:54:55 uhuh Feb 07 08:54:55 like in general what shading is and such Feb 07 08:55:51 well, i remember bookmarking some pages about live wallpapers with opengl es Feb 07 08:56:06 but the making of a matrix and such scared me off back then Feb 07 08:56:28 :D Feb 07 08:57:08 * lime shivers by the sight of memoryleak Feb 07 08:57:32 * memoryleak looks around with red eyes Feb 07 08:58:54 ok, so on a scale from 1 to OMFG, how difficult should it be to implement opengl into an already existing project? Feb 07 08:59:06 for a first timer.. Feb 07 08:59:40 1 :) Feb 07 08:59:46 you used SurfaceView already? Feb 07 08:59:56 i think so, yeah :) Feb 07 08:59:58 so switch to GLSurfaceView and replace your drawing methods on the objects Feb 07 09:00:07 so they draw with opengl Feb 07 09:00:23 (okay 1 might be a bit exaggerated) Feb 07 09:00:41 hehe Feb 07 09:01:25 i guess i have to put meaning into words like surfaceview at some point Feb 07 09:02:09 but if i have a surfaceholder, does this mean anything? ..this was part of the original tutorial i've been working from Feb 07 09:04:13 Hi guys, Can someone tell me, what does - mean In this command ? - adb forward tcp:54999 localabstract:Unity- Feb 07 09:05:05 Is there a way to change a progressbar in the statusbar without notify this item again? Feb 07 09:06:20 this item? Feb 07 09:07:30 i have the problem that i have progressbar in the status bar. and eberytime i notify() it it blinks up and you cant use the clock (tablet) or the complete status bar. is there a way to update the progressbar without notify()? Feb 07 09:08:40 Styler2go: do you show the when time? do you set a new when time when you update the progress bar? Feb 07 09:09:02 sounds like your program would be nice for trolling the user :D Feb 07 09:09:16 Live fast. Troll hard! Feb 07 09:12:31 Please can someone help me ? what does mean In this command ? - adb forward tcp:54999 localabstract:Unity- Feb 07 09:13:50 i'm gonna go ahead and guess it's a name or number identifying your bundle Feb 07 09:13:55 DOSP: that is not an android question, but a Unity3d question Feb 07 09:13:59 ? Feb 07 09:14:28 well, you can use unity for android development, can't you? Feb 07 09:14:29 well its android debug bridge command Feb 07 09:14:46 yeah but the bundle identifier has nothing to do with android, its something within unity3d Feb 07 09:14:55 aah ok Feb 07 09:14:59 i need setup profiler so it shows me how CPU and GPU works e.t.c. Feb 07 09:15:29 and many people had problems with setting up profiler, so i thought someone will have knowledge how -to Feb 07 09:16:04 perhaps someone here has worked with unity3d and can help you Feb 07 09:16:52 i was planning on working with unity3d initially.. until i found out they charge a solid amount of euros to let you be able to build your project to android Feb 07 09:17:42 well yea, but it is kinda buggy still Feb 07 09:18:25 i'm somewhat happy to hear that :) Feb 07 09:18:53 since i'm not exactly swimming in money Feb 07 09:19:07 ...yet Feb 07 09:19:57 yea, good luck with that Feb 07 09:20:23 hmm i still wonder why ppl like drowning in money, Feb 07 09:20:29 i would expect drowning to be a pretty horrible experience :D Feb 07 09:26:46 Styler2go: did you not understand my questions? Feb 07 09:27:54 [10:20:41] i would expect drowning to be a pretty horrible experience :D <-- don't be silly, that's why they invented the snorkel Feb 07 09:28:21 yeah I only have an Open Water Diver, so I guess that only applies to water :D Feb 07 09:28:47 now there's your problem :) Feb 07 09:29:09 ofc you'll need some additional equipment Feb 07 09:30:47 Lime's Journey Into OpenGL - A Heartwarming Drama; coming soon to an irc client near you... Feb 07 09:31:13 there will be nude scenes ^ Feb 07 09:33:17 GLX :| Feb 07 09:34:35 :-/ Feb 07 09:38:00 is the webview a chromewebview? Feb 07 09:38:30 no Feb 07 09:39:05 is there any "better" or "faster" webview for android? Feb 07 09:39:23 hi all Feb 07 09:39:32 yes, it's called 'an app' Feb 07 09:39:33 is the memory leak in map view fix? Feb 07 09:39:48 without an app Feb 07 09:40:04 Guys, can you tell me how do i find out the Ip adress of my tablet ? we are on one network Feb 07 09:40:18 www.whatismyipadress.com Feb 07 09:40:21 Mav1 Feb 07 09:40:24 go into wlan settign and hold your wlan then configurtion Feb 07 09:40:27 MapView1 Feb 07 09:40:46 internal IP or external? Feb 07 09:41:50 internal Feb 07 09:42:04 if this chromebook pixel is real, i hope i can put ubuntu on it XD Feb 07 09:42:07 use what i told Feb 07 09:42:16 in wlan settings hold your wlan, then settings Feb 07 09:46:43 if there is no better webview for android projects, is there a way to make the zoom faster like a normal web app? Feb 07 09:50:00 is it possible to use a plural string in xml? Feb 07 09:52:37 androverso: http://developer.android.com/guide/topics/resources/string-resource.html#Plurals Feb 07 09:52:57 androverso: or do you mean to refer to it from your layout? =) Feb 07 09:54:27 yes, sorry, i meant referring to it from layout Feb 07 09:54:46 with a quantity value Feb 07 09:58:15 androverso: I don't think it's possible Feb 07 10:00:12 ok, thanks. i googled that for quite some time now. thought i bring it up here :) Feb 07 10:01:06 androverso: same with regular strings with format arguments :) Feb 07 10:02:49 appel1: thanks Feb 07 10:02:51 np Feb 07 10:22:22 How can I keep track of the memory consumption of a background async task? Feb 07 10:22:46 I'm trying to figure out where in the DDMS I can find the AsyncTask running Feb 07 10:24:25 memoryleak: AsyncTask is just a helper for a thread, it doesn't have its own heap.. Feb 07 10:25:21 memoryleak: I guess you can use the allocation tracker and see if each allocated object was allocated from your async task Feb 07 10:41:15 heya, my app will use the GPS every now and then... but obtaining a lock often takes time. Is there a solution anyone can recommend that has the GPS open "in the background" so to speak and keep it running while the app is open? Because I believe an activity will not keep it open right? Feb 07 10:41:31 ..suspended activity. Feb 07 10:45:26 ahhughes: you want to keep the gps on while your activity is in the foreground? Feb 07 10:47:59 appel1, I dont want to destroy the gps each time I change activities. Feb 07 10:48:12 its annoying to wait for it each time. Feb 07 10:51:16 ahhughes: so implement some kind of hand over mechanism for the gps :) Feb 07 11:38:43 I am extracting a Zip with ZipInputStream. is there a way to get the file size required to extract? Feb 07 11:39:41 yeah, extract them and add them together Feb 07 11:40:09 i mean before extracting Feb 07 11:40:59 Styler2go: I'm not sure you can do it from zipinputstream Feb 07 11:41:13 how would you do it? Feb 07 11:41:14 but you can do it from zipfile by getting each of the zipentries Feb 07 11:41:21 a zipinputstream is not necessary Feb 07 11:41:32 yeah thats what i thought too.. thanks Feb 07 11:42:48 my brain hurts from coding for the past 20 hours Feb 07 11:43:02 someone shouuld killme...softly Feb 07 11:44:35 youtube.com/watch?v=dpNdMIAnKko  Feb 07 11:46:12 edman: would you do it thisway? while (zipFiles.hasMoreElements()){ ZipEntry oneFile = (ZipEntry) zipFiles; neededSpace += oneFile.getSize(); } Feb 07 11:50:06 Styler2go: i assume zipfiles is an object of enumeration and not of ZipFile... Feb 07 11:50:41 you have to do onefile = (zipentry) zipfiles.nextelement() Feb 07 11:50:47 other than this detail, seems right Feb 07 11:51:05 yeah i changed it :D Feb 07 11:51:30 thank you! Feb 07 11:58:58 no problem :) Feb 07 12:03:03 what do you do if somebody reverse-engineered your code, copied parts of it and put the app on the play store for 1/3 of the price? Feb 07 12:04:29 if you've got proof, you report the app Feb 07 12:05:58 Leeds: it is not trivial to prove; the app is reading out the log, checking if a certain thing happened in the last seconds and rings a bell if yes; the rip-off-app is using exactly the same logic and constant values, just with different function and variable names Feb 07 12:06:27 Leeds: however, with a total of 30 lines of code, there is a certain chance for it being a coincidence Feb 07 12:06:35 could it not be a black-box reimplementation? Feb 07 12:07:17 Leeds: my intuition says no, because I wrote a datetime-parser based function to check the age of a given log line, and that guy got the exactly same function Feb 07 12:07:25 are there other shady things about it, like using a similar name? Feb 07 12:07:26 Ge0rG: that would make them a big meanie Feb 07 12:07:35 Can i get the current Status of a selfmade Service? for example, if the service is running, do not run again? Feb 07 12:07:39 but 1/3 of 0 is still 0 Feb 07 12:07:58 Leeds: https://play.google.com/store/apps/details?id=de.duenndns.forwardedcall vs https://play.google.com/store/apps/details?id=com.pt.divert Feb 07 12:09:24 Leeds: I released an early release on xda-dev as "Diverted Call Alert" Feb 07 12:09:58 Leeds: and what I decompiled from com.pt.divert is really looking like my own source code, except for different variable/function names Feb 07 12:10:18 I'd be tempted to email the other guy and ask him Feb 07 12:10:51 Leeds: ask him if he copied my code? Feb 07 12:11:05 not so bluntly... Feb 07 12:12:33 to be fair, it looks like they've sold very few copies... so it's not like you've lost out Feb 07 12:13:18 (13:06:01) Ge0rG: Leeds: however, with a total of 30 lines of code, there is a certain chance for it being a coincidence Feb 07 12:13:18 at 30 lines it's borderline fair use, and "not legally significant" http://www.gnu.org/prep/maintain/html_node/Legally-Significant.html Feb 07 12:13:19 Leeds: ok, they launched the app three months ago, and had all the chances to get rich Feb 07 12:13:30 https://en.wikipedia.org/wiki/Fair_use Feb 07 12:13:33 you've gotten rich? Feb 07 12:13:54 hi guys it's been a while Feb 07 12:14:03 hi guys will debugging using ndk i am getting the following error ! Feb 07 12:14:10 Error in final launch sequence Failed to execute MI command: -gdb-set target-async off Feb 07 12:14:13 any idea ? Feb 07 12:14:23 FreeAir: does fair use apply to source code? Feb 07 12:14:31 for detailed information please refer to the following link Feb 07 12:14:36 http://stackoverflow.com/questions/14462730/error-in-final-launch-sequence-failed-to-execute-mi-command-gdb-set-target-asyn Feb 07 12:14:37 ...if you have to de-compile the binaries? Feb 07 12:14:55 funkbox: unfortunately no, not yet Feb 07 12:20:09 Ge0rG complain to Google and have the app pulled Feb 07 12:20:52 any idea how to avoid that LocationListener is Blocking GCMIntentService? GCMIntentservice is still receiving the Messages but cannot execute stuff while in Listenermode Feb 07 12:20:59 Styler2go: check this http://stackoverflow.com/questions/600207/android-check-if-a-service-is-running Feb 07 12:21:09 I could write a polite "please-remove-the-app-or-else" email to the developer, but I'm not at all sure it would help Feb 07 12:21:39 his app is rated so much worse, why care at all? Feb 07 12:22:00 timroes: because they stole my codes!1!!!!1 Feb 07 12:22:17 oh heh, I just clicked the links now Feb 07 12:22:19 yeah, don't bother Feb 07 12:22:27 you can email them about it, leave it at that Feb 07 12:22:39 I need a little bit of help. Feb 07 12:22:44 it really looks like you don't have much more than "their app does the same thing as mine, and I think it does it in the same way" Feb 07 12:22:49 Ge0rG: so what, you stole a famouos directors name :) Feb 07 12:22:58 I'm running an emulator on one PC on the network. Feb 07 12:22:59 timroes: my parents did! I'm not guilty :P Feb 07 12:23:18 Can I connect adb trough the network to the other PC. Feb 07 12:23:21 ? Feb 07 12:24:49 Help? Feb 07 12:25:42 sogard: you can certainly try to use the standard adb wifi stuff Feb 07 12:25:50 sogard: there is adbWireless for rooted phones, and 4.x devices have that built-in Feb 07 12:25:57 Not a phone. Feb 07 12:25:59 but I don't really think I'd expect it to work for the emulator Feb 07 12:26:03 I have 2 PC. Feb 07 12:26:12 One PCs* Feb 07 12:26:39 The problem is that I cannot verify if port forwarding works. Feb 07 12:27:17 I don't know if the problem is because the port 5555 is not forwarded or because the adb cannot connect to the emulator. Feb 07 12:28:07 Any ideas? Feb 07 12:28:13 This would help me a lot. Feb 07 12:28:45 I cannot develop on my device because it takes so long until it builds. Feb 07 12:28:48 my idea would be not to do that Feb 07 12:29:01 Why? Feb 07 12:29:15 um, because it's obviously not working for you Feb 07 12:29:33 It should work. Feb 07 12:29:53 If i use adb connect localhost on the PC with the emulator, it works. Feb 07 12:29:56 I* Feb 07 12:30:58 Do you know how I can verify if port forwarding works? Feb 07 12:31:19 telnet? Feb 07 12:32:14 no idea what Windows does, but *nix has local ports which don't run over the network Feb 07 12:32:50 127.0.0.1 is "local" everywhere Feb 07 12:32:54 I'll try Putty. Feb 07 12:33:39 oh, Windows :( Feb 07 12:33:42 how can I keep the screen awake? Feb 07 12:34:44 ahhughes: http://lmgtfy.com/?q=android+keep+screen+awake Feb 07 12:35:16 (13:14:10) Ge0rG: ...if you have to de-compile the binaries? Feb 07 12:35:16 no idea where you are, but in most places reverse engineering is legitimate Feb 07 12:35:58 FreeAir: so, to what extent is fair use also valid for source code? Feb 07 12:36:37 ahhughes: snoring always keeps me awake... Feb 07 12:37:13 I'd be more worried about it being legally significant, or not Feb 07 12:37:26 how many K lines of code is your app? is his app? 30 lines is nothing Feb 07 12:37:41 30 lines with which formatting? Feb 07 12:38:00 minimum lines while remaining syntactically valid? Feb 07 12:39:08 thanks appel1 I actually didnt know that was the correct way to describe what I was looking for :) Feb 07 12:40:01 ahhughes: always a good idea to search first =) Feb 07 12:40:25 FreeAir: it is not about syntax but about semantics. there are many ways to implement a given approach, and many approaches possible to solve a given problem. if they are taking the same approach and using the same implementation, it is already clear they had a hard look at what I have done Feb 07 12:40:56 you own the copyright to your code, not to the ideas within it Feb 07 12:41:04 that's for patents Feb 07 12:41:13 which are wretched things Feb 07 12:41:47 FreeAir: they are indeed Feb 07 12:43:25 "it is already clear they had a hard look at what I have done" Feb 07 12:43:25 30 lines, right? it's not clear to me. if there is other evidence in other files, or the same file, etc, maybe. Feb 07 12:48:06 ok this time I really dont know what I am asking for... many apps often give me a small notification popup, like "Operation Compete" or something... what are these popup's? Feb 07 12:48:16 toats Feb 07 12:48:19 *toasts Feb 07 12:48:27 FreeAir: just to give an example: http://op-co.de/tmp/diverted-example.html Feb 07 12:48:49 cheers Chainfire thats what I wanted :) Feb 07 12:49:16 ahhughes: you might want to work through some of the training and examples on the d.android.com site... Feb 07 12:51:02 maybe I should've given the #iphonedev answer: go read the documentation front-to-back, you'll find the answer somewhere within it Feb 07 12:51:42 * Chainfire been doing iOS devving a bit lately (ugh). And I thought some people in here were unhelpful! Feb 07 12:53:21 You can trust apple fan boys to have their noses high in the air :-) Feb 07 12:56:43 oh you have those people in here as well... some even employed by you know who. Feb 07 12:56:55 I'm glad they're listening to me, then ;-) Feb 07 13:04:13 Hello, I'm trying to use Drop-down navigation with ActionBar Sherlock Feb 07 13:04:29 I made my activity implement com.actionbarsherlock.app.ActionBar.OnNavigationListener Feb 07 13:04:58 then in onCreate () I did: Feb 07 13:04:58 ArrayAdapter adapter = new ArrayAdapter(getBaseContext(), android.R.layout.simple_spinner_dropdown_item, navList); Feb 07 13:04:58 getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); Feb 07 13:04:58 getSupportActionBar().setListNavigationCallbacks(adapter, this); Feb 07 13:05:16 Yet the logcat shows a NullPointerException Feb 07 13:09:35 on which line Feb 07 13:11:26 Chainfire: Now it runs fine, but the problem that it shows another drop-down menu Feb 07 13:12:06 I want a drop-down menu from the same Application's main navigation item Feb 07 13:15:45 Hello guys, I used to build my settings activity with regular views. But on the dev site I found something with Preferences class and PreferenceActivity. Is it recommended to use this or just stick with old school style? Feb 07 13:17:14 PreferenceActivity/Fragment is the standard way to do it ... but there's nothing stopping you from doing it your own way. It is much more consistent with the "Android experience" if you use the PreferenceActivity/Fragment, though. Feb 07 13:17:34 in other words, recommended? yes. required? no. Feb 07 13:18:17 Hmmm ok, well I haven't checked the android's dev site for some time, but I couldn't remember of a Preference stuff, except SharePreference. Feb 07 13:18:29 Chainfire, thank you for your answer Feb 07 13:19:07 SharedPreferences is the class used to *store* and *retrieve* preferences values, PreferencyActivity/Fragment are used to *display* them. Feb 07 13:19:22 yes, that makes sense Feb 07 13:19:32 thnx Feb 07 13:19:38 the "Settings" app in your device is a good example of PreferencyActivity Feb 07 13:20:25 (on phone... on tablet ui its a bit more complicated) Feb 07 13:20:56 why, if you use fragment it won't be a problem I think Feb 07 13:21:23 I'm not saying its a problem, I'm saying its not as simple an example :) Feb 07 13:21:31 That's what I see on the Samsung's android tab Feb 07 13:21:48 Chainfire, ooh ok, my fault Feb 07 13:23:07 anyone knows a platform developer community/irc/forum/whatever? Feb 07 13:25:15 hi guys, im trying to set up GCM, issue im having is when i put gcm-demo.war into webapps/ on tomcat, then try and view it it says its not there - ip im using is http://127.0.0.1:8080/gcm-demo Feb 07 13:27:02 Is there any other way to contact android developers support except: replying to removal notification mail (3 times), filling out form at https://support.google.com/googleplay/android-developer/contact/publishing?rd=1 (2 times) and contacting developer advocates on google+ (5 of them)? Feb 07 13:27:17 got absolutely no reply from any of those Feb 07 13:27:20 for 2 weeks already Feb 07 13:27:27 :/ Feb 07 13:36:29 damn servlets Feb 07 13:37:28 Hi guys, trying one more time Feb 07 13:37:35 anyone have a thought about this: http://stackoverflow.com/q/14746766/1056359 Feb 07 13:37:36 ? Feb 07 13:42:32 Hi, sorry for a beginner's question, but when I add a Edit Feb 07 13:42:35 ugh TeeCharts is terrible Feb 07 13:42:45 Number5: we love beginner's questions Feb 07 13:43:09 because if beginner's don't ask questions they wind up coming in here later on with bigger messes Feb 07 13:43:10 Hi, sorry for a beginner's question, but when I add a EditTextPreference in the xml file , it doesn't who the value, only title and summary. Feb 07 13:43:12 so ask away Feb 07 13:43:26 thnx mikedg Feb 07 13:43:45 it doesn'tshow the value, only title and summary. Feb 07 13:43:56 it won't show a value until you click it Feb 07 13:44:01 Number5: are you trying to add a pre-existing text to the EditText? Feb 07 13:44:41 well, if a user checks its settings, he/she shouldn't tap an the item to see what's the value Feb 07 13:45:14 pre-existing, I call it a default value? Feb 07 13:45:14 so that's what you want? the user should be able to see the setting without having to click it to see the value? Feb 07 13:45:22 yes Feb 07 13:45:44 unless I'm misinformed that's not possible without making a few changes to your preferences fragment/activity Feb 07 13:45:56 it's certainly doable though Feb 07 13:45:59 Number5: in the actual XML you can add `android:text=your_text` Feb 07 13:46:24 unless I don't understand what you're trying to do Feb 07 13:46:29 mikedg, what? they make beautiful stuff and than such obvious thing is not by default possible? hmmm Feb 07 13:46:47 aaah, it's a text, I'll try Feb 07 13:46:54 Number5: I'm not a fan of the preferences at all :/ Feb 07 13:47:20 I use it for quick stuff, but I always intend to make my own preferences, for this reason, and a few others elated to redability Feb 07 13:47:40 well, I did it the old way, just an Activity with items and than write to it or read from it (using sharedpreference) Feb 07 13:48:26 hi, I am new to android. Mostly people choose 2.2 (froyo) for development but many recomend 2.3 (gingerbread) . can any one tell why? Feb 07 13:48:56 anyone know why i get resource not foudn when i go to http://127.0.0.1:8080/gcm-demo, i have gcm-demo.war in webapps/ Feb 07 13:48:58 less and less market users have Froyo installed Feb 07 13:49:21 Gaz`: what does this have to do with android? Feb 07 13:49:24 oh gcm Feb 07 13:49:28 mikedg, you mean very few have froyo? Feb 07 13:49:35 yeh im trying to get notifications going Feb 07 13:49:36 Quest: yes Feb 07 13:49:43 and whats the advantage of using 2.3? any prominent features? Feb 07 13:49:44 but servlet just isnt found Feb 07 13:49:48 Gaz`: are you actually going to use app engine? Feb 07 13:49:51 Quest: there are a lot of APIs that got released in 2.3 Feb 07 13:50:02 Quest: it was a switch to the dark notification drawer, which means some less resources Feb 07 13:50:05 and as for the users about 75% have 2.3 and above Feb 07 13:50:11 mikedg not sure i wanna get it working locally here, then i think client handles server side Feb 07 13:50:13 mikedg, 2.3 is mostly used now days in markter (users)? or what do YOU recomend? Feb 07 13:50:20 thepoosh, i see Feb 07 13:50:37 hmm Feb 07 13:50:48 thepoosh, are there stats for users only using 2.3? Feb 07 13:50:51 in percent Feb 07 13:50:53 Gaz`: if it's just for testing, I'd just use Node... none of that j2ee war configuration crud :/ I have't touch app engine in a long time, so I can't be of help that way Feb 07 13:51:02 brb Feb 07 13:51:11 Quest: in the dev website Feb 07 13:51:15 but I can be of help if you wanted to throw a node server together quickly Feb 07 13:51:19 thign is i followed the tutorial to the letter, it should just be there Feb 07 13:51:22 to send off GCM crap Feb 07 13:51:39 Quest: http://developer.android.com/about/dashboards/index.html Feb 07 13:51:44 actually almost 90% of the devices run on gingerbread and older Feb 07 13:51:45 yeh might have to look into that, very confused why this thing isnt found Feb 07 13:52:01 it's probably some silly shit XML configuration thats screwed uo Feb 07 13:52:06 edmna: where do you take your stats from? Feb 07 13:52:12 Google said something else Feb 07 13:53:45 probably, reminds me of the summer i set up amitcp Feb 07 13:53:48 nightmares.. Feb 07 13:55:09 same place as you Feb 07 13:55:21 the link you sent says that Feb 07 13:55:50 older means lower numbers, that is NOT what is written there Feb 07 13:56:00 I think you ment newer Feb 07 13:56:06 oooh, i'm sory Feb 07 13:56:09 :D Feb 07 13:56:20 my mistake :) Feb 07 13:56:50 Quest: about 90% of Android users have API 9 and above Feb 07 13:58:13 depending on what you're building... Personally I would not go out of my way to build something *new* that had to work on API 10 Feb 07 13:58:24 Chainfire: wi Feb 07 13:58:26 why? Feb 07 13:58:37 odd typo :-/ Feb 07 13:58:59 first off, it depends on how hard it is. if it only adds 10% to development time, by all means go there (usually) Feb 07 13:59:08 but you also have to take into consideration when your app will be released Feb 07 13:59:12 and what your customer base is doing Feb 07 13:59:24 if I look at my own (many) customers, most of those are actually on 4.x Feb 07 13:59:24 fucking kernel panic again Feb 07 13:59:38 (and that number is only growing) Feb 07 13:59:41 people who have had android longer tend to download less apps Feb 07 13:59:51 they become complacent, dont both searching for new things as often Feb 07 14:00:00 and ^^^ as well Feb 07 14:00:15 people usually buy shortly after they get a new device, in my experience Feb 07 14:00:27 yup Feb 07 14:00:32 lol ok, i had to run tomcat as administrator! Feb 07 14:01:05 which is also why I might pay off to buy the very latest and greatest at release day and make sure your apps are compatible Feb 07 14:01:16 *it Feb 07 14:01:34 emphasis on MIGHT, depending on your apps :) Feb 07 14:02:05 I think it's too many people for you to generalize like this Feb 07 14:02:19 it also depends on what problem you're solving, and how your competition is solving the same problem Feb 07 14:02:19 thepoosh, mikedg oh so, I should go with 2.3? (well 2.3 or 2.3.3 ? ) Feb 07 14:02:37 edman> because... all the "mights" and "for me" thrown everywhere is generalising ? Feb 07 14:02:41 it's probably pretty inconsequential Feb 07 14:02:45 i'd go with 2.3.3 though Feb 07 14:02:55 I'm just illustrating why it all depends on the situation if its even worth you while Feb 07 14:03:12 and responding to the question why *I* don't go out of my way to support 2.x in *new* apps Feb 07 14:03:20 Quest: I would start with API 9 Feb 07 14:03:35 thepoosh, mikedg oh after seeing the dash board. 45.4% is for 2.3.3 . so the choice of 2.3.3 is obviouse? Feb 07 14:03:42 Chainfire: yes... but lets forget this discussion :) Feb 07 14:04:01 thepoosh, for 9 0.2% share Feb 07 14:04:56 Android Dex: PersistentEnumerator storage corrupted /Users/mdigiovanni/Library/Caches/IntelliJIdea12/compile-server/workosx_950f69ea/android/dex/dex Feb 07 14:04:58 :| Feb 07 14:05:09 why dont you just fucking delete that then instead of making me find it Feb 07 14:05:38 Quest: API 9 == 2.3 Feb 07 14:05:44 mikedg: I think I know what dg now stands for :p Feb 07 14:06:11 hah yes Feb 07 14:06:15 thepoosh, 9 == 2.3 10 == 2.3.3 0.2 % share for 9 and 45% share for 10 Feb 07 14:06:39 how can i prevent an activity from closing? :D Feb 07 14:06:49 Quest: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Feb 07 14:06:55 Styler2go: a custom build of the platform Feb 07 14:06:58 Styler2go: you don't :D Feb 07 14:07:15 don't try to "fix" android, learn how it works and take advantage of it Feb 07 14:07:16 Styler2go: you can't tell a user he can't quit your app Feb 07 14:07:31 I can't quit you Feb 07 14:07:32 he can end the app, but not the activity :D Feb 07 14:07:33 that's more like a hostage situation than programming Feb 07 14:07:39 ^^ Feb 07 14:07:45 Styler2go: I think you want a Service Feb 07 14:07:49 that's more like Brokeback Android than anything Feb 07 14:07:54 You can override the back key to ask "Are you sure?" or something, but you cannot physically block the home button, etc Feb 07 14:08:02 thepoosh, ya.. 9 === 2.3.2 nor 2.3.3 Feb 07 14:08:06 i want a screen "please wait" while a service is updating some files for the app Feb 07 14:08:12 lov: gah, how I hate those! Feb 07 14:08:13 why? Feb 07 14:08:15 and this screen should not be closed Feb 07 14:08:16 there's no need for that Feb 07 14:08:24 yeah basically Feb 07 14:08:31 use an MVC architecture Feb 07 14:08:32 Audible does some lame shit like that and it's obnoxious Feb 07 14:08:33 Quest> well either way make sure you do sufficient testing on the lowest API level you support... :) Feb 07 14:08:35 thepoosh, why would you go for 2.3.2 mikedg why would you go fo 2.3.3 Feb 07 14:08:35 Styler2go: you want your users to hate you? =) Feb 07 14:08:36 Styler2go: ASyncTask and a progress dialog Feb 07 14:08:43 i will just override the keyback event... Feb 07 14:08:55 your activity is just displaying what's happening on the backend in your service; you should be able to detach and reattach at any time. Feb 07 14:09:15 Styler2go: and what happens when the user presses home? Feb 07 14:09:16 if you want the user to know about something happening in a service when they try to exit, create a notification Feb 07 14:09:18 or when they get a phone call? Feb 07 14:09:20 Chainfire, can you elaborate? (as this is a start and i want to move in the right direction) Feb 07 14:09:26 the screen will only befor about 10 seconds and this app will never be in the app sotre Feb 07 14:09:28 Styler2go: belgianguy unless your processing takes too long.. in which case i would go for a service Feb 07 14:09:34 Styler2go: doesn't really matter. Feb 07 14:09:42 they can end the app, but they should not be able to use the app Feb 07 14:09:49 Styler2go: and that's fine! Feb 07 14:10:05 When your activity starts, check for what's happening and what your status is and act appropriately Feb 07 14:10:18 you are going to spend more time making the wrong way work right than just doing it the right way no matter how hard it seems Feb 07 14:10:22 ^^ Feb 07 14:10:31 and you won't even get the wrong way to work Feb 07 14:10:33 I guarantee it Feb 07 14:10:38 Quest> you're likely to set "target" API and "minimum" API to different values as you go along (you'll find out why, not important now). This will allow you to do things not possible in "minimum" API Feb 07 14:10:41 go with the flow is what I say, trying to force things usually ends in tears Feb 07 14:10:51 belgianguy: that's what she aid Feb 07 14:10:54 :D Feb 07 14:10:59 You CANNOT physically prevent the user from leaving your activity. Period. Feb 07 14:11:05 Chainfire, mikedg thepoosh ok, and i should use 4.2 sdk and 4.2 compile with? Feb 07 14:11:06 mikedg: touché Feb 07 14:11:11 not "May not", "Can not" Feb 07 14:11:26 Quest> though there is "Android lint" to find these errors, it is not exactly reliable to catch *all* these problems. So be sure to test on a device(/emu) with your minimum API level to make sure you're not crashing all over the place Feb 07 14:11:27 mikedg: she kept on saying it even :p Feb 07 14:11:28 lov: I accept your challenge Feb 07 14:11:35 lov: add a dongle that hunts them down if they walk away Feb 07 14:11:43 Chainfire, i see Feb 07 14:11:51 maybe one of those roving wheel things Feb 07 14:11:55 Anoia: ! Feb 07 14:11:58 motion tracking ont he camera Feb 07 14:12:37 this may come under the realms of US military black budget project though Feb 07 14:12:47 just tell the user that his phone will explode if he closes the app, or his scrolling Speed drops under 5px/s Feb 07 14:12:49 Quest it is generally recommended to target/compile with the latest, yes Feb 07 14:13:20 Chainfire, as 2.3.2(9) is 0.2% used , how about i set min api to 2.3.3 (10) and target to 2.3.3 also ? Feb 07 14:14:07 i'm currently thinking about which persistent storage method i should use. SharedPreferences or a SQLite database. My data consists of (3 Strings) * (~400) * (~20) max. Should i go for a database, or should i push alle these strings in my SharedPreferences and get them back again by simple parsing? Feb 07 14:14:22 Tell the user that he has (2) TWO new friend requests, and make sure that you run the vibrator and give the user a seizure too Feb 07 14:14:33 Quest I would go with 10 (not 9) as min, but not target. Setting it as target will cause compatibility mode and whatnots to show up on new devices Feb 07 14:14:59 Quest with "min" you say: this is the bare minimum we have code for to support. with "target" you say: but we have tested and it works great up to this level Feb 07 14:15:01 xes Feb 07 14:15:02 Chainfire, if i use 9 as min and 10 as target. i can surely use the features of 10? so whats the point in setting up a min api to 9 if used features not available in 9 ? Feb 07 14:15:13 MrMaffen: sounds easier with the db approach :) Feb 07 14:15:48 Quest there isn't, you would set it to 10. Feb 07 14:16:17 appel1: I've read that database access is quite slow though. Which approach do you think will be more performant when storing 2400 Strings ? Feb 07 14:16:18 MrMaffen: might me my interpretation, but anything larger than say twenty options I'd store in a SQLite db rather than using SharedPreferences Feb 07 14:16:48 Chainfire, suppose, i used min as 9 and target as 10 . what happens if the user have 9? well i guest the features of 10 which i used will not work on 9 and the app will crash? Feb 07 14:16:50 MrMaffen: are you going to read them all into memory at the same time? Feb 07 14:17:14 Quest if you do something thats not possible on 9 (like a function call introduced in 10), the app will crash Feb 07 14:17:45 appel1: the average use-case will be to read an object as large as 100 Strings ... Feb 07 14:18:12 belgianguy: k ty Feb 07 14:18:15 Chainfire, then i really never understood why theres a need for min api ... Feb 07 14:18:19 Chainfire: it won't crash, just wont compile if the `android:minSdk` is lowwer than 10 Feb 07 14:18:29 Quest: so people cant run the app on those devices Feb 07 14:18:45 thepoosh yes it will Feb 07 14:19:11 mikedg, if the 9 will crash the features of 10 (target api in example). why use min api. why not just say min 10 and start coding Feb 07 14:19:13 MrMaffen: I'd go with the db Feb 07 14:19:19 Chainfire: not necessarily crash... some functions just won't do anything Feb 07 14:19:21 that's a bit confusing about the NDK, you can set the SDK level at multiple places Feb 07 14:19:22 appel1: k thanks ! :) Feb 07 14:19:25 it won't crash, it'll automatically bill a new phone to your account Feb 07 14:19:30 I guess the manifest still overrides the rest Feb 07 14:19:41 but the makefile can have different flags Feb 07 14:19:42 edman: if you use a function that isn't in API level 9 then it will crash Feb 07 14:19:52 edman> if the function was not present in 9 it'll crash with an ENoSuchMethod (or something) Feb 07 14:19:54 if you use constants, they likely got inlined and will be fine Feb 07 14:20:05 Chainfire, if the 9 will crash the features of 10 (target api in example). why use min api. why not just say min 10 and start coding Feb 07 14:20:18 if you use some functions that are just @hide, then it will not crash but may work poorly or crash elsewhere Feb 07 14:20:26 Quest as I said, if you're only using level 10 APIs, you'd use min-api of 10 Feb 07 14:20:41 Quest: you can choose not to allow those features on api level 9 devices Feb 07 14:20:41 Chainfire, the silly thing that if i setup 10 as min and target. it will give errors? Feb 07 14:20:43 then it wont crash Feb 07 14:21:02 you can use new xml tags available in 10 but not 9 without issue Feb 07 14:21:11 haha guys Feb 07 14:21:28 mikedg, that will result in either less performance or fever features or a crash. which is not tolerable Feb 07 14:21:31 the LogCat is kidding me :( It asks me if i really want to do that Feb 07 14:21:39 Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? Feb 07 14:21:59 perhaps you should listen? Feb 07 14:22:04 Styler2go: I quite like the logcat talking to me like that Feb 07 14:22:10 Quest if you setup 10 as min and target it will not give errors, but it will trigger compatibility mode in *NEWER* Android versions Feb 07 14:22:13 "Is this how you will live your life?" Feb 07 14:22:20 Chainfire, i see. well what can i say about android strategy. its a bad one to me. well what do you recomend. i think min as 10 and what for target? Feb 07 14:22:30 Yes, its funy. i love logcat :D Feb 07 14:22:42 Quest I think I've told you what to do enough times now that you should know Feb 07 14:22:49 Chainfire, so for 11 or 12 it will crash? Feb 07 14:22:55 Quest: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 07 14:22:58 Quest: it's called testing Feb 07 14:23:08 on canvas, how can i draw a line that is 'round' ? Like it is 10 pixels 'thick' and if i draw from x1,y to x2,y , there is a little 'circle' to the left of x1 and to the right of x2 Feb 07 14:23:12 quest, set your min and target and sdk to api level 10 Feb 07 14:23:16 (sorry for confusing explanation :) Feb 07 14:23:17 problem solved, no more questions Feb 07 14:23:20 How can I customize the style of the ActionBar drop-down navigation menu? Feb 07 14:23:23 mikedg ;) Feb 07 14:23:32 Quest set your min to 10 and your target to the latest Feb 07 14:23:37 and test on both Feb 07 14:23:39 set max sdk to 10 as well Feb 07 14:23:40 end of questions. Feb 07 14:23:42 so you dont have to test Feb 07 14:23:45 Chainfire, mikedg why set min == sdk ? Feb 07 14:23:58 so you dont accidentally use apis that dont exist Feb 07 14:24:03 it stops crashes Feb 07 14:24:37 and if you set maxApi then a lot of people won't see your app, leading to less usage and to less crashes Feb 07 14:25:00 Chainfire, thats why i found silly,. if i target latest and use its newer features. my app will either crash or result in bloated or no perfermance (as of new features used) in the 10 api phone Feb 07 14:25:10 mikedg, ^ Feb 07 14:25:19 how is that silly? Feb 07 14:25:27 Quest that's not silly, you write special code work around the problem, or disable the feature, or implement it in some other way, or whatever Feb 07 14:25:31 it's a protection measure Feb 07 14:25:39 Quest what is silly your aversion to it Feb 07 14:25:53 why use newest features if you know min and all lower than latest wont be able to handle it Feb 07 14:25:59 Chainfire, ^ Feb 07 14:26:08 mikedg, ^ Feb 07 14:26:11 Quest: My free chat has expired, we need to create a statement of work and pay scale to continue this conversation Feb 07 14:26:16 Quest once you will start building and stop asking the same goddamned question all over again, sooner or later you will understand Feb 07 14:26:27 mikedg: LOL Feb 07 14:26:46 :) mikedg Chainfire thanks for the time Feb 07 14:27:10 "Please, no advertising, jobs or otherwise" Feb 07 14:28:12 there's an exemption for mikedg Feb 07 14:28:22 because he's a state machine, we allow it Feb 07 14:28:49 im exemptional Feb 07 14:28:55 lol Feb 07 14:33:10 hmm servlet working, pizza time Feb 07 14:33:22 is it easy to setup that the user can draw on the screen with his finger? Feb 07 14:33:57 Styler2go: not really Feb 07 14:34:09 make a surfaceview and paint whereever you get touches Feb 07 14:34:17 morning Feb 07 14:34:35 where did they touch your app, you can tell us Feb 07 14:34:43 ;) Feb 07 14:35:05 Styler2go: I'd say look into the canvas Feb 07 14:35:14 and when the user initiates contact, save that point Feb 07 14:35:18 why is it that sometimes i have to clean my project to get my generated R file to regenerate? Feb 07 14:35:43 and when he moves (= different from touch) add points to your list (probably a Path of some sort) Feb 07 14:36:11 kaneda^ i tend to blame it on eclipse Feb 07 14:36:15 broken poc Feb 07 14:36:18 kaneda^ yaaaaay eclipse! Feb 07 14:36:24 kaneda^: it's probably Eclipse Feb 07 14:36:38 sonOfRa, hmm, it happens to me pretty frequently, gets annoying when all of a sudden every file can't find the stuff in R Feb 07 14:36:52 happens ALL the time Feb 07 14:36:55 can't do anything about it Feb 07 14:37:07 and also, the NDK side of this project wont auto complete, but my CDT stuff autocompletes and the java side of this project autocompletes, wtf Feb 07 14:37:22 kaneda^: a fellow NDK'er! Feb 07 14:37:25 belgianguy, indeed Feb 07 14:37:42 belgianguy, i've just fnid a way to bypass java, sort of Feb 07 14:37:48 fnid = found Feb 07 14:38:02 yeah, just a hop into JNI and go to town with C++ Feb 07 14:38:20 that sounds far easier than it actually is Feb 07 14:38:35 belgianguy, i'm working in C# right now which gets compiled to native code, and i'm using that to import an SO from the project w/o any java and invoking native funcs Feb 07 14:38:53 umm I thought there was support for c++ only ndk apps since ndk15 or whatever Feb 07 14:38:59 kaneda^: ah, nice :) Feb 07 14:39:03 ron_frown, ndk8 i think Feb 07 14:39:11 ron_frown: there is, NativeActivity Feb 07 14:39:14 so why fart around with jni at all Feb 07 14:39:31 ron_frown, camera and the like, unless you want to build drivers Feb 07 14:39:48 because I knew about it too late and am not rewriting this :p Feb 07 14:40:00 at some point i'd write my own drivers, but not today :D Feb 07 14:40:10 Why is alarmId null in PlayAlarmService here? http://pastebin.com/ZcnhitUR Feb 07 14:40:10 I've files that I download from the internet over HTTPS and I would like to store them somewhere where no other app has access to, where I should store the files locally? Feb 07 14:40:36 ehmm in most cases I bet you wouldnt need to jack with drivers Feb 07 14:41:01 I mean after all drivers are at kernel level, and mostlikely have access to most stuff through typical linux mechanisms Feb 07 14:41:12 but I understand Feb 07 14:41:57 I checked that it has a value in MainActivity Feb 07 14:42:24 is this correct that Setting android:targetSdkVersion higher than android:minSdkVersion does not break the app on your minimum API level. It will still work perfectly fine. Feb 07 14:42:27 ? Feb 07 14:42:35 true Feb 07 14:43:05 ron_frown, what will happen to those newer features that are using in the app when it run on the min api? Feb 07 14:43:23 they will fail Feb 07 14:43:39 and you need to manage that in your code Feb 07 14:43:41 unless you use something that works like actionbarsherlock Feb 07 14:43:49 ron_frown, so the app will crash or not perform as expected. ron_frown you said true? why? Feb 07 14:44:00 I still don't get why ABS isn't a default part of Android Feb 07 14:44:06 is there anything wrong with the code I pasted at pastebin? It looks pretty much the same as in my other IntentService Feb 07 14:44:24 it'll let the person install the app, but it will crash/exception when it goes to use new functionality Feb 07 14:44:36 omfg Feb 07 14:44:43 quest, the train has left the station Feb 07 14:44:55 por agua en la casa de los perros Feb 07 14:45:18 ron_frown, so its foolish to use a latest api as target Feb 07 14:45:18 ? Feb 07 14:45:27 thats your decision Feb 07 14:45:48 ron_frown, whats yours usually? Feb 07 14:46:07 I build stuff for hardware and os I control Feb 07 14:46:14 so it doesnt really matter Feb 07 14:46:21 my stuff isnt really general consumption Feb 07 14:46:26 ron_frown, whats your advice to me Feb 07 14:46:33 na Feb 07 14:46:43 hm Feb 07 14:46:58 Quest: ffs, http://stackoverflow.com/questions/4568267/android-min-sdk-version-vs-target-sdk-version Feb 07 14:47:00 ron_frown, any way to use min and target as 10 (same) Feb 07 14:47:11 just do it Feb 07 14:47:25 ron_frown, it gives errors i think Feb 07 14:47:32 not trying to be a dick, but I think improving your googlefu would be very handy Feb 07 14:47:40 ron_frown, then this is incorrect rather true ( Setting android:targetSdkVersion higher than android:minSdkVersion does not break the app on your minimum API level. It will still work perfectly fine.) Feb 07 14:47:40 minSDK is the bare minimum, target is the latest and greatest Feb 07 14:48:10 until you use functionality thats in once place and not another Feb 07 14:48:22 belgianguy, ya but i just dont understand if new features of target api will crash in the min api. why the hell use a min api level Feb 07 14:48:45 Quest: because those users will get a big fat warning Feb 07 14:48:52 or probably won't even see it in the app store Feb 07 14:48:59 so their phone won't install it Feb 07 14:49:22 because _it_ _wouldn't_ _work_ Feb 07 14:49:30 google Feb 07 14:49:32 belgianguy, so many recomended me to use min 10 and target 17, so my app will run only on 17 . how foolish Feb 07 14:49:34 google google Feb 07 14:49:43 it'll run on 10 Feb 07 14:49:44 minApi specifies the minimum level your app will function on. targetApi specifies the maximum level that you've TESTED AGAINST. Feb 07 14:49:50 Quest, no, min means compiled against THIS set of ilbs Feb 07 14:49:54 so it will work on 10 Feb 07 14:49:56 targetApi is used to determine what compatiblity routines to add to your code on higher levels Feb 07 14:50:08 minApi and targetApi are completely independent of what your build target is Feb 07 14:50:14 your build target is just what you're LINKING against Feb 07 14:50:20 kaneda^, but the new features of target will not. so crash / no performance as expected Feb 07 14:50:32 wha? Feb 07 14:50:37 Quest: really mate, you're quickly sliding from "not the sharpest knife.." to "being a troll" Feb 07 14:50:43 ya Feb 07 14:50:44 hehe Feb 07 14:50:56 cant just digest it Feb 07 14:51:00 Quacked: you design your app with backwards compatibility in mind. You can use a factory pattern or reflection to determine what code to run. Feb 07 14:51:09 Do a google search for "Android backwards compatibility" Feb 07 14:51:19 that was probably for Quest Feb 07 14:51:19 this way, you can use newer apis when available, and gracefully degrade when not Feb 07 14:51:22 yes Feb 07 14:51:26 Quest: That all was for you Feb 07 14:52:15 lov, why not just set min and target to 10? Feb 07 14:52:49 will run fine on 10 to 17.... Feb 07 14:53:21 all yours lov Feb 07 14:53:59 24 Feb 07 14:54:02 oh, sorry Feb 07 14:54:13 Why is alarmId null in PlayAlarmService here? It has a value in MainActivity. http://pastebin.com/ZcnhitUR Feb 07 14:54:18 Quest: targetSdk specifies the highest level you have tested against. THIS IS IMPORTANT. Feb 07 14:54:25 god today is newbful Feb 07 14:54:31 lov, ok Feb 07 14:54:37 Quest: if you run your app on a device with a higher api level than your targetSdk level, then the device will change its behavior. Feb 07 14:54:38 repeating questions doesnt get them answered faster Feb 07 14:54:42 just rubs people the wrong way Feb 07 14:54:44 This means, for example, that you won't have the holo theme Feb 07 14:54:50 Quacked not sure it would be null, it's an int right ? Feb 07 14:54:56 with GridLayout is it possible to have it automatically wrap children into the next row instead of rendering them out of bounds? Feb 07 14:54:56 your app will look old and crappy Feb 07 14:55:19 lov, so it will be in compatibilty mode and will run fine with changed behaviour? ok Feb 07 14:55:26 .... yes ._. Feb 07 14:55:33 lov, understood. Feb 07 14:55:35 it will look like fucking garbage on newer phones but yes it will run "fine:" Feb 07 14:55:36 for a list view. is it possible to remove the glow effect at either end of the list? Feb 07 14:55:48 if you want to look totally unprofessional, do this. Feb 07 14:56:07 lov, so its recomended to use 10 as min and 17 as target. right? Feb 07 14:56:11 if you want to be a big boy developer and stop using diapers, learn @targetApi and backwards compatibility Feb 07 14:56:14 no Feb 07 14:56:17 it's recommended to use whatever makes sense for your project Feb 07 14:56:34 lov, latest is alwasy good Feb 07 14:56:37 Set your minSdk level to THE LOWEST LEVEL THAT YOUR APP WILL RUN ON Feb 07 14:56:47 Set your targetSdk level to THE HIGHEST LEVEL THAT YOU HAVE TESTED AGAINST Feb 07 14:56:48 max,min,target 17 Feb 07 14:57:02 jesus christ Feb 07 14:57:06 lov, all my debate is because i want to use 17 features but i dont want my app to break for < 17 Feb 07 14:57:11 RIGHT Feb 07 14:57:17 my lowest is 10 Feb 07 14:57:23 WRITE WITH BACKWARDS COMPATIBILITY IN MIND Feb 07 14:57:29 never have I seen so much conversation of the same sentences just arranged differently Feb 07 14:57:32 DO A GOOGLE SEARCH FOR "ANDROID BACKWARDS COMPATIBILITY" Feb 07 14:57:36 DO THIS AND THEN COME BACK Feb 07 14:57:40 * FreeAir came here to absorb info from answers to others questions, and by god, it's working! Thanks :-) Feb 07 14:57:40 DO NOT ASK "BUT HOW DO I DO THIS" Feb 07 14:57:50 DO A GOOGLE SEARCH FOR "TUBGIRL" Feb 07 14:57:56 "[15:57] lov, all my debate is because i want to use 17 features but i dont want my app to break for < 17" Feb 07 14:57:59 I swear I am like 1 more shitty statement from kicking you for not listening Feb 07 14:57:59 ^^^^ IMPOSSIBLE Feb 07 14:58:02 * Leeds pours a cold one for lov Feb 07 14:58:05 * FreeAir hugs lov and LOLs at mikedg Feb 07 14:58:05 I DON'T KNOW WHAT WE'RE YELLING ABOUT Feb 07 14:58:05 SimonVT had a good blog post about it. Quest: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 07 14:58:15 * Chainfire images lov's throbbing forehead veins Feb 07 14:58:20 StingRay_: meh.. the EXTRA was an int, not String :) Feb 07 14:58:33 kakazza, i read that Feb 07 14:58:39 kakazza: thank you Feb 07 14:59:01 lov kakazza it says (which is wrong) Setting android:targetSdkVersion higher than android:minSdkVersion does not break the app on your minimum API level. It will still work perfectly fine. Feb 07 14:59:11 that link was posted in response to his questions half an hour ago already Feb 07 14:59:31 Chainfire, ^ Feb 07 14:59:33 Quest: I want you to listen to me. Feb 07 14:59:33 Quest: iOs doesnt have this problem Feb 07 14:59:35 yeah, trolling seems more likely Feb 07 14:59:36 I want you to listen to me Feb 07 14:59:37 very Feb 07 14:59:37 its much easier to develop for Feb 07 14:59:38 carefully Feb 07 14:59:38 ok? Feb 07 14:59:41 you shold try that Feb 07 14:59:41 are you ready? Feb 07 14:59:43 Are you ready for this? Feb 07 14:59:47 Say yes if you are ready Feb 07 14:59:53 ok Feb 07 14:59:53 lol Feb 07 14:59:55 yes Feb 07 14:59:57 That is your one and only chance to not get kicked Feb 07 14:59:59 so I want you to be sure Feb 07 15:00:02 it's rape if you force him to say yes Feb 07 15:00:05 lots of SimonVT's work are being linked in this channel Feb 07 15:00:07 LOL Feb 07 15:00:17 * StingRay_ is imagining the song "I'm all out of love....." Feb 07 15:00:21 ok. Feb 07 15:00:36 Quest: Do you know what Reflection is? Feb 07 15:00:42 no sir Feb 07 15:00:45 OK. Feb 07 15:00:49 You need to learn what Reflection is. Feb 07 15:00:53 ok Feb 07 15:00:57 You also need to learn what a Factory pattern is. Feb 07 15:01:01 We have a tabview, and now set target tp sdk 10 , now the tabs are all white and look akward..Does anyone know why? Feb 07 15:01:01 Do you know what a factory pattenr is? Feb 07 15:01:03 *pattern Feb 07 15:01:16 nop. this is my first day for android. i know java by the way Feb 07 15:01:25 apparently you do not, since you don't know what reflection is. Feb 07 15:01:26 OK. Feb 07 15:01:33 here's the dirty secret of the dalvikvm Feb 07 15:01:35 +1 Feb 07 15:01:39 iam not a master of all java api lov Feb 07 15:01:41 if you have a class that references a class that doesn't exist on the target Feb 07 15:01:45 and you don't actually load that class Feb 07 15:01:49 then you won't actually crash Feb 07 15:02:02 that means that you can have an interface to handle "unsafe" commands Feb 07 15:02:06 hm Feb 07 15:02:11 and you can use a factory to return an implementation that is correct for your api level Feb 07 15:02:16 ok? Feb 07 15:02:34 so you can use either reflection, or a factory pattern, to ensure that you do not actually make calls to classes/methods that don't exist Feb 07 15:02:39 do you understand me so far? Feb 07 15:02:45 ok Feb 07 15:02:55 ok, good. Feb 07 15:03:04 factory pattern, like hire chinese coders to finish the project Feb 07 15:03:26 u know some chinese coders? Feb 07 15:03:27 So, you should probably read this: http://docs.oracle.com/javase/tutorial/reflect/index.html Feb 07 15:03:28 we need Feb 07 15:03:29 Quest, what lov just said (for the 10th time), is also covered by the blog entry. Read it again, carefully. It even has a section about how you don't have to limit yourself to minSdkVersion API. Feb 07 15:03:49 lov, i was informed that if i used 17 features and run in < 17 . it will crash no matter what i use. Feb 07 15:03:53 lov will make a great mommy one day Feb 07 15:04:01 hm Feb 07 15:04:02 Quest: so you DON'T USE THEM < 17 Feb 07 15:04:07 and that is what I'm trying to explain Feb 07 15:04:26 https://developer.android.com/reference/android/os/Build.VERSION.html#SDK_INT Feb 07 15:04:27 lov, how will i know what features are in 17 and not in < 17 Feb 07 15:04:29 You check that at runtime Feb 07 15:04:35 hm Feb 07 15:04:44 Quest: The SDK docs specify what API level a function or class was introduced in Feb 07 15:04:45 runtime? can you elaborate how Feb 07 15:04:57 there's also a little slider that says "API Level" that you can change to gray out code paths that don't exist on higher levels Feb 07 15:04:59 Quest: Eclipse will usually warn you if you use that Feb 07 15:05:02 hm Feb 07 15:05:12 hm Feb 07 15:05:15 use a decent IDE and it'll throw warnings about that Feb 07 15:05:17 the linter will also warn you about using code that's from a level > your minSdk, unless you use the @TargetAPI annotation Feb 07 15:05:27 There are many things that you can do to ensure that you are safe. Feb 07 15:05:39 I never really got the @TargetAPI annotation. What exactly does it do? Feb 07 15:05:46 the people who came up with that were probably not idiots Feb 07 15:05:51 Anyway, by using reflection, you don't need to know what version level you're in. The fact that you can't load a class/method/etc will tell you that it's not available. Feb 07 15:05:52 lov, i see compile with as only having two choices. 17 and 8 . why? Feb 07 15:06:14 it describes a RANGE Feb 07 15:06:18 If you mean "Project build target" those are the APIs that you actually installed with your sdk. Feb 07 15:06:22 you can install more sdks Feb 07 15:06:36 but generally there's no reason NOT to specify the highest level here, because this just describes what you're building your code against Feb 07 15:06:40 it has no bearing on what happens at runtime Feb 07 15:06:59 hm Feb 07 15:07:07 Quest: http://android-developers.blogspot.com/2010/07/how-to-have-your-cupcake-and-eat-it-too.html Feb 07 15:07:10 Read this. Feb 07 15:07:14 It will hopefully make things a little more clear. Feb 07 15:07:44 lov, i have set min as 10 and target as 17 but i see compile with as only having two choices. 17 and 8 Feb 07 15:08:01 that's what I meant Feb 07 15:08:03 Do you only have SDK 8 and 17 installed? Feb 07 15:08:06 a range Feb 07 15:08:17 it's not only those two versions Feb 07 15:08:25 kakazza, eclipse auto installed it for me. can i have more? Feb 07 15:08:30 Yes Feb 07 15:08:33 but covering everything from minSDK up and until targetSDK Feb 07 15:08:39 quest, a few year ago, you and I would have had a great time in this channel Feb 07 15:08:59 mikedg, are you gay? Feb 07 15:09:12 i used to be the best troll in all of #android-dev Feb 07 15:09:18 ! Feb 07 15:09:20 nevermind Feb 07 15:09:23 lov, thanks Feb 07 15:09:32 Quest, it's your first day of Android development. Since we don't want lov to have a heart attack, I suggest your go through the official Android Training, then read SimonVTs blog entry again, carefully and from beginning to end. If you encounter any problems, you can ask here. But really, most of your questions will get answered if you follow the Training. Feb 07 15:09:58 then you can come back and we can swordfight Feb 07 15:09:59 kakazza, great Feb 07 15:10:12 https://developer.android.com/training/index.html Feb 07 15:10:19 kakazza, oh. the answer to my questions.. hm Feb 07 15:10:21 If you follow the links, you'd have ended up here https://developer.android.com/sdk/installing/adding-packages.html probably Feb 07 15:10:28 great. why i didnt saw that before Feb 07 15:10:28 Which tells you how to download more SDKs Feb 07 15:10:36 I didn't like the Android training tut at first.. all that onResume, onStop and that didn't make sense until I started coding Feb 07 15:11:12 kakazza, lov so i can have more sdks (actually i wanted to have 10 for compile with tag Feb 07 15:11:17 Quacked: I could imagine "hey what if they get a call when my apps open?" Feb 07 15:11:20 can someone goto http://pushit.azurewebsites.net and try to break it? Feb 07 15:11:20 * FreeAir got in trouble yesterday for jamming the network with about 45mins of 1meg/s sdk downloads Feb 07 15:11:56 belgianguy: hehe Feb 07 15:11:56 Quest: Click my link "adding-packages.html" Feb 07 15:12:11 Quacked: And then I could also imagine "hey if they hang up, I'd like to continue where we left off" Feb 07 15:12:12 Once you have ADT installed, the SDK Manager can also be launched from within Eclipse. Feb 07 15:12:29 and that's the story of the lifecycle :) Feb 07 15:12:29 kakazza, ok Feb 07 15:12:39 that's how baby make! Feb 07 15:12:52 belgianguy: for me it was something else, but thats probably common for many :P Feb 07 15:12:54 do they need way to abstain mother Feb 07 15:13:11 kakazza, where are the videos Feb 07 15:13:22 What videos? Feb 07 15:13:37 but it is really explained well in the first paragraph of "Managing the Activity Lifecycle" Feb 07 15:13:44 I guess I didn't read it carefully :p Feb 07 15:13:46 kakazza, you said something about training videos Feb 07 15:13:56 Quacked: yeah, I had some crahses too at first Feb 07 15:14:16 Quest: here are a few videos for you: http://thenewboston.org/list.php?cat=6 Feb 07 15:14:17 and thought that I could read about lifecycle stuff later (eg like catching events) Feb 07 15:14:30 I said something about Android Training, nothing about videos. Did you click the two links I gave you? One which has "training" in the URL aswell as on the website. Feb 07 15:14:31 but it quickly dawned on me that it were core concepts you can't do without Feb 07 15:14:36 Quacked, ah. bucky? Feb 07 15:14:49 belgianguy: yeah Feb 07 15:14:51 kakazza, ok Feb 07 15:14:54 Quest: dafuq? Feb 07 15:15:02 whats dafuq Feb 07 15:15:12 a small island Feb 07 15:15:16 north of Alaska Feb 07 15:15:21 hehehe Feb 07 15:15:24 google it, Quest Feb 07 15:15:24 Quacked, no Feb 07 15:15:36 it's capital is Waht Feb 07 15:15:41 Quacked: I think most problems stem from just skipping over the training or guide articles. Once you actually take the time to read one completely, like the one on Activities or Fragments, most questions are answered. Feb 07 15:15:43 Quest, why are you calling me Bucky? Feb 07 15:15:47 its* Feb 07 15:15:57 Waht, Dafuq Feb 07 15:16:09 Quacked, the newsbostin is bucky as owner Feb 07 15:16:23 g'day Feb 07 15:16:24 Who is Bucky? Feb 07 15:16:32 the owner Feb 07 15:16:34 nevermind Feb 07 15:16:41 Hehe Feb 07 15:16:44 Why is that important? :) Feb 07 15:17:27 I am trying to figure out how to update my widget with a service... I've set up the widget provider, and it starts my service, which calls my server and updates the widget content. So far so good... what I don't understand is - where do I define the interval for the service? Feb 07 15:17:32 lov: You showed great patience. I feel with you Feb 07 15:17:40 Is there a setting that makes the service repeat itself every X amount of time? Feb 07 15:17:50 or am I supposed to create a timertask in the widget provider? Feb 07 15:18:33 Tee_Pee: I _think_ you should look up AlarmManager Feb 07 15:19:02 pragma-: Do you still have your bot here? Feb 07 15:19:42 and that's exactly the pointer I needed Feb 07 15:19:44 thanks quacked Feb 07 15:20:51 * Quest THANKS ALL FOR SUCH A PATIENT SUPPORT Feb 07 15:21:33 yey, I could help someone :p Feb 07 15:26:31 what does this means "your app may look dated: ? Feb 07 15:26:46 it may look old Feb 07 15:26:56 i see Feb 07 15:27:07 it means it may look like someone has taken it out and bought it dinner Feb 07 15:27:16 lol Feb 07 15:27:40 hehe Feb 07 15:28:10 and that someone expects to have sex with your app afterwards? Feb 07 15:29:37 when using a iBind service is there any way to tell that service not to stop for x amount of time when all activities have released it ? Feb 07 15:29:54 besides calling startService etc Feb 07 15:30:58 or is my understanding of bind unbind on resume/start pause/stop wrong ? Feb 07 15:31:13 my service holds quite a bit of data to serve Feb 07 15:32:15 cause in that flow the service is release between starting/switching activities Feb 07 15:32:35 or am I mistaken ? Feb 07 15:37:12 StingRay_ services can be started with startService and bindService Feb 07 15:37:34 the bindService way might auto-release it, the startService way doesn't Feb 07 15:37:39 it's perfectly possible to combine the two Feb 07 15:37:49 so you let an activity both startService and bindService Feb 07 15:37:55 in the service you pick up on the unbinds Feb 07 15:38:02 kakazza: that was my one for the day. Feb 07 15:38:14 and after last unbind (count them), wait X seconds before stopSelf (or whatever) Feb 07 15:38:23 I'm telling this from memory, but I've done it and it works. Feb 07 15:38:42 ahaa Feb 07 15:38:45 Chainfire: thanks Feb 07 15:39:01 counting the binds seems so obvious now Feb 07 15:40:54 can a user upgrade its android version from say 2.3.3 to 4.2 ? Feb 07 15:41:42 Quest: If the manufacturer releases an update for them, yes. Feb 07 15:41:51 but generally, no Feb 07 15:41:57 particularly not from 2.3.3 to 4.2 Feb 07 15:42:03 yeah, usually you're lucky if you get one version upgrade. Feb 07 15:42:15 so a device might go 2.3 to 4.0, and a shitty implementation of 4.0 at that. Feb 07 15:42:27 SII has gone from 2.3 to 4.1 now Feb 07 15:42:38 The user can also unlock their phone and push a custom firmware, however. Feb 07 15:45:17 when using Executor Service and newFixedThreadPool() how many threads should I use? Feb 07 15:45:33 too many Feb 07 15:45:37 lov, custom firmware would work ok? (say 2.3.3 to 4.2) Feb 07 15:45:39 (why are you asking us) Feb 07 15:45:44 Quest: go ask in #android-root or something Feb 07 15:45:51 hello persons! Feb 07 15:46:10 root is for? Feb 07 15:46:39 ill give you a clue.. Feb 07 15:46:42 custom firmwares, rooting devices, questions along that line. Feb 07 15:46:42 Read the topic :) Feb 07 15:46:46 (16:45:13) lov: (why are you asking us) Feb 07 15:46:46 no kick? i was waiting for it :-) Feb 07 15:47:19 Are there any good resources on alpha masks on drawables? I can't seem to find anything. Feb 07 15:47:36 too many <- was tht an answer to my question? Feb 07 15:47:47 yes Feb 07 15:48:02 so I just pass in a rediculously high number? Feb 07 15:48:29 lov, so normally upgrade is not so staight forward nor gives perfect results Feb 07 15:48:53 Quest: the short version is that upgrading your version of android is an extremely difficult process for the manufacturer and is not straightforward. Feb 07 15:48:57 Quest: /join #android-root Feb 07 15:49:08 iam there Feb 07 15:49:10 lov, ok Feb 07 15:49:11 Please go to #android-root if you want to keep talking about / asking about firmwares Feb 07 15:49:19 ok Feb 07 15:49:38 * Quest only likes samsung by the way Feb 07 15:50:26 I really don't give a fuck Feb 07 15:50:38 lov you are being a cock Feb 07 15:50:54 and silly, most users think google play softwares are 100% secure, but to my knowledge theres a filter for malicious apps that usually do not filter all malicious code of apps Feb 07 15:51:53 * FreeAir appreciates the no-bullshit approach that this channel takes Feb 07 15:52:21 i was informed by this channel users by the way Feb 07 15:53:38 Stop making my question move up with void statements. Feb 07 15:54:20 javadocs that don't match code = :( Feb 07 15:54:49 marrrk, so what happens when an app with malicous code is uploaded to google play Feb 07 15:54:51 ? Feb 07 15:55:11 it infects user and makes the author money Feb 07 15:55:52 mikedg, serious? Feb 07 15:55:55 The corresponding bits are sent through a few cables and maybe even through the air at some point. Then they are stored on the server. Feb 07 15:56:05 Maybe multiple servers. Feb 07 15:56:29 then google play is not secure as considered by most Feb 07 15:56:46 Who are most? Feb 07 15:56:54 users Feb 07 15:56:55 my moms Feb 07 15:57:05 ya. most moms Feb 07 15:57:32 Maybe they aren't, now what? Feb 07 15:57:58 either way. google play dont detects all malicous code. Feb 07 15:58:01 correct? Feb 07 15:58:22 yes Feb 07 15:58:24 Multiple "moms"/mums, the mind boggles. Feb 07 15:58:29 Nobody detects all malicious code. Feb 07 15:58:43 You can't even define malicious code. Feb 07 15:58:45 marrrk, ios does i gues Feb 07 15:59:00 Well, you guessed wrong. Feb 07 15:59:13 marrrk, defining is not one of my duties Feb 07 15:59:31 I meant you in the sense of "one". Feb 07 15:59:33 marrrk, ios admins read all code before publishing Feb 07 15:59:47 I don Feb 07 15:59:52 They don't read the code, they just run the app Feb 07 15:59:54 Quest: they are not given the source code, just the compiled file Feb 07 15:59:55 marrrk, assumptions may be kind in the boundries of own mind Feb 07 16:00:12 f2prateek, they is ios or google play? Feb 07 16:00:12 I don't want to talk about this. You are right there is more malware for android than iOS. Feb 07 16:00:31 marrrk, you are free to keep silence then.. Feb 07 16:00:35 And google play detects malicious apps, but obviously not all of them Feb 07 16:00:36 You too! Feb 07 16:00:45 Quest: ios Feb 07 16:00:50 marrrk, i have my own choices Feb 07 16:01:07 simius, hm. thats what i was saying Feb 07 16:01:13 f2prateek, hm Feb 07 16:01:45 they are pretty good in analyzing and analyze more thoroughly than android apps are Feb 07 16:01:50 I guess the reason for more malware on Android is that apps are allowed to do much more than on iOS. Feb 07 16:02:28 "guess" Feb 07 16:03:05 on a Quest to piss people off Feb 07 16:03:19 Quest: in a world lacking absolutes there is nothing but assumption and guesses, I assume your about 12 Feb 07 16:03:36 the only variance is probability/accuracy Feb 07 16:03:37 my troll-o-meter is already hitting 'orange' Feb 07 16:03:38 ;) Feb 07 16:03:46 Just like you guessed. But I'd be thrilled if you read a serious report on the issue and came back here to affirm my guess. Feb 07 16:03:47 StingRay_, 11 Feb 07 16:03:53 over 9000 Feb 07 16:03:56 I am close ;) Feb 07 16:04:06 yes. Feb 07 16:04:14 StingRay_: you're* Feb 07 16:04:32 average ager here would be 25 and i think perpotionaly iam smarter Feb 07 16:04:39 age* Feb 07 16:05:05 Quest: it's a good job that our realities dont extend beyond our own mind and imagination then Feb 07 16:05:21 Quest: "Despite attempts by Google to introduce its own anti-malware technology, malicious applications continue to appear in the official Google Play store. In 2012 the first incident with an ambiguous app collecting the address book data and sending spam was recorded at Apple App Store as well." Feb 07 16:05:25 hahaha Feb 07 16:05:29 perpotinaly Feb 07 16:05:34 sorry Feb 07 16:05:37 perpotionaly Feb 07 16:05:46 don't feed the troll... Feb 07 16:05:55 alright Feb 07 16:05:58 he's acting as if he's as dumb as a bag of bricks all day Feb 07 16:06:00 so then let's get back to my questions Feb 07 16:06:16 how do I find tutorials on writing custom widgets? And I don't mean home screen widgets Feb 07 16:06:18 is there a certificate of intelligence given here? Feb 07 16:06:28 are they called components? Feb 07 16:06:44 marrrk: I assumed there would be tonnes online Feb 07 16:06:47 belgianguy, StingRay_ marrrk if it is. i would not vote it to be handed by you Feb 07 16:07:18 StingRay_: well I'm only finding stuff on home screen widgeets Feb 07 16:07:21 troll-o-meter overheating Feb 07 16:07:25 marrrk: I think thats what most people want to do when they start ...oh and live wallpaper Feb 07 16:07:37 is there an easy way to have an item styled differently for up/down states as well as being first/middle/last items in a ExpandableListView Feb 07 16:07:40 I mean widgets like "EditText" "Button" etc. Feb 07 16:07:53 pduin, quickly /part before it overheats more Feb 07 16:08:19 pduin, dont wait.. Feb 07 16:08:32 right now it seems I have to create about 6 different drawables to cover up/down + first/last/bottom Feb 07 16:08:57 Quest: coincidentally, I was just leaving Feb 07 16:09:04 :) Feb 07 16:09:07 have a nice day Feb 07 16:09:15 always do. Feb 07 16:10:01 ^ hilarious Feb 07 16:10:04 here is an example of what I'm trying to achive http://stackoverflow.com/questions/14441160/support-for-androidstate-first-true-in-jake-whartons-viewpagerindicator Feb 07 16:10:08 StingRay_: You know the ones like Buttons etc. they are called widgets too right? Feb 07 16:10:16 yeah Feb 07 16:10:32 but your wanting the homescreen kind ? Feb 07 16:10:36 marrrk: I'd call them user interface components, they inherit from View Feb 07 16:10:36 or the button kind ? Feb 07 16:10:41 Button Feb 07 16:11:07 tbh not had much use to extend button Feb 07 16:11:16 styles are enough for me in that sit Feb 07 16:11:27 StingRay_: well maybe he wants a total custom control :) Feb 07 16:11:44 Yes partly for educational purposes Feb 07 16:12:05 StingRay_: you remember the draggable part about the iOS toggle button? Feb 07 16:12:11 yeah Feb 07 16:12:17 marrrk: hold it Feb 07 16:12:29 I'm holding it Feb 07 16:12:38 make it like it's on iOS is usually not a good idea on Android Feb 07 16:12:54 belgianguy: agree 80% disagree 20% Feb 07 16:12:58 it'll stick out like a sore thumb, confuse your users and not work like it did on iOS :) Feb 07 16:13:03 But Android copied that button style in 4.0 or something anyway with the "switcher" Feb 07 16:13:06 there are some things that I would expect from android that it dont give me Feb 07 16:13:24 StingRay_: true, some small things might add a nice flavour Feb 07 16:13:39 yeah like smooth switch/toggle Feb 07 16:14:09 that's what I want actually but I don't like how they solved it graphically Feb 07 16:14:13 is/was the same on QNX/BB10/webOs etc Feb 07 16:15:30 and belgianguy I read that thing on "Pure Android" or whatever it's called and I felt the only reason they could give is "make it consistent". I didn't like that they wouldn't say why it's better to place some buttons on the top or the bottom from let's say an ergonomic point of view. The only reason was: We decided it should be that way, so do that. Feb 07 16:15:31 Should these flags added to WindowManager be enough to display Activity on top of lockscreen (a popup dialog): FLAG_KEEP_SCREEN_ON, FLAG_DISMISS_KEYGUARD, FLAG_SHOW_WHEN_LOCKED, FLAG_TURN_SCREEN_ON? It only wakes the screen. Feb 07 16:16:02 Quacked: Why don't you just try it? Feb 07 16:16:07 marrrk: consistency is what your users expect Feb 07 16:16:17 marrrk: check last sentence :) Feb 07 16:16:27 Ah sorry Feb 07 16:17:15 but eg in a game it's perfectly okay to have a total different UI Feb 07 16:17:43 belgianguy: You can always find out what they like more in user studies, I suppose. Anyway, I'm only trying to make a "switch" button with a nicer animation. Feb 07 16:18:21 marrrk: sure, I didn't mean to put you off :) Feb 07 16:19:03 marrrk: I'd say look into extending View, and look at how the current one is drawn Feb 07 16:19:08 and expand on that Feb 07 16:19:13 Yeah, I know I just found that document to be a bit patronising and wanted to antagonise a bit. So I don't know how to go about this. I need alpha masks. Feb 07 16:19:29 mark no Feb 07 16:19:41 hang on will paste you mine Feb 07 16:19:45 not here Feb 07 16:19:47 if I disableKeyguard it will unlock and start the activity directly, but I don't want to unlock at all Feb 07 16:20:07 then dont disable keyguard Feb 07 16:20:10 hehe Feb 07 16:20:16 I'm just saying Feb 07 16:20:35 Guys.. is it possible to GET the HTTP Headers from a DownloadManager? Feb 07 16:20:36 Quacked: are you wanting to put some kind of animation on top of the lock screen or before the lock screen comes up? Feb 07 16:20:57 Wo StingRay_ could you paste that somewhere with syntax highlighting? That would be really superb! Feb 07 16:21:10 google tells me no but i dont trust this. http://stackoverflow.com/questions/13559781/android-downlaodmanager-how-can-i-get-the-response-headers Feb 07 16:21:11 marrrk: my Activity is an AlertDialog that I want displayed on top of lock screen when my alarm sounds. Feb 07 16:21:32 Quacked: Alright, tell me if you succeed Feb 07 16:21:43 hehe Feb 07 16:21:47 it's not possible? Feb 07 16:22:08 Quacked: the alarm app is open source Feb 07 16:22:11 see how that does it Feb 07 16:22:26 so applying android:state_first doesn't do anything in a ListView context? Feb 07 16:22:48 mikedg: thought that one unlocked the phone Feb 07 16:22:53 ill test Feb 07 16:23:28 Quacked: I don't know but that is a feature that our app might want to have at some point. Feb 07 16:23:59 looks like the one I have on my 4.2 CM mod unlocks the phone Feb 07 16:24:05 I think that is the default one for 4.2 Feb 07 16:24:45 On 4.2 you could make a lock screen widget Feb 07 16:25:08 Does somebody of u use android 4.2? Feb 07 16:25:23 its SDK yes Feb 07 16:25:25 marrrk: true that, but I have no need for that for my app :P Feb 07 16:25:34 ok Feb 07 16:25:34 Styler2go: sure Feb 07 16:25:34 my latest and greatest device is sadly only 4.1.2 Feb 07 16:25:46 do you gyus really use those lockscreen widgets? Feb 07 16:26:19 Styler2go: I use the camera widget and an agenda calendar Feb 07 16:26:31 I use them more on the tablet Feb 07 16:26:37 i see no use in them :D if i want more informations i unlock my phone... not that complicated switching in lockscreen :D Feb 07 16:26:43 on the phone they are largly irrelephant Feb 07 16:26:44 previously I used widget locker to display the calendar agenda on the default lock screen Feb 07 16:26:58 belgianguy: I see what you did there Feb 07 16:27:02 hmm Feb 07 16:27:09 ok a calendar seems legit Feb 07 16:27:09 Quacked: ;) Feb 07 16:27:21 <|Blaze|> I'm trying to do some ndk development, and I've got a pretty big APK that I'm pushing to the device. When I use the Android File Transfer tool to copy the APK over, it goes quite fast. When I do an ant debug install it's really slow. Anyone know how I can speed up the ant debug install? I'm assuming it's using adb Feb 07 16:27:48 Styler2go: for the camera I guess it's just as easy defining a shortcut for the unlock slider thingie Feb 07 16:28:50 ok lets get back to topic :D any idea how i can GET a http header in a downloadmanager? :D Feb 07 16:29:31 Styler2go: extend it and override some functions? Feb 07 16:29:57 or do you mean really send a GET to a server? Feb 07 16:30:00 would thi sbe difficult? what time would this take? Feb 07 16:30:09 no i just want to get some http headers Feb 07 16:30:14 from this downloadmanager Feb 07 16:31:21 marrrk: I have set my SMS app to display a popup when SMS is received, but it looks like it unlocks the phone, displays the SMS, and if I press "Read", activity exits and it locks the phone again. So I'm guessing it's not possible to display an Activity on top of lock screen, but you have to unlock, display, then lock again. Feb 07 16:31:47 that's sad Feb 07 16:31:55 hey guys Feb 07 16:31:58 our solution will probably be our custom lock screen Feb 07 16:32:14 What would be the right approach to have a permanent service running (recording audio in preset intervalls)? I suppose i have to use Service w/o help of IntendServices or the like. On a related matter, what is the difference, in terms of outcome, between IntentServices and AsyncTask? Feb 07 16:32:15 I got a question, who would I go about connecting an actvity to a listview selection Feb 07 16:32:21 marrrk: what kinda app is it? Feb 07 16:32:26 *how Feb 07 16:32:50 hard to explain. something that should help you cut down your smartphone usage basically Feb 07 16:33:01 haha Feb 07 16:33:27 marrrk: app detox? :) Feb 07 16:33:55 quite precisely Feb 07 16:34:05 a friend of mine linked it to me yesterday Feb 07 16:34:05 detox for your mind is one buzz slogan Feb 07 16:34:05 * FreeAir doesn't have one and still rocks an ancient nokia, which means the wife's device will be used for testing Feb 07 16:35:50 Quacked: what did he link to you? Feb 07 16:35:55 wheres sdk manager locacted in eclipse? Feb 07 16:37:16 Quest: I think it is separate from eclipse should be in the downloaded sdk folder in "tools" or something like that. Feb 07 16:41:48 Hello Feb 07 16:41:50 I have what may be a simple question Feb 07 16:41:54 I am Japanese Feb 07 16:41:59 I'm new to android development btw Feb 07 16:42:06 I live in Japan Feb 07 16:42:06 how do I hide the title of the app in the layout Feb 07 16:42:10 Is there something like the unix find command on android? Feb 07 16:42:16 there is a little android icon and the name of the app Feb 07 16:42:17 my PC is Mac Feb 07 16:42:31 Eclipse has heap memory error Feb 07 16:42:52 Where is Eclipse.ini file? Feb 07 16:43:14 Rob|boR: Hide the action bar. Protip: You usually shouldn't hide the action bar Feb 07 16:43:15 my Eclipse is Indigo Feb 07 16:43:37 why not? Feb 07 16:44:12 Rob|boR: because its one of the main design elements in android Feb 07 16:44:31 its like you try to make an windows app, but say, no menus and toolbars today Feb 07 16:44:36 It's used for navigation, it's where your menu items are Feb 07 16:44:51 oh okay Feb 07 16:45:03 cause the only hting I see on the action bar was the android icon and the name of the app Feb 07 16:45:10 I didn't see back, settings etc Feb 07 16:45:13 surely it's legit to give the user a "fullscreen" option, though? claim that extra bit of realestate? Feb 07 16:45:23 I figured back would be on the device itself Feb 07 16:45:37 I would understand settings, but hte app I'm building doesn't have settings Feb 07 16:45:56 most of the actions goes to the actionbar Feb 07 16:46:06 so your app does not have "add" or "edit" or "search" or .... Feb 07 16:46:23 or sort or help or ... Feb 07 16:46:31 nope Feb 07 16:46:39 it will just display info Feb 07 16:46:57 even then I wouldn't skip the actionbar, makes an app looks ugly somehow Feb 07 16:47:12 so you tap on a selection, it shows info about it, then you can go back (I'm guessing with the back key on your phone) Feb 07 16:47:24 and click another selection, view info about it Feb 07 16:47:25 etc Feb 07 16:47:27 yeah Feb 07 16:47:42 but okay I'll keep it, I'll have to change the logo and the name/font Feb 07 16:47:56 font size* Feb 07 16:48:29 when we use webview, we are summoning the code of default browser in our app ? ? Feb 07 16:49:51 Hey, does anyone have any clue whatsoever to have a dialog, rotate on the Y axis and then be replaced with other content (think of flipping over a playing card) Feb 07 16:50:39 FreeAir, Rob|boR - I once removed the actionbar in an update to one of my apps where it did nothing but display app title. Users revolted. Within days I had hundreds of emails about it. Lesson: don't remove it even if it's useless Feb 07 16:51:15 Interesting Feb 07 16:51:22 Chainfire: you should write a blog entry about that, with screenshots and numbres, would be perfect to quote in such situations Feb 07 16:51:55 My future, non existent app would be an accessory to an existing niche product so I doubt they'd do that (esp if it's the only app for this), but I might get feedback :-) Feb 07 16:51:56 same lime I use the outlook app vs. hotmail app to show ppl, who want to create pre 3. overall look in their apps Feb 07 16:52:01 I was wondering, when Eclipse says a method is deprecated, why doesn't it give information about what to use instead? Feb 07 16:52:24 Quacked: check the javadocs Feb 07 16:52:38 Quacked: wherefrom should it know :D Feb 07 16:52:41 marrrk: sorry, was away. http://signup.appdetox.net/?r=http://plus.url.google.com/url?sa=z&n=1360254798368&url=http%3A%2F%2Fappdetox.net&usg=EFEiqqbcbcSs8Y1l1qsdIke2wgc. Feb 07 16:53:18 that's something different :) Feb 07 16:53:28 marrk, ah, ok :) Feb 07 16:53:38 aka competition Feb 07 16:53:39 timroes: it already knows it's deprecated :) Feb 07 16:53:44 marrrk: hehe Feb 07 16:53:55 Quacked: yeah because someone put the @Deprecated javadoc tag above it Feb 07 16:54:43 timroes: I think I've done some developing (not on Android) where it says "deprecated method, use X instead" Feb 07 16:54:48 I'm always wondering if that's such a good idea to put up a website without having any product to offer. Feb 07 16:55:00 <[BNC]profligacy> Nah Feb 07 16:55:28 lol, I'm going to keep it thank you Chainfire Feb 07 16:55:48 Quacked: yeah you can add the @deprecated javadoc tag (sorry @Deprecated is ofc annotation not javadoc as i said earlier) to describe what to use now, but as it seem most of the deprecated stuff doesn't use that Feb 07 16:56:05 marrrk: if you're able to get hype maybe... while you perhaps get a bunch of downloads when released, I guess you'll have a lot of disappointed users too. I think that was the case with Swiftkey Flow Feb 07 16:56:11 in my receiver class I am trying to open a new DBHelper with `DbHelper dbHelper = new DbHelper(MyReceiver.this);` but I keep getting an error about how the constructor of DbHelper(MyActivity.this) doesn't exist Feb 07 16:56:44 ah, that's because I've given the constructor (Context context) and not.....something else Feb 07 16:57:08 but elsewhere in Service class I can do such a thing, I can say DbHelper db = new DbHelper(MyServiceClass.this) and it's fine Feb 07 16:57:23 there is no this pointer in a receiver? Feb 07 16:57:29 hi, what does the x,y of a motionevent correspond to in terms of a finger ? Feb 07 16:57:39 the center? Feb 07 16:58:23 timroes: I just realized how silly my question was when I now found the Javadoc tab in Eclipse Feb 07 16:58:40 Ha Feb 07 16:59:12 my webview crashes when playing an rtmp stream Feb 07 16:59:49 due to SIGSEGV, is there some mechanism to flush the video frames from cache ? ? Feb 07 17:00:26 hi guys, does anyone know how i could find out more about developing for NFC apps? Feb 07 17:00:45 any listener or some other thing I am leaving behind ? ? Feb 07 17:00:53 marco_: http://developer.android.com/guide/topics/connectivity/nfc/index.html what information are you missing from that? Feb 07 17:01:49 Sicp: is MyReceiver based on Context? Feb 07 17:02:23 onReceive takes Context and intent, it's there to receive sent SMS messages Feb 07 17:02:32 timroe: there are so many technical keywords that i don't quite understand. I'm not understanding the basics of how it's implemented Feb 07 17:02:48 wheres sdk manager locacted in eclipse? Feb 07 17:03:31 Sicp: then just use the context you get as an argument Feb 07 17:03:42 I am Feb 07 17:03:47 timroes: is it hard to work to write an nfc app if i'm just getting started? Feb 07 17:03:48 but was wondering as to why Feb 07 17:03:49 Quest you know eventually, if you're going to keep repeating the question, it will become un-Google-able. All search results will point to these chat logs. Why not prevent this, and Google it yourself. Feb 07 17:03:49 marco_: so you actually want to read about NFS itself, and not especially android development? Feb 07 17:03:49 marco_: so you actually want to read about NFS itself, and not especially android development? Feb 07 17:04:08 marco_: so you actually want to read about NFS itself, and not especially android development? Feb 07 17:04:19 oh god damn my internet :D i hope that didn't arrive to often :D Feb 07 17:04:24 Whoa whoa whoa, timroes Feb 07 17:04:41 easy on the enter key there Feb 07 17:04:42 how often did it arrive/ :D Feb 07 17:04:44 ;) Feb 07 17:04:50 3 times :p Feb 07 17:04:55 okay good :D Feb 07 17:05:11 somewhat my wlan stick is loosing connection sometimes within the last week Feb 07 17:05:15 strange stuff Feb 07 17:05:19 timroes: both really Feb 07 17:05:25 Chainfire, repeating ocasionaly is for new users who have not seen it. google is not irc that have humans who understand the question Feb 07 17:06:28 marco_: often wikipedia pages give a good introduction on the keywords (so you could continue with athe api guides) don't have any especially good tutorial now in my mind Feb 07 17:06:29 Where are you from, Quest? If you don't mind me asking Feb 07 17:06:33 OK, see, now with the line dbHelper = dbHelper.getWriteableDatabase() I get the exception MissingFormatArgumentException Feb 07 17:06:36 but perhaps google could help you there :) Feb 07 17:06:51 Quacked, india Feb 07 17:06:53 Quest: my SDK is btw here: C:\adt-bundle-windows\sdk Feb 07 17:07:01 Quacked: his IP is Pakistan Feb 07 17:07:02 Chainfire: they fixed my IntelliJ bug :D Feb 07 17:07:17 Quacked, i meant the GUI for sdk manager to add remove more sdks Feb 07 17:07:20 timroes: Ah, okay will do then :) Is it as complicated as it looks to implement ? Feb 07 17:07:22 the xml syntax highlight thingee Feb 07 17:07:35 Quest for somebody who just came here for the first time today, you sure know how it all works here better than everybody who has been here for years Feb 07 17:07:39 I :Ddon't think it looks so complicated Feb 07 17:07:49 it is not done to ask the same (dumb) question twice in 30 minutes Feb 07 17:07:53 and here is your answer: http://lmgtfy.com/?q=where+is+sdk+manager+android&l=1 Feb 07 17:07:57 Chainfire: don't waste your time on him, he's been antagonizing everyone today Feb 07 17:08:01 3rd line of the page Feb 07 17:08:03 I bet he's just trolling Feb 07 17:08:09 I hope you get banned Feb 07 17:08:14 * FreeAir makes a note to leave it at least 31 minutes between resends of dumb questions Feb 07 17:08:28 timroes: ha, I will commence my project then :D thanks Feb 07 17:08:33 lov is in the air Feb 07 17:08:36 Or make a note of not asking dumb questions :p Feb 07 17:08:59 belgianguy I know I was here. lov repeated everything I said. and Quest still didn't understand :P I watched the entire further conversation while playing Dragonborn, lol. Feb 07 17:09:10 * FreeAir makes a note to make the jokes less dry Feb 07 17:09:22 Chainfire: true, you _were_ here, how could I forget that Feb 07 17:09:32 marco_: but in general if you are new to android development, you might want to have a look at the excelent beginner trainings on the dev page Feb 07 17:09:35 must be the whiskey Feb 07 17:09:42 belgianguy, if you think waste of time. either you put me in /ignore or if ops here say , i can /part. but keep your view with you Feb 07 17:09:51 will take you some hours, and afterwards you have better understanding of android dev in general, so perhaps better then directly jumping into nfc Feb 07 17:09:57 Chainfire, Feb 07 17:09:58 my View is always with me Feb 07 17:09:59 ^ Feb 07 17:10:04 timroes> as for putting that sort of thing on a blog, yeah maybe I should. But I have mostly users reading my blog, not devs Feb 07 17:10:09 belgianguy, this channel is not you Feb 07 17:10:16 timroes: yeah will definitely have a look. I know java already which is a plus but i want to hopefully be able to create an nfc app which hopefully will be possible within a few months Feb 07 17:10:28 I transcend mere being Feb 07 17:10:45 I am half computer, half man and half god Feb 07 17:10:48 timroes: yeah, definitely will check out the beginners guide Feb 07 17:10:59 brb. Feb 07 17:11:00 Quest > that is merely your view. If you don't like our view on it, keep your view with you. Feb 07 17:11:07 Chainfire: put it to g+ public :) Feb 07 17:11:23 jsut give me a link to quote :D Feb 07 17:11:40 Chainfire, stopping ilmanered behaviour is one of human rights. Feb 07 17:12:05 * FreeAir is starting to think that those who called troll might have been right :-/ Feb 07 17:12:07 http://pastebin.com/LCGfd8dx any idea for this NoClassDefFoundError? Feb 07 17:12:12 well the gene pool could use some chlorine as well, but you don't hear me complaining Feb 07 17:12:29 views cannot be kept public if they cause insult Chainfire . other views can be shared. whats your education ? Feb 07 17:12:32 brb Feb 07 17:12:43 channel is logged Chainfire ? ? Feb 07 17:13:15 thanks for the link by the way Chainfire Feb 07 17:13:17 brb Feb 07 17:13:26 Quest implying I'm uneducated may be an insult and therefor your view should not have been shared... whats your education ? Feb 07 17:13:55 Chainfire, undue insulting is against freenode policy too. i can give citation enough for an action by opers Feb 07 17:14:12 what is going on in here? Feb 07 17:14:20 this: lol Feb 07 17:14:27 Chainfire, you behaviours tells your education is lower than me. Feb 07 17:14:27 belgianguy, i like the NDK Feb 07 17:14:29 no, this: http://pastebin.com/LCGfd8dx :o Feb 07 17:14:34 brb... Feb 07 17:14:35 Childish bickering Feb 07 17:14:41 Same old ;d Feb 07 17:14:50 belgianguy, once you get the interop stuff solved it's really cool Feb 07 17:15:02 hey everyone... I have an HTC EVO 4G phone and I want to use my local SIM with it. I know the phone's SIM is embedded but I was wondering if there is a way for me to use my local's SIM MSL/SPC code in order to make it work here. any ideas? Feb 07 17:15:10 Quest: your english is so weird. It's not your first language? Feb 07 17:15:17 kaneda^: yeah, I'm struggling a little with the sensors atm Feb 07 17:15:19 quest feel free to get freenode staff to remove me, if you think you're up to it. In the meantime, I'm off for some sports. Laters Feb 07 17:15:27 Quest, Chainfire: I'm too lazy to read through the scrollback to figure out why you two are bickering, so take a one-second timeout Feb 07 17:15:44 Haha Feb 07 17:15:47 I hope you've learned your lessons Feb 07 17:15:55 ok... Feb 07 17:15:55 evanc: you'll want to ban quest and bring back chainfire Feb 07 17:16:05 +1 Feb 07 17:16:05 quest has been irritating everyone for hours Feb 07 17:16:11 FreeAir: nah. Plus, Chainfire is already back Feb 07 17:16:13 evil fascist ops ;) Feb 07 17:16:36 viva la auto join Feb 07 17:16:40 Leeds: I rule with an iron fist Feb 07 17:16:43 myeah Feb 07 17:17:08 thanks for that evanc, there is no end of my love for you Feb 07 17:17:18 <3 Feb 07 17:18:14 emm... can anyone please try to help me out? Feb 07 17:18:31 ArmyMan007: so... this channel is for app development, not phone unlocking or rooting, or whatever you need to do Feb 07 17:19:00 ArmyMan007: try #xda-devs, #android-root, #cyanogenmod Feb 07 17:19:09 Leeds, I thought it could be useful... thanks anyway :) Feb 07 17:19:11 though if you were not too lazy to read back, may you would want to do that +b... lov almost did it earlier ;) anyways, I'm off. I'm also going on holiday in about 36 hours, so if I don't come back and forget to post that quote on my G+, timroes, remind me in a few weeks! Feb 07 17:19:19 hi, I'm trying to get android-x86 to work on virtualbox.... I'm having trouble downloading the android market installer.... I click on the APK file from the web (on googlecode.com) and it just says "in progress". never finishes. even though it's 1.5MB. I even try wget from the terminal (inside android-x86) and "pm" (package manager) says "Killed" when I specify the apk file. any ideas? Feb 07 17:19:31 is there a package I need to call, if I need to use Intent intent? Feb 07 17:19:44 hey noob questions... I wanna attempt (first time using fragments) .. to make 1 activity with 3 fragments.. each of those fragments are a textview question and 2 buttons yes/no.. Feb 07 17:19:45 yeah evanc, at least do it properly, Ctrl + F ain't that hard, even with an iron fist Feb 07 17:19:54 and each button makes you go to the next fragment Feb 07 17:20:12 now my question is since these fragments appear to be similiar.. can I do them like I would an object in java Feb 07 17:20:15 Any help for my NoClassDefFound Problem? Feb 07 17:20:17 can I reuse the same XML for it ? Feb 07 17:20:23 Rob|boR: you need to import it, of course Feb 07 17:22:16 foudn it :D thank you lol Feb 07 17:22:28 hmm, skinning the new LibreOffice 4.0 with a Firefox Persona Feb 07 17:22:35 Chainfire: if he comes back, the guillotine might drop Feb 07 17:22:36 I'm conflicted Feb 07 17:27:27 I wanna attempt (first time using fragments) .. to make 1 activity with 3 fragments.. each of those fragments are a textview question and 2 buttons yes/no.. and each button makes you go to the next fragment. Now my question is since these fragments appear to be similiar.. can I do them like I would an object in java Feb 07 17:27:55 can I reuse the same XML for it ? Feb 07 17:28:02 as if they were generic Feb 07 17:31:20 please help me :( Feb 07 17:31:38 I am getting NoClassDefFound everytime i try to start an Activity :( Feb 07 17:32:18 clean project Feb 07 17:33:10 ... i have completly readded every library and now its working.. oh god... Feb 07 17:33:17 but anyway thank you! :) Feb 07 17:36:17 You know with NFC, can i program an app so that if a user taps on a tag he/she would not have to set it up first using one of those nfc apps which cosutimses the actions? Feb 07 17:36:36 so my app would already know what to do etc Feb 07 17:37:03 marco_: ... what? Feb 07 17:37:27 eh i am not sure if i understand your question, but you can add intent filters to manifest file, so your app starts when your phone detects an nfc tag (of some special kind) Feb 07 17:38:06 timroes: How does Android react if there are multiple apps with an nfc intent filteR? Feb 07 17:38:21 can you also chose a "default" app then? Feb 07 17:38:28 Styler2go: like with everything from which can be multiple, it asks the user Feb 07 17:38:55 but this would make other nfc tags wrote with other apps unusable, or? Feb 07 17:39:02 the user can then choose from all apps that can handle that intent (and can either say start always with that app, or only that time) Feb 07 17:39:18 there are apps which when you tap on a nfc tag it doesn't recognsie it makes you choose what to do e.g start an app of your choice, change settings etc. Feb 07 17:39:26 Styler2go: why? Feb 07 17:39:51 marco_: with "tap on a nfc tag" you mean, placing the phone on a nfc tag? Feb 07 17:39:55 what if i chose to create an app that just changes something in a database Feb 07 17:39:58 timroes: yea Feb 07 17:40:31 marco_: yeah you can do that, that app who makes that will listen on nfc tag discovery and start itself then Feb 07 17:40:50 if you ofc add another app that can handle nfc tags, android will ask you what app to start before you get to that app or another Feb 07 17:41:13 and you can specify in the intentfilter what kind of data you want to listen to (or types of cards) Feb 07 17:41:31 hey guys Feb 07 17:41:45 so I'm working with listview, and when I select an item in the list Feb 07 17:41:47 timroes: so the tags themselves can't tell the phone what to do? Feb 07 17:41:48 the pgoram crashes Feb 07 17:41:49 :/ Feb 07 17:41:50 like specifically Feb 07 17:41:59 e.g. if i place my phone on any nfc tag it starts nfc tag reader that is just a general reader to see informations of that tag. If i place it on my student card, it asks me to choose nfc tag reader or another app that shows me my balance on the card Feb 07 17:42:06 marco_: no they cant Feb 07 17:42:16 consider them to be like barcodes Feb 07 17:42:48 (even though there is other functionallity, and nfc has also a bidirectional communication mode, but even then the tag can't just "tell:" the phone what to do) Feb 07 17:43:14 oh and, is there a way to use StrictMode on API <9 ? Feb 07 17:43:22 i see Feb 07 17:44:46 Styler2go: no? but i guess thats something you wouldn't want to use in production code? I guess (never used it) meant to be used in developmenet code only Feb 07 17:45:12 timroes: so there always has to be a third party app which will decide to open my app i've developed Feb 07 17:45:24 only joking :-) Feb 07 17:45:51 Thanks for the read today, home time. Feb 07 17:45:55 marco_: no. your app has a manifest file which defines it wants to be open if you 'tap an nfc tag' and android will open your app :) Feb 07 17:46:14 marco_: i guess you really should work through the basic trainings, to understand intent system and such on android Feb 07 17:46:22 I need help, if I use the following Intent myIntent = new Intent(view.getContext(), Html_file.class); Feb 07 17:46:26 timroes: yeah, look like it :P Feb 07 17:46:35 the part that says HTML_FILE.CLASS Feb 07 17:46:47 is that the java file that I create? or is that the activity file? Feb 07 17:47:10 timroes: so this manifest file defines it wants to be opened, and are these sepcific to certain tags? Feb 07 17:47:28 marco_: you can define a lot of bunch on what you want to listen Feb 07 17:47:33 all tags, specific card types Feb 07 17:47:34 specific content Feb 07 17:48:06 thats all explained in the api guides, on what you can map Feb 07 17:48:10 so i am now away for dinner :) Feb 07 17:48:11 so one tag could open one app whereas another tag would do something completely differnt Feb 07 17:48:23 anyone? Feb 07 17:48:25 timroes|afk: okay, will have a look. thanks again for your help Feb 07 17:48:32 ^^ Feb 07 17:48:37 Rob|boR: it's a class that you defined Feb 07 17:49:49 hey Feb 07 17:50:08 lov, baby don't hurt me, don't hurt me, no more Feb 07 17:51:09 kaneda^: great now I cant get that tune outta my head Feb 07 17:51:29 StingRay_, TRAP it http://8tracks.com/dang-blanco/trap-dreamz-vol-2-free-dl-link Feb 07 17:51:36 NO!!!! Feb 07 17:51:39 no no no Feb 07 17:51:43 Can you help me? I get a nullpointer exception when I try to set text on a textview Feb 07 17:51:51 I will pastebin the code Feb 07 17:52:10 Ilhami: probably means the reference to the textView is null Feb 07 17:52:34 Ilhami, it's probably null Feb 07 17:52:45 can you have a look ? :) Feb 07 17:53:01 http://pastebin.com/dKdwg7WG Feb 07 17:53:03 well we just told you the problem Feb 07 17:53:30 http://pastebin.com/tAr7Cr3D logcat Feb 07 17:53:34 how do I fix it? Feb 07 17:54:04 it worked Feb 07 17:54:13 Ilhami: well it tells you Feb 07 17:54:17 StingRay_, that idea I told you about, the way to get around and figure out which SMS's are which Feb 07 17:54:17 line 116 Feb 07 17:54:28 it worked, now I delete specific messages every X minutes Feb 07 17:54:35 corAnswer == null Feb 07 17:54:55 StingRay I just need help for this assignment.. After this I will start reading about android in details Feb 07 17:54:58 and also java Feb 07 17:55:14 but this is killing me. I have 3 hours left to finish it Feb 07 17:55:24 well corAnswer is null when you attempt to pass it you chars Feb 07 17:55:32 I will loan some books on the lib Feb 07 17:55:48 your* Feb 07 17:55:49 or actually I have some but I will start reading them. I need to learn more. Feb 07 17:56:05 Its so annoying to ask all the time... Feb 07 17:56:26 and you also get tired of me asking Feb 07 17:56:27 Ilhami: so when you assign it, your v.findViewById(R.id.correctText); <----- is not finding it and returning null Feb 07 17:57:00 hmm.. ok. but R.id.correctText should have text in it Feb 07 17:57:17 you mean it should be a textView Feb 07 17:57:29 in the layout R.layout.fragment2 Feb 07 17:57:46 but according to findView it is not Feb 07 17:57:48 :) Feb 07 17:57:56 yes... it has android:text"Correct answer:" Feb 07 17:58:22 what ? Feb 07 17:58:24 Ilhami: I don't think you understand what he's saying Feb 07 17:58:29 he's not saying "There is no text entered" Feb 07 17:58:36 he is saying "findViewById is not actually finding the view" Feb 07 17:58:37 I now dont understand what I'm saying Feb 07 17:58:45 :( Feb 07 17:58:49 i.e. it is not actually finding the actual object which would have text Feb 07 17:58:51 ah ok. Feb 07 17:58:53 hehe StingRay_ Feb 07 17:59:23 Ilhami: did you call setContentView before trying to find them? Feb 07 17:59:31 did you set the id correctly? Feb 07 17:59:34 belgianguy: he's inflating a view Feb 07 17:59:38 in a fragment Feb 07 17:59:44 ah, sorry, nm that then :) Feb 07 18:00:07 weird it doesnt find it Feb 07 18:00:25 Ilhami: open the file R.layout.fragment2 Feb 07 18:00:43 then look for the textView with the id = R.id.correctText Feb 07 18:00:53 R.id.correctText is in fragment.xml Feb 07 18:00:55 cause thats what findView is doing Feb 07 18:00:57 fragment1.xml* Feb 07 18:01:23 View v = inflater.inflate(R.layout.fragment2, container, false); <--- well thats the layout your using Feb 07 18:01:25 Ilhami: why don't you pastebin your layouts as well, please Feb 07 18:01:34 hhhh Feb 07 18:01:35 thats why Feb 07 18:01:36 :D Feb 07 18:01:38 indeed Feb 07 18:01:39 :) Feb 07 18:01:53 indeed = such a british word Feb 07 18:02:19 can I put a View v = inflater.inflate(R.layout.fragment1, container, false); this line in as well? Feb 07 18:02:32 to be able to use fragment1? Feb 07 18:02:46 View v1* Feb 07 18:02:48 Ilhami: I think you need to understand fragments and views a little more Feb 07 18:02:54 yes Feb 07 18:03:00 I certainly do Feb 07 18:03:06 We have only had android for like 1-2 weeks Feb 07 18:03:09 Ilhami: just a note, give a variable a decent name :) Feb 07 18:03:16 v1 and v aren't saying much Feb 07 18:03:18 from the looks of it fragments are rather a odd approach here Feb 07 18:03:29 this is a school assigment :( Feb 07 18:04:10 but Sting could I put that line in? I need to use that fragment1 Feb 07 18:04:19 no Feb 07 18:04:28 you really need to read up on fragments Feb 07 18:04:36 trust me Feb 07 18:04:52 asking that question is a little odd given what your wanting to do Feb 07 18:05:14 Im screwed. :( Feb 07 18:05:24 only if you refuse to read and learn Feb 07 18:05:31 but if you do that...then yeah Feb 07 18:05:33 you are Feb 07 18:05:34 :) Feb 07 18:05:42 I want to learn but I dont have time to read before I am going to turn it in Feb 07 18:05:53 I will do it after for sure Feb 07 18:05:57 Can I call AsyncTask.onCancelled() in API Level 10? When support library is enabled Feb 07 18:06:02 has anyone ever tried to include a prebuilt app into the system image? I found a few examples on what the Android.mk file should look like Feb 07 18:06:07 but I am just not sure where to put all my files Feb 07 18:06:08 Just noticed that was added in API level 11 Feb 07 18:06:10 the only thing I need to get working is the stats counter Feb 07 18:06:28 Ilhami: you cant ask others to do it for you Feb 07 18:06:46 Right now I just need a guide Feb 07 18:06:54 and tbh you seem to have missed lots and attempted to jump ahead and use methods and thinking that is beyond what your willing to learn Feb 07 18:07:02 you should scale back Feb 07 18:07:09 get a clear perspective Feb 07 18:07:26 yes. but now I cant start from a scratch. Feb 07 18:07:35 you can do anything you want Feb 07 18:07:37 This assignment is not really important. but I need to turn it in Feb 07 18:08:02 Can I make an app within 3 hours? Feb 07 18:08:10 with 3 questions Feb 07 18:08:15 yeah Feb 07 18:08:19 and 3 answers for each with one possible Feb 07 18:08:19 in 40 min Feb 07 18:08:22 with a stat counter Feb 07 18:08:22 or less Feb 07 18:08:26 or your pizza is free Feb 07 18:08:27 if you read learn Feb 07 18:08:28 * P3nnyw1se slaps Ilhami around a bit with a large trout Feb 07 18:08:32 where do you go to school ? Feb 07 18:08:37 Denmark Feb 07 18:08:39 KEA ? Feb 07 18:08:41 yes Feb 07 18:08:42 hh Feb 07 18:08:49 hehe you are fucked then :P Feb 07 18:08:52 4th semester right ? Feb 07 18:08:55 yes Feb 07 18:09:03 what about you? Feb 07 18:09:03 you wont make it within 3 hours Feb 07 18:09:08 I spend all day yesterday Feb 07 18:09:09 on it Feb 07 18:09:13 and I'm not done Feb 07 18:09:22 hh Feb 07 18:09:24 go on facebook .. write Haseeb Feb 07 18:09:26 dammit! now not only can i not get "what is love" song outta my head, I now want pizza Feb 07 18:09:37 he will copy you his entire folder Feb 07 18:09:40 his version is very easy Feb 07 18:09:44 I dont have facebook Feb 07 18:09:44 you can implement it and turn it in Feb 07 18:09:51 ok guys Feb 07 18:09:55 if you're going to discuss cheating Feb 07 18:10:02 can you do it via messaging each other directly or something Feb 07 18:10:25 why? Feb 07 18:10:29 StingRay said I could make it within 40 minutes? Will you be here to help me StingRay? Feb 07 18:10:51 Ilhami: I think you miss understood me Feb 07 18:10:57 you said is it possible Feb 07 18:10:59 mainly because I don't want to hear it but also because it's kind of off topic, not to mention it's a little distasteful Feb 07 18:10:59 I said yes Feb 07 18:11:06 Im gonna make a whole new project.. Feb 07 18:11:11 I didn't know this channel took a 'rule' stand on turning in assignment morals Feb 07 18:11:15 as far as I know.. lov Feb 07 18:11:17 well, it doesn't Feb 07 18:11:21 but this is still kind of off-topic Feb 07 18:11:25 if you had asked is it probable, then no, cause I dont think you have the self determination to learn Feb 07 18:11:28 you were one of the ones last night.. who told me to tell my teacher this assignment was idiotic Feb 07 18:11:29 and that is more important Feb 07 18:11:29 and not to do it Feb 07 18:11:37 No, I'm probably not? Feb 07 18:11:55 well ok maybe I was Feb 07 18:11:58 a part of this assignment is to make a splash screen.. that is forced on view for 10 seconds then proced Feb 07 18:12:02 I tried getting help to do that Feb 07 18:12:03 oh yes! Feb 07 18:12:06 that Feb 07 18:12:09 you told me it was stupid and I should tell me teacher that it was stupid Feb 07 18:12:16 and now you whine about us exchanging this assignment ;) Feb 07 18:12:17 come on Feb 07 18:12:19 :) Feb 07 18:12:24 well, I didn't say to tell him that it was stupid Feb 07 18:12:27 but it is still kind of silly Feb 07 18:12:32 anyhoo Feb 07 18:12:32 i'll say it Feb 07 18:12:34 that's stupid Feb 07 18:12:35 bad design Feb 07 18:12:36 tell him it's stupid Feb 07 18:12:48 I have literally.. mailed him that you guys in here Feb 07 18:12:49 won't help me Feb 07 18:12:50 and TEN SECONDS??? Feb 07 18:12:50 the point is that you guys can/should discuss logistics elsewhere, since it's not really android development per se Feb 07 18:12:52 cause the assigment is stupid Feb 07 18:12:57 hhh Feb 07 18:12:58 hi guys, how do I decide which MAX SDK to put Feb 07 18:12:58 splash screen? Feb 07 18:13:05 I don't want to use unusable APIs Feb 07 18:13:07 <|Blaze|> Anyone have any tips for getting adb to copy to a device faster? Feb 07 18:13:09 mikedg: just put 99999 Feb 07 18:13:20 okay if they teach that stuff, i don't wonder anymore why there are soo much crappy apps out there Feb 07 18:13:34 but what if I accidentally use a feature form api 99999. I dont want a crash Feb 07 18:13:41 that's a good point! Feb 07 18:13:42 sigh Feb 07 18:13:48 * americancow mooo Feb 07 18:14:04 wtfm8 Feb 07 18:14:13 can I reuse .xml ? as if it was a generic object Feb 07 18:14:13 there can be only one Feb 07 18:14:20 there is one and only one situation where a splash screen makes sense Feb 07 18:14:24 where you are LOADING SOMETHING Feb 07 18:14:28 where it acts a progressdialog Feb 07 18:14:34 where you are loading EVERYTHING Feb 07 18:14:36 you dont need branding Feb 07 18:14:36 americancow: What are you doing? Feb 07 18:14:49 * kaneda^ tosses canadiancow highlander's sword Feb 07 18:14:49 kroot: I'm working Feb 07 18:14:50 kroot, ignore him, he's trolling Feb 07 18:15:02 I have 3 fragments.. that all have 1 textview question.. and 2 buttons.. yes/no .. each fragment have a Java Class. and a XML .. the only thing differing here is the strings Feb 07 18:15:09 P3nnyw1se: yes, absolutely Feb 07 18:15:21 i am connor mccow from the clan mccow, there can be only mooooooooooooooooo Feb 07 18:15:27 * Looney remembers his good ol assignment days Feb 07 18:15:48 so ehm :P.. how .. I mean the "@string/example" is in the xml Feb 07 18:15:51 so how would I change that ? Feb 07 18:15:56 oh wait Feb 07 18:15:58 I think I know Feb 07 18:16:10 I just go through the res.string."" Feb 07 18:16:17 ? Feb 07 18:16:31 find the textview and change their text programatically Feb 07 18:16:33 ^^ Feb 07 18:16:36 exactly that Feb 07 18:16:52 ((TextView)findViewById(R.id.whatever)).setText("Something else"); Feb 07 18:17:05 make sure you define whatever Feb 07 18:17:12 also true Feb 07 18:17:19 * Looney remembers the desperation which made him do others assignment for $$ :-( Feb 07 18:17:27 what do you mean!? Feb 07 18:17:39 Looney: make sure your min API level is 10 Feb 07 18:17:41 Xml xml = new XML(); .. thats what I get when you say define Feb 07 18:17:46 er Feb 07 18:18:05 P3nnyw1se: it's important to note that the layout resources are actually compiled into a binary file as part of the compile Feb 07 18:18:05 for ? ? Feb 07 18:18:10 you can't pull the raw xml content back out Feb 07 18:18:18 but, that's ok, because you don't need to Feb 07 18:18:19 mmmmmmhmm Feb 07 18:18:31 by "define" we mean "Make sure you have a resource named 'whatever'" Feb 07 18:18:42 mikedg: you referring to auto flushing cache ? ? Feb 07 18:18:49 e.g. Feb 07 18:18:50 well so instead of Fragment1-2-3 Feb 07 18:18:54 I would just have.. Fragment Feb 07 18:18:55 my program keeps crashing :/ Feb 07 18:18:58 yeah basically. Feb 07 18:18:59 and reuse that Feb 07 18:19:00 everytime Feb 07 18:19:04 need help :/ Feb 07 18:19:06 You can just have one generic layout and change the relevant parts Feb 07 18:19:14 Rob|boR: consider pastebinning anything relevant? Feb 07 18:19:19 ok, will do Feb 07 18:19:24 stacktraces, code, etc Feb 07 18:19:25 stack trace or gtfo, as the topic says Feb 07 18:21:03 starting up my virtual device.. what to do the next hour Feb 07 18:22:01 P3nnyw1se: I doubt your device is running stock rom :-P Feb 07 18:22:40 When I launched an emulator device earlier it took a significant amount of time to come up, 1 core burnt throughout Feb 07 18:22:44 here's my code http://pastebin.com/FFH70eAW Feb 07 18:23:21 the app compiles, when I run it on my phone, if I select the 2-4 option, it does nothing (expected since I didn't specify anything Feb 07 18:23:33 but if I select the first option, it hangs for a bit and crashes after Feb 07 18:24:42 stack trace.... Feb 07 18:24:53 the first option is supposed to take me to the second activity that has another listview Feb 07 18:25:41 can anyone having a Nexus 4 can ping it from a PC (ping -t ) and report if there is packet loss ? Feb 07 18:26:04 stack trace? Feb 07 18:26:48 Rob|boR: what's the output in logcat Feb 07 18:26:54 preferably the part that lists classes and line numbers Feb 07 18:27:00 it's probably a big block of red lines Feb 07 18:27:03 it lists the exception Feb 07 18:27:58 http://pastebin.com/GSgNsKUv Feb 07 18:28:01 that? Feb 07 18:28:13 Yeah, that. Feb 07 18:28:17 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.ips_alpha/com.example.ips_alpha.MMC_Second_Screen}; have you declared this activity in your AndroidManifest.xml? Feb 07 18:28:21 ... have you? Feb 07 18:28:29 how do I dod that, I opened that file Feb 07 18:28:35 ._. Feb 07 18:28:51 https://developer.android.com/training/basics/firstapp/index.html Feb 07 18:28:59 https://developer.android.com/training/basics/firstapp/starting-activity.html Feb 07 18:29:23 go read d.android.com/guide and d.android.com/training Feb 07 18:29:27 like... all of it Feb 07 18:29:33 then you will be better than 75% of android devs Feb 07 18:29:54 I did that today :-) Feb 07 18:29:57 Will Ferrel: All these activities.. so many activities Feb 07 18:29:59 I thought if I was using ecliplse, it would automatically add it Feb 07 18:30:18 it will not. Feb 07 18:30:34 Hi guys, I was kinda green last time I touched Java and about a year separates me and that last touch. I'm guessing this quesiton can easily filed under noob and will be a chip shot for whoever graces me with their time. Feb 07 18:30:40 I'm working on a PhoneGap app which is a hybrid HTML5/CSS/JS app that lives inside of a Java/Android wrapper. From inside the wrapper you can talk to the device's APIs with JS, it's pretty cool. Feb 07 18:30:44 I'm trying to extend this wrapper with this plugin here: http://goo.gl/xn8z4 Feb 07 18:30:47 I'm getting stuck at this point here http://goo.gl/b03fs Feb 07 18:30:51 I'm 80% confident that I have the Java source in the right place. I'm sure this a chip shot for you guys, but I'm having an issue on a pacakge import and am having a skull-thickness issue with how I get that package in there and make Eclipse happy again. Feb 07 18:30:55 Here's where I'm seeing the package import failure: http://goo.gl/U3VlI Feb 07 18:30:59 This is where the code is trying to talk to the object from the package that's failing to load http://goo.gl/LJbLb Feb 07 18:31:46 ok, let me try this again lol Feb 07 18:32:19 fusion271, i think you'll be lucky to get help with phonegap here tbh ^^ Feb 07 18:32:52 (lets hope i'm proven wrong though!) Feb 07 18:33:21 Ya, the guys in the PhoneGap channel have no idea what the heck is up with Java Feb 07 18:33:50 whats up with java? Feb 07 18:34:07 how to launch android sdk avd manager from eclipse? and how to install more sdks from it Feb 07 18:34:14 P3nnyw1se: the number of lawsuits against google, of course! Feb 07 18:34:19 that chnnel is so much bigger than it should be Feb 07 18:34:26 fixed it :) Feb 07 18:34:32 thank you guys Feb 07 18:34:43 reading that starting activity artickle on the android site helped Feb 07 18:34:51 (19:33:50) P3nnyw1se: whats up with java? Feb 07 18:34:52 only the top part of the 'j' Feb 07 18:34:53 instead of creating hte file manually Feb 07 18:35:02 I went through the new wizard :) Feb 07 18:35:31 has anyone ever tried to include a prebuilt app into the system image? I found a few examples on what the Android.mk file should look like but I am just not sure where to put all my files Feb 07 18:35:44 fusion271: my guess is you have a dev environment issue, do make sure you follow the instructions and references at http://developer.android.com/develop/index.html Feb 07 18:35:44 anyone as in ever in history ? Feb 07 18:35:52 fusion271: esp. ADT Feb 07 18:35:54 sleepster: yes Feb 07 18:36:02 tx zinx I'll dig in Feb 07 18:36:11 i forget how, there's some annoying shit if you use native libs Feb 07 18:36:36 fusion271: http://developer.android.com/sdk/index.html is a direct link to what you need Feb 07 18:36:52 fusion271: depending on what you have installed currently, it gives instructions for a new IDE, existing eclipse IDE, etc Feb 07 18:36:53 preci8 it zinx Feb 07 18:37:03 hmm i cant get the selection color to go away =( Feb 07 18:37:08 Lov I will be needing your advice with my 'reuse of XML files' attempt later on.. and be warned if you don't help me.. I promise you it will make no difference to you what so ever Feb 07 18:37:28 Quest, your question is pants, but here you go http://lmgtfy.com/?q=eclipse+avd+sdk+manager Feb 07 18:37:40 Too generous. Feb 07 18:38:24 and you must be British, which would explain why Feb 07 18:38:43 brx_, WOW... you make me learn how to google! Feb 07 18:38:53 and that's what you get :-) Feb 07 18:38:56 brx_, irc should be closed if google is there! Feb 07 18:38:58 fusion271: if you know java somewhat, you should consider learning the Android API (it's very different from the Java one, so you do need to read up on things like application lifecycle), it will be a much better experience for your users to have a native interface Feb 07 18:39:19 fredcooke, dont stereotype brits ;) Feb 07 18:39:28 pants is unique to you lot ;-) Feb 07 18:39:33 * fredcooke lived there for 2 years Feb 07 18:39:38 fusion271: i understand time constraints when developing for multiple platforms, though, so if you need multiple and don't have the manpower for two apps, stuff like phonegap is probably ok Feb 07 18:39:44 yeah, i'm a brit and I aint always generous !!!! Feb 07 18:39:59 StingRay_ you are nice Feb 07 18:40:00 to the rest of us, pants are much bigger than for you, pun intended Feb 07 18:40:17 oh...flip off, in a nice way Feb 07 18:40:28 if its so simple. why dont you state so. i cant find it by google brx_ Feb 07 18:41:54 Quest: eclipse > window > "use eyes" Feb 07 18:42:23 if you didnt figure it, the "use eyes" is an action you need to perform Feb 07 18:42:29 not actually a menu item Feb 07 18:42:32 :) Feb 07 18:43:14 StingRay_, windows> pref>android i see sdks. but thats not sdk manager nor i can add remove sdks Feb 07 18:43:25 errr Feb 07 18:44:10 oh actually menu items could be different, I'm on osx, but window (menu) is where all the stuff is on mine Feb 07 18:44:20 oh no, its the same im sure Feb 07 18:44:24 StingRay_, be more specific please which option Feb 07 18:44:28 grep -rn Quest . |wc Feb 07 18:44:28 248 3711 45209 Feb 07 18:44:54 zinx: we will cut this work over to native Android, for sure, but to bring up the application functionality, we can leverage 3 guys here at this office which is pretty huge Feb 07 18:46:07 fusion271: yeah Feb 07 18:47:15 StingRay_, ? Feb 07 18:47:30 hey guys Feb 07 18:47:31 marrrk: Quest: I think it is separate from eclipse should be in the downloaded sdk folder in "tools" or something like that.
Feb 07 18:47:31 StingRay_ brx_ (19:37:40) Fred: Too generous. Feb 07 18:47:35 whats the easiest way to rename an activity Feb 07 18:47:43 the 2 options you were looking for Feb 07 18:47:47 are there Quest Feb 07 18:48:07 StingRay_, which options/ Feb 07 18:48:29 18:34 Quest: how to launch android sdk avd manager from eclipse? and how to install more sdks from it Feb 07 18:48:41 you have a bad memory my fiend Feb 07 18:48:59 StingRay_, windows> pref>android i see sdks. but thats not sdk manager nor i can add remove sdks Feb 07 18:49:34 StingRay_, if you are pointing at something else. why dont you be more specific? Feb 07 18:50:00 18:41 StingRay_: Quest: eclipse > window > "use eyes" Feb 07 18:50:14 nvm I figured it out :D Feb 07 18:50:18 anyone else? Feb 07 18:50:20 lets play an association game Feb 07 18:50:26 StingRay_: 18:34 Quest: how to launch android sdk avd manager from eclipse? and how to install more sdks from it Feb 07 18:50:33 18:50 StingRay_: 18:41 StingRay_: Quest: eclipse > window > "use eyes" Feb 07 18:50:53 anyone else? Feb 07 18:51:03 Quest: your funny Feb 07 18:51:10 StingRay_, dont humour him - he was here earlier winding people up about arbitrary comparisons with ios Feb 07 18:51:53 brx_: well I was actually attempting to help by making him initiate his own common sense Feb 07 18:52:00 so my intentions were genuine Feb 07 18:52:02 "Chainfire, you behaviours tells your education is lower than me." < my favourite Feb 07 18:52:57 mikedg, actually, I just need to copy over my apk file Feb 07 18:53:27 mikedg, I built my package using the SDK and instead of trying to integrate it into the AOSP build system, I decided to just to have it copy it over Feb 07 18:53:48 StingRay_, brx_ correct answer is its not doable by eclipse. we have to go to sdk dir. tools/ directory in the Android SDK, then execute android sdk. StingRay_ brx_ dont lame around with wasting peoples time 2. keep personal comments with you Feb 07 18:54:06 3 hours later the answer from marrrk sinks in Feb 07 18:54:17 Quest ok boss Feb 07 18:54:47 Guuuys.. i love you all.. but i have again a problem :-( i want to create an actionBar.. but... i cant find what i have to do to get it.... i have "onCreateOptionsMenu" and ActionBar actionBar = getSupportActionBar(); actionBar.show(); but i am getting NullPointerException at .show(); Feb 07 18:54:51 brx_: see you learn something every day! Feb 07 18:54:56 :D Feb 07 18:54:57 "Quest is now known as \part" + "\part is now known as Quest" another gem :-) Feb 07 18:55:16 * Quest is being famous then Feb 07 18:55:28 fredcooke, you have a brits sense of humour tbh, we rubbed off on you ^^ Feb 07 18:55:36 I started from scratch StingRay Feb 07 18:55:49 No, people who left your island for a better life some years before my time are responsible for it ;-) Feb 07 18:56:48 fredcooke, are you free usually for nonesence? Feb 07 18:58:01 StingRay are you there? Feb 07 18:58:14 yes Feb 07 18:58:16 ish Feb 07 18:58:24 I'm fighting with my lack of design Feb 07 18:58:43 and even worse implementation of a data service tasky tracky thing Feb 07 18:58:48 how you doing ? Feb 07 18:58:50 :) Feb 07 18:59:30 Can someone help me with ActionBar? i am getting a NullPointerException Feb 07 19:00:14 try{ your broken code } catch (NullPointerException ex) {} Feb 07 19:00:18 fixed Feb 07 19:00:32 * StingRay_ away, going for a smoke Feb 07 19:00:32 ... Feb 07 19:00:39 hey all...I'm trying to make libc++ work on top of gabi++ for NDK (https://code.google.com/p/android/issues/detail?id=36496) but am having problems finding information on what gabi++ is supposed to be. Anyone around that can answer some questions or point me to some docs? Feb 07 19:00:44 yeah., reall yfunny Feb 07 19:01:28 it fixes it though Feb 07 19:01:56 yeah but the actionbar would not show up :P Feb 07 19:02:12 Styler2go: whatever is null Feb 07 19:02:14 fix it Feb 07 19:02:27 Im making the layout.. can I make 3 fragments with 3 different questions? even tho its not a good solution? Feb 07 19:03:18 StingRay_: how? Feb 07 19:03:38 ActionBar actionBar = getSupportActionBar(); actionBar.show(); .show() -> nullpointerxcpetion Feb 07 19:03:40 (20:01:28) mikedg: it fixes it though Feb 07 19:03:40 Better this: try{ your broken code } catch (Throwable t) {} Feb 07 19:04:07 Styler2go, where are you calling actionBar.show() ? Feb 07 19:04:27 onCreate Feb 07 19:04:46 right after oberridePendingTransition and setContentView Feb 07 19:05:33 StingRay? Feb 07 19:06:16 Styler2go: are you using supportLib ? Feb 07 19:06:22 hey anybody on mobile with applewebkit here who can test a simple site for me? Feb 07 19:06:26 oh you'll be using abs right ? Feb 07 19:06:28 just to see if it crashes or not Feb 07 19:06:32 i am using ActionBarSherlock Feb 07 19:06:40 yeah, no idea Feb 07 19:06:43 never used Feb 07 19:07:07 please pretty please? Feb 07 19:07:09 with cherry on top Feb 07 19:07:20 applewebkit ? Feb 07 19:07:22 it is like the normal ActionBar. what would u do if it woudl be the normal one? Feb 07 19:07:27 dipped in booze and with a joint for later? Feb 07 19:07:38 Styler2go: well I refuse to use that too, shhhh Feb 07 19:07:45 StingRay_: aint that the name? Feb 07 19:08:07 thisboy: I dont know what it is, hence why I asked Feb 07 19:08:08 what do you mean? Feb 07 19:08:15 you are refusing to use actionbar? Feb 07 19:08:24 Styler2go: yes Feb 07 19:08:35 StingRay_: well its the useragent string for my browser here on android Feb 07 19:08:46 hi someone here that could explain me how to sign a update.zip did try Auto-sign,Sign+ 1.2.2 and signer Script 2.0 on everyone verficiation error on install !? Feb 07 19:09:11 thisboy: "apple" <---- really ? Feb 07 19:09:21 hmmm yeah Feb 07 19:09:38 seems like it Feb 07 19:10:56 guys in a fragment class (that of course) extends fragment I've implemented an onClickListener Feb 07 19:11:28 but when I do .. Button b1 = (Button) findViewById(R.id.button1)); Feb 07 19:11:32 it goes 'method is undefined' Feb 07 19:11:38 what am I doing wrong Feb 07 19:11:51 Fragment doesn't have a findViewById method Feb 07 19:11:52 P3nnyw1se: the 2 things you said have nothing to do with each other Feb 07 19:12:07 alright so I see how that might possibly be the issue Feb 07 19:12:11 View does, so you can call it on that during onCreateView Feb 07 19:12:31 Or onViewCreated if you wish Feb 07 19:12:50 Styler2go, just as a guess have you imported support libs twice? (abs comes with its own tweaked version apparently) Feb 07 19:12:51 Remember to clear your references in onDestroyView Feb 07 19:13:33 quick question, I've got a translucent actionbar in overlay mode, but I still want my Activities content to be spaced down below it. Is there a way to set a top margin via a theme or something? Feb 07 19:13:40 trying to do it in a sort of universal way Feb 07 19:14:06 how do I get a button in the middle horizontally and vertically? Feb 07 19:14:32 with linear layout Feb 07 19:14:50 brx_: i have done every necessary import i think Feb 07 19:15:07 linearLayout will give you gravity in one direction that it controls Feb 07 19:15:11 So this instead? : Button b1 = (Button) view.findViewById(R.id.button1)); Feb 07 19:15:26 I had this issue recently with the abs NPE, cant remember how i fixed it :s Feb 07 19:18:43 So I should use relative layout ? Feb 07 19:19:10 Ilhami: if that suits your purpose Feb 07 19:19:19 with it's "center in parent" Feb 07 19:20:14 Im trying to make it very simple this time StingRay Feb 07 19:20:19 good Feb 07 19:20:23 BUT Feb 07 19:20:44 have you done a feature list, or any kind of list that says what it is you want ? Feb 07 19:20:50 irrelevant to how Feb 07 19:20:53 can you tell me if this looks completely idiotic.. and be nice I'm new. Feb 07 19:20:54 pastebin.com/CsvfrGhy Feb 07 19:21:05 yes Feb 07 19:21:12 I have it in my head :) Feb 07 19:21:13 hh Feb 07 19:21:38 have you derived (none programming relevant) functionality from that list Feb 07 19:22:12 cause thats where you would get a list of goals/implementation task to derive what it is you need to learn and concentrate on Feb 07 19:22:12 LOOK at my pastebin or suffer no consequences! Feb 07 19:22:28 I made the main layout now...I have made the splash which is one of the requirements Feb 07 19:22:42 now I need to make 3 questions in 3 fragments Feb 07 19:22:52 Ilhami: do you ? Feb 07 19:22:58 what do you base that from ? Feb 07 19:23:13 I just need to keep it simple Feb 07 19:23:16 and can you answer me what is a fragment and why would you use it ? Feb 07 19:23:59 isnt it like a container? Feb 07 19:24:17 Ilhami: no thats a viewGroup Feb 07 19:24:23 its a tiny activity Feb 07 19:24:26 inside an activity Feb 07 19:24:27 mini activity Feb 07 19:24:34 hi, who can help me with RelativeLayout? Feb 07 19:24:59 I have a background image and i need to put some textviews on some placeholders in the background image Feb 07 19:25:02 It is a form of activity Feb 07 19:25:03 right? Feb 07 19:25:13 everything looks nice in the emulator, but not on my phone Feb 07 19:25:18 any tips? Feb 07 19:25:22 Ilhami: so if thats what you think it is Feb 07 19:25:23 what do you mean not looking nice ? Feb 07 19:25:30 why use that for a question/answer ? Feb 07 19:26:00 I could make 3 small activities which showed a question.. What would you do if it was just very very simple and basic Feb 07 19:26:11 hello, i have screenshot in /frameworks/base/cmds; when the lockscreen is instantiated, i call that screenshot app, but unfortunately, it seems i don't have permissions for that. why doesn't framework internal policy have r/w to usb storage permission? Feb 07 19:26:15 ? Feb 07 19:26:23 I would use 1 activity and just change the question/answers everytime Feb 07 19:26:31 but I'm lazy Feb 07 19:26:36 StingRay he has an assigment Feb 07 19:26:39 that says he needs to use 3 fragments Feb 07 19:26:41 Because of how I have the layout setup, I'm using a FragmentPagerAdapter for a ViewPager in a Fragment. I'm doing this to implement 2 separate pages of a detailed view based on an item chosen from a ListAdapter. I can't use a spinner or tab in the ActionBar because I already have one for other uses. How can I tell my Fragments in my ViewPager that they need to reload data when I touch a Feb 07 19:26:41 new item in the ListFragment? Feb 07 19:26:52 P3nnyw1se: you being serious ? Feb 07 19:26:57 yes Feb 07 19:27:11 he has to use 3 fragments.. each containing 1 question with several possible answers Feb 07 19:27:16 it actually says 3 activities Feb 07 19:27:22 :D Feb 07 19:27:24 nope it says 3 activities with 3 fragments in Feb 07 19:27:28 hmmm Feb 07 19:27:32 the 3 activities.. are splash screen.. game... scoreboard Feb 07 19:27:43 the game activity Feb 07 19:27:46 needs to hold 3 fragments Feb 07 19:28:01 StingRay its an exercise in using fragments Feb 07 19:28:06 so I should make new classes? Feb 07 19:28:11 3 new classes Feb 07 19:28:17 extending Fragment Feb 07 19:28:21 well I attempted to make my fragments innerClasses Feb 07 19:28:28 while your playing with classes find a new school too Feb 07 19:28:30 but I needed to also implement and since you can't both extend and implement on inner class Feb 07 19:28:41 StingRay :) Feb 07 19:28:47 7 days into android programming Feb 07 19:28:48 StingRay I wish I didnt start on this school Feb 07 19:28:56 its not a good school Feb 07 19:29:00 teachers are not good Feb 07 19:29:02 generally Feb 07 19:29:25 we've had so many problems on that school with teachers being sick and so Feb 07 19:29:39 StingRay can I ask you to look at this Feb 07 19:29:40 pastebin.com/CsvfrGhy Feb 07 19:29:49 and tell me if anything poops in your eyes Feb 07 19:30:03 P3nnyw1se: thats ok Feb 07 19:30:10 P3nnyw1se: question though Feb 07 19:30:29 how does one read the private boolean answer ? where from ? Feb 07 19:30:37 so I should make 3 new classes right StingRay? with 3 different questions? Feb 07 19:30:52 they dont yet.. I'm gonna send it with a method back to the Activity Feb 07 19:30:56 was the plan atm. Feb 07 19:31:02 ok cool Feb 07 19:31:07 I'd make one QuestionFragment class and use it three times with different questions... Feb 07 19:31:21 sonOfRa.. thats.. what I wanna obtain Feb 07 19:31:26 and I wanna do it with just 1 XML aswell Feb 07 19:31:28 but not now.. Feb 07 19:31:33 need to have it working first.. then I can play Feb 07 19:31:54 ok sonOfRa I did that Feb 07 19:32:07 so should I use fragmentmanager? Feb 07 19:32:15 does anyone know if a ContextThemeWrapper can be overridden by the manufacturer's theme? Feb 07 19:32:21 some rom maker here ? Feb 07 19:32:29 like the drink ? Feb 07 19:32:32 I don't know to be honest, don't really have time right now either, just happened to read Feb 07 19:32:46 elec29a: #android-root Feb 07 19:32:49 like if I make my own custom theme for AlertDialog using ContextThemeWrapper, will a manufacturer's theme override that? Feb 07 19:33:02 thx timroes Feb 07 19:33:46 P3nnyw1se: might be missing a break statement Feb 07 19:33:55 I take no breaks!!! Feb 07 19:33:57 but I see your point Feb 07 19:33:58 someone with the same name has a similar nick as me.. without vowels Feb 07 19:34:00 ^^ Feb 07 19:34:30 how to place a textview so it matches the background image of the layout its on? Feb 07 19:35:14 Im using intent to switch to another activity right? Feb 07 19:35:21 yes Feb 07 19:35:34 StingRay have you been back to basics enough or can you handle some pain Feb 07 19:37:04 ah StingRay_ is gonna have a funny evening :) Feb 07 19:37:14 see you tomorrow guys :D Feb 07 19:37:23 you off to bed ? Feb 07 19:37:38 no just off :D Feb 07 19:37:50 thats the state when you switch from computer to real life :D Feb 07 19:37:55 so,.,. youre not going to bed Feb 07 19:37:58 but youre turning off your computer!? Feb 07 19:38:10 you can bet your ass on that :) Feb 07 19:38:13 jesus.. this guy Feb 07 19:38:15 am I right ? Feb 07 19:38:28 what? Feb 07 19:38:49 nevermind I'm just joking around .. but I don't think this is my crowd Feb 07 19:39:05 StingRay... if I want to make two fragments. Should I make 2 fragment in xml ? Feb 07 19:40:09 and I can make two layouts.. one for fragment 1 and one for fragment Feb 07 19:40:09 2 Feb 07 19:40:12 P3nnyw1se: i still class myself a noob in this area, ask me about console game/vfx 3d art/engine/shaders/rigs/modeling Feb 07 19:40:24 that would be different Feb 07 19:40:32 this is basic enough for you to handle I'm sure Feb 07 19:40:42 I would assume so Feb 07 19:40:50 I'm not quite sure how to genericly handling multiple fragments returning answers and jumping to the next fragment Feb 07 19:40:59 I was thinking like making a method called 'switchFragment(); Feb 07 19:41:00 but then assumption is the biggest downfall of almost everything Feb 07 19:41:12 and it checks where it comes from.. and then lets say its fragment1.. it proceeds to fragment2 Feb 07 19:41:17 does that make sense to you ? Feb 07 19:41:31 I dont wanna make a method for each fragment Feb 07 19:41:36 I wanna use the same.. thats my point Feb 07 19:41:38 P3nnyw1se: well your options are to get the fragment manager and do a replace on the fragment Feb 07 19:41:46 yes Feb 07 19:42:22 so I put that into a method .. and then I ask all pseudo like 'well what wants to change to the next fragment? oh its no.4 so we change to 5' Feb 07 19:42:25 and do a replace. Feb 07 19:42:28 makes sense ? Feb 07 19:42:56 it does Feb 07 19:43:10 is it also not a noobish and idiotic way of doing it ? Feb 07 19:43:37 well using fragments (something that has it's own lifecycle) is a bit odd for something so simple Feb 07 19:43:43 so not sure how I would answer that Feb 07 19:43:46 :) Feb 07 19:43:51 yeah I know.. but as you probably figured out Feb 07 19:44:02 this is an exercise in intent/activity/fragment Feb 07 19:44:05 and the switching around Feb 07 19:44:06 between them Feb 07 19:46:23 Does anyone has experience tracking google analytics subpages of pages? Feb 07 19:46:35 For example I have activity A, with a list of items of type B Feb 07 19:47:01 Every item of B has it's own title, so I would like to gather B.title1 and B.title2 under A Feb 07 19:47:48 any clues about this Downloading Android SDK Platform-tools, revision 16.0.1 - Installing Android SDK Platform-tools, revision 16.0.1 - Stopping ADB server failed (code -1). - Installed Android SDK Platform-tools, revision 16.0.1 Feb 07 19:50:40 Quest: clues ? both the question and the answers along with any clues are in what you just pasted Feb 07 19:50:45 Seems like you just installed Android SDK Platform-tools, revision 16.0.1 Feb 07 19:51:20 whats Stopping ADB server failed (code -1). for Feb 07 19:51:29 adb is part of platform-tools Feb 07 19:51:35 It has to stop it before it can update it Feb 07 19:51:42 hm Feb 07 19:52:21 SimonVT, thats a straight and specific answer. thanks. StingRay_ learn from it. how to answer straight and not making puzzles Feb 07 19:52:59 retarded question here Feb 07 19:53:13 how do I send the ClassName along in a method.. of the class I'm currently in ? Feb 07 19:53:14 Quest: learn to ask better questions Feb 07 19:53:15 just ,class ? Feb 07 19:53:17 SimonVT, i wonder why the downloading is super slow Feb 07 19:53:23 the pig has left the pe! Feb 07 19:53:25 pen Feb 07 19:53:29 Stop picking fights, all of you Feb 07 19:53:36 Especially you, mikedg Feb 07 19:53:40 I'm on to you Feb 07 19:53:45 StingRay_, well SimonVT didnt said that. if its stupid for you, i suggest you practice for some IQ test Feb 07 19:54:01 fuck u SimonVT Feb 07 19:54:20 with a nexus 10 Feb 07 19:54:34 woow .. its getting tense in here.. Feb 07 19:54:43 I need to lightend the mood with a joke Feb 07 19:54:48 lets see hmm... Feb 07 19:55:00 Quest: you should learn humility, it will serve you well when your in need, like most of the time in this channel Feb 07 19:55:02 a sql query walks into a bar Feb 07 19:55:06 sees two tables Feb 07 19:55:12 Do I get to keep the nexus 10? Feb 07 19:55:12 and asks "canI join you" Feb 07 19:55:18 StingRay Feb 07 19:55:36 what in my texts have made me appear as someone who doesn't have humility ? Feb 07 19:56:02 P3nnyw1se: grateful/respect Feb 07 19:56:06 StingRay_, are you usually free for nonesence? Feb 07 19:56:09 everyone is a bit cranky in here today Feb 07 19:56:13 mikedg, i see no reason why this union should not be sanctified Feb 07 19:56:19 kaneda^: +1 Feb 07 19:56:22 as apposed to what Quest just said Feb 07 19:56:23 oh lol Feb 07 19:56:25 :) Feb 07 19:56:29 you're actually talking to someone called 'Quest' Feb 07 19:56:31 and not giving me tasks Feb 07 19:56:34 i'm not cranky, just bored Feb 07 19:56:37 i think it's the syphallus outbreak Feb 07 19:56:39 haha Feb 07 19:56:45 that has infected #dev Feb 07 19:57:01 canadiancow told me it burns when he's milked Feb 07 19:57:16 what Feb 07 19:57:24 cow syphallus Feb 07 19:57:38 i said no such thing Feb 07 19:57:44 P3nnyw1se, oh he forgot your permission to talk Feb 07 19:57:44 lies, all lies! Feb 07 19:58:57 :-) Feb 07 19:59:03 * fredcooke feels right at home Feb 07 19:59:04 so yah, the NDK paves away all the ungainly pimples of java Feb 07 19:59:28 if only android had a great layout creator Feb 07 19:59:38 then we'd be all set Feb 07 19:59:44 Quest I don't get permitted to talk Feb 07 19:59:45 I just talk Feb 07 19:59:49 ask my girlfriend Feb 07 19:59:54 P3nnyw1se, better to beg forgiveness than ask permission right? Feb 07 20:00:09 P3nnyw1se, i said "your permision" Feb 07 20:00:11 well.. theoretically.. lest just say something you don't beg forgiveness for Feb 07 20:00:25 English is a second language to me Quest.. I'm sorry I didn't get that Feb 07 20:00:31 you joke about my spelling now too ? Feb 07 20:00:32 jesus Feb 07 20:01:00 P3nnyw1se, no problme Feb 07 20:01:04 problem* Feb 07 20:01:08 I can almost hear you trying to figure me out Feb 07 20:01:11 through my monitor Feb 07 20:01:31 Do you have multiple second languages P3nnyw1se ? Feb 07 20:01:50 yes I do actually Feb 07 20:02:12 I suppose Norwegian and Swedish would be amongst those Feb 07 20:02:19 and Greelandish all though they don't have a written language up there Feb 07 20:02:28 and then I understand most German.. and I know a lot of curse words.. in it Feb 07 20:02:33 like fortze Feb 07 20:02:44 or is it fotze just Feb 07 20:02:57 Fotze! Feb 07 20:03:02 so I was just wondering Feb 07 20:03:10 ? Feb 07 20:03:24 why are they all second languages and why isn't there any third or fourth language? Feb 07 20:03:28 yeah the german guy who taught me that ... regretted that decission Feb 07 20:03:29 what about germany and fotze? xD Feb 07 20:03:51 marrrk second languages are languages thats not your mother's tongue as they say Feb 07 20:04:22 thats just how they are defined I suppose Feb 07 20:04:28 I guess Feb 07 20:04:32 P3nnyw1se, i barely speak english, you can ask anyone in here Feb 07 20:04:33 but it's not nice Feb 07 20:04:41 kaneda Feb 07 20:04:47 I trust you when you say you don't speak well English Feb 07 20:04:58 ;D Feb 07 20:05:06 P3nnyw1se Where are you from? Feb 07 20:05:09 Denmark Feb 07 20:05:10 *speak English well Feb 07 20:05:16 I knew that haha Feb 07 20:05:18 no Feb 07 20:05:27 if I wanted to make a custom alert dialog such that I could ensure that it's theme would not be overridden by a manufacturers theme, would I extend DialogFragment? Feb 07 20:05:30 hoped nobody would notice :P Feb 07 20:05:30 I trust you when you say you don't speak - well - English Feb 07 20:05:31 or just make my own layout? Feb 07 20:05:51 Quest: your english is so weird. It's not your first language either? Feb 07 20:06:18 P3nnyw1se: You speak (or at least write) English better than just about everyone in Spain, I can assure you of that! :-) Feb 07 20:06:30 fredcooke you from Spain ? Feb 07 20:06:47 Quacked, affirmative Feb 07 20:06:49 No, hell no, I'm not. Just stuck here, for the time being. Feb 07 20:06:58 alright so I can joke about Spain ? Feb 07 20:07:01 YES Feb 07 20:07:01 hi mrc_ Feb 07 20:07:10 espanish people espeak estupid english :P Feb 07 20:07:10 okay.. with latency.. 'I'm probably also richer than all of them' Feb 07 20:07:10 So how's your Spanish fredcooke? Feb 07 20:07:17 LOL Feb 07 20:07:42 una cervesa grande Feb 07 20:07:43 Does anyone has experience tracking google analytics subpages of pages? Feb 07 20:07:45 For example I have activity A, with a list of items of type B Feb 07 20:07:46 all you will ever need to say in Spanish Feb 07 20:07:46 Every item of B has it's own title, so I would like to gather B.title1 and B.title2 under A Feb 07 20:08:10 sorry Silox.. I can barely open google without breaking my computer Feb 07 20:08:12 Mi Castellano es muy pobre :-p Pero apredar todos dias :-) Feb 07 20:08:36 missed out an n somewhere in there :-p Feb 07 20:08:43 hi marco_ Feb 07 20:08:47 Is English your first language? Feb 07 20:08:56 I work at a union headquarters.. with 100k members.. we are 130 people there and 6 in the IT department Feb 07 20:09:06 Might be hard to having to conjugate verbs other than add an s at the third person if that's the case. Feb 07 20:09:06 yesterday we officially branded Google Chrome.. a virus Feb 07 20:09:43 Quest: so what is then? Feb 07 20:09:57 If you're talking to me, yes, my conjugation sucks. My consummation is much better :-) Feb 07 20:09:58 pk Feb 07 20:10:00 where the hell is that Feb 07 20:10:25 Quest Feb 07 20:10:27 you from pakistan ? Feb 07 20:10:40 He said India earlier Feb 07 20:10:45 he claims india, but his ip and domain disagree Feb 07 20:10:48 pakistan, india, same difference ;) Feb 07 20:10:58 yes they feel the same about that kaneda Feb 07 20:10:58 :D Feb 07 20:11:04 Quacked, urdu Feb 07 20:11:04 * kaneda^ waits for the indians and pakistanis to start flaming Feb 07 20:11:13 urdu is an ethnicity, not a location Feb 07 20:11:26 lol Feb 07 20:11:32 * Quest quest is at proxy Feb 07 20:11:43 kaneda^: I asked what his first language was Feb 07 20:11:45 * Quest is at proxy Feb 07 20:11:45 you connect to mirC Feb 07 20:11:49 thought a pakistanian proxy ? Feb 07 20:11:52 seems... weird Feb 07 20:11:58 * marrrk is at stake Feb 07 20:12:13 as a matter of coinsidence (may be its close for good pint) Feb 07 20:12:26 pint as in .. beer ? Feb 07 20:12:27 ping* Feb 07 20:12:30 :( Feb 07 20:12:31 haha Feb 07 20:12:52 Are you saying Pakistan is closed for good lager? Feb 07 20:12:55 good pint.. wmaaahhh... Feb 07 20:12:56 you know software auto ping and setup best time proxies Feb 07 20:12:59 lol Feb 07 20:13:06 lager? Feb 07 20:13:09 this is getting a bit funny Feb 07 20:13:25 I made a drink once.. its called 'comfortable screwdriver up against the rubberwall under Irakian sunrise' Feb 07 20:13:29 its basicly just rum and coke Feb 07 20:14:00 and that relates.. cause . mmmm Feb 07 20:14:05 pint and my drink both contain alcohol Feb 07 20:14:08 * Quacked sings to http://www.youtube.com/watch?v=SfKZzI6vghg Feb 07 20:14:45 nothing good comes from alcohol Feb 07 20:15:01 * marrrk should be at proxy since that video won't load over here Feb 07 20:15:05 drunkness does Feb 07 20:15:09 ask any of my children Feb 07 20:15:30 you have bad children? :/ Feb 07 20:15:36 I'm not even sure I have any Feb 07 20:15:51 but I'm just saying.. I might Feb 07 20:15:54 lol Feb 07 20:16:19 You should protect yourself and the world more carefully! Feb 07 20:16:22 rofls Feb 07 20:16:26 in general Feb 07 20:16:28 was catching up Feb 07 20:16:35 I once did sleep with this bartender though.. and went to the bar 3 months later and asked her colleagues about her Feb 07 20:16:41 and they said 'she quit once she got pregnant' Feb 07 20:16:47 and then I just stood there.. and the guy yelled out in the bar Feb 07 20:16:49 lol Feb 07 20:16:49 'YOU FUCKED HERø Feb 07 20:17:28 but I did the math and it was like 1 week off me being with her Feb 07 20:18:00 (21:17:28) P3nnyw1se: but I did the std check and it was like 1 week of me being on antibiotics Feb 07 20:18:08 i have been operating for quite a while under the assumption that if an activity is being destroyed in order to be recreated, any fragments or loaders that belong to it stay alive and are reattached to the new activity. empirical evidence is proving me incorrect, at least on the "staying alive" part. am i totally wrong in my expectation that the fragment lives beyond the orig activity's lifespan during rotations? Feb 07 20:18:26 Yes, you're totally wrong Feb 07 20:18:30 antibiotics Feb 07 20:18:31 balls. Feb 07 20:18:33 its such a cool name Feb 07 20:18:37 if I ever made a bad rock band Feb 07 20:18:39 thats the name Feb 07 20:18:42 Unless you call setRetainInstance Feb 07 20:18:47 On your fragment Feb 07 20:19:07 Loader results are retained iirc Feb 07 20:19:09 ok. i'd always had that banging around in the back of my head. they are not retainInstance by default, then, obviously Feb 07 20:19:13 Or is it the whole loader.. Check the source Feb 07 20:19:33 No, their state is saved/restored in the same way as the activity Feb 07 20:19:59 well.. so what prompted this, is i have a Fragment that starts a Loader, and that Loader also gets destroyed upon rotation.. presumably because the Fragment is being destroyed Feb 07 20:20:10 which is gonna be a major pain in my assholes Feb 07 20:20:19 [21:19] ok. i'd always had that banging around in the back of my head. Feb 07 20:20:21 [21:20] which is gonna be a major pain in my assholes Feb 07 20:20:46 lulz Feb 07 20:23:07 can i deploy 2 apks to Play: one for GB and one for Android 4+ ? Feb 07 20:23:19 g00s: yes Feb 07 20:23:42 tophyr: thx Feb 07 20:23:42 Why does this only turn screen on and not unlock the device? getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON|WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED|WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); Feb 07 20:24:18 Quacked: security concerns? Feb 07 20:24:21 The deprecated KeyguardManager.KeyguardLock works Feb 07 20:24:31 I have Feb 07 20:24:58 No errors either Feb 07 20:25:44 dunno, sorry. beyond my experience Feb 07 20:26:17 i'm off to go whack my head about the assumptions i made re: fragments, and to try to find where they have resulted in incorrect code Feb 07 20:27:15 fragments are a pain Feb 07 20:27:23 i think i ended up using a fragmentactivity with tabhost Feb 07 20:27:50 well, overall i like them Feb 07 20:28:00 i've just been coding as if they were all setRetainInstance Feb 07 20:28:29 which may actually be a decent solution to use.. just want to have a think about it before i go blanket-changing them Feb 07 20:28:51 i'm happy that my days with android and layouts are roughly over, and that i can focus on actual programming instead of hard-to-use graphics Feb 07 20:29:23 (21:28:30) tophyr: which may actually be a decent solution to use.. just want to have a think about it before i go blanket-changing them Feb 07 20:29:23 git branch and try it? Feb 07 20:29:37 kaneda^: until somebody puts out a triangular LCD and you have to write triangular layouts Feb 07 20:30:00 never Feb 07 20:30:09 i want a circular one in xsmall. sick of square overly large android watches! Feb 07 20:30:21 yea, u know thats coming :P Feb 07 20:33:29 with OLEDs all sorts of things are coming ;) Feb 07 20:35:45 hmm.. I don't get why it's not working :p Feb 07 20:35:51 Hexagonal screens! Feb 07 20:35:56 for six players on your android Feb 07 20:36:13 extra for the octagonal , 8 players ! Feb 07 20:36:27 imagine the pain for us poor devs Feb 07 20:36:47 sonOfRa: come on, you didn't pick up android w/o anticipation of great pain Feb 07 20:36:47 sonOfRa, i think i'd quit and become a manager at that point :D Feb 07 20:36:52 let someone else suffer Feb 07 20:37:02 g00s, i didnt pick android at all, it picked me ;D Feb 07 20:37:08 oh shit Feb 07 20:40:41 SimonVT: so would you consider it a bug or expected behavior that the (support library) fragment's loader manager resets any in-progress loaders, when the fragment is being destroyed by the system due to config change? Feb 07 20:40:44 I'm new at android development. I made a view object , with an attribute "android:hint="@string/edit_message"", and placed "Enter a message" in the strings.sml file. I am stilling getting error: "Couldn't resolve resource @string/edit_message" Feb 07 20:41:02 strings.sml* Feb 07 20:41:06 xml* Feb 07 20:41:17 tophyr: I'm fairly certain it behaves the same as the native implementation Feb 07 20:42:00 hi all.. Feb 07 20:42:25 someone here who knows something about open gles 1.1 offscreen rendering and android-ndk? Feb 07 20:43:49 Has anyone here used/implemented XMPP in their Android app? Would be interested to hear any thoughts. Feb 07 20:44:41 ejcweb: go for asmack Feb 07 20:45:05 Ge0rG: Does it still work? The project looks inactive. Feb 07 20:45:21 actually.. thinking about how the API is implemented, i don't know how it'd be possible for loaders to do what i'm imagining. you give the loader manager a LoaderCallback reference, which is often "this" for an activity. that activity gets destroyed, thus the loader has a dead callback, and so it probably should be reset. same logic applies for fragments i guess. Feb 07 20:45:22 ejcweb: https://github.com/Flowdalic/asmack and ##smack Feb 07 20:45:47 nug700, is your strings.xml in res/values/? Feb 07 20:45:58 yes Feb 07 20:46:19 Ge0rG: Thanks for that. Have you managed to get it to work without too much trouble? Feb 07 20:46:35 nug700 pastebin layout file and strings.xml Feb 07 20:46:56 not irritating at all, though Feb 07 20:47:23 Ge0rG: I may just try and use the compiled jars linked to on the github page. Feb 07 20:47:27 ejcweb: I am the maintainer of yaxim, one of the open-source android XMPP clients :P Feb 07 20:47:33 actually... I found the problem... I have 2 projects. I was using the wrong strings.xml file Feb 07 20:47:36 Ge0rG, they all suck ;) Feb 07 20:47:56 Ge0rG: Ah, great! Feb 07 20:48:12 Zharf: yaxim sucks less :P Feb 07 20:52:07 nug700, :p Feb 07 20:56:41 http://www.indiangeek.net/programmer-competency-matrix/<-- surprisingly comprehensive Feb 07 20:57:15 i've seen that before Feb 07 20:58:49 i'm measuring myself in mostly the level 2 range, some level 3, no levels 0 or 1 so far Feb 07 21:00:37 Alright so I made my custom view. How can I add it through xml? Feb 07 21:01:00 make an XML file, inflate said file, profit Feb 07 21:01:03 I guessed it Feb 07 21:01:20 disgustingly it contains the whole package name Feb 07 21:01:50 marrrk, not surprising, since it represents a physical structure Feb 07 21:02:41 It kinda has to know where to look for the class Feb 07 21:02:49 indeed Feb 07 21:02:53 it's not magic in other words ;) Feb 07 21:03:22 why can't I set the namespace or something? Feb 07 21:03:40 package = namespace Feb 07 21:05:03 do you guys notice, on http://developer.android.com/about/dashboards/index.html … that screen size was last sampled on Oct 1? I wonder if this is because google doesn't want analysts figuring out how many tablets they sold. Feb 07 21:05:32 That's what I mean Feb 07 21:05:38 which can only mean one thing :| Feb 07 21:05:40 define it once in the xml and then whenever I use my class Feb 07 21:05:50 It checks in that package for my views Feb 07 21:06:02 marrrk: you can do it without the whole package name Feb 07 21:06:15 how? Feb 07 21:06:22 Naplam Feb 07 21:06:30 marrrk: see http://developer.android.com/reference/android/app/Activity.html#onCreateView%28java.lang.String,%20android.content.Context,%20android.util.AttributeSet%29 Feb 07 21:06:30 thats such an aggressive nickname Feb 07 21:06:50 the name parameter is the tag name from xml Feb 07 21:06:51 How does it know what classes are your classes Feb 07 21:07:01 and attrs the attributes Feb 07 21:07:04 What if I choose to create a view called TextView Feb 07 21:07:09 g00s: http://en.wikipedia.org/wiki/Hanlon's_razor Feb 07 21:07:12 Or if I use a library that has custom views Feb 07 21:07:20 ah alright thanks Napalm Feb 07 21:07:25 SimonVT: you can override the default vies Feb 07 21:07:28 views Feb 07 21:07:49 SimonVT: that would be as stupid as naming a method setColor() .... oh wait... Feb 07 21:07:53 thats one why I've applied a font to all TextView based views Feb 07 21:07:57 way Feb 07 21:08:57 StingRay_: What if you create a custom view, and a view with the same name is later added to the framework Feb 07 21:09:25 you can also pop your own LayoutInflater.Factory in there Feb 07 21:09:52 SimonVT: valid point, but not too much of a big deal Feb 07 21:10:00 Or you add some library that has views with the same class names as yours Feb 07 21:10:08 Guess it'd have the package then Feb 07 21:10:10 But anyway Feb 07 21:10:31 the point of all that being that packages are important to structure, and you should name things clearly and verbosely Feb 07 21:10:39 It seems stupid to implement onCreateView just to save writing a package name Feb 07 21:10:47 because someone wil most likely have to maintain your code, and you dont want them to murder yuo in your sleep Feb 07 21:11:10 SimonVT: agreed, but if you want to do some sort of view override app wide, its a nice method Feb 07 21:11:26 Napalm: Sure, there are legitimate reasons for overriding it Feb 07 21:11:30 This is not one of them Feb 07 21:11:58 evanc: :) Feb 07 21:12:14 its just a shame the ADT plugin doesnt refactor the xml references if you move the code Feb 07 21:12:16 without posting a pastebin just yet Feb 07 21:12:18 that might be handy Feb 07 21:12:34 IntelliJ does Feb 07 21:12:37 I get a nullpoint exception when I try to replace a fragment and run it Feb 07 21:12:42 any ideas why!? without seeing any code Feb 07 21:12:59 Something is null Feb 07 21:14:00 oh Feb 07 21:14:08 I wrote Fragment name = new Fragment(); Feb 07 21:14:23 instead of ClassExtendingFragment name = new ClassExtendingFragment(); Feb 07 21:14:28 thats a possibility Feb 07 21:16:03 fvck me.. that wasn't it Feb 07 21:16:04 :( Feb 07 21:22:19 ehm Feb 07 21:22:36 how do I get System.out.println(); displayed in my console when working in an android project :P Feb 07 21:23:02 anyone know if it's possible to change the icon for the Overflow menu 3 dots? Feb 07 21:23:08 possible to theme it? Feb 07 21:23:26 P3nnyw1se, why not use Log.d() Feb 07 21:24:51 I dunno I just wanted to see som syso's in the console Feb 07 21:24:56 but I can't get it displayed Feb 07 21:25:55 gonna attempt to use toast instead.. haven't tried it but I think thats for what I wanna do here Feb 07 21:27:27 P3nnyw1se, Log.i or Log.d? Feb 07 21:27:42 should work w/ usb debuggin enabled Feb 07 21:28:06 are you here? Feb 07 21:28:39 has anyone ever customized the layout on an AlertDialog? Feb 07 21:28:55 specifically, how does one deal with the buttons if you've defined different ones in a separate layout? Feb 07 21:29:14 http://pastebin.com/WYUBWu4p can you check these errors? Feb 07 21:30:32 tnzr something like: Button btn = dialog.findViewById(R.id.btn); Feb 07 21:30:42 set the layout to the xml file first Feb 07 21:30:46 Emulator] emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration. Feb 07 21:31:12 can anyone look at my errors? Feb 07 21:31:22 iam using arm for 2.3.3 Feb 07 21:32:01 Button btn = (Button)dialog.findViewById(R.id.btn) <- add cast Feb 07 21:32:40 http://pastebin.com/WYUBWu4p brx_? Feb 07 21:33:02 Ilhami: 02-07 21:27:22.134: E/AndroidRuntime(2198): java.lang.NullPointerException Feb 07 21:33:05 brx_: well ok.. I kinda moved forward and made my CustomDialog class implement DialogInterface.OnClickListener and I've overridden its onClick() method Feb 07 21:33:11 event perform click Feb 07 21:33:17 now I'm just wondering what to do with the "which" parameter :) Feb 07 21:33:18 you have no click listener Feb 07 21:33:32 wait I will post my class Feb 07 21:33:33 I have Feb 07 21:33:35 a listener Feb 07 21:33:51 then you have not set it for the button Feb 07 21:34:06 http://pastebin.com/9xGcLVFH Feb 07 21:34:07 look Feb 07 21:34:38 why does this happens, it runs emulator first time but second time for snapshop enabled it says ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration. Feb 07 21:37:16 Ilhami: looking Feb 07 21:37:29 There are many ways to add a fragment 1. add tag in your activity layout and when the activity layout inflates it inflates the fragment also . 2. Create a fragment class as you have done (Fragment1 i assume), in the create view make sure you have the following line inflater.inflate(R.layout.fragment1, container, false); --> Finally add the fragment and commit the transaction ft.add(R.id.myfragment, myFragment); f Feb 07 21:37:29 t.commit(); Feb 07 21:37:47 ok well it's ---> ft.replace(R.layout.main, newFragment1, "frag"); <----- that Feb 07 21:38:19 thats where the exception is Feb 07 21:38:25 it tells you in the error Feb 07 21:38:42 yes try to look at my solution.. Feb 07 21:40:23 http://pastebin.com/PU4NRkd7 <-- Main Activity ... http://pastebin.com/a9wz0KH5 <--- Fragment ... I get an error in MainActivity. line 56 .. java nullpointer exception Feb 07 21:40:26 any help appreciated Feb 07 21:41:14 sry . thats line 57 Feb 07 21:42:44 P3nnyw1se a fewproblems show themselves immediately Feb 07 21:43:04 yes Feb 07 21:43:05 ? Feb 07 21:43:05 don't make an activity inside a fragment Feb 07 21:43:14 huh ? Feb 07 21:43:20 a fragment is an activity, a fragmentactivity Feb 07 21:43:23 I dont.. do I ? Feb 07 21:43:30 you manage them with another activity Feb 07 21:43:36 you may instantiate them in taht activity Feb 07 21:43:37 line 14 in fragment paste Feb 07 21:43:57 don't use classnames for these things also Feb 07 21:44:28 oh I see line 14 yes Feb 07 21:44:33 well okay Feb 07 21:44:37 you see what I*m trying to do I imagine Feb 07 21:44:38 in oncreate Feb 07 21:44:39 I havent touched my one game/project in a long time... my "@Override public void surfaceChanged("... gets called upon startup but not when I rotate the screen, but it once did, I think I disabled it somewhow, but I cant figure it out with a quick glance Feb 07 21:44:53 that's a different event handler Noxz Feb 07 21:44:55 the transaction is not committed Feb 07 21:44:59 xorgate.. I have 2 buttons.. when one is clicked I want it to return to the activity Feb 07 21:45:10 P3nnyw1se understand that fragments live 'inside' activities Feb 07 21:45:11 so I can startup the next fragment Feb 07 21:45:13 kaneda^# what am I looking for then? Feb 07 21:45:25 i think it's onConfigurationChanged() for screen rotations Feb 07 21:45:25 yes I do..xorgate Feb 07 21:45:31 P3nnyw1se generally you want a fragment to be activity-agnostic, meaning they should not know what activity they are in Feb 07 21:45:33 the instantiation of that Activity is a mistake Feb 07 21:45:33 oh, the activity Feb 07 21:45:38 ok Feb 07 21:45:40 I found it, I think Feb 07 21:45:51 but this is my first time working with fragments so tell me Feb 07 21:45:59 how do I notify the activity that my fragment is done Feb 07 21:46:02 if that makes sense to you Feb 07 21:46:11 no fragments are a hassle its ok :) Feb 07 21:46:14 Noxz, http://developer.android.com/guide/topics/resources/runtime-changes.html#HandlingTheChange Feb 07 21:46:18 my 'attempt' here Feb 07 21:46:24 thanks Feb 07 21:46:27 was to simply call a method that swapped to next fragment Feb 07 21:46:30 I shouldnt take a long break next time Feb 07 21:46:32 P3nnyw1se done as in 'please go back to what you were doing before me' ? Feb 07 21:46:52 I suppose so... I have 3 fragments with buttons and questions Feb 07 21:46:58 I wanna go F1 -> F2 -> F3 Feb 07 21:47:07 ok Feb 07 21:47:08 I dont care if its that way or Act -> F1 .. Act -> F2 Feb 07 21:47:10 you get the picture Feb 07 21:47:23 generally the idea is to define an interface in your fragment, a contract so to speak Feb 07 21:47:36 saying 'any activity has to have this method' Feb 07 21:47:53 it's in the example code for rfagments on the dev site btw Feb 07 21:48:06 okay well this is just purely an excercise I'm working under direct orders from a teacher Feb 07 21:48:08 then your fragment can say activity.MethodIWant() Feb 07 21:48:15 whats the order Feb 07 21:48:37 make an activity with 3 fragments and each fragment with some buttons.. go through all fragments.. Feb 07 21:48:46 ah yes Feb 07 21:49:03 let's think Feb 07 21:49:26 so at this point.. post onClick method Feb 07 21:49:34 I want to return to the activity and startup next fragment Feb 07 21:49:49 in java I wouldn't have an issue cause when there are no more lines Feb 07 21:49:52 maybe define a MyFragment class extending Fragment which has an interface with a method ButtonClicked() Feb 07 21:49:53 there is no more code ... Feb 07 21:50:04 and then 3 fragment classes extending MyFragment Feb 07 21:50:28 that is something I want to do.. in fact I wanted to use the same Class.. and treat it as generic.. also using only 1 XLM Feb 07 21:50:31 and yuor activity, when ButtonClicked() is called (your onclicklistener does this), changes the fragment inside it Feb 07 21:50:34 make sense? Feb 07 21:50:39 but.. I need this done in 1 hour.. so I'm just trying to 'fix it' at this point Feb 07 21:50:40 to be honest Feb 07 21:50:41 make it work Feb 07 21:51:50 so you're saying I have an onClickListener.. thats notificed when the buttonClick is run Feb 07 21:51:54 in my activity Feb 07 21:51:58 listening in the fragment ? Feb 07 21:51:59 right ? Feb 07 21:52:42 Activity -> onClickListener -> Fragment -> ButtonClicked(); Feb 07 21:52:43 ? Feb 07 21:53:48 no in your fragmentds Feb 07 21:53:54 the fragment contains the button Feb 07 21:54:08 yes I know Feb 07 21:54:13 the fragment contains the button.. and when its clicked Feb 07 21:54:19 a listener in my activity is notified Feb 07 21:54:22 and runs next fragment ? Feb 07 21:54:50 the listener = your fragment Feb 07 21:55:00 it needs to tell the activity that it wants to do something Feb 07 21:55:06 i.e. 'replace me with another fragment' Feb 07 21:56:24 yeah I'm not sure I got it.. probably another thing I thought you meant Feb 07 21:56:43 I know the fragment has the button.. I know when the button is clicked we want the Acitivity to react and swap fragments Feb 07 21:56:49 correct Feb 07 21:56:57 P3nnyw1se, so ideally that button is linked to the controller Feb 07 21:57:15 so the 'proper' way is to make sure the activity knows a method named 'ReplaceMePlease()' Feb 07 21:57:20 which the fragment can then call Feb 07 21:57:42 like the one I have right now.. called switchFragment Feb 07 21:57:49 ? Feb 07 21:58:18 it's a java concept, interfaces Feb 07 21:58:47 an interface represents a contract of members of methods that have no assigned value Feb 07 21:58:58 every concrete implementatino of the interface must abide by the contract Feb 07 21:59:00 I know but I*m not sure how you mean you wanna use it here Feb 07 22:01:21 you want my Activity to implement an interface with a method named 'ReplaceMePlease' Feb 07 22:01:29 and overwrite it yes ? Feb 07 22:01:33 P3nnyw1se i am a fragment, you are an activity. If you want me, you'll have to define public void ReplaceMePlease(), or i won't play along Feb 07 22:01:58 now if you promise, i promise to call ReplaceMePlease() so you know to replace me Feb 07 22:03:15 so I'm still getting that as you want Activity to implement an interface with the method named 'ReplacedMePlease' Feb 07 22:03:21 if thats not what you suggest I'm going to bed Feb 07 22:04:03 and then the Fragment to instantiate the interface Feb 07 22:04:09 and replace the call with the Activity class name Feb 07 22:05:48 quick q - isn't there a tool to toss a screenshot on a nice glossy image of a phone for showing off? Feb 07 22:06:33 yes Feb 07 22:06:38 what's it called? Feb 07 22:06:43 dont know Feb 07 22:06:43 I can't seem to google it for the life of me Feb 07 22:06:51 I ask jake each and every time I need it Feb 07 22:06:51 haha Feb 07 22:06:54 too many spam blogs teaching me how to do a screenshot Feb 07 22:07:33 Can anybody write me a PM? I want to ask something Feb 07 22:07:49 aha! http://developer.android.com/distribute/promote/device-art.html Feb 07 22:10:13 Anybody in LA and interested in developing Tinder for Android? (http://www.gotinder.com) Feb 07 22:10:23 ow i was gonna say http://android-ui-utils.googlecode.com/hg/asset-studio/dist/device-frames.html Feb 07 22:10:42 JonBad, wish i was in LA, it's so cold here -_- Feb 07 22:10:55 LA sounds good yes :) Feb 07 22:10:56 its cold in cali today too Feb 07 22:11:05 40-50s here Feb 07 22:11:08 ron_frown, it's -20 here Feb 07 22:11:12 HAHAH Feb 07 22:11:15 IN YO FACE! Feb 07 22:11:18 tinder logo looks like vodafone Feb 07 22:11:20 yeah it's a bit chilly. 60s in WeHo Feb 07 22:11:26 West Hollywood Feb 07 22:11:30 I rode my bike to lunch with wife Feb 07 22:11:30 i just got frostburn from smoking a cigarette Feb 07 22:11:34 lol Feb 07 22:11:36 I'm still warming up Feb 07 22:11:44 pft you guys talking about cold Feb 07 22:12:03 I'll be inside the arctic circle in 48 hours Feb 07 22:12:15 3C in BCN Feb 07 22:12:24 1 celcius in netherlands :) Feb 07 22:12:32 PM me if your interested or email me at jonathan@gotinder.com Feb 07 22:12:32 "Sunny Barcelona" < true, but not warm. Feb 07 22:12:52 Chainfire, sucks :D Feb 07 22:12:56 Chainfire, although i'm not that far in MTL Feb 07 22:13:14 tinder, please read the subject, no job advertising Feb 07 22:13:19 err, JonBad Feb 07 22:13:25 also, how much does it pay Feb 07 22:13:27 oh sorry Feb 07 22:13:42 :D Feb 07 22:14:02 Bad Jon! Feb 07 22:14:02 kaneda^ it'll be cold but awesome. whats MTL ? Feb 07 22:14:06 Don't know... I actually have to suggest/ask for amounts to spend today Feb 07 22:14:12 my bad hehe Feb 07 22:14:37 If you can budget a million dollars, I'm in. Feb 07 22:14:55 so I have to distinguish between a simple touch and a drag for a MotionEvent Feb 07 22:15:01 lol, if we could budget a million dollars I wouldn't be asking Feb 07 22:16:11 why not :0 Feb 07 22:16:45 "one billion dollars!" Feb 07 22:17:07 because I'd expedite my own learning and do it myself or I'd outsource it to a team in India and pocket the rest. Since it's not that kind of money I'd rather work with somebody cool and make a good app. Feb 07 22:17:44 JonBad: the avg cool app costs around $20k last i read Feb 07 22:17:55 ANYONE? Feb 07 22:18:06 this would be a salaried job so we'll be paying more than that Feb 07 22:18:14 * ctate just write a short piece on G+ about an Android anti-pattern, i.e. don't do this. https://plus.google.com/104992153032750621070/posts/Y65hwhihcwN Feb 07 22:18:17 aowifmiosegnmdroimdriomse Feb 07 22:18:33 ctate: can you move it to d.android.com ? why post this stuff on G+ ? Feb 07 22:18:34 * ctate also points at the channel topic where it says "Please no advertising, jobs or otherwise" Feb 07 22:19:01 g00s: cos it's just my own thing, not an Android/Google piece? Feb 07 22:19:39 uh Feb 07 22:19:56 i mean sure maybe i'll work it up into a dev blog post Feb 07 22:20:06 I literally can't think atm.. cause I*ve been up since very early Feb 07 22:20:26 could someone be nice and tell me an extremely easy way to this problem Feb 07 22:21:05 I have an activity.. with several fragments.. I start my first fragment. inside it I have some buttons the user can click.. when he clicks a button I want that fragment to end Feb 07 22:21:20 and then I want to startup my next fragment.. but I don't know how to notify Feb 07 22:21:24 my activity that I'm done inside the fragment Feb 07 22:22:18 i told you a way Feb 07 22:22:37 I know you did but I can't wrap my head around it atm.. and I have to turn this in.. in 18 minutes Feb 07 22:24:11 ctate: sure, i understand the allure in self publishing something like this. but any android dev should be able to go to d.android.com -> best practices, or something, and see this type of info. of course, for any joe schmoe, its different - but coming from the google team, its seems best to just make the website better Feb 07 22:25:02 (so people don't have to piecemeal together best practices - from google - from a bunch of g+ posts Feb 07 22:25:03 So android devs should just post any random thought on d.android.com Feb 07 22:25:29 SimonVT: i dunno, is ctate's previous G+ entry a random thought ? Feb 07 22:25:47 SimonVT, random thought, android should make a standard for all cameras s.t. the color model is the same across all android devices Feb 07 22:26:50 I don't know, ask ctate. It might just be a reaction post to something he spotted on forums, or whatever Feb 07 22:27:00 suppose i have an EditText and when the text changes, I ask wikipedia for a list of articles starting with that text. Now I get results after a while, showing them in a listview. How can I ensure the listview and updater play nice? I wouldn't want it to update the data right when the listview is requesting the data Feb 07 22:27:11 well, i also kind of want to give people the idea that the g+ community is good for that kidn of content Feb 07 22:27:27 or at least encourage that kind of thing Feb 07 22:27:41 hrm, I still cant get it to display anything different when I change the orientation.. but in my other apps where I am not trying to do anything special it works... oh wow... that phone is buggered... it's not changing orientation for any of my own apps... I plugged in another phone and it worked Feb 07 22:27:44 any ideas? Feb 07 22:27:51 Posting something on g+ is a good way to get instant feedback on these kind of topics Feb 07 22:28:27 Feedback he can later use to turn it into a full article, if it seems relevant Feb 07 22:28:47 ctate: i dont think g+ is good for that kind of content, i guess thats where we disagree Feb 07 22:31:42 so now I'm thinking about daydreams. I didn't look into them before - it seems these are user-wide. is there a feature for apps to support a daydream directly, so if that my app is visible, so will my daydream ? Feb 07 22:31:46 * evanc sets mode: -o evanc Feb 07 22:31:54 If not, is is possible to do your own thing, and make sure the daydream does not show ? Feb 07 22:32:09 Ilhami... Feb 07 22:32:15 I'm repeatedly seeing a Android deadlock causing com.android.server.am.ActivityManagerService to be killed by the watchdog timer and thus causing the phone to reboot - /data/anr/traces.txt - at http://drop.richardwhiuk.com/traces. I suspect the app I'm developing is doing something unusual to cause this, but I can't track down what. Can anyone suggest any pointers? Note, it may take many hours to repro, looks like random rebooting at Feb 07 22:32:19 yes? Feb 07 22:32:26 why are you copypasting that Feb 07 22:33:22 dunno ? Feb 07 22:33:36 canadiancow: why are you asking him why he's copypasting that? Feb 07 22:33:46 wut is -o Feb 07 22:33:53 I bought an Android tablet from china. Is there anyway I can use it as a test device? Feb 07 22:33:55 g00s: I de-opped myself Feb 07 22:34:06 Why are you asking him why he's asking him why... Feb 07 22:34:07 Ilhami: yes, install app, test app Feb 07 22:34:20 but when I plug it in I cant find it Feb 07 22:34:25 I tried Feb 07 22:34:33 evanc, why are you asking me why i'm asking him why he's copypasting that? Feb 07 22:34:44 that's what she said Feb 07 22:34:44 Ilhami: if it doesn't show up in adb devices, you'll need a driver Feb 07 22:34:47 richardwhiuk: i can walk you through figuring out what's going on with a system deadlock like this Feb 07 22:34:58 also, what device & OS rev are you running under? Feb 07 22:35:09 Its a JXD.. I cant find any drivers for it Feb 07 22:35:09 hhh Feb 07 22:35:15 My PC is running Win 8 Feb 07 22:35:17 ctate: Vodafone HTC One X using 4.1.1 stock Feb 07 22:35:25 ctate: not to kick a dead horse, but think of it from the perspective of a new android dev foraging for information. they could go to d.android.com for the most authoritative up to date info or (2) find out who works on android and start following g+ feeds. thats all. Feb 07 22:35:25 and its Android 4.0.4 on the device Feb 07 22:36:01 g00s: that's the *official* Android dev G+ community, cited by d.android.com, innit? Feb 07 22:36:09 not like it is just my own random G+ stream Feb 07 22:36:37 richardwhiuk can you program a driver? Feb 07 22:36:47 richardwhiuk: well, the starting place is "what is the main looper thread doing, since that's what has to have locked up in order for a deadlock to be declared" Feb 07 22:36:56 ctate: really? this looks like your own g+ stream Feb 07 22:37:09 g00s: https://plus.google.com/communities/105153134372062985968 Feb 07 22:37:16 unclear G+ ux, then Feb 07 22:37:32 richardwhiuk: unlike all other apps, in the system server the main looper thread is *not* the one called "main" Feb 07 22:37:44 but instead is hte one called "android.server.ServerThread" Feb 07 22:37:48 can any of you program drivers for my device? Feb 07 22:37:49 so find that thread in the traces Feb 07 22:37:50 ctate: ah, ok. when i clicked on https://plus.google.com/104992153032750621070/posts/Y65hwhihcwN it seemed like yours only Feb 07 22:37:54 so I can use it for testing Feb 07 22:38:32 richardwhiuk: and you'll see this: http://pastebin.com/rfaG4HJa Feb 07 22:39:05 that tells you that an Activity Manager intenral lock that it needs is being held by a binder thread with the given name Feb 07 22:39:18 so, back to the traces to find the block for the thread named "Binder_4" Feb 07 22:39:46 yep, which is waiting on a HashMap held by the GpsLocationProvider, which is waiting on the AM internal lock Feb 07 22:40:35 the gps provider is holding its own lock and is trying to acquire the AM internal lock Feb 07 22:40:51 this binder incall thread is holding the AM lock,and trying to acquire the GPS provider lock Feb 07 22:40:59 boom, classic lock-ordering deadlock. Feb 07 22:41:22 Anyone know of a good tutorial for begginers to Android development? (I have previous programming expirience) Feb 07 22:42:24 sad to say this looks like an internal Android bug that you just happen to be tickling Feb 07 22:42:40 this is in 4.1.1 you say? Feb 07 22:42:44 Yep Feb 07 22:42:48 sigh. Feb 07 22:42:54 how come when I try to call .commit(); after swapping fragments with .replace Feb 07 22:42:58 Yep, what I'd like to know is if there's anyway if I can tell how I'm tickling it Feb 07 22:43:03 I get an error going 'commit already called' Feb 07 22:48:01 Is there an IRC channel for developer support regarding the Google Play store? Feb 07 22:48:42 man i love intellij Feb 07 22:48:55 noodlesgc i reckon this chan is your best bet Feb 07 22:49:36 Alright the ViewPager is stealing my "drag" event Feb 07 22:49:48 How Feb 07 22:50:47 so is there some reason I keep having to deal with IllegalStateExceptions when dealing with support fragments. Is this normal? Seems like I have to jump through so many hoops to get fragments working crash free? Feb 07 22:50:56 hmm, ok. Does anyone happen to know if Google will send me tabulated income (i.e. 1099 form) to file for my taxes, or do I have to tabulate it my self? thanks Feb 07 22:51:10 is it hard to program a driver? Feb 07 22:52:25 has anyone used the Memory Analyzer tool for Eclipse, and can one use it to inspect android heap dumps? Feb 07 22:54:03 hmm, looking at the code, preventing daydream without holding a wakelock or resetting user activity (and thus forceing screen on), there is no way to prevent daydream from starting and overriding with your own app-specific dream if the foreground app Feb 07 22:54:04 tnzr: you can Feb 07 22:54:08 too bad, that would have been a neat feature Feb 07 22:54:46 I suppose its horrible coding to make your FragmentTransaction static Feb 07 22:54:46 but I did it anyway Feb 07 22:54:46 and it works Feb 07 22:56:30 if the user wanted to see your daydream they would have configured it to be the active one! ;) Feb 07 22:57:45 can someone take a gander at this? https://gist.github.com/anonymous/bcbc0bbb9f6d60d6c265 I'm trying to learn whether or not this is a bad convention and whether or not using final on the dialog can cause any bad side-effects (like memory leaks) Feb 07 22:58:05 ctate yes I understand that thought, but imagine... if I'm in G+, I get a daydream displaying all recent G+ acitivity, in Currents - the latest news, in GMail - a moving collage of the images of the contacts in the inbox Feb 07 22:58:19 the purpose of this is to have a custom alert dialog so that we can be sure it looks the same across all devices, regardless whether or not the manufacturer has overridden any themes Feb 07 22:58:46 not that anybody has daydreams enabled anyways, as nobody knows about them ;) Feb 07 22:58:54 i have daydream enabled :) Feb 07 22:58:58 oh sure be a downer :) Feb 07 22:59:03 kills my battery, even when plugged into my laptop Feb 07 22:59:08 damnit, I'm trying to innovate here! :P Feb 07 22:59:13 hee hee Feb 07 22:59:21 Chainfire, slap a clock radio in it Feb 07 22:59:26 now that's innovation Feb 07 22:59:47 but at least one thing: it is sort of weird that there's no flag to prevent the daydream from happening, like there is to dismiss keyguard, keep the screen on, etc Feb 07 22:59:50 Chainfire: hey, just purchased your pro apps for super-su and stickmount, nice work Feb 07 22:59:57 thx :) Feb 07 23:00:08 been using the free ones for a while, so i figured its about time i paid ;) Feb 07 23:00:19 was feeling guilty, being another dev that is Feb 07 23:00:32 :) Feb 07 23:00:43 :) Feb 07 23:02:21 tommorow im making a GridLayout'ish custom view that backs onto a AdapterView Feb 07 23:02:26 time for bed Feb 07 23:02:28 night all Feb 07 23:05:31 hello guys Feb 07 23:10:42 if I wanna set a text.. from my javacode what should I use if not textView? Feb 07 23:11:24 how can i make a phone dial and to finish that phone call Feb 07 23:12:43 tona what do you mean finish that phone call Feb 07 23:12:50 dial is sending the right intent to the system Feb 07 23:14:08 do you have one example Feb 07 23:14:37 This is interesting.... http://www.manymo.com Feb 07 23:14:54 tona Intent.ACTION_DIAL Feb 07 23:15:08 I think I will test service for remote designers/translators/etc. Feb 07 23:16:17 or how can i finish the phone call Feb 07 23:18:56 Intent.ACTION_DIAL where i set my phone number to dial? Feb 07 23:21:41 there's only over 9000 examples on google Feb 07 23:22:17 ok Feb 07 23:23:30 i am trying to run avenger inititive game for android but i need to move one folder to obb 1gb my phone just have 500 mb is there one way to change this parameter to run on sd directly Feb 07 23:23:58 are there some predefined easing animations I can use? Feb 07 23:28:25 android handle sockets ? Feb 07 23:30:05 tona: sure Feb 07 23:31:24 how ?, do you have a example Feb 07 23:32:38 have you tried google ? Feb 07 23:42:35 wow, cool. a great feature for the next n10 :D http://www.gizmag.com/lynx-a-3d-modeling-camera/26149/ Feb 07 23:46:20 g00s: that coupled with 3d printing might be even cooler Feb 07 23:46:33 :) Feb 07 23:46:36 film it + print it Feb 07 23:47:17 but I'm off to bed, I've only made it through today on coffee Feb 07 23:47:22 Tea, earl grey, hot Feb 07 23:47:25 :D Feb 07 23:47:27 lol Feb 07 23:47:50 I've never had that, I hear it so many times Feb 07 23:49:47 it that made by Ceylon? Feb 07 23:49:50 bergamot? not. ;) Feb 07 23:50:34 (also stupid computer can't even figure out defaults for the captain...) Feb 07 23:50:50 hey ctate, that's been a while :) Feb 07 23:51:19 http://en.wikipedia.org/w/api.php?action=opensearch&search=india&format=jsonfm how is this valid json? i'm used to {} and such Feb 07 23:51:40 I missed the Star Trek reference Feb 07 23:51:59 * belgianguy hangs head in shame Feb 07 23:52:03 what will become of me Feb 07 23:53:54 could someone look at this and let me know if it's a bad idea? https://gist.github.com/anonymous/bcbc0bbb9f6d60d6c265 Feb 08 00:03:15 tnzr: consider fragmentDialog ? Feb 08 00:03:39 StingRay_: oh? Feb 08 00:03:47 easier Feb 08 00:03:50 StingRay_: I've never used one, but I will look into it Feb 08 00:03:51 rotation etc Feb 08 00:04:04 this one seems to work fine, I'm just worried about memory leaks or something Feb 08 00:04:24 i'm always worried that there's something I don't know about the final keyword or static, etc, that's going to come back and bite me some day Feb 08 00:10:45 StingRay_: this works too: https://gist.github.com/anonymous/358aa5f83a42e9554d08 think it would be cleaner? Feb 08 00:11:40 kinda seems to not need the AlertDialog.Builder anymore thouhg Feb 08 00:11:49 not sure what happens behind the scenes in that thing that I might need to be aware of Feb 08 00:18:27 ;) Feb 08 00:18:35 like magic I tell you Feb 08 00:18:43 how did jug6ernaut get banned ! Feb 08 00:18:52 rightfully so Feb 08 00:18:53 his computer kept reconnecting Feb 08 00:18:55 so evan banned him Feb 08 00:18:57 i would have banned me also lol Feb 08 00:19:00 i would have done the same Feb 08 00:19:00 lol Feb 08 00:19:00 repeat excess flood Feb 08 00:19:15 yeah I would've done it, but nobody is offering me a job at Google so I don't have ops! ;) Feb 08 00:19:28 not sure how i flooded on connect but o well Feb 08 00:19:36 not every op works at google Feb 08 00:19:43 thanks Chainfire lol Feb 08 00:19:54 why do you insist on ruining my fun, canadiancow Feb 08 00:19:57 want me to refer you to google? Feb 08 00:20:38 nah I'll save that for when I'm actually eligable for a work VISA in the US Feb 08 00:20:59 canadiancow, perhaps Feb 08 00:21:08 canadiancow, i'm aware you weren't talking to me ;) Feb 08 00:21:19 lol Feb 08 00:21:56 do something thati mpresses me and i will Feb 08 00:22:05 im not just going to submit your resume and say "he hangs out on irc" Feb 08 00:22:14 haha Feb 08 00:22:42 canadiancow, but, but, it's my greatest of talents Feb 08 00:23:19 gl with that Feb 08 00:23:25 canadiancow, working out so far ;) Feb 08 00:23:46 * jug6ernaut knows he is not ready, but one day he will contact canadiancow Feb 08 00:23:49 :P Feb 08 00:25:03 i think there are things that i could be successful at in google, i'm happy where i am :) Feb 08 00:26:53 where are you Feb 08 00:27:05 montreal Feb 08 00:27:12 i should say, i wish it was warmer but i'm happy where i am Feb 08 00:28:10 canadiancow, iirc you're in ontario? Feb 08 00:28:22 i was there Feb 08 00:28:25 until september Feb 08 00:28:45 ah, i'd really like to move to vancouver Feb 08 00:29:23 what's to like in vancouver? Feb 08 00:29:29 highways around vancouver are so shitty Feb 08 00:29:37 to get from point A to point B it's all inside roads Feb 08 00:29:46 soooo slow Feb 08 00:29:54 pfn, i spent a week there a couple of years ago visiting my now wife's extended family Feb 08 00:29:55 dunno if that's true of the rest of canada Feb 08 00:30:02 i loved it, went hiking, ate well Feb 08 00:30:06 but getting around in vancouver sucked Feb 08 00:30:18 i took the sky rail Feb 08 00:30:19 around BC at least Feb 08 00:30:39 man, you can go to the ocean, or up into the mountains Feb 08 00:30:46 it's temperate year round Feb 08 00:41:01 well, that was fun Feb 08 00:41:09 did everybody notice how Facebook took down half the internet just now ? Feb 08 00:41:26 my wife told me Feb 08 00:42:31 i lol'ed Feb 08 00:42:45 i, did not. Feb 08 00:42:48 notice, that is Feb 08 00:43:30 que? Feb 08 00:43:51 everything redirected to a facebook error for a sec Feb 08 00:44:11 9 minutes long, on my watch Feb 08 00:44:37 she only noticed it for a second Feb 08 00:47:22 I actually though that it was the site i was on attempting to auth with facebook for some tracking thing Feb 08 00:47:29 Chainfire, some programmer just commited to the prod branch by accident and went SHIT SHIT SHIT UNDO UNDO UNDO Feb 08 00:48:52 kaneda^: their process sounds pretty interesting: http://www.businessweek.com/articles/2012-10-08/the-only-earthling-with-a-facebook-dislike-button Feb 08 00:49:16 there is a guy in charge of that prod branch who probably has a very stressful job :) Feb 08 00:49:25 yah, i bet Feb 08 00:50:14 if you break prod at Facebook you get blacklisted for a while Feb 08 00:52:14 zhobbs, someone just earned a half-star demotion Feb 08 00:52:21 yep Feb 08 00:52:34 interesting article Feb 08 00:52:41 yah, pretty stressful i'd imagine Feb 08 00:52:47 it's a lot to keep in your head Feb 08 00:52:50 i have this xml: https://en.wikipedia.org/w/api.php?action=opensearch&search=api&namespace=0&format=xmlfm how can i easily extract a list of the Text and Url fields? Json makes it easy but looking up how to parse xml just makes me want to poke out my eyes Feb 08 00:53:22 i told them to add the Dislike button yearsss ago Feb 08 00:53:29 osxorgate: http://developer.android.com/training/basics/network-ops/xml.html Feb 08 00:53:35 jug6ernaut, you and everyone else ;) Feb 08 00:53:45 I once saw a video from some of their best web engineers after a major release update about how they (technically) speeded up the frontend. Felt more like a web-101 class. Feb 08 00:53:59 Frankly I'm surprised it doesn't break more often. Feb 08 00:53:59 hh Feb 08 00:54:06 haha* Feb 08 00:54:12 zhobbs: yes that's what's making me want to poke my eyes out Feb 08 00:54:23 Chainfire, lol, i bombed a phone screening with them once...because i had forgotten i even applied and i was kind of caught on the spot :D Feb 08 00:55:06 osxorgate: sorry…eventually you'll be able to parse XML and write list adapters in your sleep Feb 08 00:55:27 Anyone know what's the fastest XML seralizer for Android? Feb 08 00:55:29 zhobbs: well half of that i already do in my sleep.. i just have no experience with xml Feb 08 00:56:16 Chainfire, despite the reach of facebook, i cant imagine working there and thinking, "what i'm doing is important" Feb 08 00:56:27 hey, I have been unable to make these 10 rows automatically stretch to fit the screen. In Java I create a LinearLayout that fills the whole app space and add inflated copies of the pasted code that is the row. But the rows always look like their wrap_content because they're tiny and not stretching to fill the available space. I've had this problem for a long time and can't seem to fix it. Here's the code: http://pastebin.com/YBEPLG6a Feb 08 00:56:30 good night Feb 08 00:56:48 osxorgate: if the xml data you're parsing is small (<1mb) i'd just use a DOM object Feb 08 00:56:53 instead of using a pull parser Feb 08 00:57:07 yeah it is Feb 08 00:57:08 and then use its element search methods Feb 08 00:57:31 kaneda^: every once in a while there's a arab spring you can feel like you helped Feb 08 00:57:52 Anyone? Feb 08 00:58:18 doomrobo: hierarchyviewer Feb 08 00:58:21 tophyr: so DocumentBuilder ? Feb 08 00:58:29 tophyr, ? Feb 08 00:58:51 osxorgate: looks like it Feb 08 00:59:29 doomrobo: https://www.google.com/?q=hierarchyviewer Feb 08 01:00:16 tophyr, yeah, I'm looking at this Feb 08 01:00:19 hmm Feb 08 01:01:59 tophyr, huh, it says that the height is WRAP_CONTENT Feb 08 01:02:15 and the weight is 0 Feb 08 01:02:40 kaneda^, do you call 30F temperate? Feb 08 01:02:53 * pfn doesn't Feb 08 01:03:51 How is it possible that hierarchyviewer is showing me that it's WRAP_CONTENT and weight=0 when it's FILL_PARENT and weight=1? I explicitly put that information in the XML Feb 08 01:05:25 there, when I edit the inflated value in Java, it stretches Feb 08 01:05:55 doomrobo: after inflate are you assigning layout params ? Feb 08 01:06:04 StingRay_, yes Feb 08 01:06:14 why it doesn't work beforehand? I don't know Feb 08 01:06:21 in code Feb 08 01:06:24 inflate Feb 08 01:06:27 set layout Feb 08 01:06:31 addview Feb 08 01:06:48 yes Feb 08 01:07:12 cause it wont take the xml properties Feb 08 01:07:42 THANK YOU Feb 08 01:07:44 but why? Feb 08 01:07:52 (this problem has existed for about a year now) Feb 08 01:08:12 layout_* parameters are info for the parent of that element Feb 08 01:08:16 cause the layout params are hierachy dependant Feb 08 01:08:20 if you're inflating it into a null parent, they're ignored Feb 08 01:08:44 then when you add that view into a hierarchy, if they're not there they're set to defaults Feb 08 01:08:45 your xml root has no parent Feb 08 01:09:22 tricky sheet Feb 08 01:10:06 GODDAMN Feb 08 01:10:11 thank you guys very very much Feb 08 01:10:14 :) Feb 08 01:10:19 now to fix that NullPointerException... Feb 08 01:10:29 :D Feb 08 01:10:35 hehe :) Feb 08 01:10:56 glad i could do *something* productive today Feb 08 01:11:06 errr Feb 08 01:11:15 any way to add account to AVD ? Feb 08 01:11:28 account like what Feb 08 01:11:35 google/contacts Feb 08 01:11:48 i need to use viewHierachy on my contact picker Feb 08 01:12:30 it's a serious PITA, but it's possible. if you grab one of the gapps zips distributed by the various ROM guys, you can unzip it and install the apks Feb 08 01:12:38 i haven't figured out how to make it remotely stable though Feb 08 01:13:06 another thing i saw the other day that might make me look stupid - try the Google APIs emulator images Feb 08 01:13:11 i just want my 250+ contacts so my app can build picker ui and it not just show a blank window Feb 08 01:13:11 not sure if they come with that stuff, never used em Feb 08 01:13:25 ok swapping images Feb 08 01:16:05 yey Feb 08 01:17:34 offs Feb 08 01:17:40 no contact sync though Feb 08 01:18:28 great...cheers google Feb 08 01:23:48 zhobbs, i think it would be pretty outlandish to say you helped w/ the arab spring as a facebook engineer :D Feb 08 01:23:56 and pfn, 30F would feel pretty damn nice about now Feb 08 01:25:27 at least in montreal you get seasons tho Feb 08 01:25:36 tophyr, sometimes all in one day Feb 08 01:25:49 vancouver and seattle it's 30F in january and 50F in july Feb 08 01:25:52 gray skies, both Feb 08 01:25:58 kaneda^: the media says it, and they'd never say anything outlandish :) Feb 08 01:26:00 tophyr, it's so gray here as well ;_; Feb 08 01:26:09 zhobbs, true that Feb 08 01:26:24 it was so cold today that we got a nice clear sunny day, too cold for snow Feb 08 01:26:46 i'm looking forward to the storm because it'll mean higher temperatures :D Feb 08 01:51:16 I can't seem to get the google tv addon to run in an AVD... what device do I select? Feb 08 01:52:56 aaaand forgot my keystore password Feb 08 01:53:13 doomrobo, you're doomed Feb 08 01:53:26 I know most of it, just not how it ends. I'm gonna see if cracking it works Feb 08 01:53:55 * doomrobo knows an Uzbekistani drug dealer / cybercriminal who's got a nice supercomputer in his basement Feb 08 01:54:00 or not Feb 08 01:56:42 doomrobo, how many characters was it?? Feb 08 01:56:50 if you're only missing up to 6 characters no biggy Feb 08 01:57:34 around that much Feb 08 01:57:37 ...I hope Feb 08 01:58:21 that happened to me once Feb 08 01:58:42 and thinking back on it, i forgot to write down the password after remembering it, i hope no one ever has to update that app again in its lifetime Feb 08 01:58:55 oooo new preview SDK Tools out Feb 08 02:00:42 Is there a changelog, StingRay_? Feb 08 02:01:45 kakazza: I wish Feb 08 02:02:53 https://android-review.googlesource.com/#/q/status:closed+project:platform/sdk,n,z <---- Feb 4 + Feb 08 02:05:30 kakazza: "FYI, we've released Preview 3 of ADT 21.1. Bug fixes only. We're getting very close to release, so let us know if you encounter any glitches! http://tools.android.com/preview-channel " Feb 08 02:06:21 Can anyone who has used aSmack for XMPP on Android tell me why I keep getting this error? remote-server-timeout(504) Could not connect to talk.google.com:5222. Feb 08 02:06:28 the list of glitches on my preferred platform are too big to rant about, and known Feb 08 02:06:36 ctate, thanks. Feb 08 02:06:39 "Allow "all" to be used in the lint.xml file to match all issues" yay! Feb 08 02:12:29 I want to align android.widget.Gallery first item left aligned. any idea? Feb 08 02:12:42 ctate: What are the DO NOT MERGE commits? Feb 08 02:12:52 Are they to mark WIP commits? Feb 08 02:15:46 no, that's a token for our automergers Feb 08 02:16:11 often it means a change that was cherrypicked from mainline *downstream*, so shouldn't be propagated redundantly downstream again Feb 08 02:16:41 Ah, I see Feb 08 02:18:24 aw maannn.. ndk build failing because androidmanifest,xml has windows style newlines >.< Feb 08 02:18:26 ctate, automergers..? Feb 08 02:19:35 kaneda^, so let's say there's a cupcake branch and a donut branch Feb 08 02:19:40 and you make a change to cupcake Feb 08 02:19:46 the automerger merges your change into donut as well Feb 08 02:19:51 or rather, cherry-picks it Feb 08 02:20:03 mmm, delicious example canadiancow, ty Feb 08 02:20:15 we're talking about git still right? Feb 08 02:20:18 yes Feb 08 02:20:29 im not sure what a non-delicious example would be Feb 08 02:20:32 we are talking about android Feb 08 02:20:50 this may be a dumb question, but how do i make two branches of git auto merge? Feb 08 02:21:05 get an automerger? Feb 08 02:21:09 i dont think that's a standard git feature Feb 08 02:21:18 oh, i searched that and i got auto mergers, cars.. Feb 08 02:21:29 canadiancow, i was thinking that it would just be a cron job.. Feb 08 02:21:45 well ti depends what you want Feb 08 02:21:54 if all you want is for the donut branch to "git merge cupcake" every 5 minutes, then sure Feb 08 02:22:04 we dont use distribution, we have *a* development server Feb 08 02:22:04 but if you want to obey things like "DO NOT MERGE" Feb 08 02:22:14 it gets more difficult Feb 08 02:23:10 osxorgate: Really? Mixed newlines or just Windows newlines? Feb 08 02:23:36 kakazza: i assume pure windows, do most dev on windows but ndk -> mac Feb 08 02:24:51 kaneda^: Also, I'd use git hooks instead of a cron job for that. Feb 08 02:25:37 fair enough, that's on my list of things to learn kakazza Feb 08 02:25:47 yeah, it's a custom daemon that manages the branches we work with internally Feb 08 02:26:40 cool, honestly i've only had time to set up gitweb so we can view repo info online Feb 08 02:30:42 One step at a time. Feb 08 02:30:56 i have..a lot of responsibilities... Feb 08 02:31:01 Do you run a continuous integration server? That's pretty helpful imo Feb 08 02:31:41 continuous builds? yes. Feb 08 02:31:58 by which i mean oh dear god yes how could you not ;) Feb 08 02:32:37 What's your take on gerrit, ctate? We're currently doing the reviewing offline, sometimes via github pull requests, which is kinda like what gerrit does, I guess. I'm not aware of all of its capabilities, though. Feb 08 02:33:22 i haven't seen any of the new Gerrit-like features of github Feb 08 02:33:38 code review discipline is *wonderful* Feb 08 02:35:06 How exaclty does your workflow look like? We have tickets/stories, someone works on them in a feature branch, commits them, sends a pull request and others can then review it, see if there are tests etc then press "merge". Using github, that is. Feb 08 02:35:21 Because we're wondering if we should also incorporate gerrit. Feb 08 02:35:32 ctate, no debian package? Feb 08 02:36:40 kakazza: Gerrit focuses on code review. Github has some neat code review features, but Gerrit is certainly more involved. Feb 08 02:37:36 The right solution really depends on the organization. Feb 08 02:38:34 i cant even remember what we use for project management... Feb 08 02:38:44 i'm that far in the hole right now Feb 08 02:40:01 novie: I see, thanks. Feb 08 02:40:19 Guess I was hoping for a "yeah, that totally works in 100% of all cases!" ;) Feb 08 02:40:22 hi.. do I have to do anything in my app to get the "phone locked" screen after I press the power button and then press it again? it goes back to my app right away now Feb 08 02:40:30 (and some carrier doesn't like that) Feb 08 02:40:36 kakazza: does anything ever really work like that? :) Feb 08 02:40:55 No, one can dream, though! Feb 08 02:40:59 this brute force is making me very nervous Feb 08 02:41:06 if it failed I'm screwed Feb 08 02:41:11 punto, i have that issue with unity when i'm running the camera, it wont go away Feb 08 02:41:54 doomrobo, my advice to you is just start typing the password, your brain might let you remember through your fingers Feb 08 02:42:34 Oooh, muscle memory Feb 08 02:42:34 kaneda^, :( it was only used for the keystore Feb 08 02:42:45 but I think I just remembered it Feb 08 02:43:24 nope Feb 08 02:43:47 and I'm pretty sure the brute force will fail. I know the password but I inserted 3 characters somewhere in it Feb 08 02:43:49 doomrobo, dont remember it, just type Feb 08 02:44:21 kaneda^: can you override the java stuff on unity? Feb 08 02:44:26 Use the Force, doomrobo Feb 08 02:44:29 like, the Activity and all that? Feb 08 02:44:35 punto, you can make it go away, for sure Feb 08 02:44:39 unity is just very persistent Feb 08 02:44:50 punto, are you referring to somethign in particular? Feb 08 02:45:13 kaneda^: no, just curious. I'm not using unity (and I assume I have to do something in the Activity to solve this) Feb 08 02:45:50 well, unity build a project that you can use as a library to another project, then it's all about where you want the camera view or whatever you're rendering Feb 08 02:47:49 I can create an android emu with `avd create` passing in an API level as a target, but how do I get google APIs? Feb 08 02:48:02 (I.e., I want API level X but w/ google APIs) Feb 08 02:48:49 punto, well i see some stuff on stack overflow about the event handler for the screen turning off and on Feb 08 02:50:41 punto, http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/ <-- not sure if looking for this Feb 08 02:52:02 canadiancow, to retort, several hours and many thoughts later, my best skill is googling Feb 08 02:52:10 kaneda^: well, it's not exactly about it turning off.. it turns off fine, but when it comes back, it comes back to my app instead of going back to the "phone is locked" screen Feb 08 02:52:13 that's the problem Feb 08 02:52:24 and when you hit back the lock screen appears? Feb 08 02:52:54 kaneda^: when I turn the screen back on? no lock screen, just my app Feb 08 02:53:09 it's like I'm overriding the lock screen somehow or something Feb 08 02:53:24 punto, so you can then leave the app and you're back at the home screen? Feb 08 02:53:33 yeah Feb 08 02:54:15 when leaving the app does it take you to the home screen or lockscreen? Feb 08 02:54:35 leaving the app goes back to home screen Feb 08 02:54:47 ...that seems, improbable Feb 08 02:54:58 where is it supposed to go? Feb 08 02:55:17 lock screen if you actually hit the lock button Feb 08 02:55:26 even when the camera view satys in front, going back would bring me to lock Feb 08 02:55:32 and turning off/on the screen from the home screen does show the lock screen? Feb 08 02:55:53 yeah Feb 08 02:55:56 also from other apps Feb 08 02:56:17 when the screen turns on, it goes to the lock screen and then the app Feb 08 02:56:29 but mine goes back to my app directly Feb 08 02:56:29 punto, what are you doing in your app? Feb 08 02:56:36 it sounds like you have FLAG_DISMISS_KEYGUARD set on your activity's window Feb 08 02:56:37 p Feb 08 02:56:43 possibly with FLAG_SHOW_WHEN_LOCKED Feb 08 02:56:58 interesting Feb 08 02:57:31 i think DISMISS requires android.permission.DISABLE_KEYGUARD but i could be wrong on that. there's other calls to dismiss the lockscreen that certainly do require that permission Feb 08 02:57:33 but kevinb, he says it's not locked Feb 08 02:58:08 oh yeah, I have those Feb 08 02:58:11 window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED Feb 08 02:58:11 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON Feb 08 02:58:11 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); Feb 08 02:58:15 if the current activity has DISMISS_KEYGUARD and is already active you won't necessarily see the lock screen at all Feb 08 02:58:19 kevinb, DISABLE_KEYGUARD Feb 08 02:58:21 woops Feb 08 02:58:26 kevinb, http://www.androidsnippets.com/disable-initial-screen-lock Feb 08 02:58:37 erm, punto http://www.androidsnippets.com/disable-initial-screen-lock Feb 08 02:58:41 damn, i think i'm spent Feb 08 02:59:19 punto: yeah you don't need any of those flags Feb 08 02:59:34 so none of those are necesary for normal app opration? Feb 08 02:59:38 nope Feb 08 02:59:46 cool, thanks Feb 08 02:59:53 i hadnt seen them until now Feb 08 02:59:57 (we must have pasted them from some example) **** ENDING LOGGING AT Fri Feb 08 02:59:59 2013