**** BEGIN LOGGING AT Sun Jun 02 02:59:58 2013 Jun 02 03:04:37 how can i install GCC on my android? Jun 02 03:04:41 i got a terminal ide already Jun 02 03:05:03 <[deXter]> bitgod, terminal IDE already has gcc... Jun 02 03:05:45 no it doesnt Jun 02 03:05:52 i opened it, i typed gcc Jun 02 03:05:54 not found Jun 02 03:06:10 <[deXter]> bitgod, it's called terminal-gcc Jun 02 03:06:48 so i type terminal-gcc mysource.c -o mydestfile Jun 02 03:06:48 ? Jun 02 03:06:51 <[deXter]> Make sure you run "install_gcc" first Jun 02 03:06:54 o Jun 02 03:06:55 <[deXter]> that will extract gcc Jun 02 03:06:59 <[deXter]> then you can do terminal-gcc Jun 02 03:07:28 ty Jun 02 03:07:31 <3 Jun 02 03:07:39 does gcc do c++ or just c? Jun 02 03:07:49 <[deXter]> should do c++ as well Jun 02 03:08:12 <[deXter]> wait Jun 02 03:08:20 <[deXter]> there's a "terminal-g++" Jun 02 03:08:54 and how do i install that Jun 02 03:09:38 <[deXter]> it should be present already Jun 02 03:09:51 mmm ... did he want a compiler on his phone? :p Jun 02 03:09:57 tablet Jun 02 03:10:10 terminal-g++ is for c++? Jun 02 03:10:29 https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en Jun 02 03:10:31 Hi. I've tried to use "attachToRoot" property, instead of AddView on the parent. Jun 02 03:10:42 <[deXter]> bitgod, yeah Jun 02 03:10:46 ty Jun 02 03:11:09 But It seems that every new "view" i add overwrite past (but the textView, and buttons remains, but without listeneres and text) Jun 02 03:11:11 https://gist.github.com/bluesm/5692478 Jun 02 03:20:32 Hey, psuedo code how does a side swipe listview work? like the call logs and stuff Jun 02 03:20:55 I got an event that registers on the sideswipe on each custom adapter, but it only triggers after the finger has been lifted Jun 02 03:50:16 i took a chrome update, and now i cant access a google website ~_~ Jun 02 03:54:00 I'm using Intent.ACTION_GET_CONTENT to select a file. But when I test on AVD, I get "No apps can perform this action." Jun 02 03:54:40 I guess I can use my Nexus7 to save an apk-file of an app that provides file-choosing. Then use adb to install on AVD. Jun 02 03:55:26 But is there a way install apps for Google Play without using this trickery? To install an app without going through some intermediate device? Jun 02 03:55:58 anyone know how to change the content in a tab fragment that isn't currently displayed? Jun 02 04:00:47 does the fragment exist? Jun 02 04:05:55 It is instantiated and stored in a hash map I think Jun 02 04:06:09 so you have a reference to it Jun 02 04:06:14 so you can do whatever you want, right? Jun 02 04:06:44 I store it in a hash map Jun 02 04:06:55 but then I check in that hash map and look at it and it's always null :| Jun 02 04:38:13 in terminal ide... where is pico? Jun 02 04:38:23 trying to write c/c++ code Jun 02 04:40:06 got it... vim Jun 02 04:46:44 xandroid1: (check out submlime text for doing that kind of thing) Jun 02 04:47:06 im on android Jun 02 04:47:07 :p Jun 02 04:47:32 and terminal ide includes a compiler and vim editor Jun 02 05:06:27 fragment = null Jun 02 05:06:31 forever null fragment Jun 02 05:24:24 grrr Jun 02 05:24:27 terminal ide Jun 02 05:24:36 where is the files stored on the tablet Jun 02 05:24:43 im trying to get into projects Jun 02 05:55:07 hi, can anyone please tell me how to use build_prebuilt? i would normally PRODUCT_COPY_FILES=$(LOCAL_PATH)/..... :/system/... but it turns out i can't do that in jb Jun 02 05:57:55 so none of the tabs create their views when the fragments themselves are created... Jun 02 05:58:10 and I've tried building the whole create view process into the process that adds the tabs to the tab host Jun 02 05:58:27 and I'm super tired... nothing is working... I really hate android right now... and fuck this Jun 02 06:12:31 what is the default layout inflater that is used when a supportfragmentmanager commits? Jun 02 06:15:42 canadiancow , wow! http://m.guardiannews.com/commentisfree/2011/jul/07/cows-best-friends Jun 02 06:16:14 "According to new research by scientists at Northampton University, cows have "best friends" and get stressed when separated." Jun 02 06:17:38 Am i correct in my assumption that this is a help-channel as well? Jun 02 06:18:02 Probeus self help, yes Jun 02 06:18:08 like, you help yourself Jun 02 06:18:56 if you are having a problem with your ide, the standard answer that usually works is switch to intellij Jun 02 06:20:12 g00s: Im struggling with understanding threading for android, and always occur an error about only the original thread that created a vies hierachy can touch its views. However this error occurs after the thread seems to have done its work. Jun 02 06:20:47 yeah, you can't touch a view from a non-ui threaf Jun 02 06:21:31 "Certain cows will always be the ring leaders when trouble occurs" Jun 02 06:21:39 * g00s stares in canadiancow general direction Jun 02 06:22:27 I am unable to find where my error is. http://pastebin.com/AxMSi00R Jun 02 06:23:33 this part: Jun 02 06:23:35 new Thread(new Runnable() { Jun 02 06:23:36 public void run() { Jun 02 06:23:36 textbox.setText(getXmlFromInternet()); Jun 02 06:23:36 } Jun 02 06:23:36 }).start(); Jun 02 06:24:14 like i said, only the main thread can call methods on views Jun 02 06:24:34 try using an AsyncTask Jun 02 06:25:10 Thanks, ill look into AsyncTask :) Jun 02 06:25:43 its not the greatest, i usually don't recommend it for networking, but that should get you out of this jam Jun 02 06:25:51 when you want , look into IntentService Jun 02 06:42:20 can any one advice me on app launcher creation Jun 02 06:44:43 mmmmm .... calzones .... Jun 02 06:45:14 * capella 's best friend is a cow Jun 02 06:46:37 sudo apt-get install cow Jun 02 06:47:02 The ringleader is the one in the far-side cartoon who yells "Car!!!" Jun 02 06:48:37 wat is with all this cow talk Jun 02 06:49:55 g00s started it Jun 02 06:50:26 cow?? I need to know about launcher development,expect you all to advice Jun 02 06:52:26 no ... cow launchers werent far-side, they were monty python Jun 02 07:44:51 hi Jun 02 07:45:12 I installed sample Home app comes with sdk tools Jun 02 07:45:22 but how can see the launcher running Jun 02 07:45:56 in console i got a message Home app installed success fully Done!! but no App icon found Jun 02 08:00:35 is this on the emulator ? Jun 02 08:03:25 If I want to do a query where I have no where clause, do I put null for both the where, and the where parameters? Here's a link: http://pastie.org/7995647 -- So if I want all entries from taks, would I use the first or second entry? Jun 02 08:05:07 hey guys, i'm trying to send commands from an app to a terminal opened on a server running on linux Jun 02 08:05:26 like any simple program, but i'm stuck Jun 02 08:06:45 actually, I can send commands like "cheese" to the terminal, and it runs ok Jun 02 08:07:47 but if I run a program that asks for user input, like "what's your name?", i can't send anything from the app Jun 02 08:07:59 i'm using tcp sockets Jun 02 08:10:34 rdblck: pastebin your code Jun 02 08:12:19 Guys I have simple code which runs mobile camera http://pastie.org/7993495. I rewrote onActivityResult to acces the video but that code doesnt get executed. What I do on device is record video and then return back to app using back button. Jun 02 08:16:05 Trudko: i don't think back button completes the activity like you are thinking it does - finish() has to be called, with the data for the result being set prior to that Jun 02 08:16:16 How can I make a clock's needle rotate? Jun 02 08:21:45 Trudko: on a second look, i think you just need to use startActivityForResult instead of startActivity Jun 02 08:22:03 Jc_Dev: great i will try it. Jun 02 08:22:20 zyngawow: i'm guessing you would need to draw it or look into some sort of animation Jun 02 08:24:12 hi guys, i need a suggestion about an article or tutorial or something that can help me with my problem, i have an activity with static elements in it, and i want on button press to show some fragments overlaying the activity, the problem is i don't know how it can be made that the children fragment to get an absolute position over all the other views Jun 02 08:24:41 norbi: that happens automatically Jun 02 08:24:58 the fragment appears overtop of the other activity Jun 02 08:25:33 Jc_Dev, yes but activity contains views and layouts Jun 02 08:25:38 other then the fragment Jun 02 08:25:56 Jc_Dev: then i want to appear a fragment from nowhere on button press Jun 02 08:26:46 i have the fragment, but dont know in wich layout to put it in Jun 02 08:26:57 and make that layout overlay on top of others Jun 02 08:27:05 norbi: ah ok, yeah you get that for free, one sec Jun 02 08:28:51 norbi: the class you want is DialogFragment Jun 02 08:29:01 http://developer.android.com/reference/android/app/DialogFragment.html Jun 02 08:29:13 "A fragment that displays a dialog window, floating on top of its activity's window." Jun 02 08:29:22 Jc_Dev: thank you very much! i appreciate your help Jun 02 08:29:28 you're welcome :) Jun 02 08:30:46 Jc_Dev: that was a fast and good solution, wow:) Jun 02 08:32:34 yeah it's nice when you get functionality like that built-in to the api Jun 02 08:59:19 i need to build ndk after each src modification? Jun 02 08:59:25 and res modification? Jun 02 08:59:56 because ive just added some more layout parts into my xml and application hangs, wont start Jun 02 09:00:50 Jc_dev what you wrote worked . I am courios if my approach is good for what I want to do. Basicly I want user to record video then he can preview it and then i will upload it somewhere probably youtube. Maybe somwhere else. Jun 02 09:01:29 and i guess he can preview it in default camera app and just return the video which he likes. Jun 02 09:02:20 makes sense - is the dialogfragment for the preview part? Jun 02 09:03:37 not using dialogfragment. aFAIK that is available since 3.0 and i want to support older androids too Jun 02 09:04:29 in that case you could use http://developer.android.com/reference/android/support/v4/app/DialogFragment.html Jun 02 09:05:04 " Used to write apps that run on platforms prior to Android 3.0. " Jun 02 09:05:07 if you wanted anyways Jun 02 09:06:36 keep in mind you can already record video clips and upload them to youtube via the share button Jun 02 09:09:19 hi. I just forgot! where i should set the shortcut name of my app? Jun 02 09:09:38 AndroidManifiest.xml, the label on the application element Jun 02 09:09:47 Aha! thanks Jun 02 09:09:52 np :) Jun 02 09:12:42 Jc_Dev, I have @string/app_name in the label.. but it's not showing that name in under the application Icon. Jun 02 09:12:55 Where can I find application ideas to show to potential customers? Jun 02 09:13:13 superlinux-hp: that's a reference to a string named "app_name" under res\values\strings.xml Jun 02 09:14:07 zyngawow: other than your imagination, you could demonstrate existing apps from the google play store... Jun 02 09:14:22 Jc_Dev, I know! I know! .. I am asking that because I have two versions of the same app : ad based and paid version Jun 02 09:15:26 but both are showing the same name under the application icon; whereas in the top i see the label I want. Jun 02 09:15:34 superlinux-hp: oh, so you want to change it at build time, depending on which version you're compiling? if so, what are you using as a build system? Jun 02 09:16:03 eclipse Jun 02 09:16:18 and the plugins of eclipse of course Jun 02 09:16:40 ADT that's Jun 02 09:16:58 k, yeah, not sure if it can do that - you may want to move to Android Studio, which uses gradle as it's build system, it supports all sorts of cool build stuff, but you'll have to learn gradle and it's all manually configured Jun 02 09:17:29 but the gui configuration will come soon Jun 02 09:17:36 you could look into how applications did that in eclipse prior to Android Studio/gradle, but i honestly wouldn't know myself Jun 02 09:17:54 timroes: excellent :) Jun 02 09:19:32 Jc_Dev Why do you want to use dialogFragmet? I do realize that I can use share but as I mentioned I may decide to sent video somwhere else. Jun 02 09:20:23 Trudko: sorry i got you confused with someone else i was helping, nevermind about dialog fragment Jun 02 09:20:44 jc_dev heh ok. Jun 02 09:21:57 Trudko: if the main point of your app is to support sending video clips "to places", i would implement it as an app that exposes itself as an item on the share menu for videos (you can use an intent-filter in your manifest.xml), then ppl record a video, click share, click your app, then you go from there (you'll already have a reference to a video clip at this point) Jun 02 09:22:48 Jc_Dev: well shareing video is not only thing. It also sends some personal data. So user should add his name age gender lets say Jun 02 09:23:13 And after user share his video I want to give certain feedback(acutally run my custom video) back to user. Jun 02 09:24:22 Trudko: gotcha- that same flow would work though. for example, take a look at Skitch, it's an app that lets you customize pictures in a similar flow. Jun 02 09:24:31 Ok will Jun 02 09:24:52 basically, you share a piece of media to your app, customize it, then click the share button again from within your app when the person is happy with the customizations Jun 02 09:25:59 e.g. 1. record video using camera app, 2. share to your app to add customizations and maybe fill out a form, 3. click share button from your app to share the customized video to youtube Jun 02 09:26:21 in step #2, you could offer preview functionality and whatever else Jun 02 09:27:37 there's still nothing wrong with supporting the flow you started though either (launching your app first, then grabbing a video clip), i'm just saying you should probably support both ways Jun 02 09:27:42 jc_dev i see. previous wouldnt be neccessery because he can record as many videos as he likes and choose the one he wants. Jun 02 09:28:26 yep yep Jun 02 09:28:40 alright i'm calling it a night, good luck! Jun 02 09:31:08 * StingRay_ has had his 1st experience with google dev console…. erm, are they serious ? Jun 02 09:31:13 * StingRay_ shocked Jun 02 09:32:10 StingRay_: what's your problem with it? Jun 02 09:32:21 everything Jun 02 09:32:32 there is not much good about it Jun 02 09:32:43 too many ways to make mistakes that are not recoverable Jun 02 09:32:53 you can get it confused and looped too easy Jun 02 09:33:01 never got looped in there o.O Jun 02 09:33:02 tis a bit of a ….well …. mess Jun 02 09:33:05 easy Jun 02 09:33:17 imagine your using the alpha beta stuff Jun 02 09:33:26 i already did :) Jun 02 09:33:31 worked like a charm Jun 02 09:33:34 you upload a test version but…accidentally goes into prod Jun 02 09:33:42 and after your finished your test, you just select publish on the apk Jun 02 09:33:53 timroes: lemme finish Jun 02 09:34:02 telling you the loop unsavable thing Jun 02 09:34:33 so neways you can Deactivate the prod upload Jun 02 09:35:02 o.O i would just click on deactivate behind the version :) Jun 02 09:35:03 so now you want to upload a new test version that has any change that opens the devices up to be more Jun 02 09:35:28 so no you have a draft warning Jun 02 09:35:49 saying that a there is no need for hte viersion you uploaded (prod) Jun 02 09:35:56 but there is no way to delete it Jun 02 09:36:04 so yeah, I just find it a mess Jun 02 09:40:08 tis a bit silly when the only way to keep the packagename is move to release mode and publish Jun 02 09:40:13 just bad design Jun 02 09:40:16 really Jun 02 09:42:19 jc_Dev thx Jun 02 09:43:18 Guys I started camera intent to let user record video and hopefully i want to access this video. But when I try in on my phone i record video and naturally I push back button to return to my APP. Problem is that resultCode in onActivityResult will be canceled. Jun 02 09:43:38 Cant find way how to handle back button. Jun 02 09:44:07 the back button is outside your app though ? Jun 02 09:44:11 in the camera app Jun 02 09:44:17 how would you want to handle it ? Jun 02 09:56:34 how can i recompile the project in eclipse Jun 02 09:56:42 if i delete all bytecode Jun 02 09:56:44 gen/ Jun 02 09:56:46 bin/ Jun 02 09:56:51 apk Jun 02 09:56:59 and recompile Jun 02 09:57:11 but eclipse is very bitchy about it Jun 02 09:57:59 the time stamps were not recent Jun 02 09:58:42 i want to send all the latest source code compiled and be sure it's the most recent before i ask somebody test this for bugs Jun 02 09:59:19 can this all be done through the command line with the sdk in linux? Jun 02 10:01:29 im inflating a layout in a fragment in method onCreateView, and returning that variable, using that variable im able to access views by findViewById() but how can i access views in the other methods, i dont want to inflate again, do i? Jun 02 10:03:06 store a reference to it Jun 02 10:03:31 and either return it via another method, or access it from within the fragment Jun 02 10:04:44 StingRay_: so i can declare a view resource on top of class, then simply resource=inflated view? Jun 02 10:07:53 StingRay_: im inflating this way: View v=LayoutInflater.inflate(R...); then View res=v; then when i try to access by id, then res.findViewById(R.id....); but it says that i cant access a listview in it, do i need to cast it into listview? Jun 02 10:08:28 I think you should start at the begining Jun 02 10:08:41 cause your doing some odd things Jun 02 10:08:51 as in View v that then you store as res ? Jun 02 10:08:56 for what puprose ? Jun 02 10:09:32 and yes, if you get a listView , you need to cast it as findVIewByID returns a (View) Jun 02 10:10:44 eclipse is broken Jun 02 10:10:54 so far nothin new :) Jun 02 10:11:06 does anybody use the command line or even external editor for android development? Jun 02 10:11:38 command line is ant, so i used ant but from another ide Jun 02 10:11:55 how do you generate the ant file Jun 02 10:12:08 `android update project -p .` Jun 02 10:12:12 while you are in the folder of your project Jun 02 10:12:27 or android update lib-project -p . if the project is a library Jun 02 10:12:28 i used ant a few times in the past, but only because i was doing a git clone to a linux server without gui and netbeans generated the ant file Jun 02 10:12:54 timroes -> do you know of a site that explains this well Jun 02 10:13:00 where did you read it Jun 02 10:13:10 if it tells you, that it needs a target argument, add --targer=android-17 (or whatever api level you want to compile to) Jun 02 10:13:15 android --help :) Jun 02 10:13:33 android --help update Jun 02 10:13:51 hmm, does it provide man pages to linux Jun 02 10:13:59 StingRay_: as class variable i have View res; then in onCreateView(...){ View v=LayoutInflater.inflate()...; res=v; return v;} Jun 02 10:14:06 BullShark: afaik not Jun 02 10:14:17 only the help output Jun 02 10:14:36 timroes -> because it's many windoze users Jun 02 10:14:54 timroes -> but i will file a bug to google for not providing linux man pages Jun 02 10:15:14 heyo Jun 02 10:15:19 norbi: yeah why have 2 instances ? Jun 02 10:15:31 and I guess, because most ppl doesn't download it through their package manager, but download it and install it, meaning you would havbe to copy the man files by hand Jun 02 10:15:35 SpearThruster -> oh yo Jun 02 10:15:42 and Like i said if you assign to a listView from findView* you need to cast it Jun 02 10:15:49 as it returns just a View Jun 02 10:16:04 hmm Jun 02 10:16:47 yes, some linux distrobutions are providing the sdk from their repositories. perhaps they have written man pages. Jun 02 10:17:00 and these packages provide them Jun 02 10:17:58 StingRay_: i should only res=inflate()..? Jun 02 10:18:00 timroes -> that update option will generate gen? Jun 02 10:18:09 timroes -> eclipse is like a bitchy wife Jun 02 10:18:13 no it will generate the files needed to build with ant Jun 02 10:18:18 she has not been fingered at the command line Jun 02 10:18:22 so the build.xml and the project.properties and so on Jun 02 10:18:30 norbi: I would go through the tutorials at d.android.com if I were you Jun 02 10:18:40 and then you can do `ant debug` afterwards Jun 02 10:19:38 StingRay_: i did and doing it now also.. im in learning phase, but i need practice to learn, cuz im forgeting all of it until i start to type Jun 02 10:22:51 With the null column hack, do I only need to use that if I want to be able to pass a content value that has no value for that column? Or does it apply even if I add an instance to my contentvalues for that column that simply contains a null value. Jun 02 10:23:03 <_Saul_> hello! Jun 02 10:23:09 More simply: if I ahve a column task_id, and I do cv.put("task_id", null) in any cv I put in, do I need nullcolumnhack set to true? Jun 02 10:23:11 timroes -> no need for copying man pages by hand. many open source projects without a package use autotools, configure script that generates the Makefile, the makefile builds and puts all the files in the proper place including man pages Jun 02 10:23:51 timroes -> from those projects with autotools, the linux developers use to generate distro specific packages. Jun 02 10:24:29 yeah but that applies for projects that need to be configured and made Jun 02 10:24:32 and not just unzipped Jun 02 10:24:41 anyway i don't care much if they provide help output or a man file :) Jun 02 10:26:39 <_Saul_> I'm still having problems with collisions/detaching in andengine, anyone? thanks! Jun 02 10:27:21 i tried android development in windows. i felt like i was running around naked. Jun 02 10:28:20 it was not the same. i did all my development under a few linux distros. Jun 02 10:31:26 <_Saul_> BullShark, so it's better to develop android in linux? why? Jun 02 10:32:13 <_Saul_> I'm trying to do it under windows, on eclipse Jun 02 10:32:30 <_Saul_> I'm a noob though xD Jun 02 10:32:47 _Saul_ -> because windows is like dev without using protection, or a bad quality condom that ripped Jun 02 10:33:13 <_Saul_> auch Jun 02 10:34:54 <_Saul_> ok, at some point I'll move to linux then :P Jun 02 10:35:29 <_Saul_> do you know a thing or two about collisions/detaching in andengine? I'm pretty stuck Jun 02 10:36:00 <_Saul_> I have the code in MEGA, in case a kind soul is around xDD Jun 02 10:36:42 <_Saul_> if the collision/detaching thing is done, I'm sure I will pass this subject from school Jun 02 10:40:32 at the latest when you want to do android embedded development you cannot do that under windows anymore Jun 02 10:41:14 _Saul_ -> i am suggesting linux mint with cinnamon Jun 02 10:41:37 _Saul_ -> 15 is to be released very soon Jun 02 10:41:39 <_Saul_> also, is it faster running than windows? cos windows is slooooooooowwwwww... man! Jun 02 10:41:56 _Saul_: yeah you cannot at all compare linux speed to windows speed Jun 02 10:42:15 <_Saul_> well, there's bluestacks... Jun 02 10:42:17 if run both on the same computer (windows just for gaming), so a plain windows only installed 2 games, and a full blown linux with everything installed Jun 02 10:42:18 _Saul_ -> i have not caught any aids or jungle virus while using linux Jun 02 10:42:29 windows boots around 100 times slower Jun 02 10:42:34 (and that was a realistic number) Jun 02 10:42:46 <_Saul_> haha Jun 02 10:43:08 when i logged in i still have to wait another MINUTE or so, until its really useable Jun 02 10:43:12 because everything stopped loading Jun 02 10:43:17 i mean.. what the hell? Jun 02 10:43:18 <_Saul_> ok, linux mint, I'll keep it in my mind Jun 02 10:43:52 _Saul_: the google guys developed most of the tools for the use with ubuntu, but since mint is based on ubuntu you might not get so much trouble Jun 02 10:44:02 just if you switch to something completely different you might need to change some things by hand Jun 02 10:45:34 _Saul_ -> it made distro of the year a few times recently on distrowatch Jun 02 10:45:42 <_Saul_> I don't know if I will want to work as an android developer, at this moment I'm finishing my programming studies... and I'm more interested in web dev Jun 02 10:46:09 _Saul_ -> ubuntu is crap. arch linux is crap. gentoo is awesome crap, but it's advanced. you need some background or a very die hard to begin with it. Jun 02 10:46:44 gentoo ist absolutely awesome (if you know what linux is) Jun 02 10:46:54 and they have best support i've yet discovered on a linux distro Jun 02 10:47:07 timroes -> i agree, but i don't want to scare away beginners who never touched linux before. Jun 02 10:47:10 nothin compared to mint (or even ubuntu, that have mainly only "you need help? go and piss off" Jun 02 10:47:13 <_Saul_> you look like a linux mint sellsman Jun 02 10:47:25 yeah you should not and mostly cannot use gentoo if you are linux beginner Jun 02 10:47:53 _Saul_ -> i am giving mint with each of my business card Jun 02 10:48:26 <_Saul_> and do you use eclipse for that? Jun 02 10:49:26 _Saul_ -> really, you are taught android dev in school? i was just given a strong background in Java and C. The strong background in Java helped me greatly, but I still had to learn android dev on my own. Jun 02 10:49:34 hi everybody! Can anybody tell me if Android "Motion Vector Sensor" uses the same coordinate system as the Gyroscope Sensor? Jun 02 10:49:55 <_Saul_> well, yes... my teacher likes android and decided to teach us some basics Jun 02 10:49:56 BullShark: and when did you went to school? Jun 02 10:50:17 timroes -> associates obtained in 2010 Jun 02 10:50:36 what a surprise you didn't get tought android tthat time :) Jun 02 10:50:49 by this time, i had taken all math and programming courses i was allowed to Jun 02 10:51:39 actually i had taken some programming courses with a prerequisite of college algebra before i took and passed it Jun 02 10:51:48 an exception was made for me Jun 02 10:51:54 without try and catch Jun 02 10:53:17 <_Saul_> and forgive my English, is quite bad, I'm sure you've noticed that Jun 02 10:53:48 yes, it was the same professor i took in previous CS courses that allowed the exception Jun 02 10:54:20 maybe i was asking extra questions about big O notation at the time =/ but i learned it Jun 02 10:56:57 O.O did i really see KKK in a rap video Jun 02 10:57:06 * BullShark rewinds Jun 02 10:57:55 and big black booty in the same video Jun 02 10:59:11 do you know any bluetooth sniffer for windows? Jun 02 10:59:29 i want to try to send characters via bluetooth and read those in a terminal Jun 02 10:59:36 did anybody besides me watch those videos by thenewboston on youtube? i am not trying to spam his crap. i am just wondering. actually i am making a response video that shows bug fixes in his code Jun 02 11:00:02 norbi -> what the hell are you doing in this channel? ##windows Jun 02 11:01:05 <_Saul_> BullShark, could you help me with the collisions thing? Jun 02 11:01:41 _Saul_ -> i said something about collisions? Jun 02 11:01:45 <_Saul_> nope Jun 02 11:02:00 <_Saul_> you don't know anything about it? Jun 02 11:02:08 BullShark: im learning bt dev on android, and want to see if it works, trying to send some characters Jun 02 11:03:40 _Saul_ -> ok, but i programmed it with 2d in Java. I lost all my course assignments. i am trying tgo retrieve all from email, so i used pop3, but, i still have to open each file in thunderbird for it to be the right format. i want only attachments. i am thinking there has to be an automated way to go about this. Jun 02 11:03:53 wow, the rain just really started big time Jun 02 11:07:06 <_Saul_> you work on eclipse, BullShark ? Jun 02 11:08:22 _Saul_ -> i have the 3 major ones installed, Netbeans, Eclipse, and the best IntelliJ IDEA. I am mostly using vim but these IDEs all have vim plugins Jun 02 11:08:31 Hello, what is the best way to store static read-only data? I am making an app where the app will present the user a list of a few items with certain properties/tags. I want to be able to add tags in the future without modifying the old ones in the future. What would be the best approach? XML? SQLite? Jun 02 11:09:00 _Saul_ -> I was a Java and C developer before I ever touched Android Jun 02 11:09:01 <_Saul_> I didn't know that last one Jun 02 11:09:16 _Saul_ -> you must know IntelliJ IDEA Jun 02 11:09:17 <_Saul_> I've worked Java and C this course Jun 02 11:09:53 _Saul_ -> Google is moving away from Eclipse and to IntelliJ IDEA with their Android Studio Jun 02 11:10:05 <_Saul_> ok, I'll check it out Jun 02 11:10:53 _Saul_ -> you really are a developer but don't use Linux? Jun 02 11:11:20 <_Saul_> I would, but I need Visual Studio for a VB subject Jun 02 11:11:24 _Saul_ -> i scare beginners away when I suggest Gentoo. Linux Mint with Cinnamon is a great starting point Jun 02 11:11:25 <_Saul_> and games! Jun 02 11:12:16 _Saul_ -> dual boot for games, windows xp in virtual box using seamless mode for everything else, but many games made for windows run good in Linux using Wine. Jun 02 11:13:03 _Saul_ -> i have windows 8 in dual boot, but i am rarely ever using windows unless i want to be not productive and waste my time gaming Jun 02 11:13:30 yes, steam is now on Linux Jun 02 11:13:40 BullShark: Windows is good though if you need to use Adobe software Jun 02 11:14:14 zlayaa -> run it under a windows xp vm with virtual box using seamless mode Jun 02 11:14:26 <_Saul_> you're distracting me xD! collisions/detaching/andengine! I have to fix this before tonight Jun 02 11:14:35 i say windows xp because it runs the apps and is lightest on the resources Jun 02 11:14:43 if you want a hog, you can do vista Jun 02 11:15:04 BullShark: Or develop on a Mac. The best of both worlds, Unix base with a real Terminal and the ability to run Adobe software natively Jun 02 11:15:20 BullShark: and oh, natively developing for iOS is possible too Jun 02 11:15:49 anyone using NAX on Android? Jun 02 11:16:44 zlayaa -> do that if you want. i could run a hackintosh on this pc if i wanted to, but i really prefer not Jun 02 11:17:16 BullShark: Jun 02 11:17:22 if you do let me know Jun 02 11:17:29 I have a nice hack tool I did Jun 02 11:17:47 BullShark: yeah, it's a personal choice. And even though I love Macs I am going to buy a PC in the near future because those Macbooks are so darn expensive Jun 02 11:17:51 it versions and dynamically creates safe mode rollbacks for kernel extensions Jun 02 11:17:52 ;) Jun 02 11:18:06 zlayaa -> you have crap like objective-c and XCode which are both proprietary vendor lockin crap from apple Jun 02 11:19:05 also you pay a ton more for the same hardware specs when buying from apple, want to upgrade your computer? buy a new computer crapintosh Jun 02 11:19:50 BullShark: yes, that's why I'm buying a PC and will attempt to install Hackintosh on it, otherwise I'll run Windows or some Linux dist. But if you want to develop for iOS you don't really have a choice Jun 02 11:20:23 or, if you're a game developer there are great cross-platform engines, but for apps, nah nothing beats an app developed in XCode specifically for iOS Jun 02 11:20:40 zlayaa -> i don't want to develop for iOS or waste my time learning such a proprietary language. The Android Market is HUGE in comparison. Jun 02 11:21:01 BullShark: but not as good for devs Jun 02 11:21:02 ;) Jun 02 11:21:12 well commercially neways Jun 02 11:21:18 BullShark: there is still more money to be earned from the App Store Jun 02 11:21:50 anyone using Nokia Ad Exchange on Android? Jun 02 11:21:55 zlayaa -> how did you figure Jun 02 11:22:03 are there some statistics? Jun 02 11:22:48 when i want to develop an app for a company, i know the majority are running android, not crapple Jun 02 11:23:15 BullShark: http://blog.appannie.com/app-annie-index-market-q1-2013/ Jun 02 11:23:34 BullShark: https://s3.amazonaws.com/files.appannie.com/blog/img/2013-04/app-annie-index-2013q1-app-revenue.png Jun 02 11:24:02 ok, i will take a look later. i have loaded these tabs. im off to bed. Jun 02 11:24:30 BullShark: Hah, I juste ate breakfast Jun 02 11:24:34 BullShark: cya Jun 02 11:25:51 zlayaa -> btw, i am fluent in java and mostly fluent in C. How much does it take to adopt objective-c if i was to ever decide that? Jun 02 11:26:32 zlayaa -> there's actually a compiler in linux for both microcrap c# and crappletosh obj-c Jun 02 11:27:05 BullShark: uh, I don't have a lot of experience from iOS development, been messing around mostly in XCode Jun 02 11:27:42 zlayaa -> does osx and ios have coreutils Jun 02 11:28:25 zlayaa -> i will likely get pissed off trying to use a terminal emulator in an OS that was designed to be all GUI Jun 02 11:29:51 BullShark: I don't think so, there seems to be a port for mac os x Jun 02 11:30:02 BullShark: and an iOS port, but it does seem to require jailbreak Jun 02 11:30:08 linux is already striping raid 0 across 4 drives and still manages to dual boot windoze for gaming. adding osx to the mix. it better pay well to be worth the time. Jun 02 11:30:49 :p Jun 02 11:30:50 zlayaa -> does OSX have coreutils? Jun 02 11:31:10 my question was about the shit os i am forced to use if i want to develop for a shitty platform Jun 02 11:32:33 BullShark: In OS X you have mac utils by default Jun 02 11:32:37 which basically does the same thing Jun 02 11:32:48 you have all the commands like rm sudo ls mkdir Jun 02 11:32:59 if that what's your asking for Jun 02 11:33:00 i don't want os specific crap Jun 02 11:33:03 i want unix Jun 02 11:33:08 and i asked you about coreutils Jun 02 11:33:55 it seems to be possible to install coreutils on mac Jun 02 11:34:23 but coreutils is gnu, right? that would mean that if os x had them installed by default, the whole system would have to be gnu Jun 02 11:34:41 because of the gnu license Jun 02 11:34:46 if I've understood it correctly Jun 02 11:35:50 thanks, tell apple i send my kind regards http://img.chan4chan.com/img/2011-10-05/1317849809455.png Jun 02 11:36:11 haha, wow that hate Jun 02 11:36:59 but developing on os x is nothing like windows, the terminal is fully fledged as it is based on Unix as opposed to on windows Jun 02 11:37:34 i dont develop in windows Jun 02 11:38:08 brb, i need to check if this dvd is bootable Jun 02 11:39:16 OSX terminal is mostly the same, I think if you install macports, it'll give you everything you need that is missing Jun 02 11:46:21 zlayaa -> ive played with osx a bit. it's not terrible. i put it in virtual box under linux, but id never switch to it Jun 02 11:47:25 it still beats windows but windows is the only one that will run 99% of the games Jun 02 11:48:19 zlayaa -> i think you want to take a look at mate, cinnamon, and kde before making a choice. i like cinnamon, but each person is different. Jun 02 11:49:31 Yea, cinnamon buns are pretty good :D Jun 02 11:49:37 Sonicadvance1: :D Jun 02 11:50:35 BullShark: I've run Ubuntu as my main OS for a quite long period, and when using with a mouse it's great. But what I love about OS X Lion and later are all the touchpad gestures Jun 02 11:51:19 Running my web browser and Spotify in separate, full-screen windows allows my to swipe between them with three fingers Jun 02 11:51:26 it's incredibly elegant and intuitive Jun 02 11:51:40 has anybody here worked with the RotationVectorSensor? I am having some difficulties mapping the rotation vector to my OpenGL coordinate system... Jun 02 11:52:05 Scrolling is like on an Android or iOS device but with two fingers and a nice bouncy effect when you hit the bottom Jun 02 11:52:31 Windows 8 has quite nice gesture support, but I have not tried it long enough to give a fair comparison Jun 02 11:52:43 but I have yet to see an os with such good touchpad support Jun 02 11:52:49 it's just so intuitive Jun 02 11:53:09 the charms on windows 8 are most certainly not intuitive Jun 02 11:53:30 useful after you figure it out (someoen tells you or you read the manual), but it's not intuitive Jun 02 11:53:55 StingRay_: sorry was AFK , yes it is in camera app Jun 02 11:54:08 so how would i tell camera app to give me video which was just made Jun 02 11:54:34 Zharf, by "read the manual" you surely mean "you see it shown to you when you log in the first time" right? ;) Jun 02 11:55:13 Mavrik, I've never seen such a thing Jun 02 11:55:40 I've used and installed dozens of windows 8 boxes over the past year -.- Jun 02 11:55:53 is OhSeX still FreeBSD forked ? Jun 02 11:56:02 Guys I started camera intent to let user record video and hopefully i want to access this video. But when I try in on my phone i record video and naturally I push back button to return to my APP. Problem is that resultCode in onActivityResult will be canceled. Jun 02 11:56:08 Zharf, hmm, Its kinda hard to miss Jun 02 11:56:11 it's unskippable. Jun 02 11:56:19 well I haven't seen it -.- Jun 02 11:56:25 maybe my version doesn't have it Jun 02 11:56:32 maybe they added it release Jun 02 11:57:13 bunch of us from work went to the MS office before the release date to show off our app and they asked if we know what charms are and we were clueless Jun 02 11:57:32 nop, it was there in pre-release versions as well, even localized ones Jun 02 11:57:36 and RT and Pro Jun 02 11:57:46 -.- never seen it still :) Jun 02 11:57:49 so I have no idea what you were looking at when setting up the systems :P Jun 02 11:58:09 wtf are charms? Jun 02 11:58:24 Why are they named so dumb? Jun 02 11:58:26 Sonicadvance1, the sides in windows 8 Jun 02 11:58:49 I've never used Windows 8 so I don't even know what "sides" are :< Jun 02 11:59:01 and yet you comment on them. Jun 02 11:59:01 each side is a hotspot on windows 8 Jun 02 11:59:13 * Sonicadvance1 is confused Jun 02 11:59:16 swiping from right brings up stuff like settings & share Jun 02 11:59:29 swiping from top you can close the app or move it to the side pane Jun 02 11:59:39 swiping from left you can swipe between apps.. Jun 02 11:59:50 swiping from bottom you get some kind of context specific menu? Jun 02 11:59:51 most of that stuff is actually pretty neat on a tablet Jun 02 11:59:55 yes Jun 02 12:00:03 most of that stuff however isn't found by most users Jun 02 12:00:04 but it's not really intuitive imo Jun 02 12:00:09 right Jun 02 12:00:17 huh Jun 02 12:00:24 Derpy sounds more like it Jun 02 12:00:25 not to mention the armies of people bitching about an OS they never used :P Jun 02 12:00:38 Mavrik, that to o:p Jun 02 12:00:47 I'm just trying to figure out what a Charm is :P Jun 02 12:00:58 I'd love to have some of those gestures on Android though Jun 02 12:00:58 I was thinking lucky charms right away Jun 02 12:01:15 Action Pro launcher uses some of those concepts and makes using it pretty neat Jun 02 12:02:02 http://www.winrumors.com/wp-content/uploads/2011/09/win8charms.jpg Jun 02 12:02:15 swipe from right you get that thing on the right Jun 02 12:02:53 it's not very mouse friendly though, imo Jun 02 12:03:28 yeah, I never use it when on desktop Jun 02 12:03:28 huh, looks like a phone menu Jun 02 12:03:48 Mavrik, I sometimes do Jun 02 12:03:49 also Jun 02 12:03:56 shutdown is behind that settings icon there Jun 02 12:03:58 it's silly Jun 02 12:04:21 mhm… makes sense on tablet/laptop Jun 02 12:04:22 took me a while to figure how to shut down the box -.- Jun 02 12:04:27 on desktop system even sleep is hidden Jun 02 12:05:24 there was some setting in control panel/power settings iirc that makes it show all the options instead of what MS thinks people want to do with their devices Jun 02 12:06:06 Zharf, I don't mind having shutdown/hibernate hidden Jun 02 12:06:11 it's a silly concept in 21st century anyway ;) Jun 02 12:06:24 I would like to keep sleep option somewhere close though Jun 02 12:06:26 I disagree, but whatever :p Jun 02 12:07:00 I shutdown my computer every night, just because I pay my own electricity bill and it's not doing anything useful Jun 02 12:07:01 just have a big "power" button that puts the system into hybrid sleep and that's it Jun 02 12:08:00 windows does need a proper session handling though, but then all applications would need to adapt Jun 02 12:08:29 and not because I want to shut down my computer Jun 02 12:08:43 because windows forces people to reboot because of updates Jun 02 12:08:48 and then all apps are lost Jun 02 12:09:10 the update system is a total fail still Jun 02 12:09:15 now they even force people to reboot :P Jun 02 12:09:42 yeah Jun 02 12:09:48 but you can disable that from registry Jun 02 12:09:56 I did after it forced me to reboot in the middle of work Jun 02 12:09:58 Hi everybody. For an android App that uses OpenGL ES 2.0 I am trying to match coordinates I get by a RotationVectorSensor to my OpenGL coordinate system, but this somehow isn't working. Does anybody have an idea, what I am understanding wrong about the coordinate systems and how I can transform them so it matches? http://pastebin.com/sAQswca8 Jun 02 12:10:28 stupid android maven plugin Jun 02 12:10:30 I set armeabi-v7a Jun 02 12:10:35 but it made libs/armeabi only Jun 02 12:15:34 Morning Jun 02 12:15:52 Evening Jun 02 12:28:06 Anyone know how to make their own Android NDK? :D Jun 02 12:28:15 hire someone Jun 02 12:28:31 :| Jun 02 12:28:36 seriousily you have to pick your battles and that is not a battle you want Jun 02 12:28:48 I just want a Android NDK for ARM host Jun 02 12:28:49 bleh Jun 02 12:30:23 Lol. You say it so casually as if it's something that can be built in a weekend Jun 02 12:30:54 The problem is there isn't any information on doing it :/ Jun 02 12:30:54 your development machine is ARM? Jun 02 12:31:04 My main development machines yes Jun 02 12:31:42 interesting Jun 02 12:32:01 Samsung ARM chromebook and the ODROID-X Jun 02 12:33:11 ahh Jun 02 12:52:01 But It seems that every new "view" i add overwrite past (but the textView, and buttons remains, but without listeneres and text) Jun 02 12:52:09 https://gist.github.com/bluesm/5692478 Jun 02 12:56:48 <_Saul_> anyone with knowledge of andengine: collisions? Jun 02 13:03:25 hi, i don't remember in Fragment how avoid to call onCreateView every time Jun 02 13:17:02 bluesm try and use false for the last inflater argument Jun 02 13:18:11 bluesm check arrayIndex are distinct, also why is this a table layout? Jun 02 13:25:32 lasserix: With false value, nothing will be inserted Jun 02 13:25:42 lasserix: Nothing is inserted. Jun 02 13:25:57 are you sure not with stockTableTableLayout.addView(newStockRow,arrayIndex); ? Jun 02 13:26:18 lasserix: This is TableLayout because i insert to This tablelayout tablerows. Jun 02 13:27:13 when you are adding view (using addView) you don't have to attach to root, i think Jun 02 13:27:29 lasserix: Right. But I try to do something other. Jun 02 13:27:46 lasserix: Attach to root, and don't use stockTableTableLayout.addView Jun 02 13:28:01 lasserix: I try to understand "attach to root" Jun 02 13:29:44 why not just simply use inflate(XmlPullParser parser, ViewGroup root) ? Jun 02 13:29:59 err Jun 02 13:30:03 inflate(int resource, ViewGroup root) Jun 02 13:30:41 See https://gist.github.com/bluesm/5692478 Jun 02 13:30:52 in that code I use only inflate... Jun 02 13:31:02 addView (is commented out) Jun 02 13:31:09 try View newStockRow = inflater.inflate(R.layout.stock_qoute_row, stockTableTableLayout); Jun 02 13:31:09 Jun 02 13:31:23 it will auto attach to stockTableTableLayout Jun 02 13:31:53 i'm not sure, but check this out: http://stackoverflow.com/questions/12567578/what-does-the-layoutinflater-attachtoroot-parameter-mean Jun 02 13:32:27 lasserix: With that View newStockRow = inflater.inflate(R.layout.stock_qoute_row, stockTableTableLayout); Jun 02 13:32:48 lasserix: Text Views and buttons seems to be overwritten. Jun 02 13:32:59 ahh Jun 02 13:33:33 you should read this: http://stackoverflow.com/questions/4873556/focusable-row-inside-table-android/5258310#5258310 Jun 02 13:33:55 i think the tablelayout is causing problems you can't fix doing what you originally do with that code Jun 02 13:34:10 but i don't know why you aren't using a gridview or listview Jun 02 13:40:38 Good morning... I am having trouble sharing a photo from the gallery to my app which in turn posts it to a webserver. However, when I call intent.getData() I get a null. http://pastebin.com/5zRHrHxm Jun 02 13:57:28 Anyone know if/how I can use setPreserveEGLContextOnPause with my own EGL context without a GLSurfaceView? Jun 02 14:03:00 check Android source and see what it does Jun 02 14:03:03 replicate that :) Jun 02 14:03:20 Guys I started camera intent to let user record video and hopefully i want to access this video. But when I try in on my phone i record video and naturally I push back button to return to my APP. Problem is that resultCode in onActivityResult will be canceled. how can i handle it/ Jun 02 14:04:58 Trudko, um, that's perfectly normal? Jun 02 14:05:17 when user backs out of an activity you get ACTION_CANCELED as resultCode, always Jun 02 14:05:42 Unless the activity set another result code Jun 02 14:06:01 yeah, unless the activity is a bastard :P Jun 02 14:06:34 Mavrik: heh my questions is how to do that or how to change approach of my app? Becuse I want user to record video and then use it inseide of my app. Jun 02 14:07:02 Do i need to implement camera on my own? I dont want to make user navigate my app to place where the camera stored the video. Jun 02 14:08:07 Trudko, I don't understand what is your issue? Jun 02 14:08:19 i have a problem with Fragment and Map v2 Jun 02 14:08:26 you call video capture intent, user records video, user clicks the tick and you handle response Jun 02 14:08:43 if user clicks back he has canceled the capture and you act like nothing has happened Jun 02 14:08:49 what is your exact problem? Jun 02 14:08:59 hi. the app label under its icon in the list of applications on the phone desktop is not showing the complete name : my app name is "general enigineering free/paid" Jun 02 14:09:01 Mavrik: what happens is I call capture intent , camera is loaded I record video and then i cliecked back button on my phone so I lost access to video. Jun 02 14:09:11 so video is recorded. Jun 02 14:09:11 so what should i do? Jun 02 14:10:21 Trudko, that's normal behaviour Jun 02 14:10:29 "Back" button means cancel. Jun 02 14:10:31 Hm, I managed to find the image, it was in extras. Jun 02 14:10:40 But now I'm getting the dreaded activity timeout. Jun 02 14:10:44 well how should I then get video? this is how user would behave Jun 02 14:10:52 Trudko, no, user would click the tick button Jun 02 14:10:57 like in every other capture app Jun 02 14:11:15 if you want to force your way of doing UX on Android you will have to reimplement everything, yes. Jun 02 14:11:42 Mavrik: well i tried this on desire-z I record the video push big red button to start recording and used same button to stop recording and I remained in camera app Jun 02 14:11:48 superlinux-hp, honestly, find a shorter name :) Jun 02 14:12:14 Mavrik, my app is now known as such Jun 02 14:12:37 superlinux-hp, there's nothing much you CAN do Jun 02 14:12:48 Mavrik, is there a length limit? Jun 02 14:12:53 superlinux-hp, launchers have a limit on labels so the grid layout looks good Jun 02 14:13:00 the limit is dependant on launcher Jun 02 14:13:06 ok Jun 02 14:13:08 Mavrik, Was hoping for a "better" answer than that Jun 02 14:13:09 the name you have probably goes over limit of all launchers out there :) Jun 02 14:13:16 aha Jun 02 14:13:18 Sonicadvance1, it's 4 lines of code. Jun 02 14:13:19 ok Jun 02 14:13:35 Sonicadvance1, I doubt it gets better than that when dealing with OGL Jun 02 14:13:53 Mavrik, Probably very easy to spot for someone familiar with the Android source. Jun 02 14:13:55 Trudko, well then HTC managed to mess something up Jun 02 14:14:16 Trudko, the application capture UX flow goes camera -> capture -> review and confirm -> return to app Jun 02 14:14:26 that's what users are used to and that's how capture works on pretty much whole OS Jun 02 14:14:42 if you don't get the review/confirm UI then HTC probably did its own customization Jun 02 14:15:12 well this is my code http://pastie.org/7996590 Jun 02 14:15:24 Sonicadvance1, well, finding GLSurfaceView.java and looking for that method isn't that hard… plus it's way easier for you than for me to explain what that thing does Jun 02 14:15:34 Sonicadvance1, it basically just keeps the context active without terminating it on pause Jun 02 14:15:55 that will not guarantee you actually keeping the context always though Jun 02 14:16:11 why is graphical view (ui design) so rage inducing? Jun 02 14:16:32 i want to move one button - all of them move because they were aligned Jun 02 14:16:42 want to delete - can delete all of them Jun 02 14:16:51 no possibility to deselect Jun 02 14:17:07 Mavrik, Of course, but I'm only targeting the Galaxy S4 S600 model, so I would assume it to support multiple EGL contexts Jun 02 14:17:51 Looks like the termination is handled exclusively through GLSurfaceView, so since I don't use one, my context shouldn't terminate Jun 02 14:18:33 Mavrik, on my samsung i can have 23 chars long for icon label Jun 02 14:19:36 Sonicadvance1, http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.2.2_r1/android/opengl/GLSurfaceView.java#1338 Jun 02 14:19:47 Sonicadvance1, that's pretty much the relevant part :) Jun 02 14:20:02 diminish_, I honestly doubt anyone uses the graphical UI designer Jun 02 14:20:13 and it's pretty much in experimental state :) Jun 02 14:20:46 Mavrik: what should i use then, i have over 20 buttons to add and align Jun 02 14:20:54 Learn xml Jun 02 14:21:07 diminish_, people do layouts in XML Jun 02 14:21:09 i don't have to learn xml, i wanted to not type all of that shit Jun 02 14:21:11 even though, before that Jun 02 14:21:16 hm yea, handled entirely by GLSurfaceView, so I negate the problem by creating my own EGL context Jun 02 14:21:19 why THE HELL do you have 20 buttons? Jun 02 14:21:32 because it's a calculator Jun 02 14:22:07 also you can always inflate them programatically Jun 02 14:22:20 Calculators, the bane of Apple Jun 02 14:23:27 diminish_: are you using a RelativeLayout? Jun 02 14:23:32 diminish_: or GridLayout or what Jun 02 14:24:11 i'm not using anything yet, i wanted to get a rough sketch in this designer, then finish it in xml Jun 02 14:24:32 which designer? Jun 02 14:24:45 pseudo designer Jun 02 14:24:50 grapical view Jun 02 14:24:53 Mavrik is my code even good? http://pastie.org/7996590 Jun 02 14:24:55 o_O Jun 02 14:25:11 dunny why you are complaining about some random program in here :/ Jun 02 14:25:40 What about my program? I call native functions from 3-4 different classes :P Jun 02 14:25:47 zinx: because this view also acts as a designer, it puts properties to stuff when you manipulate stuff in it Jun 02 14:25:55 ... Jun 02 14:26:18 if you're using the eclipse UI thing included with ADT, that generates XML Jun 02 14:26:23 and you are in fact using some sort of *Layout Jun 02 14:26:26 Trudko, you're not passing the output file directory Jun 02 14:26:37 ok wil check it Jun 02 14:26:39 http://developer.android.com/guide/topics/media/camera.html#intent-video Jun 02 14:26:51 also, why hardcode the intent when there's an OS constant? :) Jun 02 14:29:18 zinx: it is not relevant to me what it is using at this point, the point is i moved one button and it got glued to most of the buttons and now i cannot undo this easily Jun 02 14:29:52 The point is that you have no idea what viewgroup you're using and how it behaves Jun 02 14:33:18 SimonVT: the point is that i have the xml in front of me and not you, so stop giving false accusations Jun 02 14:36:01 When asked which viewgroup you were using you said you weren't using any yet.. I think it's fairly clear you have no idea Jun 02 14:36:59 *squee* Github down. :/ Jun 02 14:37:44 because i explicitly haven't changed anything yet Jun 02 14:38:40 diminish_, you can't have views outside of a viewgroup in Android Jun 02 14:39:04 also your viewgroup is the reason why you're seeing your unwanted behaviour Jun 02 14:42:14 diminish_: ... and my point was that depends entirely on what type of Layout object you're using Jun 02 14:42:21 diminish_: perhaps you're using the wrong kind. Jun 02 14:44:11 i know all of that, it's using RelativeLayout, so it's understandable, it just got so messed up and it was annoying, didn't want to stir anything here Jun 02 14:46:14 Mavrik, i just found that you can have up to 64 chars for an app name on the condition that the name is one complete word Jun 02 14:53:00 Mavrik, SimonVT, zinx: so, sorry for being annoying myself (ultimately my bad experience with graphical view was caused by me) and thanks Jun 02 15:06:34 hello, I'm looking for a any app-development libraries that support both android and X-windows? Anyone have a suggestion, or a pointer? Jun 02 15:07:01 (for GUI widgets etc) Jun 02 15:08:20 uh Jun 02 15:08:26 I suggest you perish that tought O.o Jun 02 15:09:46 http://qt-project.org/wiki/Qt5ForAndroid Jun 02 15:10:58 Or from a platform perspective - jollamobile.com Jun 02 15:12:21 Mavrik: I know that trying to be cross platform diminishes truly effective use of Androids capabilities, but I have to support all the major platforms, even windows... (sigh) Jun 02 15:12:42 SpeedEvil: thank you. Jun 02 15:18:49 hello, i have a problem with Android Studio... i opened my project and i got an error like this http://stackoverflow.com/questions/16722651/apk-path-is-not-specified-for-module-example-example , how can i fix it? Jun 02 15:30:14 Not sure what I'm doing wrong here, trying to post a photo to a website: http://pastebin.com/3Am4JYwK Jun 02 15:31:22 But the php script, which works fine if the photo uploaded via a browser, is reporting error int(1) and a file size of int(0). Jun 02 15:31:51 Wait am I seeing this wrong or shouldn't in a setting like this, the object that is drawn just be rotated around the origin? I mean I don't set any translation to the object. All I have now is p'=Projection*CameraView*ModelView*p ... Right? Or what am I doing wrong here. The object I am rendering is not Jun 02 15:31:56 just being rotated, it sems like it's translated first and then being rotated around the origin.n.. http://pastebin.com/zpygByQq Jun 02 15:32:18 To rephrase: the php script works fine if the photo uploaded via a browser, so it's not the php script. When the android app tries, the php script reports error int(1) and a file size of int(0). Jun 02 15:41:52 http://pastebin.com/3Am4JYwK Jun 02 15:52:08 anyone? Jun 02 15:52:26 clepto95: No idea. Jun 02 16:00:55 I believe I have a keylogger on my phone Jun 02 16:01:14 How could I detect it via adb Jun 02 16:02:15 daemonise: what makes you think you do ? Jun 02 16:02:40 keypresses are swallowed randomly and apps will crash when I focus on an input field Jun 02 16:03:06 sometimes all keypresses will be swallowed for a minute or so Jun 02 16:03:11 sounds like a ime problem, some custom keybaord maybe ? Jun 02 16:03:22 it happens with every keyboard Jun 02 16:03:32 that's what makes me suspicious Jun 02 16:03:39 custom rom ? Jun 02 16:03:52 stock rom Jun 02 16:03:55 but I am rooted Jun 02 16:04:11 and may have installed something malicious unknowingly Jun 02 16:04:22 any logcat output from crashes ? Jun 02 16:05:00 haven't checked Jun 02 16:05:53 you kinda should Jun 02 16:05:58 I'll see if I can get one to happen Jun 02 16:06:41 what files is logcat reading? I have a root shell on my phone via ssh Jun 02 16:07:16 I would assume a few in var/logs Jun 02 16:07:34 but best to get sdk and use ddms with logcat for monitoring Jun 02 16:07:36 :) Jun 02 16:09:24 http://stackoverflow.com/questions/16884622/timing-bug-in-our-game-currenttimemillis-freeze Jun 02 16:10:23 mr_lou: could be that the phone reads and sets system time from cell towers Jun 02 16:10:27 if enabled etc Jun 02 16:10:38 I am trying to have two instances of one app installed side by side on one device (Two apps of Line in my Samsung Galaxy S Advance). I used apktool to decompile the apk, changed the package name, recompiled it, signed, and it just force closes. Any advice on this? Jun 02 16:11:09 mr_lou: as in "network time" Jun 02 16:11:24 would not really expect their to be much drift though Jun 02 16:11:49 StingRay_, Good question.... I suppose that's an option indeed. At least something to test next time. Thanks! Jun 02 16:22:00 Yeah, don't use currentTimeMillis Jun 02 16:22:10 Look in the SystenClock class Jun 02 16:22:27 Use something like uptimeMillis or elapsedRealtime Jun 02 16:24:48 SimonVT, Thanks! Jun 02 16:32:04 * mr_lou wonders if the JavaME version of the game will give the same problems, since there's no alternative to System.currentTimeMillis() on that platform. Jun 02 16:32:34 I'm creating an application that synchronizes some of its data over the web. I would like to store the date of last synchronization somewhere, and I'd (obviously) like it to be retained between application restarts. is it necessary to use SQLite for this? because it seems like an overkill for such a small setting. Jun 02 16:35:25 XAVeRY: sharedPreferences Jun 02 16:35:41 StingRay_: okay, thanks! :) Jun 02 16:36:09 you can set and get key value pairs Jun 02 16:36:17 and they are persistant Jun 02 16:36:17 that's all I need. Jun 02 16:49:12 hello i want to publish my app and i have changed the debug api key of google maps to release key Jun 02 16:49:31 and when i run my app from eclipse the google maps doesn't open. Jun 02 16:49:39 is everything ok? Jun 02 16:49:52 how can i test if everything works fine? Jun 02 16:50:47 Sign the app with your release key and run that Jun 02 16:52:54 SimonVT: thanks! Jun 02 16:53:10 so this behavior is normal? Jun 02 16:54:11 my device is not recognized when I plug it in via usb Jun 02 16:54:43 I'm on OSX, and from dmesg I get: The IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying. Jun 02 16:55:06 daemonise, does the device detect it? Does it work on other hosts? Jun 02 16:56:43 The USB icon does appear in Ongoing Activities Jun 02 16:57:00 however it stays there even when I disconnect the cable Jun 02 16:58:19 I see GlobalUnplugService plugged = true in logcat on the phone Jun 02 16:58:25 when i plug in Jun 02 17:01:32 daemonise: what mac and osx ver ? Jun 02 17:02:01 cause I have no probs on any of my macs Jun 02 17:02:06 10.7.5 Jun 02 17:02:30 and what mac ? Jun 02 17:03:57 macbook pro 13 inch early 2011 Jun 02 17:05:37 should be fine Jun 02 17:05:40 very odd Jun 02 17:22:26 hi everybody... Has anybody here used the ROTATION_VECTOR_SENSOR in combination with OpenGL yet? I need some help mapping the coordinate systems... Jun 02 17:26:12 is it possible to make a global audio effect that is not just one of the device effects? I.e. apply a custom effect to all audio the device is outputting? Jun 02 17:27:21 possible yes, manuf. do it... and custom audio interfaces do it on rooted phones Jun 02 18:11:46 hi, i am creating my first android app, a game, and am wondering how i can set an image as the background. Jun 02 18:11:52 and how i can have it fit to screen Jun 02 18:12:02 in android studio, i open the layout designer and i see a help window saying : "Missing styles. Is the correct theme chosen? .. " the question is, how can i resize, remove or replace that damn window, i cant see anything under it Jun 02 18:12:11 i cant see a damn thing through that window Jun 02 18:15:23 does anyone know if the /system and /data partitions are wiped on factory reset? Jun 02 18:18:39 Hey devs, I just issued a release of my library Transfuse, would anyone care to give me feedback: http://androidtransfuse.org/ Jun 02 18:26:58 u know i'm looking for u foo; ping me Jun 02 18:27:25 sorry forgot /amsg was cross network on xchat Jun 02 18:28:14 johncarl81: you have singleton/contextsingleton, too? Jun 02 18:41:46 monsti, yes Jun 02 18:42:03 also you can define your own scopes Jun 02 18:43:03 http://androidtransfuse.org/documentation.html#singleton Jun 02 18:43:23 http://androidtransfuse.org/documentation.html#contextscope Jun 02 18:52:18 hey guys. im getting an error in my fullscreen game, saying that i havent defined fullscreen_content_controls or fullscreen_content. How can i go about making them? Jun 02 18:52:45 http://puu.sh/36PHF.png Jun 02 18:55:21 Quick help: How do change the font size of this? - http://i.imgur.com/xZRIsxo.png Jun 02 18:56:34 asked in #eclipse, no response :( Jun 02 18:56:41 i cant think of a way Jun 02 18:56:44 why would you do that? Jun 02 18:56:59 Its too big Jun 02 18:57:45 When I open more views in my perspective, it takes up a lot of space Jun 02 19:15:39 Hey guys, I'm trying to open a file, and I get this error when I try to open it Jun 02 19:15:47 http://pastebin.com/vGk7adFa Jun 02 19:16:00 setRead = new BufferedReader(new BufferedReader(new InputStreamReader(openFileInput(setName+".txt")))); Jun 02 19:16:06 that's the line I'm using to read hte file Jun 02 19:16:08 *the Jun 02 19:16:21 If anyone could help, that would be great. Jun 02 19:18:10 ollienx: can you post a screenshot of your entire editor? maybe the file is in the wrong folder Jun 02 19:18:11 who knows Jun 02 19:18:26 my question: http://puu.sh/36QUF.png how do you guys prevent fragmentation like this Jun 02 19:18:28 ? Jun 02 19:18:30 it's a file that was created by the phone previously, I can show you it in the file structure Jun 02 19:19:08 http://ollien.com/screenshots/2WL8x.png Jun 02 19:19:20 heres a screenshot of my editor though Jun 02 19:19:32 http://ollien.com/screenshots/CN5Tl.png Jun 02 19:22:34 i've got a question Jun 02 19:22:37 suer Jun 02 19:22:38 *sure Jun 02 19:22:50 there is somehow i can get context from abstract class? Jun 02 19:23:10 well, im no expert, shouldnt give advice to anyone Jun 02 19:23:28 no idea, i'm no expert either Jun 02 19:23:37 some one else? Jun 02 19:24:28 Pass it in the constructor Jun 02 19:24:29 i think i've got it.... Jun 02 19:24:46 what exactly this method does:? Jun 02 19:24:47 getBaseContext() Jun 02 19:25:30 ? Jun 02 19:27:08 a user complains that my app breaks on android 4.x due to missing BLUETOOTH_ADMIN permission; but I'm not doing any discovery/pairing, and it seems only to break since android 4.x for him Jun 02 19:27:29 ok? Jun 02 19:27:44 are you requiring the BLUETOOTH_ADMIN permission? Jun 02 19:27:54 sinistersnare: no, just BLUETOOTH Jun 02 19:28:01 ok it's make sense if i can just use getApplicationContext() or getBaseContext() in abstract class? Jun 02 19:28:25 I'm trying to figure out if it's the user's phone that is broken or if I actually need BLUETOOTH_ADMIN for some obscure reasons Jun 02 19:28:33 https://github.com/ge0rg/aprsdroid/issues/58 is the bug report Jun 02 19:28:38 Ge0rG: are you running a phone with 4.x? Jun 02 19:28:54 elichai2: Not really.. If you can call getApplicationContext and getBaseContext, then your class is already a Context.. No need to get another Jun 02 19:29:30 Ge0rG: use a virtual device and test it Jun 02 19:29:35 SimonVT: so it dosen't make sense that i can use that methods in Abstract class?(if i extend from Activity) Jun 02 19:30:05 elichai2: Why are you trying to get a Context in an Activity.. Activity is a Context Jun 02 19:30:15 sinistersnare: yes, I have a phone with 4.x, and it does not seem to happen with it Jun 02 19:31:38 Ge0rG: well, wait to see if hes updated. i dont know anythin about the BLUETOOTH_ADMIN permission Jun 02 19:31:55 SimonVT: wait a sec, if i extend from Activity it's make it an Activity?i can extend from activity for just a ExtraTools class?with no view, and never call the class(just use what in it) Jun 02 19:32:10 does Android Studio have syntax highlighting for php ? Jun 02 19:32:16 elichai2: Eh, no.. Activities have to be started with startActivity Jun 02 19:32:59 no matter i've got an idea.... Jun 02 19:33:17 i'm so stuiped....Thanks! Jun 02 19:36:53 Zaknafein: Android Studio is based on intellij, which might have support for php, maybe check out the intellij editor - Android Studio is pretty customized for android Jun 02 19:40:52 hi, im interested in a tutorial about implementing voice recognition but not with intent, i want it embedded in my own application with automatic voice recognition, not on press button, can you give me an example like that? i guess is the google voice api Jun 02 19:42:48 What is the best approach to have an app that uses Fragments but it's also compatible with API 2.1+? Jun 02 19:43:07 oops Jun 02 19:43:35 raisen: android support library? Jun 02 19:43:52 timroes: never heard of it but will research, thanks Jun 02 19:44:07 http://developer.android.com/tools/extras/support-library.html Jun 02 19:48:09 timroes: interesting.. so with a support library, I can actually implement Fragments in older Androids? Jun 02 19:49:16 yp Jun 02 19:50:46 So if the user has 3.0 or higher, will the app use the native library or the support library for Fragments? Jun 02 19:51:05 are you using the support library? Jun 02 19:51:11 if so, it uses the support library Jun 02 19:51:27 also, supporting 2.1 is probably not worth it Jun 02 19:51:44 even 2.2 is questionable if it starts making things difficult Jun 02 19:51:58 http://developer.android.com/about/dashboards/index.html Jun 02 19:53:21 i'm hoping that number at api 10 will drop drastically very soon, they're all due for a phone upgrade Jun 02 19:53:22 I see.. I never used support library before Jun 02 19:54:16 yeah, 2.3 has 38%, it's still a huge number Jun 02 19:55:19 by the end of this year i'm hoping it will be under 5%, but who knows Jun 02 19:55:50 i wonder where versions 11 and 12 went Jun 02 19:56:01 i guess it won't be. The step to 4.x was also looking at hardware specs not that small, so there are still a lot of crappy phones out there, who most likely will never see android 4 Jun 02 19:56:04 must have under 0.1% Jun 02 19:56:29 so I am assuming that performance will be affected if I use the support library for Fragment and the user has a 3.0+ device, right? Jun 02 19:56:44 raisen: no Jun 02 19:57:17 raisen: Both native fragments and support library fragments are just Java code. They will perform exactly the same. Jun 02 19:57:55 and bottomline: also use actionbarsherlock :) Jun 02 19:57:55 JakeWharton: I was thinking that support library would have more "loops" to implement some feature :) Jun 02 19:59:16 timroes: interesting, never heard of it too.. thanks Jun 02 19:59:26 raisen: Nope. It's 99.9% the exact same code. Jun 02 20:00:09 raisen: it backports actionbar to pre 3.x devices. An absolutely great lib, coded by only the best coders Jun 02 20:00:22 I recently got interested to learn native development instead of using a framework.. trying to catch up with all that Jun 02 20:00:28 they are known as gods of their profession Jun 02 20:00:42 hahah, awesome Jun 02 20:03:28 hey JakeWharton, have you guys seen OkHttp interfere with other libs doing network communication (e.g. Facebook SDK)? Jun 02 20:04:46 Mavrik: Yes. There's a problem with the global SSL context. There's a bug filed. Jun 02 20:05:05 ah, that explains it. Any known workarounds? Jun 02 20:08:18 nevermind, found the bug entry on github with ideas work fixes :) Jun 02 20:34:48 in eclipse if i hover my mouse over a method then a small javadoc window shows up. how do i do the same thing in android studio? Jun 02 20:42:30 Hey guys. Got a question Jun 02 20:43:02 right now, it looks like one UI element starts another in this app I inherited by creating a message and passing things through it Jun 02 20:43:58 but that means that the initiating activity is responsible for knowing how to create what info the other activity needs Jun 02 20:44:14 so I think the developer before me refactored that out to this common area Jun 02 20:44:35 where it makes a REST request to our server and when a result comes back, the new activity gets it Jun 02 20:44:44 but then there are two new problems I'm facing Jun 02 20:45:03 1.) this new bit requires the result of two REST requests which get parsed to find a common area Jun 02 20:45:14 so the activity can't just rely on the results of one request Jun 02 20:46:05 and 2.) if I need a context in that process, I'm in trouble, aren't I? Jun 02 20:46:18 I could have the initializing activity give me its context Jun 02 20:46:45 but that means this middle man will keep it live until it kills that reference somehow Jun 02 20:47:17 and do I know that the current context doesn't get destroyed? Maybe I should be using the new activity's context? Jun 02 20:48:47 Does anyone know what the deal is with android.bluetooth.BluetoothDevicePicker? It has been in the sources for a long time. But doesn't appear in the sdk jars or the online docs. Jun 02 20:49:40 <|0xD34D|> it has @hide in the code so it's hidden Jun 02 20:49:46 <|0xD34D|> probably being used internally somewhere Jun 02 20:50:24 |0xD34D|: should I avoid using it? Jun 02 20:50:45 <|0xD34D|> if you use hidden APIs you do so at your own risk Jun 02 20:51:00 <|0xD34D|> they could change at any time Jun 02 20:51:04 <|0xD34D|> and without warning Jun 02 20:51:54 <|0xD34D|> it seems Settings.apk uses that class though Jun 02 20:59:58 guys, im gettin server error for voice recognition, is it because im querying too fast? Jun 02 21:00:00 or why? Jun 02 21:03:55 |0xD34D|, it's worse than that Jun 02 21:04:03 they aren't guaranteed to exist on devices at all Jun 02 21:04:07 oems are free to remove them Jun 02 21:05:32 <|0xD34D|> not my problem, I don't use hidden APIs except in ROM development Jun 02 21:05:34 <|0xD34D|> =P Jun 02 21:26:02 afternoon everyone Jun 02 21:26:28 anyone here familiar with "PreferenceFragment" Jun 02 21:29:14 ? Jun 02 21:29:39 what about it Jun 02 21:30:05 When I call it, i overlaps the main layout Jun 02 21:30:48 am not using framelayout for my main acitivity, am not sure if that makes a difference Jun 02 21:36:58 ? Jun 02 21:41:21 for the people that just joined, have you dealt with "PreferenceFragment"? Jun 02 21:41:44 lou_: don't be that girl Jun 02 21:50:41 funkbox: girl ? Jun 02 21:50:45 funkbox: Where? Jun 02 21:57:06 hi bluesm Jun 02 21:57:17 are you familiar with PreferenceFragment? Jun 02 21:59:37 lou_: Nope, but if here nobody helps you. Try google , then maybe stackOverflow ) Jun 02 21:59:38 :) Jun 02 22:00:06 lou_: Try to not waste time. You know. All we have is time before death. Jun 02 22:01:40 lol. also, what's the command to whisper in the room? Jun 02 22:07:42 mHandler.obtainMessage(MSG_RECOGNIZER_CANCEL).sendToTarget(); sends a message to the handler with msg.what = MSG_RECOGNIZER_CANCEL ? Jun 02 22:17:10 hi, please help me out with this, im going crazy: http://pastebin.com/LwERYEUA Jun 02 22:17:43 here is a main part of the code that i have inside an activity, im trying to make the device listening to voice commands Jun 02 22:18:14 sometimes it responds and sometimes it does nothing, but even if it responds it does it only once at begining then never again Jun 02 22:18:30 can you please check it out, what can be the issue? im really beginner Jun 02 22:28:22 anyone here for a one minute help? Jun 02 22:38:21 norbi if someone could and was willing to help you, they would Jun 02 22:38:33 your big problem is that you've provided way too much code Jun 02 22:38:54 you should try to create a very simple reproducible case iwth as little code as possible Jun 02 22:39:01 1. that will likely help you find/fix your problem Jun 02 22:39:06 2. it's easier for others to look at Jun 02 22:50:56 Yallo everybody! I hope someone is around and can help me with a tiny problem I have... I'm having one main activity and I'm creating a new class that only is for creating AlertDialog with some user input, the problem is, that the rest of the method that is in MainActivity is still running, and I want to start another method in MainActivity when I click OK button in the AlertDialog., How do I achieve it ? Jun 02 22:52:16 I was trying to stop the activity for the moment the dialog is running and then check the user input, but everything just crashes, I'm not experienced programmer by any means as you can easily see, so thank you for your understanding ^ Jun 02 22:55:24 I AM A CAN HELP Jun 02 22:56:33 I am a cannot help Jun 02 22:57:43 Aspen_: read this tutorial - http://www.mkyong.com/android/android-alert-dialog-example/ Jun 02 22:59:16 yes I did this tutorial, but it returns only value to texArea and the dialog is made in the same class, Im creating the dialog from separate class and I want to invoke a method from main activity after I press the OK button, I'm sure there is a possibility but I don't know what to google for Jun 02 23:01:05 as far as I can see it's pure Java too, not much Android, but I might be wrong, I guess there is something in Android that is listening for the dialog to end, and then it continues the method, or just starts another one, doesn't really matter Jun 02 23:01:43 but the dialog and the main activity is done parallely -_- Jun 02 23:02:03 which is great actually :D Jun 02 23:02:10 supportfragmentmanager supportfragmentmanager... why are you kind of retarded in some ways Jun 02 23:02:27 support fragment manager, support fragment manager.... what the fucking WHYYYYYYYYYYYYYYYYYYYYYYYYY Jun 02 23:02:42 Can't use fragment's it's belove 11 API Jun 02 23:02:47 below* Jun 02 23:03:16 This isn't about you... no offense... this is about my needs Jun 02 23:03:25 also with the support library Jun 02 23:03:28 you can use fragments Jun 02 23:03:33 :O Jun 02 23:03:34 my target api is 8 Jun 02 23:03:39 and I'm using them Jun 02 23:03:39 so is my Jun 02 23:03:48 http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/ Jun 02 23:03:53 cool, can you give me a link how to do that ? Jun 02 23:03:58 ^ Jun 02 23:04:02 awesome, thank you! Jun 02 23:04:12 no problem Jun 02 23:08:47 canadiancow: ok, then im asking only if my message handler is fine there, can you please only look at that? Jun 02 23:10:14 so bored. anyone have work for me? Jun 02 23:16:31 jasonmog, I have plenty of work, just schoolwork and no one is paying me, besides I'm a noob and have to make decently advanced application in Android, all by myself lol xD Jun 02 23:16:43 you wanna join me? :P Jun 02 23:41:09 i have an s2 skrocket is running stock at&t ics, with twrp and rooted, I'm thining to go with jellybean via kies, would that upgrade hose, due to twrp being installed? Jun 03 00:16:29 hey guys, I know it is not 100% the right chan to ask, however: does somebody know how/wheter google will charge some percentage of In-App sells? and where can I find this information online? thx a lot in advance Jun 03 00:19:13 charge ? Jun 03 00:20:47 funkbox, yeah like I sell some premium service trough In-App sells for lets say 10USD and Google claims 30% from it - so basically I'll get less then my customers pay Jun 03 00:20:58 yes Jun 03 00:22:01 can you give me some reference like an URL or something? I could not find anything related to that Jun 03 00:43:37 funkbox, ok I found it .. https://support.google.com/googleplay/android-developer/answer/1153481?hl=en -- jesus, it is getting a little late here.. sorry for the inconvenience =) Jun 03 00:49:57 I want to track users for there individual accounts. what are the best ways to do that? Jun 03 00:52:42 does every android app has a unique number? Jun 03 00:52:53 does every android phone* has a unique number? Jun 03 00:54:22 generally you want to have them sign up and give them a token your app stores Jun 03 00:54:48 yes, there are unique identifiers, but a lot of cheap devices (chinese phones and tablets) either all use '0' or use the timestamp, so it constantly changes Jun 03 00:55:04 plus it's invasive to require that info and generally frowned upon. Jun 03 00:55:41 hm Jun 03 00:55:52 it sounds like you only need it for the lifetime of a device - since if they move devices it would break if you used a hard-coded id - so you could just generate a UUID via a webservice Jun 03 00:55:55 and stash it in app storage Jun 03 00:56:04 i see Jun 03 00:56:43 then you don't have to handle logins, etc. If you need them to be able to move between devices, or access it from multiple devices they own, then you'll have to handle logging in, and then generate an auth token of some sort Jun 03 00:56:56 You could probably use their google credentials as a login if you implement oauth Jun 03 00:57:09 Not sure what the end goal is, but you have some options Jun 03 00:57:37 dragorn, iam planning not to publish my app on the google play store rather make users download it and install it from a noraml website. now what strategy should i follow. I dont want one user to install the same app on many phones. Jun 03 00:59:05 then you'll have to handle logins Jun 03 00:59:09 and give each person a login Jun 03 00:59:14 dragorn, the application relies on the internet connection all the time. and half part of the application is viewed by going to a website. so i can manage their accounts and logins on the website. on a database. but i dont know the strategy Jun 03 00:59:33 sounds like you need to do a lot of web dev Jun 03 00:59:40 the setup sounds a bit weird to me Jun 03 00:59:51 dragorn, yes. but the problem iam facin gis that one user can install the app in ten phones with the same login....... Jun 03 00:59:57 dragorn, web dev is my experties Jun 03 01:00:28 dragorn, but iam new to android. I lacking in vision Jun 03 01:00:44 dragorn, how to manage logins. Jun 03 01:03:19 dragorn, you there? Jun 03 01:25:19 I'd like to allow the user to set a list of integers in the settings, but it seems there are SharedPreferences types only for a single int or for a list of strings. Jun 03 01:25:38 Do I have to take a list of strings from the user & validate them as integers, or is there any other nicer way to get a list of integers? Jun 03 01:26:15 Quest: you probably have to limit the # of tokens per account, then let them manually delete older devices when they add a new device Jun 03 01:26:24 Quest: and then deal w/ assigning a token per device Jun 03 01:26:29 Quest: more or less what kindle does Jun 03 01:27:04 every fresh install of the kindle app on a device generates a new device token which shows up in your device list, and eventually amazon will tell you that you have too many and you ahve to delete some Jun 03 01:27:07 dragorn, i dont want the app to be on market. but to be downloaded from a normal url. Jun 03 01:27:35 That's not really a great plan but it's not relevant to the solution, because you have to solve it run-time Jun 03 01:27:56 nothing prevents me from installing the same apk i downloaded onto a dozen devices, if you dont' handle per-install tokens and let the user manage them Jun 03 01:28:20 i'd really recommend not bypassing the market, it's an update hassle and a security risk to users to install untrusted code Jun 03 01:28:43 and a management hassle for you to walk users through the warnings about disabling out-of-market installs Jun 03 01:28:55 hm Jun 03 01:29:14 (not impossible, but much more of a hassle than pointing them at the market) Jun 03 01:29:31 using the market has no real impact on you managing per-device login tokens, anyway - again, see the kindle app Jun 03 01:30:50 dragorn, hm. ya. i might put it on market but i wanted to be independant of market to authenticate. how about testing the app by a web server on basis of a uuid of phone. ? Jun 03 01:32:05 market has nothing to do with authentication Jun 03 01:32:24 dragorn, something like String uid = telephonyManager.tManager.getDeviceId(); ? Jun 03 01:32:29 I still think the way you'll have to do it is to have them log into an account after it's installed, and make a per-device token Jun 03 01:32:36 tablets dont' have telephony in them Jun 03 01:32:45 and cheap shitty tablets don't have any other unique IDs Jun 03 01:33:12 as I said - make them log in, generate a UUID, store it in the app settings. If they have too many UUIDs assigned to their account, prompt them to delete an older one Jun 03 01:33:25 dragorn, mmm.. so any other ID that ALL android based machines have? Jun 03 01:33:36 again, no Jun 03 01:33:45 hm Jun 03 01:33:51 none that can be guaranteed to be populated correctly Jun 03 01:34:22 rahter than pay for an eeprom to store a unique ID some manufs jsut put in the current time in seconds (hey it's unique. Briefly. maybe.) Jun 03 01:34:29 Or just '123456'. Or 0. Jun 03 01:34:44 dragorn, then I would have to track uuids (hard code it in the code right? ) and politly ask the user that he is use more than alloted phones.. correct ? Jun 03 01:35:03 I never said anything about hardcoding Jun 03 01:36:10 user logs in to your web service. you make a UUID and give it back to the app. The app stores it. In the future it logs in with the UUID. If one login has more UUIDs than you want, you tell them to delete one of the older UUIDs. Your webapp deletes that record. Next time the app runs w/ the old UUID, it fails to log in. User can then make a new UUID and delete a different one if they want. Jun 03 01:36:18 Same way the kindle app works Jun 03 01:36:48 <_August_> im getting this error and i dont know where to find the file to change it, the mainactivity file is there so i dont know whats going on... 06-03 00:38:32.563: E/AndroidRuntime(1789): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.androidbegin.sidemenututorial.MainActivity" on path: /data/app/com.androidbegin.sidemenututorial-1.apk Jun 03 01:37:01 Restricting the number of devices a single user can use is kind of hostile though, fyi. Not a lot works that way on android, and the stuff that does is generally considered to be pretty crappy. Jun 03 01:38:15 dragorn, great vision ! thanks Jun 03 01:38:45 it's the easiest way to do it, since you can't know when the user is retiring a device Jun 03 01:39:02 sometimes the user doesn't even know, if someone drops their phone and smashes it and gets a new one, you need some way to let them associate the new device Jun 03 01:39:49 and since you can't correlate downloading the apk (either from the market or your own site) with a specific install, since someone could install it on a dozen devices from one download, you're going to need to have some sort of independent login Jun 03 01:41:09 dragorn, no no no no.. theres a problem... my app does _something_ after every 10 - 15 minuts (some times 2 hours)and send stats to a web server. thats all my app does. now the uuid would be sent in those stats. now if 10 devices are sending thhose stats. i wont know from which device are the stats coming. and how many are they. Jun 03 01:41:48 yes, you will Jun 03 01:41:52 because the UUID is linked to the login Jun 03 01:42:00 the app won't get a UUID until the user logs in the first time Jun 03 01:42:56 it's up to you to figure out how to keep one person from making a dozen accounts, but if the webapp generates the UUID to give to the android app, you then know what login controls that device Jun 03 01:43:57 hm Jun 03 01:44:51 dragorn, where to save that web generated uuid, in the android phone / app? Jun 03 01:44:54 i mean how Jun 03 01:45:13 in app settings. either as a file or in a sharedpreferences Jun 03 01:45:39 app settings are stored in ? Jun 03 01:46:11 dragorn, its save? if user just copies that setting to another phone too. i know iam think too deep Jun 03 01:48:19 if you're that concerned not much you can do but require the user to log in every time Jun 03 01:48:27 and give up on the multi-device restriction Jun 03 01:48:34 which i think is just making a lot more work for yourself anyhow Jun 03 01:50:01 dragorn, the user cant be logged in for ever. the app just sends some infor to the server every 15 minuts or so. Jun 03 01:50:30 <_August_> any suggestions? Jun 03 01:52:25 dragorn, but saving the uuid in the phone that was genereated by the first registration on the web makes much sense. as you advised Jun 03 01:57:45 dragorn, final say. I feel the user can tamper with the saved settings/ uuid they got and or the cpu/proccesor/mac id is either no unique or also tamperable... Jun 03 01:58:43 it's always going to be "tamperable". they have physical access. Jun 03 01:59:48 lemonade`, dragorn i have an idea. if i hardcord some key in the java.class files. now ever app will be different. every time when user installs an app. it goes to a web server . looks in a database that is this app installed the first time? if yes. install it. if not dont proceed. ? Jun 03 02:01:31 lemonade`, what do you say? Jun 03 02:02:10 whatever you program, it can be bypassed because they have physical access to the machine. so there is no avoiding that Jun 03 02:02:42 lemonade`, how would they bypass the last thing i said? Jun 03 02:02:59 lemonade`, the key would be inside the code files. no one could see Jun 03 02:03:11 by writing a different ID in the class file Jun 03 02:03:39 lemonade`, .class files are easy to decompile to that extent? Jun 03 02:04:02 if the VM can interpret it, so can somebody else Jun 03 02:04:17 it's not magic. Jun 03 02:05:05 lemonade`, then I am only left with one thing. watching the total number of phones / desktop machines that use it. if exceeds number allowed limit. ask politely, if not. dissallow access to all? Jun 03 02:56:53 I'm trying to disable 'data' access like wifi and 4G, but keep SMS. What's the best way to approach this? **** ENDING LOGGING AT Mon Jun 03 02:59:57 2013