**** BEGIN LOGGING AT Sat Mar 02 02:59:59 2013 Mar 02 03:06:04 <[1]Trinity> StingRay_: you stil there? Mar 02 03:16:19 so I'm still having the issue with this constructor, anyone willing to give a helping hand :) Mar 02 03:16:26 this is my code http://pastebin.com/VCSiZL1N Mar 02 03:16:52 this is the error I'm getting for the constructor The constructor SimpleAdapter(Gold_Visitor, ArrayList>, View, String[], int[]) is undefined Mar 02 03:46:14 Rob|boR: it's pretty easy to diagnose Mar 02 03:46:32 really? Mar 02 03:46:36 Rob|boR: the constructor takes a Context, List, int, String[] and int[] Mar 02 03:46:52 I'm guessing the issue is with the context Mar 02 03:46:54 you're giving it a Context, List, View, String[], int[] Mar 02 03:47:00 which of these things is not the same? :) Mar 02 03:47:16 what is VIEW Mar 02 03:47:19 lol Mar 02 03:47:50 it's a jeoperdy answer Mar 02 03:47:57 You're passing View where an int is expected Mar 02 03:48:08 so what should I put in it's place Mar 02 03:48:15 an integer? :) Mar 02 03:48:17 I thought the layout was supposed to be where int is supposed to be Mar 02 03:48:36 http://developer.android.com/reference/android/widget/SimpleAdapter.html#SimpleAdapter(android.content.Context, java.util.List>, int, java.lang.String[], int[]) Mar 02 03:48:41 "Resource identifier of a view layout that defines the views for this list item. The layout file should include at least those named views defined in "to"" Mar 02 03:48:55 so R.layout.blah Mar 02 03:49:18 that's what I tried :/ Mar 02 03:49:35 the layout should be the one wehre the fragment is right? Mar 02 03:49:40 I tried all the layoutfiles Mar 02 03:50:11 "Resource identifier of a view layout that defines the views for this list item" Mar 02 03:50:24 I'm not sure I could explain it any better than the docs. Mar 02 03:50:36 Whatever layout you want to use for the list items Mar 02 03:51:02 ok I pointed it to that Mar 02 03:51:55 the following ,R.layout.fragment_gold_visitor has the list view item, and I'm pretty sure it's set properly Mar 02 03:52:12 since it worked in a solo acitivity Mar 02 04:00:51 warp 3 mr zulu Mar 02 04:01:43 Mr Sulu :| Mar 02 04:02:21 and i'm not even a Trekkie :) Mar 02 04:02:38 * Tecan makes the sound of 1000 facepalms at once Mar 02 04:09:23 more like 1000 jedi mind melds Mar 02 04:12:53 you should both be ashamed of yourselves Mar 02 04:15:46 JesusFreke, I know the problem Mar 02 04:16:02 but since this is a fragment, I need to use View view and inflate the layout Mar 02 04:16:22 so the layout is still view, how do I go about canging it to int? Mar 02 04:20:37 Rob|boR: that doesn't make any sense. I'm sorry :) Mar 02 04:21:32 I mean that it's in a public View onCreateView and in it I have View view = inflater.inflate(R.layout.fragment_name, null); Mar 02 04:21:54 so that's probably why my constructor still thinks its view and not INT Mar 02 04:22:13 Hi [1]Trinity Mar 02 04:22:42 <[1]Trinity> hello Mar 02 04:23:47 I'm having a problem with my constructor :/ because it needs an int, and my layout is inflated and sent as View view Mar 02 04:26:06 pastebin Mar 02 04:27:32 http://pastebin.com/1SFRieNi Mar 02 04:28:00 this is the error: The constructor SimpleAdapter(Gold_Visitor, ArrayList>, int, String[], int[]) is undefined Mar 02 04:28:19 since it's a fragment, I need to inflate the layout Mar 02 04:28:23 right? Mar 02 04:30:39 try Gold_Visitor.this Mar 02 04:30:48 no idea why youre naming your Java files with a _ though Mar 02 04:31:05 in the adapter right? Mar 02 04:31:21 yes Mar 02 04:31:52 ok, I've changed it to this new SimpleAdapter(Gold_Visitor.this, mylist ,R.layout.fragment_gold_visitor, Mar 02 04:31:52 new String[] { "name", "magnitude" }, Mar 02 04:31:52 new int[] { R.id.item_title, R.id.item_subtitle}); Mar 02 04:32:03 and cleaned the project, but same thing Mar 02 04:36:52 sorry im a bit busy but Mar 02 04:36:53 android.widget.SimpleAdapter.SimpleAdapter(Context context, List> data, int resource, String[] from, int[] to) Mar 02 04:36:57 thats the constructor Mar 02 04:37:23 its okay Mar 02 04:37:31 i think I have that though, except the int resource Mar 02 04:37:40 mine is View resource Mar 02 04:45:52 Rob|boR, ImageView. The expected bind value is a resource id or a string and setViewImage(ImageView, int) or setViewImage(ImageView, String) is invoked. Mar 02 04:45:58 http://developer.android.com/reference/android/widget/SimpleAdapter.html refer to this Mar 02 04:47:05 hmm Mar 02 04:48:48 this will fix your error, just figure it out Mar 02 04:48:48 http://developer.android.com/reference/android/widget/SimpleAdapter.html#SimpleAdapter%28android.content.Context,%20java.util.List%3C?%20extends%20java.util.Map%3Cjava.lang.String,%20?%3E%3E,%20int,%20java.lang.String[],%20int[]%29 Mar 02 04:49:20 Is there a rule for have MyThingActivity.java and your layout activity_my_thing.xml ¿? Mar 02 04:49:48 the only issue I see with my adapter is the resource Mar 02 04:50:02 that defines views for this list item Mar 02 04:50:03 hmm Mar 02 04:59:29 [2013-03-02 00:59:16 - Emulator] WARNING: Data partition already in use. Changes will not persist! Mar 02 04:59:30 And it keeps opening a new emulator.... Mar 02 05:00:35 KaiKai, SUCCESS!!! lol Mar 02 05:00:35 :D Mar 02 05:00:40 that pesky error is gone Mar 02 05:08:16 this is really ODD ,the app is crashing because error parsing data Mar 02 05:08:26 but in the stand alone app, it parsed with no issues Mar 02 05:57:53 ugghhhhhhhhhh Mar 02 06:03:09 hello, i'm trying to get the viewpager from a fragment activity so i can falsely 'swype' the screen to the next fragment, any idea on how i can do that? Mar 02 06:15:25 how can i make a custom layout that has rounded edges and looks like this http://sphotos-b.xx.fbcdn.net/hphotos-ash3/644332_10200764976349431_308981157_n.jpg ? Mar 02 06:26:28 you don't need a custom layout Mar 02 06:26:34 you need a 9-patch set as the background Mar 02 06:29:13 can somebody help me with a jquery issue? it's for my android app but i dunno if it's on topic Mar 02 06:29:31 its not Mar 02 06:31:56 hey guys Mar 02 06:32:12 I am wondering, if default laucher still uses android.view.View Mar 02 06:34:02 ? Mar 02 06:34:13 it uses android.view.SuperMegaView Mar 02 06:34:55 everything on the entire platform uses android.view.View Mar 02 06:43:33 jake Mar 02 06:43:37 i love you Mar 02 06:44:55 thank you for your help Mar 02 06:46:56 Is it neccisary to use ClipData with a clipboard manager because its turning out to be null Mar 02 06:47:04 All I want to do is setText() Mar 02 07:03:28 I'm having some performance issues in my app at the start of it I see it happen because GC is run and after it runs 3 - 4 times then it starts running well executing the same task. I believe that it's because it hasn't allocated enough memory and once java has taken care of that performance issues go away. Can anyone explain to me how I could avoid this issue? Mar 02 07:16:32 how do i put stuff on the sdcard.img Mar 02 07:16:44 mount it and edit ? Mar 02 07:18:14 Bear10: don't create too many objects Mar 02 07:18:35 avoid creating new objects as much as possible Mar 02 07:18:37 BtbN, I'm trying heh, but i need like 200 of them (they can be reused) Mar 02 07:18:54 and i tried creating a pool, but up until the 200 are created i think it is that the GC keeps running and you notice the performance hit Mar 02 07:19:17 If the 200 Objects are still in use, GC won't care for them Mar 02 07:19:45 BtbN, they are however i think what's happening is not enough memory is allocated at that point, so GC runs several times, then the heapsize increases Mar 02 07:19:52 i could be wrong though, its just what im seeing in logcat Mar 02 07:20:30 nm got it with a push haaaa Mar 02 08:12:46 im just about to setup allowing Facebook login to log into my app. i'm curious about one thing though Mar 02 08:13:03 not everyone will have a facebook account, so i also want to support my own login/password account option Mar 02 08:13:35 so, for people who choose to use the facebook login, is it recommended that we just silently create an account for my own app in the background, that references the facebook account info? Mar 02 08:15:58 Hey, im extending View into some custom view. i want my view to expand to the maximum height/width. not sure what i should handle onMeasure(), my view will go into an empty LinearLayout Mar 02 08:20:24 DanielBusan: why not google account? Mar 02 08:20:59 i may support that down the road, but first i would look at kakao Mar 02 08:21:10 i'm in south korea, where it's 80% kakao, 19% facebook Mar 02 08:21:21 It seems like on an Android device, a google account would almost be a given Mar 02 08:21:36 yea, most of the people here have samsung devices but no gmail accounts Mar 02 08:21:39 it's all naver Mar 02 08:21:50 eh, fair enough I guess :) Mar 02 08:22:09 but i'm still not 100% clear on how the facebook accounts will map to my local accounts Mar 02 08:22:21 my current local User db table has login, password, email, etc. Mar 02 08:22:49 im not sure what i'll get from fb and how to work it in Mar 02 08:23:07 maybe i just need to add a column fbID, fbEmail, fbName Mar 02 08:23:27 yeah, that sounds like a likely approach Mar 02 08:23:39 im taking a look at the various sdk and tutorial pages. but at first glance, none of them will walk through how to integrate it into my own app's server db Mar 02 08:28:23 wow, romain guy visits this channel? Mar 02 08:46:17 BtbN, found out what the problem was a while ago just thought id let you know. It was a setText() call in my update() method, and it kept creating instances of StringBuilder to update some text Mar 02 08:46:58 So now you're using the same StringBuilder and just reset it, and it's faster? Mar 02 08:57:48 BtbN, yeah Mar 02 08:58:19 it was also because it kept recreating textures (part of the library) so i just create it once and then don't create it anymore Mar 02 08:58:47 thankfully DDMS helped with identifying the problem Mar 02 09:31:38 :> Mar 02 09:38:58 hello everyone Mar 02 09:39:44 can anyone tell me what exactly is behavious of VIEW v element in android..how it is linked to canvas Mar 02 10:06:28 hello Mar 02 10:06:42 hello there Mar 02 10:07:16 I have a problem with this method, http://pastebin.com/7NDmHLk0 it's working on Android <4.2 but not on 4.2 and newer Mar 02 10:07:17 any idea? Mar 02 10:07:41 I get: pad block corrupted Mar 02 10:10:36 added the other method here: http://pastebin.com/1uQE3U15 Mar 02 10:15:08 the line giving the error is byte[] decrypted = cipher.doFinal(encrypted); Mar 02 10:16:05 i think problem might have start when you choose the platform for you application..u should choose lowest compatible android and target devices.. or I think the new apis have changed..that's all i can guess Mar 02 10:16:38 good morning. i have an issue with my app and only ONE famous mobile phone. how can i debug this problem if i dont have this phone? Mar 02 10:18:13 Styler2go: Use simulator and try to replicate similar configs may help. Mar 02 10:18:43 its a htc phone, i dont think i get exactly the same (with htc sense etc.) Mar 02 10:18:54 Hey guys, is it normal that geo fix doesn't retain the mock gps location? After a while, the gps location disappears. Mar 02 10:19:08 I have an htc one x heh Mar 02 10:19:24 the error appears on htc one s .-.- Mar 02 10:19:33 but only on this phone Mar 02 10:20:52 im displaying a map using a custom view, i want to enable scrolling, which events do i need to catch to get notified touches the screen and slides it? is it onTouch? Mar 02 10:20:54 heh Mar 02 10:21:09 onTouch Mar 02 10:21:27 This geo fix thing fustrated me. I remember long time ago, it did retain the gps location Mar 02 10:21:50 i never did something with gps, sry :( Mar 02 10:21:52 Styler2go: how do i get the slide direction using onTouch? Mar 02 10:22:13 wait a second Mar 02 10:23:13 .setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return false; } }) Mar 02 10:23:21 thanks Mar 02 10:23:23 the MotionEvent will give you values Mar 02 10:23:31 for x or y Mar 02 10:28:10 can anyone tell me what exactly is behavious of VIEW v element in android..how it is linked to canvas Mar 02 10:31:12 It draws onto a canvas Mar 02 10:45:33 SimonVT: thanks for reply..but VIEW v is also used to hold the objects ...does it act as a container also.. Mar 02 10:45:53 Any class is used to hold objects Mar 02 10:45:56 hmm.. how could i debug a problem that only occurs on one phone...? Mar 02 10:47:01 can you tell me the exact behaviour of VIEW v elements...the developer site could not help.. Mar 02 10:47:41 Look at the source, or be more specific Mar 02 10:49:36 SimonVT: I dont know exactly where it happens Mar 02 10:52:36 i will insert error logs which will be sent to me... i hope this will help .. Mar 02 10:53:23 SimonVT: public void onClick(View v) {//some code } why is VIEW in argument..because view has not been defined by the developer it is used as it is?? how does it works..?? it would be great help Mar 02 10:55:06 It's the view you're clicking Mar 02 10:55:28 what's the best date type in java? Mar 02 10:55:38 Date? or Calendar or Joda Time? Mar 02 10:55:45 which part of screen is the view...is it the whole screen by default?? Mar 02 10:55:46 i have to deal with timezones Mar 02 10:56:04 calendar Mar 02 10:56:08 hello guys Mar 02 10:56:39 Styler2go: i have 2 further questions Mar 02 10:56:44 ace_striker: A view can be everything you see... TextView... LinearLayout... Mar 02 10:57:04 Styler2go: can you serialize/deserialize a calendar from a xsd:dateTime ? Mar 02 10:57:05 ace_striker: also the complete part of screen Mar 02 10:57:20 is there another way to insert records in sqlite i am doint this db.execSQL("insert into usuarios (departamento,nombre,extension,celular,email,loginname,clave,nombrenetbios) values('"+ departamento + "','"+nombre+ "','"+extension +"','"+celular+"','"+ email+ "','"+ loginname+"','"+clave+"','"+nombrenetbios+"')");, but i need to add 10 fields more, is there one way to use parameteres into sqlite Mar 02 10:57:40 tona: yes Mar 02 10:57:51 use sqlte parameters with ? and an array of parameters Mar 02 10:57:54 public void onClick(View v) {//code} ok..fine .. but what is View v in this argument Mar 02 10:58:16 monsti Mar 02 10:58:18 view is the thing u are clicking on? Mar 02 10:58:22 do yuo have a example Mar 02 10:58:35 tona: the sdk has a lot of examples Mar 02 10:58:43 hold i'll check for the name Mar 02 10:58:49 monsti: I dont know. Calendar will be created with Calendar = Calendar.getinstace() not new Calendar... Mar 02 10:59:16 Styler2go: i also might have to cut off timezones from the xsd:dateTime Mar 02 10:59:17 but i haven't defined it.. Mar 02 10:59:30 Styler2go: i will investigate this further Mar 02 10:59:38 i m just using as an abstract argument Mar 02 10:59:41 ace_striker: where you add the onClick? Mar 02 10:59:56 hm.. Mar 02 11:00:18 monsti: you can tell the calender in which timezone you are Mar 02 11:00:41 tona: use rawQuery instead of execSQL Mar 02 11:01:04 tona: you use ? as the parameter placeholder and an array of string with your paremeters Mar 02 11:01:37 i am looking for a example in google but i havent found yet Mar 02 11:01:54 tona: e.g. insert into foo(bar) value ? .... , new[] String { "bar" } Mar 02 11:02:34 tona: google "sqlite android parameter" 2nd and 3rd hit Mar 02 11:02:45 ok Mar 02 11:03:06 tona: note! there are 2-3 different ways to use parameters in android Mar 02 11:03:40 which are the differences Mar 02 11:03:41 How to show a progress bar without a dialog while an AsyncTask is finishing it's work (in onProgressUpdate) ? Mar 02 11:03:53 Styler2go: thanks ..what i can now manipulate is before using an object one must access it by findbyView method and then to do onclick think i have to create it with new View..thing and then to add functionality on onclick i am passing the argument of (View v).. Mar 02 11:04:38 tona: basically there are none - just different apis for different problems Mar 02 11:06:24 Styler2go: but what if we have multiple onclicker button then won't it be chaos for (view v) to choose which click..[just the last doubt] Mar 02 11:06:30 o thing else why did you tell me use rawquery rather than execsql Mar 02 11:07:07 ace_striker: the onclick will everytime be the view you clicked on.. you cant add two onclicks to one view? Mar 02 11:07:51 ok..now i got it.. Mar 02 11:08:31 Styler2go: thanks.. myfriends were frustrated with this doubt.. Mar 02 11:08:45 np ace_striker :) Mar 02 11:09:58 btw ..was the doubt upto askable or doubltful .. Mar 02 11:10:49 ? Mar 02 11:11:30 i mean was the doubt upto mark.. Mar 02 11:11:58 i dont get what you mean.. sorry :o Mar 02 11:12:09 my english is not the best^^ Mar 02 11:12:41 i mean what was the level of my doubt.. Mar 02 11:13:19 ah :D hmm. i would say beginner Mar 02 11:14:16 that's all i wanted to ask Mar 02 11:14:26 :) Mar 02 11:14:39 :) Mar 02 11:17:11 the tutorials in this section are enough for starting android development? http://developer.android.com/training/index.html Mar 02 11:17:31 yes Mar 02 11:18:07 hello all Mar 02 11:18:13 hello Mar 02 11:18:16 is there a channel for new developers ? :) Mar 02 11:18:29 I don't wanna spam here with extreme noob questions :) Mar 02 11:18:30 Styler2go, but every training have prerequisites in other section argh Mar 02 11:18:33 for what? you can ask here Mar 02 11:19:03 m8: are you completly new or do you just want to learn something new? Mar 02 11:19:19 ok, is there a way to create a listener which can access objects outside it's body (scope) ? Mar 02 11:19:43 Styler2go, i've readed about 150 pages of an android book Mar 02 11:19:45 you can create a final variable before the listener Mar 02 11:20:01 I mean I have edittext, textview and button instantiated in code and I wrote and registered listener to the button Mar 02 11:20:07 m8: Why not just do one project and learn by doing for now? Mar 02 11:20:09 Styler2go, Professional Android 4 Application Development Mar 02 11:20:27 now what I wanted to do was enter some text into edittext, press the button and then copy edittext text into textview :) Mar 02 11:20:30 Styler2go, the project i want to do is difficult :D Mar 02 11:20:35 KaiSVK: Use prvate or finals Mar 02 11:21:26 Styler2go, but if i follow some exaples i'll know android capabilities Mar 02 11:21:35 KaiSVK: for example: http://pastebin.com/UsczPFRi Mar 02 11:22:16 m8: maybe first do another project or a very small function of your app just to get in touch ;) Mar 02 11:22:41 Styler2go, the google training examples is aren't good? Mar 02 11:22:50 *Styler2go, the google training examples aren't good? Mar 02 11:23:02 i never read them but i guess they are good Mar 02 11:23:32 and i think are updated and with much less errors than a book Mar 02 11:23:44 yes Mar 02 11:24:10 the book i've readed was a pain! Mar 02 11:24:30 oh :( Mar 02 11:25:00 hey m8 for a quick summary of what you can do on android check mybringback channel on youtube, that guy has helped me a lot when I was a noob Mar 02 11:25:26 good Mar 02 11:26:18 it's a series of quick fast tutorials, definitely not very advanced but perfect for starters Mar 02 11:32:10 i hate those guys who copy youtube videos and reupload exactly the same... Mar 02 11:32:18 Styler2go: http://pastebin.com/MwVcPQXp Mar 02 11:32:34 Styler2go: this is what I am trying to do :/ Mar 02 11:32:47 should work this way, or? Mar 02 11:33:02 Styler2go: I am clicking the button but it doesn't do anything :) Mar 02 11:33:11 Styler2go: I am worried about that final word Mar 02 11:33:14 you want textview.setText(edittext.getText) or? Mar 02 11:33:24 Styler2go: yes Mar 02 11:33:31 you are setting exaclty the same text Mar 02 11:33:37 textview.setText(textview.getText());, doesn't that set it to the exakt same text? Mar 02 11:33:39 in this code Mar 02 11:33:40 exact* Mar 02 11:33:52 oh Mar 02 11:33:54 ou :D Mar 02 11:33:57 ;) Mar 02 11:34:09 change it to edittext.getText().toString() Mar 02 11:34:28 thank you guys Mar 02 11:34:34 I was just ... you know confused Mar 02 11:34:40 :D np Mar 02 11:35:12 I was thinking like: "When I create them as final (which I googled out already :) ) I wouldn't be able to enter anytext as they are final" :) Mar 02 11:35:37 you cant reaisgn them like textview = anewbutton Mar 02 11:35:43 but you can use the functions like setText Mar 02 11:36:19 Styler2go: :)))) my Java class was poor and it was like to years ago Mar 02 11:36:29 :D Mar 02 11:36:29 Styler2go: so basically when you set variable to final Mar 02 11:36:45 final sounds like something close to const? Mar 02 11:36:47 Styler2go: you can assign it just once for exaple with and object instance Mar 02 11:36:54 anto__: exactly ! :) Mar 02 11:37:07 mkay Mar 02 11:37:13 Hi! Can anybody tell me if there is any big differences between painting on a canvas with onDraw compared to awt:s paint-method Mar 02 11:37:13 yes KaiSVK Mar 02 11:37:36 Styler2go: you can not assign any other object instance to it, but you can still change the original instance fields correct ? :) Mar 02 11:38:04 silly me :) I spent all the morning googling it :) Mar 02 11:38:09 :D Mar 02 11:38:25 and I googled that final thingy :) but ... I got it wrong Mar 02 11:38:29 thank you guys ! :) Mar 02 11:38:33 np :) Mar 02 11:39:07 Styler2go: guess I am a long way from coding my app accessing Moodle ;) but I believe I will get there :) Mar 02 11:39:22 * KaiSVK is going to try image buttons :) Mar 02 11:39:26 are you german? Mar 02 11:39:35 Styler2go: no :) Slovak :) Mar 02 11:39:40 oh ok Mar 02 11:39:49 Styler2go: are you ? :) Mar 02 11:39:49 i entered moodle on google and there ame some german sites Mar 02 11:39:55 thats why i wondered :D Mar 02 11:40:08 what is moodle? Mar 02 11:40:27 Styler2go: Moodle is LMS - learning management system Mar 02 11:40:41 Styler2go: web based elearning system Mar 02 11:40:43 ah Mar 02 11:40:46 ok :) Mar 02 11:40:56 so this page was correct Mar 02 11:41:10 Styler2go: now I am going to do an app, which will work with it through mobile services --> outputs in XML parsed and displayed in my android app :) Mar 02 11:41:23 as part of my Masters :) Mar 02 11:41:35 i hate xml in android Mar 02 11:41:43 json is sooo much easier to use Mar 02 11:41:52 i am trying to use sqlite parameters but dont indert anything this is my code http://pastebin.ca/2327321 Mar 02 11:42:30 Styler2go: originally I am a networking guy but I chose doing some android app for my Masters thesis to ... you know widen my abilities :) Mar 02 11:42:55 tona: if i would be at work i could help you, we are doing something like that but right now i cant help, sry Mar 02 11:43:00 Styler2go: I was never a coder/programmer but all the folks around me say I have talent for it :) I don't know ... switches and routers and firewalls are usually my realm :) Mar 02 11:43:21 Styler2go: are you doing android as a pro ? :) I mean as your job ? :) Mar 02 11:43:31 KaiSVK so you can setup my root server with a good firewall software? :D :D Mar 02 11:43:46 i am working as a developer, yes Mar 02 11:43:54 not only android, i am kinda new to android Mar 02 11:44:21 tona: looks fine - what's the problem? Mar 02 11:44:41 tona: do you have a table in the datababse? Mar 02 11:45:02 KaiSVK: what ip address is this? 0e8b614d Mar 02 11:46:14 yes i have a table Mar 02 11:46:35 inf fact of was workign fine but i change it parametres and start my problem Mar 02 11:52:06 monsti Mar 02 11:55:23 woah Mar 02 11:55:29 someone good at regex? Mar 02 11:55:57 i want so search every catch (*) { } and insert one line... Mar 02 12:02:48 Styler2go: ask eclipse to reformat your code Mar 02 12:03:02 make sure the formatter has your new preference ;) Mar 02 12:03:20 well, that could change quite a bit. make sure you know what you're doing :) Mar 02 12:04:26 auto-generated code is evil Mar 02 12:05:53 at my code http://pastebin.ca/2327321 i am trying to insert information into my table before to use parameters was working fine i switch it to improve my code but i dont know what i am missing Mar 02 12:06:00 pragma-: that's no IP address :) Mar 02 12:06:06 wrong Mar 02 12:06:22 pragma-: what is the right answer ? :) Mar 02 12:06:37 14.139.97.77, obviously Mar 02 12:06:46 :D Mar 02 12:07:02 pragma-: well not very usual way of writing IP addresses ;) Mar 02 12:07:13 an ip address is just a large number Mar 02 12:07:21 pragma-: that's correct Mar 02 12:07:43 pragma-: but usually we work with dotted deciaml form ;) Mar 02 12:08:23 i'd expect someone claiming to be an expert with networking to know how to convert ip addresses Mar 02 12:08:28 Styler2go: well it depends on what you need from firewall software ;) Mar 02 12:08:58 pragma-: call it professional deformation, but I have never ever used or see someone use IP address in hexadecimal form :) Mar 02 12:09:24 pragma-: or in hex ... Mar 02 12:10:03 pragma-: and I didn't claim I am an expert ;) Mar 02 12:12:08 nice, facebook login initial integration into my app worked quite smooth~ Mar 02 12:13:38 I have a probleme using maven with android, I'm using eclipse m2e plugin. Apklibs are not recognized as dependency. Mar 02 12:14:27 DanielBusan: now you can start collecting facebook usernames and passwords Mar 02 12:23:52 KaiSVK: i just need to block if an ip is send to many requests per minute :D Mar 02 12:37:04 Styler2go: sounds more like you need an IPS :) Mar 02 12:42:15 maybe :D Mar 02 12:50:41 Hi! Can anybody tell me if there is any big differences between painting on a canvas with onDraw compared to awt:s paint-method. More about it here http://goo.gl/cL9yz Mar 02 13:02:03 Styler2go: btw I am doing that XML stuff :) I downloaded some simple REST client and I am able to communicate with my moodle instance :) Mar 02 13:02:25 i hate to use xml in android :D Mar 02 13:02:32 json is much easier :D Mar 02 13:02:52 Styler2go: why ? :) I have several mobile services to chose from... it doesn't have to return xml Mar 02 13:03:00 Styler2go: I will look for json then ;) Mar 02 13:03:20 xml takes much more code, json is only one codeline Mar 02 13:03:28 and xml uses more bandwith Mar 02 13:03:44 which is important for mobile usage i think Mar 02 13:05:54 Why does the play store says that my phone isn't supported when I checked it in the developer console? Mar 02 13:06:09 what did you checked? Mar 02 13:06:20 did you checked android version too? Mar 02 13:06:24 Yeah Mar 02 13:06:35 cann you give me a link to your application in store? Mar 02 13:06:35 I released an app a few days ago and it runs fine almost everywhere Mar 02 13:06:44 but so far, 2 people complained about 'not being compatible' Mar 02 13:06:52 1 person with a wildfire, 1 person with and xperia ray Mar 02 13:07:14 https://play.google.com/store/apps/details?id=be.ugent.zeus.hydra Mar 02 13:07:16 so hey have an older android? Mar 02 13:07:34 They both have 2.2 Mar 02 13:07:38 Not modded or something Mar 02 13:08:27 maybe you didnt allow all screen sizes? Mar 02 13:08:56 Is that something I check in the developer console or in my app itself? Mar 02 13:09:35 http://img703.imageshack.us/img703/3258/climsyclipboardd.png Mar 02 13:09:48 in the details of your APK tab in developer console Mar 02 13:10:28 it has all textures Mar 02 13:10:29 and small Mar 02 13:10:29 normal Mar 02 13:10:29 large Mar 02 13:10:29 xlarge Mar 02 13:10:32 as screen sizes Mar 02 13:10:35 you can also look which functions your app needs and if these devices have these functions Mar 02 13:10:55 android.hardware.LOCATION Mar 02 13:10:56 android.hardware.location.GPS Mar 02 13:10:56 android.hardware.location.NETWORK Mar 02 13:10:56 android.hardware.screen.PORTRAIT Mar 02 13:10:56 android.hardware.TOUCHSCREEN Mar 02 13:10:58 nothing weird there? :p Mar 02 13:11:06 finally, search under compatible devices for those devices and see if its in there Mar 02 13:11:17 Yup, they're there Mar 02 13:11:17 http://img811.imageshack.us/img811/8122/climsyclipboardjs.png Mar 02 13:11:22 uhm Mar 02 13:11:30 maybe they are doing something wrong? Mar 02 13:12:18 No idea, they sent me a screenshot of the app in the play store which said 'incompatible' Mar 02 13:12:34 on the phone? Mar 02 13:12:38 Silox|: they using a custom rom ? Mar 02 13:12:54 StingRay_: Nope, standard 2.2 Mar 02 13:13:01 Styler2go: both on the phone and in the browser Mar 02 13:13:09 uhm Mar 02 13:13:45 can you paste your Mainfest without the part? Mar 02 13:14:03 pastebin Mar 02 13:14:05 :) Mar 02 13:14:11 yes^^ Mar 02 13:15:03 http://pastebin.com/jfWsJUuh Mar 02 13:15:24 could it be android:glEsVersion="0x00020000" ? Mar 02 13:15:32 Mar 02 13:15:41 yes Mar 02 13:15:48 this feature could be the problem Mar 02 13:15:58 The Gservices or the glEsVersion? Mar 02 13:16:07 because they have the play store installed - so they have the google services Mar 02 13:16:07 esversion Mar 02 13:16:31 Well, google maps v2 needs it :< Mar 02 13:17:18 use v1 :D Mar 02 13:18:07 http://stackoverflow.com/questions/7020324/what-version-of-opengl-does-htc-wildfire-support Mar 02 13:18:15 thats the problem i think Mar 02 13:18:21 Is someone knowledgeable about controller pattern (inbox/outbox handlers) in Android? I am a bit confused about implementing it, when using AsyncTaskss Mar 02 13:18:31 Aha, ok, thanks! Mar 02 13:21:46 ah nevermind, I think I got it. I pass the controller object to the AsyncTasks and they issue a message to the controller's outbox Mar 02 13:36:02 if i have a picture with black bars on top and bottom, is there a way to cut? Mar 02 13:46:33 hi Mar 02 13:46:45 can android connect to sql server database? Mar 02 13:46:48 anyone? Mar 02 13:47:16 dont do that Mar 02 13:47:18 ti insecure Mar 02 13:47:21 oh wait Mar 02 13:47:22 why? Mar 02 13:47:25 you mean sql not mysql :D Mar 02 13:47:33 then how can i program to connect to sql server then Mar 02 13:47:38 yeah Mar 02 13:47:40 the MS SQL Mar 02 13:48:00 http://stackoverflow.com/questions/5255984/connecting-android-with-ms-sql-server-2008 Mar 02 13:48:25 never connect directly in an app^^ Mar 02 13:49:59 don't understand after read Mar 02 13:50:15 you should use a web layer as bridge Mar 02 13:50:22 some php script or something like that Mar 02 13:50:40 that meant i have to call from a web site? Mar 02 13:50:48 can't do directly? Mar 02 13:50:52 lol Mar 02 13:51:06 you would send the query to the php script and as answer, for example, the data as json Mar 02 13:51:20 then you have the data fromt he db as json Mar 02 13:51:52 man, they should make it connect directly just like any other dev tools Mar 02 13:52:07 its insecure Mar 02 13:52:33 unless you got the example :) Mar 02 13:52:42 i dont understand json or whatever thing Mar 02 13:52:56 json is easy Mar 02 13:56:50 if i have a picture with black bars on top and bottom, is there a way to cut? Mar 02 13:58:13 erm, photoshop ? Mar 02 13:58:20 MS Paint Mar 02 13:58:24 xnview Mar 02 13:58:25 i mean programmatically :D Mar 02 13:58:59 the background is: my app is loading thumbnails from youtube and they have blakc bars if the video has them, of course Mar 02 13:59:12 load it into a RGB array I suppose Mar 02 13:59:37 then go through and get the dark parts and positions Mar 02 13:59:43 bit tricky I would think Mar 02 13:59:49 hmm Mar 02 14:01:53 Why eclipse in windows is better than eclipse in ubuntu? It's possible? Mar 02 14:03:01 m8: what? Mar 02 14:03:22 StingRay_, in windows is much responsitive than ubuntu Mar 02 14:03:32 it's a my issue? Mar 02 14:03:42 and UI looks like better Mar 02 14:07:58 m8 well you have more customization options with linux Mar 02 14:08:06 so no, dont agree Mar 02 14:08:09 :) Mar 02 14:08:14 your problem I would think Mar 02 14:08:15 :) Mar 02 14:08:50 StingRay_, for example? :) Mar 02 14:09:05 in linux i've to manually add usb devices Mar 02 14:09:54 m8: example of what ? Mar 02 14:10:05 customization options Mar 02 14:10:41 erm..are you being serious Mar 02 14:10:45 #linux Mar 02 14:11:06 ah! Mar 02 14:11:28 StingRay_, in general not specific android options Mar 02 14:11:39 StingRay_, i prefer linux for developing but in windows eclipse run much better :) Mar 02 14:12:08 well I still think that would be down to u Mar 02 14:12:26 as I have done many performance tests in my time relating to windows Vs linux Mar 02 14:12:45 and have never seen windows come out on top Mar 02 14:12:56 well mainly VFX tests but still Mar 02 14:54:45 How do I get a reference to child views (e.g. TextView) in a fragment in order to update data from a method (not onCreate)? Mar 02 14:56:43 My app keeps crashing on this line: public void updateRequestData(ICSRequest request) { Mar 02 14:56:44 TextView requestDescriptionView = (TextView) getView().findViewById(R.id.requestDescription); Mar 02 15:01:03 where/why calling getView() ? Mar 02 15:01:49 can i tell a imageview to scale the image up to 150%? Mar 02 15:02:48 Styler2go: in code you can do almost anything Mar 02 15:02:58 quite odd to ask :) Mar 02 15:03:07 and not-in-code? Mar 02 15:04:13 well with a custom view yeah Mar 02 15:04:29 ok and in-code, how can i do that? :D Mar 02 15:04:57 google Mar 02 15:05:01 scale bitmap android Mar 02 15:05:03 :) Mar 02 15:05:16 ok Mar 02 15:08:50 greypoint probably you are calling that when no view is present, getView() returning null Mar 02 15:13:11 xorgate: maybe, but it's being called after the fragment is being added to the view....I think. Mar 02 15:13:39 greypoint: after that fragment has created and returned the view ? Mar 02 15:13:58 what's the "proper" way to signal an update to the data once the view is created or at any other time? Mar 02 15:14:43 so I have two conditions...if it's a tablet the fragment is always there....on a phone it gets added and then the data needs to be refreshed. classic Master/Detail. Mar 02 15:14:47 well find it set it etc, but only do that when it's there Mar 02 15:15:26 look at the fragment lifecycle to know when something is where Mar 02 15:16:05 yeah, I've seen that. I'll look a little closer :) thanks. Mar 02 15:25:52 hey guys - quick question - any idea how i can root an android tablet? (android 4.1 , it's an allview - small romanian company that makes them, most likely a modified chinese rom ( kernel 3.0.8-geec2035-dirty ) Mar 02 15:26:02 /join #android-root Mar 02 15:26:16 thanks Mar 02 15:26:27 it even said so in the topic Mar 02 15:31:42 Is anybody else going mad over malfunctioning touchscreen when the phone is plugged in via usb? Mar 02 15:39:40 my moto droid used to do that Mar 02 15:40:15 what is the height of a picture with a width of 100 if i want a ratio 16:9? :D Mar 02 15:40:47 really? Mar 02 15:41:05 100/16*9 Mar 02 15:41:07 100 / 16 * 9, or? Mar 02 15:41:11 i was not sure Mar 02 15:41:32 well 16 = width 9= height Mar 02 15:41:36 hence widescreen Mar 02 15:41:40 wider than taller Mar 02 15:42:31 Styler2go: you dont need the "or?" Mar 02 15:42:38 you just need "?" Mar 02 15:42:44 :D Mar 02 15:43:00 ... Mar 02 15:43:04 * kaneda^ facepalms Mar 02 15:43:04 we say it in germany like that :D Mar 02 15:43:05 cause sometimes I think due to you having "or" that your going to mention something else Mar 02 15:43:13 What chart (mainly for bar charts atm) would you guys suggest? Mar 02 15:43:18 like do you want bread, or? Mar 02 15:43:21 maybe some cheese Mar 02 15:43:24 etc Mar 02 15:43:30 ah ok Mar 02 15:43:31 sry Mar 02 15:43:41 no prob, just saying it's not needed Mar 02 15:44:23 StingRay_: that's equivalent to you saying "isn't it" or "have I not" or whatever Mar 02 15:44:47 marrrk: yes, again not really needed in english either, to do that... unless I like typing Mar 02 15:44:48 :) Mar 02 15:45:21 Well, but… Everybody likes typing, do they not? Mar 02 15:45:29 maybe they do ? Mar 02 15:45:46 What I said is probably grammatically completely wrong Mar 02 15:45:59 no Mar 02 15:46:07 statement, question Mar 02 15:47:13 anyways, we invented english, and we is probably worst at it there is :) Mar 02 15:47:35 you know very well that the americans are much worse Mar 02 15:47:42 btw that sentence what very intentional ! Mar 02 15:48:06 my understanding is the americans are closer to the original as far as pronounciation goes Mar 02 15:48:20 zinx: doubt it Mar 02 15:48:22 obviously, the prose that used to exist was done away with long ago :P Mar 02 15:48:34 StingRay_: nope, really. brits changed theirs to sound cool. Mar 02 15:48:44 nope, still doubt it Mar 02 15:48:49 I guess you're like totally right, zinx Mar 02 15:49:05 amaerican english is sometimes due to lapse pronunciation Mar 02 15:49:33 well come to think of it thats the case with 99.9999% of londoners too Mar 02 15:49:47 but not I ... ;) Mar 02 15:49:50 I sink vee forced a lot of our accent upon ze way americans speak today Mar 02 15:50:36 anyway Mar 02 15:50:43 StingRay_: not saying either are like the original :) Mar 02 15:51:01 what are your favourite charting engines for android? Mar 02 15:52:04 hmm i am using the google api Mar 02 15:52:13 with javascritp and html Mar 02 15:52:23 but native i have no idea Mar 02 15:53:09 to be honest they all seem to look not nice to me Mar 02 15:55:20 http://pastebin.com/mH8YGFwZ Mar 02 15:55:47 this error only happens on htc one s. any idea? Mar 02 15:56:33 Styler2go: have you any ideas ? Mar 02 15:56:53 i would not ask if i had some Mar 02 15:57:03 why only this phone... Mar 02 15:57:34 doubt it will only be that phone, would it be more to do with circumstance that phone model ? Mar 02 15:58:40 what do you mean..? Mar 02 15:59:28 ListView modeList = new ListView(aCont); Mar 02 15:59:33 this is the line which wont work Mar 02 16:04:39 no idea, StingRay_? Mar 02 16:05:03 whats aCoutn Mar 02 16:05:06 aCount Mar 02 16:05:10 oops Mar 02 16:05:15 aCont Mar 02 16:05:24 got there in the end Mar 02 16:05:29 aCont = this; Mar 02 16:05:55 public Activity aCont = this; Mar 02 16:13:49 so no idea, StingRay_? Mar 02 16:24:51 I cannot fathom why my sharedpreferences isnt reading Mar 02 16:24:51 http://pastebin.com/veL0dTJK Mar 02 16:24:59 It works in one class Mar 02 16:25:04 but in the other class it doesnt work Mar 02 16:25:25 when i save preferences in one *activity* it works within that activity Mar 02 16:25:29 but not in the underlying one Mar 02 16:25:56 does it need to be used in the onCreate() method only? Mar 02 16:26:44 Any ideas? Mar 02 16:28:19 public SharedPreferences getPreferences (int mode) Mar 02 16:28:19 Added in API level 1 Mar 02 16:28:19 Retrieve a SharedPreferences object for accessing preferences that are private to this activity. Mar 02 16:28:58 You either want https://developer.android.com/reference/android/content/ContextWrapper.html#getSharedPreferences(java.lang.String,%20int) or https://developer.android.com/reference/android/preference/PreferenceManager.html#getDefaultSharedPreferences(android.content.Context) Mar 02 16:30:21 SimonVT thanks Mar 02 16:37:36 SimonVT: worked a charm thanks very much!! Mar 02 16:59:47 StingRay_, hey :) i got a mini test up Mar 02 17:00:40 test of ? Mar 02 17:01:43 the app we described Mar 02 17:01:54 the swiping numpad Mar 02 17:02:00 ah Mar 02 17:02:03 does it work ? Mar 02 17:02:18 Someone an Idea why i get this error http://pastebin.com/mH8YGFwZ in the line ListView modeList = new ListView(aCont); where aCont = Activity (this) Mar 02 17:03:35 it works but not very accurate atm. ONly spent a couple of minuets on it yesterday. ill give you a view of it right now but im about to add a little more functionality to it so itll work better Mar 02 17:03:57 heres the really really beta version, dont think its accurate at all* https://dl.dropbox.com/u/92626421/Dialer%20Test.apk Mar 02 17:04:14 gotta find the sweetspot variable Mar 02 17:06:59 Styler2go: is that line in a thread ? Mar 02 17:07:20 or anything that is off the UI thread ? Mar 02 17:07:34 why not just post the code instead of the error Mar 02 17:07:49 yeah thats a fair point Mar 02 17:07:52 :) Mar 02 17:08:34 also why would you ever call new ListView() Mar 02 17:08:52 ehrm Mar 02 17:08:53 off the ui Mar 02 17:09:07 ehrm there ya go Mar 02 17:09:26 but yeah what are you doing ? Mar 02 17:09:51 creating a new listview and so? Mar 02 17:12:24 hi Mar 02 17:12:34 hi Mar 02 17:12:52 i have a problem with my code Mar 02 17:12:58 i wan't to send data Mar 02 17:13:00 to a server Mar 02 17:13:01 me too :D Mar 02 17:13:05 and? Mar 02 17:13:05 using post request Mar 02 17:14:01 and i see that the data contain carriage return Mar 02 17:14:15 i will show you my connection function Mar 02 17:14:24 may be i've forgotten something Mar 02 17:14:35 http://pastebin.com/NenXeJqG Mar 02 17:14:45 here it is Mar 02 17:15:15 i'm trying to send token like this Mar 02 17:15:27 ['15765733-46c6-4188-b7cf-9466c51bb9ab'] Mar 02 17:15:44 hmm Mar 02 17:15:46 and look at what it sends to the server Mar 02 17:15:59 token=['15765733-46c6-4188-b7cf-9466c51bb9ab\r\n0\r\n\r\n'] Mar 02 17:16:24 the server doesn't recognise the token Mar 02 17:16:51 what do u think about my function Mar 02 17:16:54 ? Mar 02 17:18:05 http://pastebin.com/xd7PXiHA thats what i am using to send post Mar 02 17:18:11 i think this would be easier for you? Mar 02 17:20:47 this works with any serevr Mar 02 17:20:48 ? Mar 02 17:20:57 sure Mar 02 17:21:05 great Mar 02 17:21:11 thanks i'll try it Mar 02 17:21:16 np Mar 02 17:21:20 good luck Mar 02 17:24:39 StingRay_: so whats wrong with my lIstview? Mar 02 17:24:48 nothing Mar 02 17:25:07 [18:08] also why would you ever call new ListView() Mar 02 17:25:10 why not? Mar 02 17:25:39 well sure there are some occasions Mar 02 17:25:47 well, your creating a dynamic view right ? that may or may not have need of a listView ? Mar 02 17:26:00 yes Mar 02 17:26:09 based on factor X, create or dont create Mar 02 17:26:16 or X Factor Mar 02 17:26:18 :) Mar 02 17:26:19 no Mar 02 17:26:37 it will be created in any way Mar 02 17:27:41 hmmm, ok well why are you creating it in code rather than finding it in a layout ? Mar 02 17:29:17 When something is inflated on my screen it pushes all of the buttons below it away from the screen, is there any way to prevent this happening? Mar 02 17:30:01 ok i changed it. the listview is now in the layout Mar 02 17:30:51 Belacan: no way to tell without seeing what it is your doing Mar 02 17:33:05 hmm i wish i had more of an idea what it is that i was doing, im using a graphing library called graphView, perhaps i should read into it a little more and ill come back with some specific questions Mar 02 17:37:38 stingray_ did you try it? Mar 02 17:39:53 was busy Mar 02 17:39:58 will try now Mar 02 17:40:04 well still busy Mar 02 17:40:12 but since you insist :) Mar 02 17:40:30 haha dont then, that version is a complete fail. ill let you test the version i just made Mar 02 17:42:27 heres the new version. still static build :/ https://dl.dropbox.com/u/92626421/Dialer%20Test.apk Mar 02 17:43:32 StingRay_... can you explain this issue...? Caused by: java.lang.ClassCastException: android.widget.ListView cannot be cast to android.widget.LinearLayout in line LinearLayout llLayout = (LinearLayout) findViewById(R.id.fragmentz); but clean project Mar 02 17:45:59 KaiKai: long way to go Mar 02 17:46:04 hmmm Mar 02 17:46:27 StingRay_: yea :/ trying to figure out a nice algorithmn to reduce possiblities Mar 02 17:46:43 you capturing touch event ? Mar 02 17:46:44 will be a hobby of mine to work on :) Mar 02 17:46:53 yea, i built i on top of a game framework Mar 02 17:47:51 not sure what your gonna do with double numbers Mar 02 17:47:59 tap/release ? Mar 02 17:48:07 small gesture ? Mar 02 17:48:40 omg! Mar 02 17:48:48 I just thought of a dialer app I want to do Mar 02 17:48:56 dont worry, nothing like that Mar 02 17:49:06 whats the idea StingRay_? Mar 02 17:49:14 no worries, if i ever get it working i'd give you the source to implement :) Mar 02 17:49:23 I'm gonna do an old rotary dialier Mar 02 17:49:30 like my grandparents used to have Mar 02 17:49:33 loved that Mar 02 17:49:38 and the clicking noise Mar 02 17:49:48 really made it feel like you just dialed some1 Mar 02 17:49:50 :) Mar 02 17:50:13 oh yea they have that already :) Mar 02 17:50:24 ooo I want it Mar 02 17:50:29 play link ? Mar 02 17:50:33 me too ! Mar 02 17:50:34 http://pastebin.com/5gneivrH Mar 02 17:50:38 https://play.google.com/store/apps/details?id=com.wagado.old_phone&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS53YWdhZG8ub2xkX3Bob25lIl0. Mar 02 17:50:58 pastey is the source im using atm for the dialer app Mar 02 17:51:05 ew..yeah not quite designed the same Mar 02 17:51:07 frikkin far out! Mar 02 17:51:09 as what I would want Mar 02 17:53:06 well enough hobbies, back to java<>php backends =[ Mar 02 17:53:28 KaiKai thats a really cute app Mar 02 17:54:21 tyl: thank you, but how so? Mar 02 17:54:34 the cute part* Mar 02 17:54:53 oh the phone dialing Mar 02 17:55:01 its so old fashioned but cute Mar 02 17:55:03 haha its not mine :) Mar 02 17:55:10 i just don't know how to define it Mar 02 17:55:14 its just cute Mar 02 17:55:41 ahh i know its so silly because phones now have such a better way of calling with the digital pad and voice Mar 02 17:56:00 using the old way is such a kinky and absurd notion of calling someone Mar 02 17:56:03 therefore it is cute Mar 02 17:56:04 hmmm StingRay_... it still doesnt work Mar 02 17:56:16 happily my brother has a htc one S, which have this problem Mar 02 17:56:50 anyone here ever tried reverse tethering on nexus 7? :s Mar 02 17:57:18 should i buy a nexus 7 for development? Mar 02 17:57:26 i have already bought a nexus 4 Mar 02 17:57:31 why not? Mar 02 17:57:32 but it hasn't come yet Mar 02 17:57:37 dont forget the nexus 10 Mar 02 17:57:41 lol Mar 02 17:57:44 :D Mar 02 17:57:56 i was thinking maybe i should have got a samsung s3 since so many people own it Mar 02 17:58:11 i have a n4 too it is very good Mar 02 17:58:19 and it is made for developing :D Mar 02 17:58:23 * p_l likes his N4 very much Mar 02 17:58:49 mine's suppose to ship from google on the 7th Mar 02 17:58:57 :( i guess no one Mar 02 17:59:02 :( Mar 02 17:59:04 TT Mar 02 17:59:12 T T Mar 02 17:59:37 i read i need to root my nexus to even try it >_> (want it since i dont have wifi in the building) Mar 02 18:00:29 i forgot when launching nexus 7 you MUST have wifi access... but it doesnt actually use it Mar 02 18:01:57 guys, do you know any image viewer that's based on BitmapRegionDecoder? Mar 02 18:04:32 i need to do alot of custom stuff with a video player (my own tracking bar etc) - is VideoView still preferable over a raw SurfaceView + MediaPlayer ? Mar 02 18:04:45 and just not use standard MediaController for the VideoView Mar 02 18:05:25 hello folks Mar 02 18:05:38 hi Mar 02 18:06:15 who is the android developer here Mar 02 18:06:37 all :D Mar 02 18:06:39 just ask Mar 02 18:07:12 I'm not Mar 02 18:07:15 if that helps Mar 02 18:07:17 :) Mar 02 18:08:03 android game programming for dummies looks like a really good book Mar 02 18:08:09 the developer? Mar 02 18:08:12 #one-android-developer Mar 02 18:08:46 #one-android-developer Mar 02 18:08:49 opps Mar 02 18:09:00 lies! Mar 02 18:09:43 Joozey: http://www.amazon.com/Beginning-Android-Games-Mario-Zechner/ best book imho for android games Mar 02 18:09:58 http://www.amazon.com/Beginning-Android-Games-Mario-Zechner/dp/1430230428/ ** Mar 02 18:10:10 StingRay! You grok intents in android? Mar 02 18:10:10 the link doesn´t work Mar 02 18:10:35 but I get the title Mar 02 18:10:39 why would there even be a book about game dev for android >_> Mar 02 18:10:40 Bleeptech: grok ? Mar 02 18:10:49 balls2thewall, why wouldn''t there be? Mar 02 18:11:00 because game programming is different than application programmiong Mar 02 18:11:05 from* Mar 02 18:11:12 those are unrelated topics, thats why Mar 02 18:11:17 like "game programming fr computers" Mar 02 18:11:39 unrelated? Mar 02 18:11:48 not really... lol game programming utilizes Canvas and Open GL ES Mar 02 18:12:01 rather, they do not affect each other. Mar 02 18:12:04 in-it Android Canvas might be simililar to Java Canvas Mar 02 18:12:34 but there are still differences, Open GL is different from Open GL ES Mar 02 18:12:57 so the book should be called "how to set up a glView" or just a book about opengl es Mar 02 18:13:04 You can make games with UI and threads just fine Mar 02 18:13:07 neither being game programming Mar 02 18:13:23 you don´t need a canvas Mar 02 18:13:39 And only parts of the screens may use a canvas Mar 02 18:13:46 balls2thewall: how many commercial released games have you worked on? any platform ? Mar 02 18:13:58 but I found the surfaceview is quite bugged in a listview, or swipe screen Mar 02 18:14:05 0 >_> im p. young Mar 02 18:14:33 ah 25+ console games and I think the title and context are fine Mar 02 18:14:42 cause it's not an exact science Mar 02 18:14:44 :) Mar 02 18:14:57 What's a nice way to store a user's selection from a spinner in a SQLite database? Mar 02 18:14:57 i am starting to hate this. why the hell only an htc one s.. Mar 02 18:15:58 balls2thewall: Young? Then you have the advantage of not having half a dozen obsolete programming languages cluttering up your brain.. LOL.. I speak from experience.. Mar 02 18:16:57 Bleeptech: ... which means probably all languages that business requires because they show up in glossy-print manager magazines ;) Mar 02 18:17:33 lol i do. i think modern languages that build only upon faster hardware have done irreparable damage to the new generation of programmers :/ Mar 02 18:19:06 that book looks like its only about graphics >_> not game programming Mar 02 18:19:12 can i let a gridview scroll horizontal? Mar 02 18:19:19 * p_l has the unfortunate condition of ending up in a job that requires java (and not just "anything that works on JVM"), and will maybe transition to a job that allows a bit more Mar 02 18:19:45 p_l i know dat feel bro Mar 02 18:19:47 but still only Java, C, C++, Python, JS and I heard something about Go ;) Mar 02 18:20:42 kinda annoying when the language you feel is your current "top" is Common Lisp :> Mar 02 18:21:01 p_l: ASM for the 6502/6510/8080/6800/68000, Vic-Basic, Cobol, GW-Basic, Lisp, Pascal, C, Plus Atmel/PIC.. Woops.. Almost forgot Ladder-Logic for The Lathes and mills.. Mar 02 18:21:23 I've flash my Milestone 2 to CM10 but the baseband for my carrier is not included, so I don't have signal. I switched basebase to China (which seems to be compatible), now I have signal but no data. Is it posible to flash a particular modem in the phone? Mar 02 18:21:32 s/flash/flashed/ Mar 02 18:22:15 Bleeptech p. impressive list Mar 02 18:22:40 Laureano read title this is android app dev Mar 02 18:22:54 Laureano: #android-root or #xda-devs Mar 02 18:23:01 StingRay_: Oops, sorry, Mar 02 18:23:03 Bleeptech: ASM puts you on top of significant number of people, just because you won't be flummoxed by reading disassembly or thinking at ISA level. Cobol and basic... okay. Algol family is still ruling the world. Lisp is alive even if not liked. Ladder-Logic keeps itself fine (there's pretty big bussiness in it o_O) Mar 02 18:23:06 Thanks for the hint! Mar 02 18:23:15 balls2thewall: I have to agree about the speed/code gripe.. "Look! Shiny new fast hardware.. Now we can write spaghetti and it's only slightly laggy.. ROFL. Mar 02 18:23:15 StingRay_: i will ask stackoverflow now, i think thos could also be a bug from htc or android? Mar 02 18:23:21 everyone who's worked in asm has insight in computer architecture like no one in the next generation will :/ Mar 02 18:23:57 balls2thewall: our robotics and OS classes at university doubled as "actual knowledge of how computers do shit" :) Mar 02 18:24:25 * Bleeptech shudders at a memory.. Mar 02 18:24:34 good software guys have ee understanding also Mar 02 18:24:46 including 6800 assembly, C, SPARC assembly, various off-the-wall assembly designed just for the weekly homework, etc. Mar 02 18:25:11 still, I cry for the people who used mutexes in last years OS class homework Mar 02 18:25:16 6502 / BAL / 80x86/ PDP-8 asm Mar 02 18:25:21 my classes dumbed down linux kernel programming to just linux and then dumbed the program down some more by removing automata theory and replacing them by economics and etiquette >_> Mar 02 18:25:42 when it could be done with atomic instructions and circular buffer ;_; Mar 02 18:25:50 and then i dropped out like a boss Mar 02 18:26:01 So, is this Android development or general programming discussion? Mar 02 18:26:14 meh - we ramble somtimes Mar 02 18:26:23 It'd be nice if there was an offtopic channel. Mar 02 18:26:25 android but its ok to share your feelings Mar 02 18:26:27 dont be afraid of them Mar 02 18:26:34 heh Mar 02 18:27:06 in that case... asm doesn´t make you much money as an independend developer :P Mar 02 18:27:25 1985.. I went to Univ of Oregon to continue learning computer science.. First semester was with a Mac-512 "This is a Mac, This is a mouse, this is a keyboard, Here is the power switch.".. Ended up dropping the class and spent the rest of the semester repairing the 512's they stuck the floppies in upside down.. Mar 02 18:28:00 Joozey: depends where... i have seen 400 GBP/hour offers in embedded space for contractors Mar 02 18:28:43 country fucker Mar 02 18:29:25 er i mean Morning Mar 02 18:30:32 lol Mar 02 18:35:32 is there a tool that automatically updates/copy from layout to layout-large and the others, or should I add manually all of them Mar 02 18:36:41 if they are the same then you don't need them Mar 02 18:53:47 OK.. Who can tell me what the callable intents are for http://www.java2s.com/Code/Android/Core-Class/extendsIntentServicetouploadafile.htm ??? Mar 02 18:55:10 Hmm.. Maybe the problem is a severe lack of caffeine.. Mar 02 18:55:29 or not going though the getting started bits Mar 02 18:55:30 :) Mar 02 18:56:13 Bleeptech: I dont know why your so allergic to the android getting started tutorials Mar 02 18:56:24 they should be your best friend by now Mar 02 18:56:33 because they are pretty good Mar 02 18:59:02 Every time I sit down and start those I end up with a power outage, a puppy running across the keyboard or a screaming girlfiend, Mar 02 18:59:31 puppy? why not a cat Mar 02 18:59:33 So far the power has been out twice and the pup has run through once this morning.. Mar 02 19:00:29 The cat knows better.. Free flight lessons.. >:) Mar 02 19:01:50 and I'm sitting here with http://developer.android.com/reference/android/content/Intent.html open in the browser.. Mar 02 19:07:06 anyone have experience of CursorWindow.getString returning an IllegalStateException in the case of especially long string lengths? Mar 02 19:07:15 throwing^ Mar 02 19:08:09 i am consistently getting this exception although sqlite3 can read the record perfectly well Mar 02 19:13:49 there is NO adb yet through Bluetooth , is it? Mar 02 19:17:39 no Mar 02 19:22:13 Hello. I would like to display text vertically on a button, how can I do this? Mar 02 19:22:18 funkbox, is there away to capture the Logcat from within code? Mar 02 19:22:28 adb logcat Mar 02 19:22:42 alternatively, google READ_LOGS Mar 02 19:22:50 ok Mar 02 19:23:22 funkbox, I mean saving the logcat into String functions and yada yada Mar 02 19:23:28 is that it? Mar 02 19:30:05 Can i add views from a class thats outside of the activity that i want to add the view in? Mar 02 19:33:11 who has the view, and who gets the view? Mar 02 19:33:53 Joozey, I have the view of kicking out all bad politicians! LOL! Mar 02 19:34:08 that's a bad joke and you should feel bad Mar 02 19:35:42 Playing the bad politician is fun, you should try Mar 02 19:36:39 Joozey, :) Mar 02 19:37:23 is there an channel for windows help? Mar 02 19:37:35 Styler2go, yes! Mar 02 19:37:42 or if not that, then can i call a method in my MainActivity from a seperate class? Mar 02 19:37:44 #windows of course Mar 02 19:37:47 i completely forgot about my question. has anyone done reverse tethering on nexus 7? Mar 02 19:38:17 Belacan, if you pass your mainactivity to the other class... or make it static, you can call it from anywhere Mar 02 19:38:23 Styler2go, just the channel name is its topic name most of the time Mar 02 19:38:36 but it might not be what you want, you need to be more specific on your problem Mar 02 19:39:41 I would say it is most likely not what you want Mar 02 19:40:40 well my app is using the GPS so i have a GPSHandler class to take care of the GPS things, the GPSGHandler class uses the 'onLocationChanged' method, so everytime the location is changed i want the handler to call a method in my mainActivity (updateGraph()) Mar 02 19:42:11 this is a good joke i read today. a thief and a low mean guy met. the thief tells the low he'll teach him how to steal if he teach him how to be low and mean. so the thief steals a woman's purse. the thief to the low: now it's your turn. the low screams : A thieeef! a thieeef! :) Mar 02 19:42:25 i hate channels where nobody answers Mar 02 19:42:37 Styler2go, aha Mar 02 19:42:40 over 500 people in #windows and nobody who writes :D Mar 02 19:43:12 hmm... whats the biggest channel in freenode? Mar 02 19:43:12 all newbies who don´t know the answer :-) Mar 02 19:43:15 superlinux-hp: HAH Mar 02 19:43:17 Excellent Mar 02 19:43:34 Styler2go, the biggest collection of newbies not knowing the answer to your problem? Mar 02 19:43:46 Belacan, i hope it made your day Mar 02 19:43:59 no, just to know whats a "big irc channel" :D Mar 02 19:44:05 it most certainly did Mar 02 19:44:16 that's great Mar 02 19:44:50 there is a whole page in arabic full of jokes like 100+ jokes Mar 02 19:45:06 and all contain no porn at all Mar 02 19:45:19 no sex jokes at all Mar 02 19:47:41 Styler2go, you can ask me I never mind in private Mar 02 19:48:17 Belacan, so you could pass your MainActivity to GPSHandler and call mainActivity.updateGraph() there Mar 02 19:48:20 i can ask you what? Mar 02 19:48:29 Styler2go, windows stuff Mar 02 19:48:45 Hello Guys. I have a very strange problem. i want to listne to music but i cant hear anything. the audio manager tells me there is audio and other media palyers like vlc also work any idea? Mar 02 19:48:52 Joozey: what do you mean by 'pass'? as in create an instance of MainActivity inside GPSHandler? Mar 02 19:48:53 but I would add a model to decouple the handler and view more from eachother Mar 02 19:49:27 You instantiate a new GPSHandler object in the MainActivity class right? Mar 02 19:49:33 yeah thats right Mar 02 19:50:05 something like super.updateGraph()?? Mar 02 19:50:06 so if you do new GPSHandler( this ), you pass the current object (MainActivity) to the constructor of the GPSHandler object Mar 02 19:50:10 Styler2go, are you sure the volume is high? Mar 02 19:50:18 ahhh Mar 02 19:50:25 most interesting Mar 02 19:50:29 i had no idea you could do that Mar 02 19:50:31 then store it in a private attribute, and call it later Mar 02 19:50:34 i am sure Mar 02 19:50:37 ill give it a shot! Mar 02 19:50:37 other players also work :( Mar 02 19:50:47 Styler2go, and there are some settings like which is the front speaker and yada yada.. Mar 02 19:50:48 well, you could start with that, but it is not the most pretty way to do it Mar 02 19:51:25 Styler2go, so you can still hear music through vlc? Mar 02 19:51:31 superlinux-hp: its working ... maybe the music files have problems. wait.. Mar 02 19:51:38 ah ok Mar 02 19:51:49 could be Mar 02 19:51:55 lol seems like the files are the problems but why.. Mar 02 19:52:02 it tells me it is palying something... Mar 02 19:52:08 codecs maybe Mar 02 19:52:18 or corrupt file system Mar 02 19:52:22 but i can see the equalizer :o Mar 02 19:52:32 it is really playing the song :D Mar 02 19:52:44 Styler2go: your speakers Mar 02 19:52:47 maybe the program thinks i have a bad taste? Mar 02 19:52:49 Styler2go, try to hear a file on your mobile Mar 02 19:53:31 if the file is ok, then you have a windows settings problem Mar 02 19:53:52 vlc palyer is palying these files Mar 02 19:54:23 Styler2go, and on vlc you can hear them? Mar 02 19:55:38 yes Mar 02 19:55:50 so where is them problem then? Mar 02 19:56:11 i cant hear them in my favorite media player... Mar 02 19:56:22 but it tells me it would be playing it Mar 02 19:56:55 ah anway, thanks for helping^^ Mar 02 19:56:57 Styler2go, and what about the windows media player? is't working fine? Mar 02 19:57:22 wait... Mar 02 19:57:49 nope it cant play it Mar 02 19:57:59 Styler2go, i think it's a codec thing.. Mar 02 19:58:02 and the other media player is from microsoft too Mar 02 19:58:06 you have to update your codecs Mar 02 19:58:21 i'll show you which to get Mar 02 19:58:32 i have this "codec mega pack" Mar 02 19:59:13 Styler2go, install it! that's what i wanted to give you Mar 02 19:59:38 or get the updated Mar 02 19:59:48 soooo only vlc layer can play these files Mar 02 19:59:56 winamp cant play it Mar 02 20:00:07 i have installed it Mar 02 20:00:13 Styler2go, vlc always playes the latest codecs Mar 02 20:00:48 i think so it's nowadays the case Mar 02 20:01:10 can you give me a good codec pack? Mar 02 20:01:26 Joozey: Would the 'this' thing be a context? Mar 02 20:01:45 like, how do i declare it inside the constructer of GPSHandler Mar 02 20:01:53 GPSHandler(Context context)? Mar 02 20:02:00 or is it something else? Mar 02 20:03:16 Styler2go, try http://www.free-codecs.com/Codec_Packs.htm Mar 02 20:03:42 Styler2go, i used to download K-lite. and it always worked fine to me Mar 02 20:04:25 i will try it Mar 02 20:04:46 Profile Default? Mar 02 20:05:13 Styler2go, i donno.. you just try... they are not many Mar 02 20:05:15 do we all have to read about this ? :) Mar 02 20:05:19 Belacan, you want the method declared in your MainActivcity class Mar 02 20:05:22 sry :D Mar 02 20:05:24 so it´s a MainActivity object Mar 02 20:05:34 ahhhh Mar 02 20:05:38 Context doesn´t know anything about an updateGraph() method Mar 02 20:05:41 i never really thought of it in that way Mar 02 20:05:49 ideally you would create a class dedicated to drawing that graph Mar 02 20:05:59 http://img9.imageshack.us/img9/835/climsyclipboardol.png Mar 02 20:06:01 so its GPSHandler(MainActivity myMainActivity) as the constructor Mar 02 20:06:11 Styler2go: really??? Mar 02 20:06:15 that would work Mar 02 20:06:31 StingRay_: hm? Mar 02 20:06:32 and in the instantisation its something like myGPS = new GPSHandler(this) Mar 02 20:06:44 Styler2go: stop spamming channel with win8 crapness Mar 02 20:06:52 ... Mar 02 20:06:56 Next project though, search for MVC, MVP or other patterns to separate methods in and pass objects along Mar 02 20:07:17 Belacan, yes Mar 02 20:12:36 Chrome for Android is going to start using a proxy like Amazon Silk :| Mar 02 20:12:53 Joozey: Worked a charm! thanks very much for you help. I really feel that i've learnt something important today! Mar 02 20:13:09 I've a small problem I can't figure out - I'm trying to use a very basic fragment and I get the following Error: "LanguagesFragment did not create a view". Code: http://pastie.org/private/g4bc6v08xwu7fa695cjplw Mar 02 20:15:37 Belacan, good to hear. It´s the basics of Java, I´d suggest you buy an easy Java book and make sure you understand all basic subjects on classes, objects, interfaces, static, etc. Mar 02 20:16:29 if you know your tools, you have a much better grasp of how to advance further Mar 02 20:23:39 My photo gallery at http://bit.ly/Y4Z7BZ uses media queries for JS and CSS to drop down to a 2-column layout for anything less than 767px. Does anyone know why this does not work in ones Android browser? Mar 02 20:33:00 does any one know a C or java library that can help me obtain the distance to a given pixel using two pictures from different angles for an android application Mar 02 20:33:42 vladd: thats a bit well.... not accurate Mar 02 20:33:47 2 pictures Mar 02 20:34:07 you need tracking points Mar 02 20:34:12 lens correction Mar 02 20:34:21 2d/3d projection math Mar 02 20:35:37 i don't understand Mar 02 20:35:42 what u want to say Mar 02 20:36:05 StingRay_: ? Mar 02 20:36:35 vladd: your wanting real world distance between 2 pixels in a image with only just 2 images as reference ? Mar 02 20:36:39 is that right ? Mar 02 20:38:02 yes, and i also know the distance bettwen the 2 points Mar 02 20:41:14 see now i really dont understand Mar 02 20:41:31 you want the distance between 2 pixel in real world that you already have Mar 02 20:41:37 how did you get the distance ? Mar 02 20:41:50 and if you have it why are you looking for a library ? Mar 02 20:43:47 Can someone explain why Fragment does work, and as soon as I create a folder layout-land it stops with a IllegalStateException "Fragment did not create a view." ? Even after removing the folder, can't get it back to work Mar 02 20:45:58 i want the distance in thereal world between the camera position and that point Mar 02 20:46:41 ah ok, then you would have to do things like FOV and lens distortion correction Mar 02 20:46:49 Be more specific when you say words like ¨the distance¨ and ¨that point¨ Mar 02 20:46:51 just like we do in VFX when tracking shots Mar 02 20:47:19 vladd: you'd prob ably need to start with the classic mosaic to calibrate data Mar 02 20:47:26 normally a crappy phone camera and 1 survey point/distance would not be enough Mar 02 20:47:51 StingRay_! Mar 02 20:48:08 you are talking about vfx, i would have a little question :D Mar 02 20:48:11 vladd: shortly speaking, you asked for something that is definitely not easy :D Mar 02 20:48:28 vladd: and StingRay_ iirc is (or was) a VFX specialist :) Mar 02 20:48:51 oh.. you are not using adobe.. so i cant ask :D Mar 02 20:50:00 like i said, lens distortion throws out tracking data, and obviously FOV, now the problem is that the sensor FOV will change onFocus change, so what you want is really not easy, and the probability of getting anything acurate or near accurate outside of control conditions = 0.1% Mar 02 20:52:41 ok thk's, i'll find another way Mar 02 20:59:26 hey StingRay_ , gibbe pro tips how to get into the game business without getting impoverished and starving Mar 02 21:01:29 balls2thewall: be loaded as hell Mar 02 21:01:45 so by the time you burn through savings, you aren't yet impoverished :d Mar 02 21:01:47 damn p_l hadn't thought of that, thanks Mar 02 21:01:52 ^_- Mar 02 21:02:17 though Kickstarter and IndieGoGo are making things easier now Mar 02 21:12:08 balls2thewall: develop/sell games in your spare time, while you have a normal full-time job. once you're able to support yourself with the games, quit the full time job Mar 02 21:12:24 balls2thewall: console games etc? Mar 02 21:12:31 it aint hard Mar 02 21:14:18 balls2thewall: also... if doing PC games, please consider finding out if you can go through Steam instead of writing your own patcher Mar 02 21:14:33 Or some other popular and low-hassle update service Mar 02 21:16:10 spare time >_> Mar 02 21:16:20 weekends arent a lot :/ Mar 02 21:17:24 balls2thewall: lots of coders I've seen come and go in commercial mainstream games, all have problems working in team/group and or organization Mar 02 21:18:15 StingRay_: doesn't help that a lot of commercial game coding is amogn the worst work condition you can have (in terms of psychological impact, not easily visible conditions) Mar 02 21:18:33 problems because of bad attitude or problems because we're all aspies?° Mar 02 21:18:59 p_l: thats a bit wrong to say Mar 02 21:19:15 balls2thewall: deadlines ordered by the people having the money causing stress leading to issues? :) Mar 02 21:19:48 StingRay_: well, it's not that way always, it's what I can get from reading memoirs of some game programmers who were in "bigger" companies Mar 02 21:19:58 isnt that the general case in all IT companies that have grown beyond personal interaction Mar 02 21:20:00 not just games Mar 02 21:20:08 95% bollox Mar 02 21:20:22 50% based on perspective Mar 02 21:20:40 and 90% of those reports are by angry tards Mar 02 21:21:51 StingRay_: I'm actually basing it a bit on someone who can't be described as angry tard, just retrospective of how he was after they *finally* shipped StarCraft :) Mar 02 21:22:20 and now older, even more experienced, he recognizes the lessons from that :) Mar 02 21:25:52 how the rushed work, overtime etc. lead to worsening conditions no matter the type of people, because they all simply started to burn out Mar 02 21:26:13 (and probably why blizzard now has "it's done when it's done" approach to public deadlines?) Mar 02 21:27:17 if I were going to do it, I would definitely either go indie, or at least go with a small, close-knit game development company Mar 02 21:27:37 just be wary that even with best producer-studio relations, life can get shitty Mar 02 21:27:52 self-sufficient seems the best from what I managed to observe Mar 02 21:27:57 but hard to achieve Mar 02 21:34:51 sorry was eating Mar 02 21:35:04 yeah game dev in big/medium studios is not all bad Mar 02 21:35:16 sometimes it is, but thats down to people or person Mar 02 21:35:34 as a company/business has no heart, no soul and cannot act or make decisions Mar 02 21:35:56 only people can do that Mar 02 21:36:11 but companies do have cultures, which people act within the context of Mar 02 21:36:17 the bigger the studio the less attached you become to a product/game Mar 02 21:36:37 hello. i need an advice for dynamic ui creation. Mar 02 21:36:44 JesusFreke: yeah, as an social theorems come to light in seasonal changes Mar 02 21:37:10 crown mentality / flocking Mar 02 21:37:25 musaulker: I do lots of that in the app I'm working on Mar 02 21:37:48 musaulker: whats the question ? Mar 02 21:37:58 StingRay_: How can I create a dynamic UI with different amounts of TextView and ImageViews's inside a Layout? like this one: http://i.imgur.com/Qwd6Q53.png What is the best way to do? Mar 02 21:38:51 StingRay_: I need to show contents which contains images and texts in different position, the content doesn't have a template like structure, so I cannot design a layout for this purpose. So I need some kind of dynamic layout organization which can contain texts and images Mar 02 21:39:09 oh, thought you had a specific question :) Mar 02 21:39:37 StingRay_: All the content data will come from locally offline. So maybe I can use json pased content pages, or maybe SQLite files Mar 02 21:39:41 not a how do I do it kinda question Mar 02 21:39:42 musaulker: have you considered using a webview and using html markup? Mar 02 21:40:09 JesusFreke: webview is heavy there will be maybe 100 maybe 200+ different content pages Mar 02 21:40:23 StringRay_: yes sort of :) as I said i'm looking for an advice ;) Mar 02 21:41:00 well problem is I dont know and would not know how to get that kind of layout with alternating and relational picture text tabloid kinda feel Mar 02 21:41:09 I know in iOS I can Mar 02 21:41:11 JesusFreke StingRay_ : I thought about Webview which is heavy and Html.fromHtml() which has limited support, so they didnt solve my problems Mar 02 21:41:16 sorry for the noob question, but eclipse is giving me syntax errors on java primitives(byte and short) in a new class i created in my android project, is there something I need to import? Mar 02 21:41:49 java doesn't have byte or short literals Mar 02 21:41:59 you have to cast an int literal to a byte or short Mar 02 21:42:22 or have it autocast, depending on the context Mar 02 21:42:32 I think? Mar 02 21:42:41 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html Mar 02 21:42:51 thought they were normal primitives? :\ Mar 02 21:42:58 or at least, on the surface Mar 02 21:43:55 it depends on the context. in some cases, you need to explicitly cast a literal to the appropriate smaller type Mar 02 21:44:05 what are you getting the errors on? Mar 02 21:44:12 JesusFreke: so, whats your advice about dynamic ui creation? Mar 02 21:44:19 the official photoshop channel should be #photoshop or? Mar 02 21:44:46 Styler2go: if there is one. freenode is geared towards open source projects. Mar 02 21:44:53 ok Mar 02 21:44:56 unsigned byte memory[4096]; -> "Syntax error on token byte, delete this token" Mar 02 21:45:05 it also says it on 4096 for some reason Mar 02 21:45:15 sooki: there is no unsigned keyword/type Mar 02 21:45:38 "byte memory[4096]" should work Mar 02 21:45:57 char is the only unsigned type available Mar 02 21:45:59 hmm Mar 02 21:46:12 not it lists just 4096 as the error token Mar 02 21:46:17 now* Mar 02 21:46:21 oh Mar 02 21:46:29 byte[] memory = new byte[4096]; Mar 02 21:46:33 wasn't paying attention :) Mar 02 21:47:00 hey guys, I am loading an image into a webveiw, and want to setup an image map… but I am wondering what is the best way considering the different screen sizes of android devices. Mar 02 21:47:12 ah Mar 02 21:47:21 i really need to brush up on my java apparently, thank you Mar 02 21:48:48 balls2thewall: btw I have never worked in US for any major game developer, on here in UK Mar 02 21:48:58 so cant comment for over the pond Mar 02 21:49:00 :) Mar 02 21:49:14 on = only Mar 02 21:49:27 thats great because im not in the US :p Mar 02 21:49:50 oh and czech rep. and manilla Mar 02 21:50:05 but that was to setup studios rather than work at them Mar 02 21:50:12 or evaluate studios Mar 02 21:51:39 I have a sort of strange question; can a string be set to open an intent? Mar 02 21:51:55 not an intent set to open a URL (string) Mar 02 21:52:34 I want to receive a string that magically calls an intent which opens my app Mar 02 21:53:02 dont even know what I'm asking, let alone writing it Mar 02 21:53:03 Sicp: you mean a broadcast receiver ? Mar 02 21:53:11 that gets triggered with a string arg Mar 02 21:53:16 to do whatever you want Mar 02 21:54:16 like the app icon behaves Mar 02 21:54:20 you click it, your app opens Mar 02 21:54:30 I want this string to be clickable, and when clicked it opens my app Mar 02 21:54:42 you lost me now Mar 02 21:54:51 a string is a data type Mar 02 21:54:56 a URL Mar 02 21:55:01 oh now i get ya Mar 02 21:55:08 that....has the intent inside.. Mar 02 21:55:29 Sicp: you can, e.g. register a custom URI scheme Mar 02 21:55:46 so that if someone clicks on a link that looks like mycustomscheme:blahblahblah Mar 02 21:55:53 yea, exactly that Mar 02 21:55:53 you'll get an intent with that uri as the data Mar 02 21:55:57 like linked in should do when they send me mails, that links to their website, that then opens up and says hey we have an app, well ffs why didn't it open the app from the url since i have it Mar 02 21:56:33 Sicp: https://github.com/JesusFreke/Penroser/blob/master/AndroidManifest.xml Mar 02 21:56:53 that registers for penroser.com links, and for penroser: URI scheme Mar 02 21:57:13 or rather, penroser.com/preference links Mar 02 21:57:58 it opens your activity Mar 02 21:58:10 whenever penroser.com/preference is clicked Mar 02 21:58:22 yes. if there is a link like http://penroser.com/preference?blahblah on some random webpage Mar 02 21:58:27 and someone clicks it, it will open my app Mar 02 21:58:39 or something like penroser:blahblah Mar 02 21:59:13 although. hmm Mar 02 21:59:24 I think I had to add some redirect magic to my penroser.com server for some reason Mar 02 21:59:29 I can't recall why offhand Mar 02 21:59:52 there won't be any website here; it's just a workaround Mar 02 22:04:02 it won't parse of course if I add something random in the scheme Mar 02 22:04:10 it has to be http or some other Mar 02 22:04:35 I'm receiving it as SMS here Mar 02 22:05:15 I think random://something should work Mar 02 22:05:22 it probably depends on the client Mar 02 22:05:28 if it automatically linkifies Mar 02 22:05:38 but yeah, http is probably your best bet Mar 02 22:06:00 Hmm... Mar 02 22:11:07 it works, thanks Jesus Mar 02 22:11:27 ... that sounds so wrong in oh so many ways :D Mar 02 22:11:29 sounds funny :D Mar 02 22:11:48 give thanks to me too Mar 02 22:12:10 do you guys think that Android will one day merge with Chrome OS, the opposite, or never Mar 02 22:12:11 om....g how come no1 had this nick ? Mar 02 22:12:22 oh dammit Mar 02 22:12:49 the underscore makes it. Mar 02 22:13:31 who is using Trinity >_> Mar 02 22:13:35 can't even ghost him Mar 02 22:15:03 what should it be, Trinity_ or Mr_Trinity Mar 02 22:15:13 StingRay^ Mar 02 22:15:36 mrs Mar 02 22:15:40 :) Mar 02 22:25:48 is anyone here really good at anroid/ios games? like if they had all the artwork, design and direction could get to like angry birds quality ? Mar 02 22:26:45 StingRay_: was a long time ago but i made this Mar 02 22:26:46 https://play.google.com/store/apps/details?id=com.synamegames.dodgearena Mar 02 22:26:50 still in beta Mar 02 22:26:57 dont know if thats the HD quality you were looking for Mar 02 22:27:09 HD is not really a quality term Mar 02 22:27:14 tis output res Mar 02 22:27:43 common man/marketing lingo = HD ;) Mar 02 22:27:51 quality to me would be fluidity of a complex animation system along with some procedural effects and gesture controls etc Mar 02 22:27:55 all running nice Mar 02 22:28:06 I can do 4k graphics if I want Mar 02 22:28:20 i just change 2 numbers :) Mar 02 22:28:30 well ok and probably aliasing Mar 02 22:28:39 3 numbers Mar 02 22:29:22 I just have a killa game that I can do everything cept program the dam thing Mar 02 22:29:32 canadiancow used to be a game dev maybe when he gets on:/ Mar 02 22:29:39 oh well, maybe in a year or two I will have the skill too :) Mar 02 22:29:44 ? Mar 02 22:29:55 he's commercially employed now Mar 02 22:30:11 so little hard when you have a development staff contract Mar 02 22:30:22 I would think Mar 02 22:30:38 dont think Google's looking to make games but haha who knows :) Mar 02 22:30:50 what are you trying to program? Mar 02 22:31:39 I'm not at the moment Mar 02 22:31:57 dont really have the programming experience to try either Mar 02 22:32:00 well not at the moment Mar 02 22:32:00 [10:26] dont be afraid of them Mar 02 22:32:00 [10:26] heh Mar 02 22:32:00 [10:27] in that case... asm doesn´t make you much money as an independend developer :P Mar 02 22:32:00 [10:27] 1985.. I went to Univ of Oregon to continue learning computer science.. First semester was with a Mac-512 "This is a Mac, This is a mouse, this is a keyboard, Here is the power switch.".. Ended up dropping the class and spent the rest of the semester repairing the 512's they stuck the floppies in upside down.. Mar 02 22:32:01 [10:27] *** whitby (~whitby@n103h097.wsr.mun.ca) joined Mar 02 22:32:01 [10:28] Joozey: depends where... i have seen 400 GBP/hour offers in embedded space for contractors Mar 02 22:32:02 [10:28] country fucker Mar 02 22:32:02 [10:29] *** marco_ (~root@192.210.132.144) left () Mar 02 22:32:03 [10:29] er i mean Morning Mar 02 22:32:03 [10:30] lol Mar 02 22:32:21 ban me already -_______________________________________________________________________- Mar 02 22:32:30 easier to ignore Mar 02 22:32:31 hmmm Mar 02 22:33:09 StingRay_: I can do everything cept program the dam thing Mar 02 22:33:12 what did you mean? Mar 02 22:33:21 Anybody familiar with their Android browser rendering paddings a little bit differently from Chrome / Firefox? Mar 02 22:33:59 I mean 17..or 18 god know years in commercial graphics either in vfx or games Mar 02 22:34:16 as an artist/animator/td/leard/tutor etc Mar 02 22:34:22 not as a programmer Mar 02 22:34:39 and I know enough to know that I dont know enough to do what I require for my idea Mar 02 22:34:40 :) Mar 02 22:34:54 whats your idea? ;) Mar 02 22:35:14 NDA'able is how nice I think it is Mar 02 22:35:41 give me a link and ill scan it over LOl Mar 02 22:36:00 jk, sleep with one eye open! Mar 02 22:36:37 hello there, I am trying to use MapBuffers with NDK. everything initializes, my device provides support for extension etc, eglGetProcAddress returns non-null address, but after I cast it with PFNGLMAPBUFFEROESPROC it crashes Mar 02 22:37:43 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 4013a35c Mar 02 22:38:44 Sti/win 20 Mar 02 22:38:47 aaargh Mar 02 22:41:45 hmm, strange. crash actually happens when I assign glMapBufferOES to the value of eglGetProcAddress Mar 02 22:58:36 has anyone ever generated public/private key pairs on android? Mar 02 23:03:45 ok this is odd, does using a library project have any bearing on broadcast receivers and sends ? Mar 02 23:04:23 When rotating the phone from Landscape to Portrait and vice versa the activity is completely recreated. Is there any way, apart from disabling rotation to not recreate the activity? Mar 02 23:05:02 as in if a class in the lib is not subclassed to project, sends, isn't a class in the main project supposed to be able to react ? Mar 02 23:05:36 diki: you would not really want to not re-create, well not most of the time Mar 02 23:05:49 just save in saveInstanceState anything that you may want Mar 02 23:06:02 and restore it when it's back up Mar 02 23:06:03 Is it possible to save the execution state itself? Mar 02 23:06:17 not just data like values Mar 02 23:06:25 Hey, do my header and footer at http://bit.ly/Y4Z7BZ remain fixed as you scroll down? Mar 02 23:06:40 diki: not sure what you mean Mar 02 23:07:00 boytoy: dunno, do they ? your the one running the project :) Mar 02 23:07:04 he means to save the current state of the application Mar 02 23:07:32 boytoy: what is it good for? Mar 02 23:07:50 diki: oh well, what would you want saving exactly that dont fit into variables ? Mar 02 23:08:12 StringRay_: they dont on my android Mar 02 23:08:16 diki: keep state that would take you more than 700ms on crappy device to recreate in separate class that won't get garbage collected when activity gets recreated (so a singleton of sorts etc.) Mar 02 23:08:20 karlsve: what do you mean? Mar 02 23:08:34 id like fixed positioning so my header and footer are always visible as the user scrolls down Mar 02 23:08:46 boytoy: then just use views Mar 02 23:09:01 any views, that are nothing to do with the list Mar 02 23:09:03 :) Mar 02 23:09:12 The reason I asked this, was because when I am changing the orientation of the device, thus recreating the activity, an httpurlconnection that previously worked, just stops receiving data. Mar 02 23:09:17 boytoy: have you tried doing it by using css? Mar 02 23:09:46 it is actually done like that :D Mar 02 23:09:52 Like, if I start the application in portrait mode, everything goes well. A webpage is retrieved and displayed, the moment I change the orientation..boom, no matter what I do a webpage is not fetched. Mar 02 23:10:14 I have to actually force close the application to make it work. Mar 02 23:10:16 diki: that's among the stuff that IMO should be moved to separate class Mar 02 23:10:47 boytoy: do you really need jquery mobile for fixing the navbar? Mar 02 23:10:48 and it seems to me that you aren't cleaning up said connection right (or its worker), which shows up on the rotation Mar 02 23:11:01 I can get the headers, but not the page itself, so my theory is that the stream is not working, but no exception is raised either. Mar 02 23:11:34 boytoy: but more important, why do you make people load images for testing purposes? colored div's would have been rendered way faster Mar 02 23:13:23 boytoy: to answer your initial question, they stay mostly fixed Mar 02 23:14:23 StringRay_: sorry what do u mean views? Mar 02 23:14:27 is there a reason why assigning extern glMapBufferOES to NULL would still cause a crash? Mar 02 23:14:38 p_l:yeah, but why is it dying like that? Mar 02 23:14:48 I can still fetch the headers, no data from the stream... Mar 02 23:14:55 karlsve: well im already using jquery and jquery mobile - and i was reading http://bradfrostweb.com/blog/mobile/fixed-position/ which recommends this way but.. Mar 02 23:15:06 just by changing the orientation from the current to another one Mar 02 23:15:14 diki: no idea, I'm hoping it should be able to "find" the issue when refactoring the code to separate HTTP Connection from activity itself Mar 02 23:15:21 karlsve: mostly fixed, cool thanks Mar 02 23:15:29 unfortunately thats not good enough lulz Mar 02 23:15:36 p_l:I am not really versed, but does it matter where it is? Mar 02 23:15:41 you still need to initialize it either way Mar 02 23:16:19 like, in the main activity Mar 02 23:17:09 boytoy: more detailed information: chrome -> the text moves a bit up and down as it seems, lightning browser -> fixed, firefox -> fixed Mar 02 23:17:28 karlsve: cool Mar 02 23:17:50 seems to work fine in chrome / firefox on pc, as well as the iphone Mar 02 23:18:02 boytoy: it should be enough to just set the css position to fixed and the top value to 0 or the bottom value to 0 via css tho Mar 02 23:18:04 karlsve: i guess i just need to come up with a fix for the android browser? Mar 02 23:18:13 but i did that actually.. Mar 02 23:18:22 diki: the idea is to make the initialization etc. happen *outside* activities Mar 02 23:18:43 boytoy: i was talking about chrome for android, firefox for android and lightning browser (also android) in case you didnt know Mar 02 23:18:54 oh i see i see my bad Mar 02 23:19:16 cannot try the old android browser since i dont have my old phone here atm Mar 02 23:20:04 and android 4.2.2 uses chrome just like i believe all android 4 versions Mar 02 23:21:59 awee yee Mar 02 23:22:20 android 4.2 huh Mar 02 23:22:37 just went to whatsmyuseragent.com on my android phone here looks like im on android 2.3.5?? Mar 02 23:23:08 looks like ive been hiding under a rock, jesus fucking christ Mar 02 23:24:47 boytoy: actually not :D Mar 02 23:25:09 pardon me? Mar 02 23:25:27 boytoy: 3 was for tablets only and 4 all-in-one Mar 02 23:25:54 so 4.2 is not really that far away from what you got Mar 02 23:27:02 i thought chrome was 4.1 and up ? Mar 02 23:27:18 g00s: dont really know, might be :D Mar 02 23:27:24 havent had 4.1 Mar 02 23:27:55 ah i see Mar 02 23:28:15 my nexus 4 came running on 4.2.1 so i did the step from motorola milestone -> 2.3.5 to that Mar 02 23:28:26 karlsve: doesnt seem to be any android updates available either Mar 02 23:29:23 p_l:I was thinking. What about IRC applications for android? Whenever I rotate the screen, everything happens as expected, but there is no indication of the http connection being re-done, re-authorized or anything like that. How is that possible? Mar 02 23:29:31 karlsve: but basically the default android browser should support fixed positioning? Mar 02 23:29:37 I mean, tcp, sorry. Mar 02 23:29:43 or am i actually hiding under a rock since im using that and not chrome? Mar 02 23:29:47 boytoy: well it seems like it doesnt Mar 02 23:30:00 boytoy: you cannot use chrome Mar 02 23:30:14 no backwards compatibility Mar 02 23:30:37 no backwards compatibility with what, sorry? Mar 02 23:30:37 diki: they use Services Mar 02 23:30:56 oh i get it now Mar 02 23:30:57 damn Mar 02 23:31:12 diki: launch a Service, and you can even kill the activity but keep connection Mar 02 23:31:23 just don't overdo it and close it when it's not needed... Mar 02 23:31:55 boytoy: i dont know if opera mobile handles it differently tho, you might want to have a look at that, there is no information on that browser on the website you looked at Mar 02 23:32:17 Well, I am planning to make an application that every 30-60 seconds will fetch and parse an html page, then print the data on the screen. Mar 02 23:32:45 diki: :/ soo much data used Mar 02 23:32:59 thx man Mar 02 23:33:15 boytoy: no problem Mar 02 23:33:21 I'd suggest re-reading with fine comb the Application Lifecycle stuff in docs, and checking up on Singleton and such, then figure out how to keep "data" layer outside of activity Mar 02 23:33:21 karlsve: sorry what website? Mar 02 23:33:58 boytoy: this one http://bradfrostweb.com/blog/mobile/fixed-position/ Mar 02 23:34:05 p_l: same challenges and questions about android development since I started reading this channel in 2009 Mar 02 23:34:08 oh yeah yeah Mar 02 23:34:22 well opera is switching to webkit anyway so i guess it wont be much of a problem in the future Mar 02 23:34:39 (and of course, the human nature of laziness and not reading the docs hasn't changed either). Mar 02 23:34:45 g00s: not my fault that Android is closer to J2EE than Java SE :P Mar 02 23:35:13 i dont remember much JEE :) Mar 02 23:35:25 p_l, not really Mar 02 23:35:30 diki: i hope you are not planning on loading a bulky website using that method of 30-60 second intervalls Mar 02 23:35:31 g00s: well, in terms of stuff composed out of components :) Mar 02 23:35:43 and not having a "main" Mar 02 23:35:56 oh. yeah, their big Frameworks, i guess Mar 02 23:36:15 the notion of beans, and the standard J2EE way of doing things doesnt even apply in android.. Mar 02 23:36:41 kaneda^: Beans is closer to EJB, iirc, which isn't "required" part of J2EE, apparently Mar 02 23:36:42 karlsve:problem? Mar 02 23:36:52 or at least so the code at work shows me Mar 02 23:36:53 p_l, but it's the main reason to use J2EE Mar 02 23:37:18 kaneda^: not the main Mar 02 23:37:23 i cant think of a second Mar 02 23:37:23 kaneda^: believe me, not the main Mar 02 23:37:30 diki: only while the app is running? or all the time Mar 02 23:37:33 * p_l works on code that is J2EE but has no EJB at all Mar 02 23:37:46 why the hell would you choose java otherwise?? Mar 02 23:37:50 MDijkstra:I was counting on all the time. Mar 02 23:37:51 woops, sorry andriod Mar 02 23:37:54 android Mar 02 23:38:19 diki: that's going to really hurt battery life Mar 02 23:38:23 kaneda^: Spring Framework is another thing used often, and afaik much simpler than EJB pre-3.x, anything based on servlets/WARs/EARs apparently also falls under it, etc. Mar 02 23:38:33 MDijkstra:it's a personal app, so I don't mind. Mar 02 23:38:37 how come a float has a maxium value of 0.49999999999999994 before reaching .5/ Mar 02 23:38:49 i've only used EJB, but Spring accomplishes the same thing and is supposed to be nice Mar 02 23:38:51 diki: + the data volume used will be exceeding the users predictions Mar 02 23:38:58 i dont see the reason to use java at all though Mar 02 23:39:02 diki: well, I don't know how much battery you expect from your personal phone Mar 02 23:39:11 diki: but expect 2-4 hours less doing that Mar 02 23:39:17 agy2154: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html Mar 02 23:39:18 MDijkstra:Whenever I do not use it, it can last for a whole week, no joke Mar 02 23:39:26 but I always keep it on Battery Save mode. Mar 02 23:39:40 When I do use it, around 12-15 hours. Mar 02 23:39:52 maybe less, have not tested with JB yet. Mar 02 23:39:58 yeah, sure, but you're going to keep the mobile radio in active mode 100% of the time doing this Mar 02 23:40:31 diki: is there any need to actually update it every 30 seconds? Mar 02 23:40:36 p_l, and i should say, that even EJB cant make java nice Mar 02 23:40:40 unless of course your battery saving mode means turning off background data Mar 02 23:40:43 man, i hate when apps use weird ass build systems like cmake… who the fuck uses cmake these days Mar 02 23:40:48 in which case what you're proposing won't work at all Mar 02 23:41:43 kaneda^: Qi4J looks quite well for that... but it's "incompatible" with various programmers/legacy code Mar 02 23:41:46 diki: if you have control over the data anyway, use GCM to push when it changes Mar 02 23:42:04 kaneda^: in my case the code is already "legacy" despite not being fully deployed -_- Mar 02 23:42:11 p_l, java Mar 02 23:42:16 MDijkstra:I use httpurlconnection and an inputstream to read the data. Mar 02 23:42:28 I can also handle gzip. Mar 02 23:42:28 diki: yes, how is that relevant? Mar 02 23:42:42 then I have no idea what you mean by GCM. Mar 02 23:42:52 google cloud messaging, push notifications for android Mar 02 23:42:54 kaneda^: worse - 2nf xml, drools, application logic done with 2nf xml and regular expressions, etc. Mar 02 23:43:05 xml, lol Mar 02 23:43:08 you can simply do the 30s HTTP fetch loop on your server Mar 02 23:43:10 p_l, what, did they start designing this 10 years ago? Mar 02 23:43:18 and only notify your phone when the data has changed Mar 02 23:43:23 kaneda^: possiblhy Mar 02 23:43:27 lol Mar 02 23:43:31 well, we got it only ~2y ago Mar 02 23:43:34 i'm glad my shop is all agile basically Mar 02 23:43:42 so, whatever you're working on is NEW tech Mar 02 23:43:48 MDijkstra:I don't like to rely on 3rd party servers. Mar 02 23:43:54 not for this anyway Mar 02 23:43:55 agile doesn't help when you find your "deployment" contract change into "redevelopement" Mar 02 23:44:18 diki: you're relying on third party servers anyway to pull the data, and you can still put the download code in your app Mar 02 23:44:18 kaneda^: your new stuff today, will be old stuff tomorrow ;) Mar 02 23:44:32 g00s, and tomorrow i'll be working on that new stuff ;) Mar 02 23:44:48 what you are describing is greenfield vs brownfield development Mar 02 23:45:00 diki: ie, it's only a signal 'hey, the data has been updated, fetch it now' Mar 02 23:45:01 meanwhile I'll use the over 50yo language to kick the shit out of the "new" thing Mar 02 23:45:10 before the "new" thing is stable :> Mar 02 23:45:27 diki: MDijkstra is just suggesting to inform the app to fetch the website and not fetching it all the time without knowing if there were any changes Mar 02 23:45:43 *,ade Mar 02 23:45:49 -, +m Mar 02 23:45:59 i got this guys almost done correcting my own sentence Mar 02 23:46:19 karlsve:the website is mostly dynamic, so there will be changes of course. Mar 02 23:46:23 every second. Mar 02 23:47:03 diki: what do you mean by dynamic? Mar 02 23:47:07 diki: so send the data through other channel Mar 02 23:47:32 karlsve:Like the content is different every time you fetch the page. Mar 02 23:47:42 Like just some number or something. Mar 02 23:48:01 sounds like gps coordinates of something ^^ Mar 02 23:48:04 But anyway, this isn't really important. Mar 02 23:48:22 So, someone said to move my code for the http stuff in another class Mar 02 23:48:29 I will do that first. Mar 02 23:48:33 diki: we just wanted to tell you some issues you might come across by doing it the way you want to Mar 02 23:49:01 karlsve:Any help is appreciated :) Mar 02 23:51:03 diki: btw a pretty nice example on how a frequently data fetching service might influence your battery life is facebook for android, i dont use it because it drains battery life like no other app does while running in background Mar 02 23:51:38 facebook have no concept of compressing data. Mar 02 23:51:47 it takes more time to receive it Mar 02 23:53:20 diki: the problem isn't the amount of data. this is a common misconception. Mar 02 23:53:38 diki: the problem is that waking up the radio will keep it active for x seconds Mar 02 23:53:56 diki: that x is usually at least 20 seconds Mar 02 23:54:10 diki: so if you do it every thirty seconds, the radio will effectively never sleep Mar 02 23:54:28 the amount of data you download is largely irrelevant Mar 02 23:56:53 (ie, it's much better to download 4mb every hour than to download 1kb every 60 seconds) Mar 02 23:56:56 MDijkstra: although i wouldnt leave the amount of data out of the equation of usability of an app, since most users dont have a data plan covering unlimited free or fast internet Mar 02 23:56:56 i think number of requests is becoming more problematic than amount of data Mar 02 23:57:21 does anyone has experience with glMapBufferOES with ndk? I am having difficulties using the extenion. Seems like I cant properly initialize it. I am using android-9 Mar 02 23:57:23 karlsve: well, true Mar 02 23:57:49 so the best thing is to only load data as its needed and i a format that keeps the data usage to a limited degree Mar 02 23:58:23 ie i use a server to transform a website from html + images into simpel xml which is much less to send Mar 03 00:00:05 what would be cool is if you could listen for device radio state changes Mar 03 00:00:17 so you can wait until it becomes activated, and then send your data Mar 03 00:00:24 kind of like the passive location provider Mar 03 00:00:52 idd Mar 03 00:01:01 Passive aggressive location Mar 03 00:01:08 MDijkstra:I do see a valid point on every hour, but not this webpage. Mar 03 00:01:32 It's a browser based game, I just want to make a mobile app for easier access to the stuff. **** BEGIN LOGGING AT Sun Mar 03 00:04:28 2013 Mar 03 00:05:21 diki: dont do it by using just by showing the website in a seperate app... nobody will like that, never liked those games either it just takes too long to load Mar 03 00:05:52 karlsve:No, I mean I was going to parse the relevant data and display it in UI elements Mar 03 00:06:00 like parsing numbers, stuff like that Mar 03 00:06:12 Obviously rendering the whole page is not a good idea. Mar 03 00:06:24 okay :) thats better Mar 03 00:06:30 rather, its pointless :) Mar 03 00:06:38 are you going to send html tho? Mar 03 00:07:04 Depending on whether I actually complete it, best case scenario I may need to execute POST requests. Mar 03 00:07:59 diki: have a look at jsoup maybe that makes things easier Mar 03 00:08:15 already have Mar 03 00:08:42 I was also suggested to use a 3rd party http library, but too many makes the size of the final app big. Mar 03 00:11:36 I am also kind of confused how to make a nice layout Mar 03 00:11:53 Just using the standard Android buttons and textfields makes the app look bland. Mar 03 00:12:07 diki: https://github.com/karlsve/Lima-City-for-Android you can have a look at this Mar 03 00:12:08 you can customize them Mar 03 00:12:20 and dont worry "too much" about app size Mar 03 00:12:29 3 years ago, it mattered a bit Mar 03 00:12:31 not so much now Mar 03 00:12:36 oh interesting Mar 03 00:12:37 maybe, but what I mean is having a sleek layout Mar 03 00:12:42 in english, what's the group that 'horizontal' and 'vertical' belong to? say their superclass Mar 03 00:12:49 like for instance Skype on Android has nothing to do with holo or any standard layout Mar 03 00:13:15 plane ? Mar 03 00:13:15 skype has a couple things i dont like Mar 03 00:13:20 but yeah, you can customize all that Mar 03 00:13:25 if you take a button and set a custom background Mar 03 00:13:27 or an edittext Mar 03 00:13:29 or... anything Mar 03 00:13:31 question: I can dynamically register a broadcast receiver in an activity ? Mar 03 00:13:41 yed Mar 03 00:13:44 yes* Mar 03 00:13:46 hmm, when I replace a fragment... Mar 03 00:13:54 replace with a fragment* Mar 03 00:14:02 the previous layout is still sitting behind the new one I replaced with. Mar 03 00:14:24 folowup : if using a library project and the send is from a non-subclassed into main project and the receiver is the same, makes no difference ? Mar 03 00:14:55 karlsve:your mainactivity extends basicactivity and not activity? Mar 03 00:15:23 diki: what is the android version the app should be used on and "holo" features do you want, like the ActionBar? Mar 03 00:16:21 the action bar will be useful for when the app is in the background and the user needs to be notified of something, but that is really really on the last line of my list of things to do. Mar 03 00:16:32 My minsdk is api8 Mar 03 00:16:35 which is 2.2 Mar 03 00:16:55 diki: well yeah basic activity my own extension of activity which already has some things set and some listeners to handle important things Mar 03 00:17:02 is* Mar 03 00:17:09 anyone? Mar 03 00:17:12 is that normal behavior? Mar 03 00:17:19 diki: actionBar is not the statusbar dont mix those up Mar 03 00:18:14 karlsve:your code looks very sleek and clean. Mar 03 00:18:26 Mine won't be nearly as neat as that one :) Mar 03 00:18:42 diki: thanks you can get some things from there since its similar to your purpose Mar 03 00:18:55 diki: and it took me quite some time to it that clean Mar 03 00:20:24 diki: what might be what you are looking for could be this https://github.com/karlsve/Lima-City-for-Android/blob/master/src/limaCity/services/SessionService.java Mar 03 00:20:31 hmm, setting the visibility of the previous layout does not quite help. Mar 03 00:21:03 diki: and this https://github.com/karlsve/Lima-City-for-Android/blob/master/src/limaCity/tools/ServerHandling.java Mar 03 00:21:43 will check them out. Mar 03 00:21:51 And what is SherlockActivity? Mar 03 00:22:26 diki: Well that is part of the ActionBar implementation for older android versions Mar 03 00:22:33 ActionBarSherlock Mar 03 00:23:25 since you said something about standard layouts and holo you might want to consider that too Mar 03 00:23:40 diki: http://developer.android.com/guide/topics/ui/actionbar.html Mar 03 00:25:00 hey Mar 03 00:25:26 karlsve:with standard buttons, standard layout I was able to do this to my best of abilities http://i.imgur.com/AujeG.png Mar 03 00:25:34 this is unrelated to the app I am making now. Mar 03 00:26:20 Is there a proper way to make an infinite ViewPager? Mar 03 00:26:48 karlsve:and that application is a RAM hungry monster. Something about the UI makes it use 11-12 megabytes of RAM. Mar 03 00:27:17 I'm currently using a ViewPager that has 3 views and shifting the user back to the middle one everytime creating the illusion that it's infiinite. But the problem is that my pager_title_strip keeps dissapearing untill I touch the screen. :/ Mar 03 00:27:27 diki: http://karlsve.dauerstoned-clan.de/stuff/?folder=lima&file=limamain.png Mar 03 00:27:54 that was before i started remodelling some things and resorting, just basic layouts Mar 03 00:27:58 nothing special Mar 03 00:28:26 Hell if I can do that. Mar 03 00:28:46 diki: and that is not ram hungry Mar 03 00:28:58 well, my previous app was. Mar 03 00:29:09 ran just fine on an emulator - 2-3 megabytes, was 11-12 on device. Mar 03 00:29:13 Hey guys, I am playing with the fragment. But I have a problem when I have 2 button on the same fragment. This fragment consists to enable the tracking for a GPS. When the user comes on the fragment and clic on the bouton he enables the GPS. And at this moment I want hide THE first button AND I want show the other button (who is hide before) any idea ? I try view.invalidate but doesn't work :-( ? Thanks in advance for your help ! Mar 03 00:30:34 P-l: buttonvar.setVisibility(View.Visible | View.INVISIBLE); Mar 03 00:30:42 P-l: consider changing your nick, its confusing Mar 03 00:31:29 My nick isn't only on this chan. And it's a longtime I have this nick. Not only on freenode. Mar 03 00:31:38 sorry if you have a problem with this Mar 03 00:31:53 But do any of you know a good way of making an infinite ViewPager? Mar 03 00:32:21 g00s: I honestly don't mind Mar 03 00:32:23 g00s: your nick is confusing, I thought those zeroes were Os Mar 03 00:32:45 ba dum tss Mar 03 00:32:56 Mega1mpact, I will check again on set visibility :-( Mar 03 00:32:59 thanks Mar 03 00:34:10 is there any way to check a) a broadcast receiver is listening ? cause I have it registering, and I have a sendBroadcast sending, but the broadcastReceiver in the activity dont fire, though works fine in a service Mar 03 00:35:23 Log.d("Receiver", "Listening"); Mar 03 00:35:27 StringRay_: ? Mar 03 00:35:39 deepy: here's a nickel kid, get yourself a real font ;) Mar 03 00:35:49 karlsve: well no Mar 03 00:35:58 StringRay_: Why not? Mar 03 00:36:20 cause I know it fires register and I know the intentService fires send Mar 03 00:36:32 StringRay_: some receivers have to be registered a certain way, also Mar 03 00:37:03 g00s: what ? (in a nice way) Mar 03 00:37:24 I'm dynamically registering a reveiver in an fragment Mar 03 00:37:35 onCreate Mar 03 00:37:54 so uh, does anyone happen to have a sample project using Google Maps, remote KML files and MarkerCluster? Mar 03 00:37:54 ok; i think that should be OK. some can't be registered on way or the other - forgot which ones Mar 03 00:38:03 (dynamic vs Manifest) Mar 03 00:38:26 deepy: i think Tracks has some of those Mar 03 00:38:34 MyTracks, or whatever its called Mar 03 00:39:14 g00s: ever had probs with dynamically registering using lib projects ? Mar 03 00:39:23 that should not make a difference right ? Mar 03 00:39:36 i haven't used lib projects Mar 03 00:44:31 Mega1mpact, It's OK I'm very tired I switch between buttons >< Shame on me :/ thank you ! Mar 03 00:50:42 if I have a horizontal linear layout full of buttons. Mar 03 00:50:57 of 5 buttons. how do I make them take up the width of the parent / 5 Mar 03 00:52:02 etcetera: layout weight Mar 03 00:59:00 thanks Mar 03 01:03:12 I am trying to send one of my Java objects over to my server (I have a web.py app running) and I want to use Gson to just serialize my object and then send a POST to a server. So my question is - do I still make a key / value post to the HTTP server, key being something like my_json and value being something like "{'my_json_key':'my_json_value'}" Mar 03 01:05:29 put the json data as POST body, serialization schema is up to you Mar 03 01:11:53 hey guys, I am loading an image into a webveiw, and want to setup an image map… but I am wondering what is the best way considering the different screen sizes of android devices. Mar 03 01:19:59 Anyone in here have experience with ViewPagers? Mar 03 01:40:11 hi Mar 03 01:40:51 hey Mar 03 01:41:09 so what's everyone using to develop android apps now that you can't even completely extract eclipse to a windows directory? Mar 03 01:41:37 http://developer.android.com/sdk/index.html Mar 03 01:41:52 Just the plain ol ADK Mar 03 01:42:08 sweet Mar 03 01:42:12 an all in one bundle Mar 03 01:42:16 woooooooooooooooooooow Mar 03 01:42:23 i asked everywhere and couldnt get an answer Mar 03 01:42:29 all you need to do is run the SDK manager before you launch eclipse Mar 03 01:42:31 i should have just visited the android website lol Mar 03 01:43:13 yup Mar 03 01:45:29 Mega1mpact: thanks Mar 03 01:46:05 laserbeak43: np Mar 03 01:47:54 I love eclipse Mar 03 01:48:01 you suck Mar 03 01:48:04 haha Mar 03 01:48:06 i do Mar 03 01:48:31 What makes you hate eclipse so much? Mar 03 01:49:10 The amount of configuration it needs to get it working is just rediculess Mar 03 01:49:28 Besides that it's fine if you ask me Mar 03 01:49:28 agy2154, that they made me change my nick because people kept asking me about it? Mar 03 01:49:31 I WAS FIRST Mar 03 01:51:06 Mega1mpact: It only takes me a couple of minutes to get everything set up.... before It even came with the SDK manager location all set up and everything but I don't know what they did now. Mar 03 01:51:53 Anyways I'm going to take a shower. Peace! Mar 03 01:52:19 I'm getting a NullPointerException when I do GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); Mar 03 01:52:26 am I doing something wrong? Mar 03 01:53:23 well it's not finding it, so calling .getMap() on null is probably your exception Mar 03 01:55:04 Yay people are waking up in this channel Mar 03 01:55:17 1:55am here Mar 03 01:55:25 going to sleep soon Mar 03 01:55:29 well maybe few hours Mar 03 01:55:38 Do any of you have any experience with the ViewPager? Mar 03 01:55:42 2:55AM here Mar 03 01:55:44 NL Mar 03 01:55:47 UK Mar 03 01:55:55 you beat me Mar 03 01:56:39 Mega1mpact: as a point probably 50+% here have used viewpager, better to just ask a question that to ask if some knows "anything/something" Mar 03 01:56:49 than* Mar 03 01:56:57 I need to make an infinite viewpager Mar 03 01:57:16 I'm currently using a ViewPager that has 3 views and shifting the user back to the middle one everytime creating the illusion that it's infiinite. But the problem is that my pager_title_strip keeps dissapearing untill I touch the screen. :/ Mar 03 01:58:34 Noone? Mar 03 01:58:35 funky, you riped a view hierarchy in it's missing state to see if it's actually there ? Mar 03 01:58:59 wat? Mar 03 02:00:02 http://pastebin.com/navhTjar Mar 03 02:00:18 That is basicly what my current code boils down to Mar 03 02:02:41 ignore the 2 in mViewPager.setCurrentItem(2, false); etc. I was messing arond with 5 views instead of 3 to see if that improved it :/ Mar 03 02:03:14 any clue why it's removing my pager_title_strip untill I touch the screen? Mar 03 02:03:31 do what i said Mar 03 02:03:38 to see what your dealing with Mar 03 02:03:49 is it there ? hidden ? missplaced ? Mar 03 02:04:08 it's not hidden or misplaced etc. Mar 03 02:04:24 as in dump the view hierarchy ? and ? Mar 03 02:04:33 is it not there ? Mar 03 02:04:35 I never hide it and the thing is pretty much generated using the wizard Mar 03 02:05:10 ddms > devices > (then the little icon looks like a stack of 3 phones) Mar 03 02:05:17 then look for your title view Mar 03 02:07:07 Error obtaining UI hierarchy Mar 03 02:07:07 UI Automator requires a device with API Level 16 Mar 03 02:07:10 :/ Mar 03 02:07:27 1 sec Mar 03 02:12:36 hmm according to the dump Mar 03 02:12:48 it's drawing an empty viewpager Mar 03 02:14:39 I have no clue what's goign on :/ Mar 03 02:17:06 hey guys, I'm trying to run the android command from the console in linux and I get NullPointerException, any thoughts on what might cause that? http://paste.lisp.org/display/135796 Mar 03 02:17:56 permissions ? Mar 03 02:18:06 Have you tried running the SDK manager through eclipse Mar 03 02:18:08 also sudo Mar 03 02:21:57 StringRay_ any idea why it won't render the view inside of the viewpager? Mar 03 02:22:23 the way your switching it ? Mar 03 02:22:45 on the actual root view maybe try postDelay/ invalidate() etc Mar 03 02:22:54 :/ Mar 03 02:22:57 root being the view pager index view Mar 03 02:37:05 hmmm Mar 03 02:37:22 if I do mViewPager.setCurrentItem(1, true); Mar 03 02:37:29 instead of mViewPager.setCurrentItem(1, false); Mar 03 02:37:34 it doesn't bug out Mar 03 02:39:04 * g00s is glad he isn't using Evernote ;) Mar 03 02:39:13 "Crazy Eddie's data service" Mar 03 02:40:28 how can i debug my application in android , is there one way to run it step by step where i can see all the values are getting my variables Mar 03 02:40:56 tona: why do that, when you can just talk to the rubber ducky? Mar 03 02:41:52 StringRay_: The weird thing is that the sdk was running before and now it stopped working. Mar 03 02:42:01 g00s: I prefer my cat Mar 03 02:42:01 Mega1mpact: I haven't been using eclipse but maybe I should. Mar 03 02:42:13 Mega1mpact: Dr Claw ? :) Mar 03 02:42:33 Nope her name is "otje" the other one is called "bubble" Mar 03 02:42:38 I didn't pick the names Mar 03 02:43:01 http://3.bp.blogspot.com/_kQj5YgHzv_Y/TSi8RXv6JHI/AAAAAAAAABQ/oz9nD9UBeec/s1600/-..-uimages-otje.jpg \o/ Mar 03 02:43:33 famous dutch children's book :0 Mar 03 02:43:44 Yup. The name "otje" is from a famous dutch childrens book Mar 03 02:44:18 StringRay_: Mega1mpact: So yeah, I just needed sudo. Ha, such a helpful error message. Thanks guys, who knows how long it would have taken me to realize that. Mar 03 02:46:07 ages Mar 03 02:46:13 plantian: 5 min on gogle Mar 03 02:46:17 google* Mar 03 02:47:01 http://heeeeeeeey.com/ Mar 03 02:47:08 StringRay_: I spent 5 minutes on google and its pretty general so there are a lot of bad results. Mar 03 02:49:39 plantian: you maybe right Mar 03 02:49:45 I just did a search lol Mar 03 02:49:52 wanting to prove you wrong Mar 03 02:49:56 fail Mar 03 02:50:34 StringRay_: Ps, I rewrote my app to not use the account manager after talking to you yesterday and my app makes a lot more sense. Mar 03 02:50:56 sh*t really ? Mar 03 02:51:14 really really dont listen to me, well not in android dev neway Mar 03 02:51:14 Haha, I can't tell if that is sarcasm. Mar 03 02:51:38 come to #maya and then yeah, listen Mar 03 02:51:43 not here though Mar 03 02:51:47 jesus Mar 03 02:51:58 not sarcasm btw Mar 03 02:52:01 :) Mar 03 02:53:06 StringRay_: i think you have a picture for me :) Mar 03 02:53:06 StringRay_: Well I think it was you, you said your store your auth in a bg service? Mar 03 02:53:55 g00s: I really dont, I found an old shitty one on facebook that I took in the storm but the grading looks awful Mar 03 02:54:05 :( Mar 03 02:54:10 gotta run, thanks for the help Mar 03 02:54:14 looked on my photo NAS couldn't find the set Mar 03 02:54:18 StringRay_ -> ping Mar 03 02:54:44 StringRay_: i just realized you nick was not StringRay_ :| Mar 03 02:55:01 lol Mar 03 02:55:08 StringarRay Mar 03 02:55:13 =) Mar 03 02:55:28 hey i have a hell of a time with Stings while coding Mar 03 02:55:32 btw, looking back through 10 years of photos, i realized i had maybe 5 good ones and 7000 bad ones :| Mar 03 02:56:27 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-ash4/320_27196841785_5526_n.jpg Mar 03 02:56:33 see that was part of the set Mar 03 02:56:39 but can only find crappy ones Mar 03 02:56:53 https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-ash4/320_27961341785_3407_n.jpg Mar 03 02:57:05 i kept typing Sti and nothing would happen, thought Colloquy had gone mad Mar 03 02:57:19 oh shit Mar 03 02:57:33 O.o Mar 03 02:57:35 no I am StingRay Mar 03 02:57:52 oh, i like the second one - wtf is that ? Mar 03 02:58:04 http://www.youtube.com/watch?v=E06cNv55jTs Mar 03 02:58:09 stingray Mar 03 02:58:12 :) Mar 03 02:59:16 g00s: thats a pier, used to be a big dance hall Mar 03 02:59:30 battered by a fire and 100's of storms now Mar 03 02:59:33 sad really Mar 03 02:59:48 interesting Mar 03 02:59:54 urban decay photo :) **** ENDING LOGGING AT Sun Mar 03 02:59:58 2013