**** BEGIN LOGGING AT Tue Oct 02 02:59:58 2012 Oct 02 03:00:13 did you check the design site too? Oct 02 03:00:15 http://developer.android.com/design/patterns/actionbar.html Oct 02 03:00:47 remember F.I.T. for your action buttons Oct 02 03:00:59 only include it as an action button if its Frequest, Important, and Typical Oct 02 03:01:02 what's FIT? Oct 02 03:01:04 oh Oct 02 03:01:05 well, at least one of them Oct 02 03:01:18 otherwise prob should -> overflow Oct 02 03:04:08 i have already read that. Oct 02 03:07:38 going thru the checklist at the end was a good start for determing what could / should go in an app's ActionBar Oct 02 03:07:48 also just checking out other well-built apps Oct 02 03:08:42 i know what i want on there. Oct 02 03:08:48 the *how* is the problem. Oct 02 03:09:17 well that's why i asked earlier if you meant technically how to implement what you want Oct 02 03:09:35 have you looked thru all the ABS samples ? Oct 02 03:10:11 https://github.com/JakeWharton/ActionBarSherlock/tree/master/samples Oct 02 03:15:16 no. i am about to. Oct 02 03:15:22 do you guys have any examples on how to make activities open for extension, closed for modification? or is it normal for it to be nasty Oct 02 03:16:13 i miss tcl/tk terribly. Oct 02 03:16:20 this is a complete mess! Oct 02 03:16:57 to make ONE change, one must edit 10 files. Oct 02 03:17:59 could you refactor? Oct 02 03:18:01 if you're using an IDE Oct 02 03:18:39 refactor? how do you refactor android UI? Oct 02 03:19:12 there are xml files to diddle with, manifest files to diddle with, activities to poke at, and intents to hopefully make sure it works. Oct 02 03:19:15 WHY?! Oct 02 03:21:01 meh Oct 02 03:21:14 hahahah. Oct 02 03:21:15 you're right tho i'd rather one huge file to work with Oct 02 03:21:23 GOTO LINE 1540 Oct 02 03:21:32 i didn't mean that at all. Oct 02 03:21:34 =) Oct 02 03:23:39 Has anyone had any luck debugging (GDB) on a Kindle Fire HD? Oct 02 03:24:02 I've not been able to, though debugging on any other device works fine. Oct 02 03:53:01 engrish, please Oct 02 03:53:03 Come on...SOMEONE who to know in the NDK what the "host systen type" means?? Oct 02 04:19:53 KNERD, context, i'm not here for long, but "Host system" means the system it's running on, so probably means x86 vs arm, or maybe emulator vs real thing, or phone vs tablet, etc Oct 02 04:20:02 it depends on context Oct 02 04:20:25 then why have a def of BUILD SYSTEM? Oct 02 04:21:06 ohh, if it's within the build system the the host system is the system you're building on Oct 02 04:21:25 host system means the computer running whatever you're talking about Oct 02 04:21:54 edman007: so both should be set to., in my case, i686-pc-linux-gnu Oct 02 04:22:32 edman007: I have been gegting this: Oct 02 04:22:40 checking build system type... i686-pc-linux-gnu Oct 02 04:22:41 checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized Oct 02 04:23:51 hey guys, im having a really strange issue with a map app i mad Oct 02 04:23:54 made Oct 02 04:24:24 after i run the app, my touch screen becomes really sensitive Oct 02 04:24:30 KNERD, according to some random configure script, the 'host' for the configure script is what you want to run it on Oct 02 04:24:38 build system is what you want to build it on Oct 02 04:24:40 does anyone know why this is happening? Oct 02 04:25:48 edman007: i just want to run it on any android system Oct 02 04:26:00 KNERD, anyways, best i got is give this a shot http://stackoverflow.com/questions/4594736/configure-does-not-recognize-androideabi Oct 02 04:26:29 and with that said, I didn't have to build anything, just download eclipse and click install android tools Oct 02 04:26:33 things just worked Oct 02 04:26:40 anyone? Oct 02 04:27:27 kingargon, my best idea is you messed with touch screen settings when writing whatever it is that detects your finger, but that's a wild guess from a noob who hasn't gotten that far Oct 02 04:27:33 and it's past my bedtime :( Oct 02 04:27:34 sorry Oct 02 04:27:58 edman007: i have seen that befiore, but thanks Oct 02 04:29:05 KNERD, yea, if you're trying to get the sdk working so you can write apps, i found the eclipse method far easier, just install eclipse, you put in the url for android, and it's just a few clicks and you're up and running, and you distro might handle some of it too Oct 02 04:29:14 anyways, i got to sleep, sorry i can't help more Oct 02 04:29:22 edman007: yep. since the pan feature isnt apart of the maps api, i find a class online that implements the pan and zoom featurs Oct 02 04:29:44 kingargon, i'd look there... Oct 02 04:29:49 maybe i need to override onPause? Oct 02 04:30:01 no idea, like i said, i'm a noob Oct 02 04:30:12 and i need my sleep, so i'm going, really, bye Oct 02 04:30:20 k, bye Oct 02 04:30:26 thanks anyways ;) Oct 02 04:30:46 method: i need a native C SIP app Oct 02 04:30:54 edman007: I meant Oct 02 04:31:07 edman007: bye Oct 02 04:36:13 wtf Oct 02 04:36:23 does anyone know why the preview tools doesn't include the normal hardware keyboard layout? Oct 02 04:37:19 er, an emulator started from the preview tools... Oct 02 04:41:02 hwrd|work: that would make too much sense Oct 02 04:41:37 KNERD: I know. I can't even find an easy way to show the keyboard menu. Ugh. I guess it _is_ beta software after all. Oct 02 05:04:35 hi all! Oct 02 05:04:51 i ahve a problem i'll crosspost into here Oct 02 05:04:56 i'm trying to compile a kernel for the Galaxy Tab 2, and i've successfully got it compiled and bundled into a boot.img, which i've flashed to the device. the problem is, it just goes blank after showing the initial splash screen, even before it starts adbd. is there any way i can get debug info out of it at this stage in the boot? Oct 02 05:06:06 Saturn__: see topic; this is the wrong channel. try #android-root Oct 02 05:07:00 okay, i'll head over there Oct 02 05:24:08 c# you have to pay for, akw_. c++ is free but more awkward Oct 02 05:26:18 leslie: its ok i can pay but which of two java or csharp ? Oct 02 05:26:51 I don't understand what you're asking Oct 02 05:27:46 actually i have to learn an new language with which i can be multipurpose guy , like handle web , moblie apps etc Oct 02 05:27:50 desktop apps Oct 02 05:28:02 so not sure which language to learn Oct 02 05:29:11 there isn't really any single programming language that's great for all those different things Oct 02 05:29:21 if you're planning to develop android apps, you're going to be learning java. Oct 02 05:29:41 While there are some alternatives, android is fundamentally java and everyhing else is more or less second class. Oct 02 05:29:59 and as leslie says, there is no magic bullet. Expect to learn multiple languages if you plan to be a professional in multiple areas Oct 02 05:30:00 i see thanks dragorn Oct 02 05:31:16 if you're developing for windows mobile it's probably some sort of .net variant. If you're developing for iphone you'd better get used to objective c Oct 02 05:32:12 did you see the java-to-objc thingy that Google released recently, dragorn ? Oct 02 05:32:19 leslie: I did not Oct 02 05:32:57 it seems pretty cool. can't do UI stuff with it, but it handles logic code well Oct 02 05:33:39 http://code.google.com/p/j2objc/ that Oct 02 05:35:26 oh, that's crap Oct 02 05:35:45 is it? Oct 02 05:35:48 yes Oct 02 05:35:55 reason? Oct 02 05:36:13 well, why don't just learn cocoa-framework? Oct 02 05:36:23 Hi! Im trying to make an app that create a socket connection. I want to make this connection persistant. Im using Asynctask, but always, when I go to another Activity and back to the first one, it closes the connection. Can anyone help me? Oct 02 05:36:26 In my opinion this is for guys, who don't want to learn obj-c Oct 02 05:36:36 Duailibe: look into services Oct 02 05:36:44 Duailibe: you need to decouple it from your active activity Oct 02 05:36:47 it's not about that, you have to learn obj-c either way. but it means you don't have to write code to do the same thing twice. Oct 02 05:37:20 well, if you think that you have andorid app, and then you want to port it to ios Oct 02 05:37:28 dragorn I will look that. Thanks! Oct 02 05:37:38 I bet that the logic is fair simple to port, the ui part is much harder, and will take more time Oct 02 05:38:12 I've been doing both Android and iOS development, and I have to say that with cocoa, the UI things are the hardest part Oct 02 05:38:26 if you want make something customization Oct 02 05:38:36 yeah, I noticed Oct 02 05:41:23 but well, reading more about that, it might be useful Oct 02 05:41:45 but like you said, it isn't replacement to objective-c and cocoa-framework (which I thought first) Oct 02 05:42:39 nah, it's just for stuff like… downloading/parsing json, etc Oct 02 05:43:28 saw this a while back: http://xmlvm.org/android/ Oct 02 05:43:33 no idea if it's legit Oct 02 05:43:39 also was looking at gnustep and what might be possible there Oct 02 05:44:10 isn't gnustep dead? Oct 02 05:44:40 think there's still some activity on the mailing lists Oct 02 05:44:43 dunno really Oct 02 06:20:38 is there some way to save my actual class to the sd card for reloading? Oct 02 06:20:51 the whole thing so it can just be thrown back in a class when I want it to be? Oct 02 06:21:09 or should I just save xml files for something like that? Oct 02 06:22:32 there are a bunch of ways. you can save to db, persist to xml using something like Simple, or just to a DataOutputStream Oct 02 06:23:00 http://simple.sourceforge.net/ Oct 02 06:27:06 use GSON to serialize it to JSON on disk Oct 02 06:27:16 don't bother with a DB or XML Oct 02 06:27:24 NEVER use Serializable Oct 02 06:27:45 Parcelable is a decent option but it's a lot of work Oct 02 06:28:22 serializing to JSON provides the right balance of speed and flexibiliy. plus, as a bonus, the stored files are human readable (and editable)! Oct 02 06:57:36 Morning! :) Oct 02 06:58:54 I'm polishing up my app, and I've figured out that I should swap action bar menu entry dinamically. I have "make Favourite" option, so I'd like to somehow change menu item dinamicaly, when it is in Favourites I do not need "make favourites" again ... Oct 02 07:00:35 is there some database backup helper for google backup api? Oct 02 07:08:47 Hi, when I execute onScaleX/onScaleY on a ViewGroup, does it inform its children views about what is happening? Oct 02 07:12:06 why do the android samples load with errors in eclipse? Oct 02 07:12:25 i see x marks all over the sample source after i load them. Oct 02 07:13:57 bjorkintosh: because the project is not configured properly. Oct 02 07:14:13 what can be done to fix it? Oct 02 07:16:40 bjorkintosh: configure the project to point to a proper Android SDK and proper JDK Oct 02 07:17:11 bjorkintosh: and also try to Clean the projects a few times as Eclipse is not very good at detecting config changes. Oct 02 07:17:47 bjorkintosh: also if you right click the project here's an Android Tools or something like that there, try to Fix the project there Oct 02 07:18:13 hah. i did all that as you were typing that. Oct 02 07:18:26 i guess it doesn't want me to use java 1.7. Oct 02 07:18:30 it likes 1.6 better. Oct 02 07:20:35 thanks BadDesign Oct 02 07:20:50 JDK 1.7 works just fine Oct 02 07:21:06 hmm. let me see. Oct 02 07:21:37 I've used it since the very beginning and I had no problems... I've heard many people complaining about it but I don't see any problems... Oct 02 07:23:57 android requires compiler compliance level 5.0 or 6. Found 1.7 instead. etc ... Oct 02 07:30:26 Are there any Android devices who can only show 4096 colors? Oct 02 08:13:21 awsnap. eclipse's wizard refuses to let me make an activity derived from Activity. Oct 02 08:39:08 hmm, I'm on Ubuntu and just plugged in my Samsung Galaxy Note 10.1, but it isn't listed in "adb devices" Oct 02 08:39:18 do I need to enable certain settings on the device? Oct 02 08:40:12 belgianguy: both device and ubuntu: http://developer.android.com/tools/device.html Oct 02 08:40:29 thanks LukePH Oct 02 08:40:50 it's debug mode on the device in settings Oct 02 08:48:38 LukePH: yeah, seems that checkbox was all it took :) now it shows up Oct 02 08:48:50 nice Oct 02 09:51:19 Working with ListView: I see that I must do "addFooterView" before I add the adapter, so the adapter can be wrapped to support header- and footer-views. Can't I specify that the adapter should be wrapped accoringly without actually adding a header or footer? Oct 02 09:51:51 hi. I need to put a background to a gridview as a whole . how? Oct 02 09:52:47 superlinux-hp background-attribute in xml or setBackground in code Oct 02 09:52:58 ok Oct 02 09:53:00 thanks Oct 02 09:53:36 np sir, show that code what you're made off! Oct 02 09:56:44 lapdis, i never use header and footer lol. are they really necessary ? Oct 02 09:57:36 They can be quite comfortable when for example implementing a "load moar data plox"-button at the bottom Oct 02 09:59:05 lol I do that in one of the items. i set an empty item, then when data is loaded i replace it Oct 02 09:59:22 well not empty item, but a 'loading' item Oct 02 09:59:51 lol while it is possible, i find it sup-optimal :( Oct 02 10:00:12 lol i solved it by delaying setting the adapter, it worked flawlessly lol Oct 02 10:00:17 i think of it as one less blob of code to worry about Oct 02 10:00:26 still, lol, I would have prefeered a "wrap-adapter"-method lol :) Oct 02 10:00:28 delaying ? Oct 02 10:00:35 lapdis, write your own adapter that returns 2 deom getViewTypeCount (i think) Oct 02 10:00:40 yes, not setting the adapter before setting the "loader"-footer Oct 02 10:00:55 *from Oct 02 10:01:49 and 0 from getViewType unless position == array.length, then return 1 Oct 02 10:05:32 That sounds like quite the hack to imitate addFooterView :P Oct 02 10:06:08 indubitably Oct 02 10:07:48 it's not a hack, it's how adapters work Oct 02 10:07:55 but can be a pain, yes Oct 02 10:22:12 which has higher priority or suppresses the other , the xml layout or the layout from code?? Oct 02 10:22:39 I don't think it works like that, superlinux-hp Oct 02 10:22:54 leslie, ok.. Oct 02 10:26:21 hello Oct 02 10:26:46 i have a question about Handlers Oct 02 10:31:03 dark_element: ask? Oct 02 10:32:42 suppose i have a function like this private void getData(Handler callback) Oct 02 10:32:43 ok? Oct 02 10:32:52 on in this function i do some thing like this Oct 02 10:33:01 create another handler inside function Oct 02 10:33:17 Handler localCallback = new Handler() { Oct 02 10:33:31 wait ill put it somewhere saner Oct 02 10:35:44 just so you know, I don't have a clue about handlers Oct 02 10:36:48 leslie here https://www.refheap.com/paste/5427 Oct 02 10:37:07 localCallback crashes the app Oct 02 10:39:06 stacktrace pls Oct 02 10:43:17 HDroid leslie figuerd it out here is what works for me https://www.refheap.com/paste/5428 Oct 02 10:44:04 ah, nice. now all I need to do is figure out what handlers are even for Oct 02 10:45:06 Mainly used to post background thread results back to the UI. Oct 02 10:45:26 ah ok Oct 02 10:46:04 is it possible to mute microphone and play some "elevator music" through phone? Oct 02 10:47:20 Pitel_IPEX: I don't think so Oct 02 10:50:07 apps cannot access call audio, generally Oct 02 10:51:20 there's supposed to be a way in the api, but I don't think any/many devices actually support it Oct 02 10:53:11 MediaRecorder.AudioSource.VOICE_CALL for example Oct 02 10:54:21 leslie mostly when you call an api it should run in background and not block ui Oct 02 10:54:50 yeah, that much I do know :) Oct 02 10:55:31 Loaders are pretty useful for that type of thing Oct 02 11:12:27 leslie, Leeds how about MediaPlayer.setAudioStreamType(AudioManager.STREAM_VOICE_CALL)? Oct 02 11:12:43 tried using it? Oct 02 11:12:50 not yet Oct 02 11:13:58 must find nyancat or trololo sample before tryuing it :] Oct 02 11:25:27 Hi.. I've "finished" my app that should be able to share images on the facebook. So, you can add some graphics to your image from camera / gallery, and then save this graphic to your image and publish it. That's all cool but... I've downsized image to fit my screen on HTC Desire, and that is 480X800 px screen. Now, If I use images from larger phone they do not fit properly on my screen, and beside Oct 02 11:25:59 that if I downsize them to device screen size, they are not equal on all devices, and shared on Facebook will be in different sizes. Oct 02 11:26:28 How to use eg 480X800 on all screens, no matter if they are smaller or bigger, and to have allways the same image shared Oct 02 11:26:41 like Instagram always has 612X612 px I think Oct 02 11:27:16 Start at a uniform size and scale the image. Oct 02 11:27:24 To fit the screen. Oct 02 11:27:58 You should probably just be scaling the camera's native resolution, anyway. Oct 02 11:28:02 Not 612x612. Oct 02 11:31:37 The problem is I have fixed sized drowables (additional graphics) that can be applied to "device dependent sized" photo Oct 02 11:32:02 So I'm having problems connecting this two sizes to fit properly and in the same way in the end Oct 02 11:32:17 It's sort of like in PicSay when you can add flower to your photo Oct 02 11:32:32 flower is predefined and has fixed size (i believe) Oct 02 11:49:30 Balky: you need to rethink your app then. Oct 02 11:49:55 What you want to do is impossible. Maybe you could implement vector graphics (flowers, etc) that would scale well. Oct 02 11:50:59 Well, that's also possibility, but I can resize bitmap as I'm doing right now using createScaledBitmap Oct 02 11:51:40 so If I manage to get some common ratio, it should work the same way Oct 02 11:51:52 even though I agree Vectors would be better option Oct 02 11:52:02 but they are more expensive... :) Oct 02 11:52:14 and I'm just coding :) Oct 02 11:55:09 hi Oct 02 11:55:54 hello all, how to get icon(drawable) of any files(directory, image etc..) from OS? Oct 02 11:57:11 Is there any library for android that can recognize numbers from camera pictures, sort of as a scanner? I know my banking app has such a feature.. Oct 02 11:57:27 Or would one have to write it from scratch? Oct 02 11:58:05 i have create a communication system between Service and Activity for 2 reasons: connection Bluetooth and send data server from Activity and receive data to another Activity. is remote service is solution? Oct 02 12:00:41 I have another issue with graphics. How to check file size and load large image. I know how to downsize image, and that's fine when I have image loaded to bitmap. But, I try to load huge image from other camera (12MPix) and itcrash on load Oct 02 12:00:55 so I need to downsize image from outisde somehow Oct 02 12:01:11 or to do something to reduce image and load it reduced Oct 02 12:02:00 Balky: sounds like you running out of heap Oct 02 12:02:19 Yes I do Oct 02 12:02:50 I'm trying to figure out if Bitmap Factory can load image in certain size, and then downsize original during load somehow Oct 02 12:03:24 http://developer.android.com/training/displaying-bitmaps/load-bitmap.html ? Oct 02 12:03:42 Balky: Maybe you could load it in segments somewhoe? Oct 02 12:04:38 For example load a portion of it (1/8 maybe), downsize it, save it, load another portion, downsize and append to previous portion.. Oct 02 12:04:39 hi, do all android games have an application class? Oct 02 12:04:53 i can find an activity class, but no sign of an application class Oct 02 12:04:53 leslie - reading it right now Oct 02 12:05:11 basically, yes, you can downsize on loading Oct 02 12:05:16 xarxer - I think that would be owerkill, must be inbuilt way :) Oct 02 12:05:28 Balky: Okay, then I don't know :] Oct 02 12:05:39 :) Oct 02 12:05:58 trying to integrate scoreloop in to my android project... Oct 02 12:10:12 any ideas? Oct 02 12:10:28 will i need to create an application clasS? Oct 02 12:10:33 class* Oct 02 12:10:55 doesn't it have an sdk? Oct 02 12:11:07 what are you trying ot do Oct 02 12:11:15 MrQwak: depends on how scoreloop has to be integrated, I guess they have a documentation, that described how to integrate? Oct 02 12:11:22 trying to integrate Scoreloop Oct 02 12:11:27 yes, i have the SDK Oct 02 12:11:39 following the integration guide... Oct 02 12:11:58 have done all the step, but it crashes Oct 02 12:12:08 i don't think i did the initialisation correctly Oct 02 12:12:30 stacktrace? Oct 02 12:12:34 A good place to initialize the Client is within your game's application class. This is the class that will normally extend the android.app.Application. Within your game's application class the recommended place to initialize the Scoreloop Client is within the onCreate() method, to which you only have to pass the android.content.Context. Oct 02 12:12:56 not sure where my game's application class is... Oct 02 12:13:06 if they suggest that, i would have just created an Application class, if you doesn;'t have one Oct 02 12:13:08 i can find my app's activity class Oct 02 12:13:16 okay Oct 02 12:13:21 then you most propably don't have a application class yet Oct 02 12:13:26 yeah, create one, and define it in the manifest Oct 02 12:13:27 sounds like an idea Oct 02 12:13:36 no idea how to do so though Oct 02 12:13:46 cretae a new class and inherit android.app.Application and then you need to give the name to the name attribute in the application tag in the manifest file Oct 02 12:13:49 first step is to define it in the manifest? Oct 02 12:13:52 just create a class and extend from Application Oct 02 12:15:16 and when you created one, use this attribute of the application tag in your manifest: http://developer.android.com/guide/topics/manifest/application-element.html#nm Oct 02 12:15:33 hiya, I need some help convincing eclipse to run my project Oct 02 12:15:45 namely, I have minSDKVersion=4, targetSDKVersion=15 Oct 02 12:16:07 and when I use Launch As → Android Application, it won't let me select a gingerbread image Oct 02 12:16:22 so it's apparently filtering based on target, rather than min SDK version Oct 02 12:16:30 any idea how to make it do the right thing? Oct 02 12:17:19 couldn't you just set it to "auto" or whatever it is and run the emulator separately? Oct 02 12:18:30 leslie: I don't think so, because it specifically filters the list of available devices to exclude the GB one Oct 02 12:18:35 lemme try launching it Oct 02 12:19:15 well when I run apps from eclipse, it just runs on whatever device I have attached Oct 02 12:21:30 hi ppl Oct 02 12:21:46 'ello Oct 02 12:22:16 Can i zipalign my app while i do "run as android " inside eclipse? Oct 02 12:22:19 werd Oct 02 12:22:31 my app aint work without zipalign and i want to debug Oct 02 12:22:52 (because of unity3d) Oct 02 12:23:46 well do an export, "the Export Wizard will automatically zipalign your .apk" Oct 02 12:24:03 alternatively create a simple bash file that zipaligns and pushes to your device Oct 02 12:24:13 leslie: I dunno, but I just deployed and ran it manuall via maven and it runs, which is enough for me now Oct 02 12:24:14 but it wont run with export right? Oct 02 12:24:14 not too sure it zipaligns when you "run as android" Oct 02 12:24:24 no it doesnt Oct 02 12:24:48 mathrick: fair enough Oct 02 12:24:49 i have a class which binds to a local service. In my preferencesActivity i toggle the usage of this service (auto updater). Is it possible to use SharedPreferencesOnSharedPreferenceChangeListener on a normal activity? or does it have to be on a PreferenceActivity? Oct 02 12:25:26 my though was that i would kill or unbind from the service if the user changes the toggler in preferences Oct 02 12:25:29 *thought Oct 02 12:25:36 mathrick: it definitely zipaligns when you run ant release Oct 02 12:26:26 leslie: did you mean DysonReturns? Oct 02 12:26:46 er, yes Oct 02 12:27:00 DysonReturns but how do i run the exported apk, im now sending it by email to my phone, but that takes ages Oct 02 12:27:15 leslie: did you mean BulletTime? Oct 02 12:27:30 BulletTime, you on linux? Oct 02 12:27:33 well whoever. just run ant release Oct 02 12:28:36 ant release install will install it to the device too Oct 02 12:28:54 no im on windows Oct 02 12:29:04 adb install whatever.apk Oct 02 12:29:37 anyone? Oct 02 12:30:20 Leeds: so I tired AudioManager.STREAM_VOICE_CALL, and it is for output (sound quality was lower than default music), not input. FYI Oct 02 12:30:30 BulleTime: I'm assuming you know how to use a command line Oct 02 12:30:41 a little bit yes Oct 02 12:30:53 ok. well adb is the easiest way Oct 02 12:31:30 what do i insert in the command line then? Oct 02 12:31:54 \path\to\adb.exe install whatever.apk Oct 02 12:33:34 actually, you might need to use adb.exe install -r whatever.apk Oct 02 12:33:48 i'll paste my guess at a .bat file Oct 02 12:34:15 great, thanks chaps Oct 02 12:34:19 BulleTime: http://pastebin.com/HyagPzpX Oct 02 12:34:31 really, if you can setup ant, BulleTime, it'd be a lot easier Oct 02 12:34:32 seems to work a bit better for now Oct 02 12:34:55 BulleTime: try putting that in a .bat file and set your project to auto-build. then run the bat file, from within the root of your project directory. Oct 02 12:35:29 BulleTime: you should change those paths and your what your .apk name is and the main activity stuff along with package name. hope it helps. else go with the Ant stuff as they said. Oct 02 12:35:38 bbl Oct 02 12:38:37 what is ant? Oct 02 12:38:48 it's a java build tool Oct 02 12:38:52 and i dont realy understand u DysonReturns Oct 02 12:38:53 android uses it Oct 02 12:39:02 aha Oct 02 12:43:00 did i need to make some reference to my application class, from my android manifest.xml? Oct 02 12:43:33 yes Oct 02 12:45:52 MrQwak: thanks. so, android:name="" Oct 02 12:46:07 is that right? Oct 02 12:46:16 oh right Oct 02 12:46:24 com... Oct 02 12:46:38 just whatever package you have it in Oct 02 12:52:29 is Scoreloop any good for online leader boards? Oct 02 12:52:41 what do you guys use for that, in android games? Oct 02 12:55:20 hi. i have a font in assets/fonts/arial.ttf in the project tree.. how can I set it in the xml? Oct 02 12:55:31 android:typeface what? Oct 02 12:56:49 I think you have to do it in code, not sure Oct 02 12:59:05 superlinux-hp: http://stackoverflow.com/questions/3203694/custom-fonts-in-android Oct 02 12:59:43 leslie, that I know Oct 02 13:00:00 i wanted to use it in my xml layout Oct 02 13:00:15 I don't think you can, was my point Oct 02 14:09:00 Hi. I have a helper class that should start an activity but it doesn't know anything about the parent activity/context/whatever. Is there some static way to access the application context? Oct 02 14:10:20 soa2ii: no Oct 02 14:10:43 give your helper's constructor an instance of the application context Oct 02 14:10:50 context.getApplicationContext(); Oct 02 14:12:40 lov: Yeah I thought so but this means I have to create new setters/contstructor arguments in 2 or three classes :-/ But okay Oct 02 14:15:17 oh no! refactoring! D: Oct 02 14:15:24 the dread code disease Oct 02 14:19:38 @ lov Oct 02 14:27:12 ? Oct 02 15:23:17 i set an activity up so that the soft-keyboard (that shows up when you input text in the EditText) can disappear after you press done ...but I also want it to go to another activity when this happens. The problem is that this doneOnEditorActionListener class is an inner class within the Activity subclass. Design-wise, what can I do to make this work? Oct 02 15:23:44 panegyric: just call finish() ? Oct 02 15:24:11 i have an acitivty subclass within that a listener i implemented Oct 02 15:24:45 when 'DONE' on the keyboard is pressed i want to remove the keyboard (which it's doing) and use the text in the EditText in the next activity Oct 02 15:26:23 panegyric: http://developer.android.com/guide/topics/ui/controls/text.html#ActionEvent Oct 02 15:26:39 When you press done, use the value in the edittext as an argument in the bundle that you pass with your intent. Oct 02 15:26:48 Alternately, set it as your return value if you called startActivityForResult Oct 02 15:27:18 panegyric: Seriously, instead of bashing your head at some tiny issue because you don't understand how the core of this works, I would recommend that you actually understand how activities and intents work. Oct 02 15:27:22 ok but should i get the text from the EditText within the listener class? Oct 02 15:27:31 you can if you want; I really don't give a shit. Oct 02 15:27:36 or on the onCreate fcn Oct 02 15:27:49 is there a way to do the latter? Oct 02 15:27:55 how could you get it from within onCreate? Oct 02 15:28:15 if (listener==true) Oct 02 15:28:21 would that work on the onCreate? Oct 02 15:28:32 uh Oct 02 15:28:35 I don't know what listener is Oct 02 15:28:39 or what your code looks like Oct 02 15:28:44 so, you tell me if it'll work Oct 02 15:28:54 its an evnetListener Oct 02 15:29:08 pseudo code Oct 02 15:29:11 panegyric: let me rephrase: I don't really care what your code looks like :) I'm not trying to write it for you Oct 02 15:29:24 I'm trying to give you the tools which allow you to solve your own problems :) Oct 02 15:29:40 ok got you Oct 02 15:29:49 i didnt realize i was doing something wrong Oct 02 15:29:51 by asking Oct 02 15:30:17 lov i know how that works Oct 02 15:30:24 doing something wrong? Oct 02 15:30:28 I would hope you do by now. Oct 02 15:30:47 the thing is Oct 02 15:30:58 if i put this in the listerner class Oct 02 15:31:14 then wont it keep doing it Oct 02 15:31:25 >_< Oct 02 15:31:29 I honestly don't know what you mean by that. Oct 02 15:31:29 trying to figure out what text is in the editText Oct 02 15:31:52 if i try to extract the contents of the EditText within the listerner class that i implemented Oct 02 15:32:02 wont it keep checking editText until done is pressed Oct 02 15:32:12 will it? Oct 02 15:32:21 i think so Oct 02 15:32:33 even if you check the actionid and filter out events that you don't want? Oct 02 15:32:33 just once? Oct 02 15:32:36 (*cough*) Oct 02 15:32:53 *COUGH HINT COUGH* Oct 02 15:33:04 hi lov Oct 02 15:33:12 cough= sarcasm?? Oct 02 15:33:32 i finaly managed to run my unity app in eclipse Oct 02 15:33:59 i need to zipalign the apk in oder to get it to work... Oct 02 15:35:05 Yo, I'm trying to downgrade a dinc2, and when flashing the RUU I get (remote: 99 unkown fail) and it stops. Any ideas? Oct 02 15:35:29 any idea its possible to automaticly zipalign the apk when i go for a "Run as Android Application Oct 02 15:36:34 Hey. Oct 02 15:37:28 you can probably add a custom build step Oct 02 15:37:54 BulleTime: ^ Oct 02 15:38:09 hhm not sure.. Oct 02 15:38:45 eclipse has run configurations but i dont see anything about zipalign Oct 02 15:39:15 in the project properties, under builders Oct 02 15:40:24 aha i see Oct 02 15:41:39 do i need to add arguments or how do i do this? Oct 02 15:42:09 I don't know the specifics Oct 02 15:43:59 I'm trying to load downsized image to my BitmapRender. Using BitmapFactory and getting (to me) strange results Oct 02 15:44:16 If I use SampleSize 3 image is too small, leave some blanks on the screen Oct 02 15:44:28 In Android, Oct 02 15:44:35 if I use SampleSize 3 it is twice too big and running out of the screen Oct 02 15:44:54 If I define method which inherit from "Activity" Oct 02 15:45:04 Again. Oct 02 15:45:37 If I define class which inherit from "Activity" And then in this class make method. Oct 02 15:45:48 "onCreate" Oct 02 15:46:20 This method would be executed when this activity is created. Oct 02 15:46:23 . Oct 02 15:46:37 bluesm yes Oct 02 15:46:51 It works like events in JS but there we use "particualar names of function" Oct 02 15:46:55 Yes? Oct 02 15:46:57 bluesm: http://developer.android.com/training/basics/activity-lifecycle/index.html Oct 02 15:47:44 Balky, tnzr: Thanks :) Oct 02 15:48:18 bluesm: no prob, check out the first link on that page, "Starting an Activity".. there's a nice graphic that will show you where onCreate() plays into the whole process Oct 02 15:49:30 Looking for a way to test in 2.3 if the SD card has encryption enabled or not… anyone have any ideas? I'm thinking I may need some kind of command line strategy, but not sure how I might poll that information even from there Oct 02 15:53:48 hey all Oct 02 15:53:58 how can i make sure an activity doesn't launch without authentication Oct 02 15:54:15 let's say, they must go through the login activity first Oct 02 15:59:18 have that activity check something in its onCreate; if the user hasn't logged in or whatever, launch the login activity and finish that activity. Oct 02 16:01:00 lov: what would be a good value checked? Oct 02 16:01:19 fucked if I know Oct 02 16:01:24 I have no idea how you're doing your authentication Oct 02 16:01:24 lol Oct 02 16:01:31 I don't know what your login form actually does Oct 02 16:01:39 check if the token or username or whatever you're storing isn't blank Oct 02 16:14:55 anybody encountered this http://stackoverflow.com/questions/6975203/android-google-maps-failed-to-find-style-mapviewstyle-in-current-theme? all the solutions listed dont really seem to work. Oct 02 16:16:20 mainactivity: http://pastebin.com/WREZzHDV second activity: http://pastebin.com/CyXi8ran [compiling with no errors, but android gives me "Unfortunately app stopped working" as soon as i enter something in the editText Oct 02 16:17:58 Hya all... Oct 02 16:18:39 Has somebody else noticed, that one cen edit a disabled text field by holding MENU key, and popping up the keyboard? Oct 02 16:18:59 (the field has to be focused) Oct 02 16:20:11 if its disabled, how can you focus it? Oct 02 16:20:17 mainactivity: http://pastebin.com/WREZzHDV second activity: http://pastebin.com/CyXi8ran [compiling with no errors, but android gives me "Unfortunately app stopped working" as soon as i enter something in the editText Oct 02 16:20:49 read the stack trace Oct 02 16:21:15 panegyric: Well... If it's the first field in the activity it is focused on start. Oct 02 16:27:09 anyone see what was wrong with my codE? Oct 02 16:27:31 panegyric: You need to pastebin the exception stack trace. Oct 02 16:28:11 one sec Oct 02 16:35:51 Stack Trace: http://pastebin.com/qyd06JAV Oct 02 16:37:05 panegyric: add the activity ot the manifest Oct 02 16:37:07 oh i guees i didnt declare the 2nd activity Oct 02 16:37:09 on the manifest Oct 02 16:37:11 panegyric: The stack trace says it all! Oct 02 16:37:24 my fault guys, thanks Oct 02 16:37:29 I bid everyone good night. Oct 02 16:40:41 gnite Lachezar Oct 02 16:55:22 when im setting up a layout for an activity, what is the best way to add space between two UI elements Oct 02 16:55:34 say its vertically oriented Oct 02 16:56:12 and i want a textView below another element (but not right below) Oct 02 16:56:18 margins Oct 02 16:56:35 put android:layout_marginBottom on the first element or marginTop on the textView Oct 02 16:56:57 got it thanks Oct 02 16:56:59 np Oct 02 16:57:37 I see lots of banking apps have OCR scanners while still being lightweight ~2 Mb in size.. Is it probable that they have coded their own recognition software? Oct 02 17:00:30 java-ish android question: If I define a custom Handler for a custom AsyncTask inside my Fragment, ie: private Handler webRequestHandler = new Handler() { ...}, is it instantiated at runtime and does it just sit in memory until the class gets GC'd later? Oct 02 17:01:02 or does it only get instantiated when you do a new AsyncTast(pram, param, param, webRequestHandler, ...) Oct 02 17:01:16 (apologies for the pseudo-syntax) Oct 02 17:03:20 xarxer: you mean like check photographing? I'm assuming that they just send the whole thing to the server, and then show a pretty "scanning!" picture Oct 02 17:04:51 lov: Well.. I get a camera view and I just hover the lens over the OCR digit string and it recognizes the digits and inputs them automatically.. It seems to happen in "real time" so I don't think they're sending the image to a server.. and I also don't have to snap a picture, just focus the lens at it.. Oct 02 17:05:06 hmph Oct 02 17:05:11 maybe they do have some OCR software Oct 02 17:05:34 Does it just input the routing #, or does it include the amount that the check is for? Oct 02 17:06:08 lov: I first scan the routing number, and then the amount and it inputs it automatically to two separate fields... Oct 02 17:06:22 interesting. Oct 02 17:06:29 The routing number is way easier because that's in a mandated font Oct 02 17:06:37 but recognizing the amount is a lot harder Oct 02 17:06:46 baksmali that app xarxer Oct 02 17:06:50 for science!@ Oct 02 17:07:15 lov: I think there's a misunderstanding here.. the amount and number are in the same font. It's not a check, it's a bill.. Oct 02 17:07:22 So there's no handwriting involved Oct 02 17:08:13 oh. Oct 02 17:08:28 I thought that you meant scanning a picture of a check instead of cashing it Oct 02 17:08:32 nevermind! Oct 02 17:08:55 But the app has a ton of features, and is just 1.8 Mb in size.. I created a sample project using Tesseract and it's 8 Mb.. Oct 02 17:12:54 heh Oct 02 17:13:09 idk what to say. It's probably got all of the functionality in a shared lib or something Oct 02 17:20:56 which app are we talkin about Oct 02 17:21:44 anyone having issues lately with MediaPlayer and opening a stream with a .pls extension? Oct 02 17:21:46 panegyric: "Handelsbanken" for the swedish bank Oct 02 17:22:44 can i send json/plaintext to GCM servers? Oct 02 17:23:57 panegyric, what's the alternative? Oct 02 17:24:18 i mean json or plaintext whih does it take do you know Oct 02 17:24:23 i mean cani send json Oct 02 17:27:56 hi, has anyone ever tried encrypting the obb expansion files Oct 02 17:28:09 panegyric, i'd suggest reading the docs for it Oct 02 17:28:17 I am using a zipcontentprovider to send data to my app Oct 02 17:28:48 I am trying to feed in a password to my password-protected OBB file Oct 02 17:31:07 i have an EditText that upon pressing done on the soft keyboard goes into another activity. but if the user enters 't' in the editText i dont want it to go to the other activity. I have code here http://pastebin.com/RsgxFPfa that i thought would work, but regardless of what i type in the editText it goes into the next activity , any idea why? Oct 02 17:33:11 panegyric: if (userName=="taken") Oct 02 17:33:12 NO Oct 02 17:33:19 you need to use .equals in java Oct 02 17:33:22 look. Oct 02 17:33:26 I'm not going to look any further than this. Oct 02 17:33:32 YOU NEED TO LEARN JAVA BEFORE YOU DO ANDROID DEVELOPMENT Oct 02 17:33:33 PERIOD Oct 02 17:34:02 we've given you several tutorials Oct 02 17:34:14 You MUST read them or your code will be buggy and unpredictable like it is now Oct 02 17:34:20 this is not an optional thing Oct 02 17:34:25 you literally don't know what you're doing Oct 02 17:36:05 lov it's a semester project for school Oct 02 17:36:12 the core curriculum is based on c++ Oct 02 17:36:27 and i have only 2 months to complete it, so i have to learn as i go along sorry Oct 02 17:36:49 i wish i could learn everything first, but i dont have the time Oct 02 17:36:59 but i am learning concepts as i go along Oct 02 17:38:04 * lov sighs Oct 02 17:38:16 panegyric: take a day off from writing android Oct 02 17:38:18 http://docs.oracle.com/javase/tutorial/java/index.html Oct 02 17:38:22 http://docs.oracle.com/javase/tutorial/essential/index.html Oct 02 17:38:26 ead those Oct 02 17:38:28 *read those Oct 02 17:38:36 if you don't understand the fundamentals of java, you're going to have problems like this. Oct 02 17:38:51 == is object reference value comparison in Java Oct 02 17:39:09 which means that if and only if two instances of the object are the same object instance, it will return true Oct 02 17:39:16 strings are objects, not primitives Oct 02 17:39:20 you MUST use .equals to compare objects in java Oct 02 17:39:30 got it Oct 02 17:39:32 thanks Oct 02 17:42:22 ok can i ask you a question though for my main activity , the xml, i could drag and drop widgets wherever i wanted Oct 02 17:42:35 but for my 2nd activity its vertically oriented Oct 02 17:43:00 is there anyway to have it like my first acitivty Oct 02 17:43:08 and why is my first activity that way Oct 02 17:43:38 if you dont specify orientation in the xml Oct 02 17:43:44 then there will be no orientation right? Oct 02 17:43:58 a LinearLayout needs its orientation set Oct 02 17:44:04 if you specify no orientation then the default is vertical iirc. Oct 02 17:44:10 actually yeah that Oct 02 17:44:15 s/vertical/horizontal/ Oct 02 17:44:16 you have to specify an orientation for linearlayout Oct 02 17:44:23 and yeah whoops it defaults to horizontal Oct 02 17:44:24 welp Oct 02 17:44:33 panegyric: you're probably using a LinearLayout instead of a RelativeLayout Oct 02 17:44:34 but then its unpreditactable how it shows up if i dont specify and orientation Oct 02 17:44:47 oh ok got it Oct 02 17:44:55 try looking at the xml for your layout instead of using the WYSIWYG editor Oct 02 17:44:55 lov do you work for google? Oct 02 17:44:58 no Oct 02 17:44:58 just curious Oct 02 17:45:01 oh ok Oct 02 18:02:30 wow i had no idea they added xxhdpi in 16 Oct 02 18:06:14 next up is xxxhdpi Oct 02 18:06:18 1080p Oct 02 18:06:21 the p is for pornography Oct 02 18:07:43 in full hd ? Oct 02 18:09:17 dpi isn't just res. it's res per screen size. Oct 02 18:09:35 freeone3000: actually, it's *dpi* that is *resolution* Oct 02 18:09:59 p_l: resolution is dots. dpi is dots-per-inch. Oct 02 18:10:15 p_l: A 720p 13" laptop is mdpi. A 720p 4.5" phone is xhdpi. Oct 02 18:10:36 you. yes you, the one reading this. what is your GOAL Oct 02 18:11:22 Yeah I was kind of just making a joke there Oct 02 18:11:28 dpi != screen size Oct 02 18:11:37 freeone3000: no, resolution is dots-per-inch exactly. Oct 02 18:11:37 sorry I started an argument ._. Oct 02 18:11:54 p_l: Probably by definition, but that's not howit's used. Oct 02 18:11:56 p_l, hrrrm... don't latch on too hard Oct 02 18:12:06 800x480 is just canvas size Oct 02 18:12:15 freeone3000: only in computers Oct 02 18:12:23 Right. What else matters? Oct 02 18:12:27 anyone here familiar with using the "dalvikvm" command line? Oct 02 18:12:42 do you expect someone to give you screen size when you ask for device resolution? Oct 02 18:13:13 gutano: Yes. Oct 02 18:13:31 now your just unwilling to cede any ground Oct 02 18:13:34 *shrug* Oct 02 18:14:14 gutano: Do you expect to hear back "72 dpi"? Oct 02 18:14:16 you guys are the worst Oct 02 18:14:18 collectively Oct 02 18:14:44 freeone3000, you where the wrong person to answer with the right answer to my Q Oct 02 18:14:49 lol Oct 02 18:15:22 (right answer being, blatantly untrue) Oct 02 18:15:40 no one gives you anything but pixels by pixels when you ask for resolution Oct 02 18:15:51 it does not imply dpi Oct 02 18:16:05 (perhaps some formal definition disagrees) Oct 02 18:19:23 lov: you are the best Oct 02 18:19:27 singularly Oct 02 18:20:11 birbeck: I'll take it. Oct 02 18:20:21 :) Oct 02 18:22:26 has anyone veer encrypted their expansion files before uploading to google play? Oct 02 18:23:01 weren't you asking about this last week, or was that someone else Oct 02 18:23:11 oh yes, it was. Oct 02 18:23:25 calvinchan: anything clientside is automatically compromised. Oct 02 18:23:28 don't even bother. Oct 02 18:23:59 what you mean by "anything client side is automatically compromised"? Oct 02 18:24:09 Meaning that no matter what drm, encryption, etc you try to put in Oct 02 18:24:15 someone will work around it and then release a cracked version Oct 02 18:24:41 oh……. Oct 02 18:24:50 If you feel like putting triple rot 13 into your content, then good for you, but expect that to just be a stopgap, not a solution. Oct 02 18:24:51 you guys are the worst Oct 02 18:24:53 i lol'd Oct 02 18:25:01 even if I put a password on the OBB file itself? Oct 02 18:25:08 someone can still crack the password? Oct 02 18:25:15 where is the password going to come from? Oct 02 18:25:25 How are you going to prevent someone from just attaching a debugger to whatever is sending the password? Oct 02 18:25:28 DRM is encryption where the eavesdropper necessarily has access to the private decryption key in some form Oct 02 18:25:42 It's pretty much not going to work in principle Oct 02 18:25:59 You have nebulously defined goals of "protecting" your content. Oct 02 18:26:04 You need to be very concrete in what you want to do. Oct 02 18:26:11 DRM is giving the user a locked box with the key taped to the bottom and hoping no one is smart enough to notice it there Oct 02 18:26:14 What is your goal, and how do you believe that you can accomplish it? Oct 02 18:26:29 you need to explicitly define what you plan on doing Oct 02 18:26:31 encryption isn't fairydust Oct 02 18:26:37 you can't just sprinkle "security" on your product Oct 02 18:26:59 activate security spell! Oct 02 18:27:24 Any sufficiently advanced security is indistinguishable from fairydust Oct 02 18:27:42 any sufficiently advanced flaming is indistinguishable from terrible posting Oct 02 18:28:17 lov: I have bunch of videos zipped up as OBB for my app's expansion file Oct 02 18:28:35 calvinchan: ok. and? Oct 02 18:28:41 and I don't want people to just download the app and extract videos directly out from the OBB Oct 02 18:28:47 why? Oct 02 18:28:50 ^^ Oct 02 18:28:58 copyright issues Oct 02 18:29:09 stream them Oct 02 18:29:10 so, DRM. Oct 02 18:29:11 ^^ Oct 02 18:29:22 I am told not to stream Oct 02 18:29:29 of course someone might screencap them .. ohnoes Oct 02 18:29:30 calvinchan: this is a losing battle. Oct 02 18:29:30 I just follow orders lol Oct 02 18:29:45 calvinchan: you need to quanity what "good enough" is going to be Oct 02 18:29:53 because short of hardware level DRM protection, you're not going to get something decent Oct 02 18:30:14 someone WILL extract your content and share it; it's a question of when, not if. Oct 02 18:30:19 well Oct 02 18:30:23 assuming that anyone even CARES about your content Oct 02 18:30:28 Since this is android, presumably you realise it'll be fairly easy to just intercept the video data as it hits the screen and game over Oct 02 18:30:32 I basically just want to set a password on the OBB, so that people can't directly open the OBB Oct 02 18:30:34 It wouldn't be that hard on a proprietary OS either Oct 02 18:30:51 how about this Oct 02 18:30:56 MIME::Base64 it Oct 02 18:30:59 add a few random bytes inside the header of the obb Oct 02 18:31:01 if they find a way to crack my password….. I guess that's fine Oct 02 18:31:21 If your boss understands that that's bad, he should also understand that what he's asking you to do is bad and stupid Oct 02 18:31:28 make the password something ridiculously racist Oct 02 18:31:30 or maybe convert the videos into a more obscure format? Oct 02 18:31:37 that way when someone cracks it, you will get publicity Oct 02 18:31:41 and itll pay for itself Oct 02 18:31:49 so it isnt worth someone's time to try and extract and convert them Oct 02 18:31:55 tech1 > aha, the old security by obscurity! Oct 02 18:31:59 Omg, calvinchan supports the Nazis, his password is "Heil Hitler" will be all over the blogs Oct 02 18:32:32 MIME:: Base64 looks like it works Oct 02 18:32:42 in theory anything is crackable. its just balancing the amount of time you are willing to do vs the cracker Oct 02 18:32:46 It's the most commonly used cryptosystem Oct 02 18:33:00 Rot26 Oct 02 18:33:11 dunno if this fact will help, but I can using a zipcontentprovider to retrieve data Oct 02 18:33:47 calvinchan: i can do this for you easy Oct 02 18:33:55 my consultancy fee is $120/hr Oct 02 18:34:02 you've already burned through .25 hours though Oct 02 18:34:08 whats wrong with someone extracting the videos anyway? just wait until someone tries to redistribute it(which they probably wont do anyway), then go after them, Oct 02 18:34:46 if they paid for the app with the videos, they should be able to extract and watch them if they have the expertise Oct 02 18:35:00 at first I told the bosses that if people redistribute them then it's another discussion, Oct 02 18:35:08 since i put up the content on google play Oct 02 18:35:31 unless you are planning to sell the videos seperatley. i dont see a problem Oct 02 18:35:39 what app is this Oct 02 18:35:54 it's a video playing app, I only sell the apps Oct 02 18:35:54 it's some dirty porny app isnt it Oct 02 18:36:03 no porn lol Oct 02 18:36:18 If it's an app for playing videos, why not just use something public domain as a demonstration? Oct 02 18:36:41 umm..... Oct 02 18:36:55 my guess is it's some branded/ad-heavy video playing wrapper to avoid the video store or whatever Oct 02 18:37:08 oh actually I have a very stupid idea, it should be better than nothing Oct 02 18:37:11 calvinchan does droid Oct 02 18:37:25 what if I just hide the extensions of my video files Oct 02 18:37:34 then normal people would know how to open it Oct 02 18:37:43 calvinchan: im a devloper, i have no clue what obb is Oct 02 18:37:43 I think the Linux/Unix 'file' utility would suss most of those anyways Oct 02 18:37:47 probalem solved Oct 02 18:38:05 mikedg_: ????? Oct 02 18:38:11 whats an obb file Oct 02 18:38:11 hiding the extensions .. brilliant! or you could put it in a directory called sekrit/ Oct 02 18:38:14 who made the videos you are trying to hide? Oct 02 18:38:21 lol Oct 02 18:38:31 i dont get the copyright issue Oct 02 18:38:50 Heh, I pointed vlc at an mp4 file with no extension, and it happily started playing it Oct 02 18:38:53 OBB file is Opaque binary blob Oct 02 18:39:13 AimHere: it sounds stupid...... Oct 02 18:39:22 Yes Oct 02 18:39:31 AimHere: it sounds stupid…… but I guess it's one way to show that I actually did something on "encryptn" Oct 02 18:39:33 reencode it as pdp-endian cmyk motion jpeg .. and no one will care enough to bother Oct 02 18:40:02 I just tried downloading a game called Blood and glory from Play store, extracted the OBB file Oct 02 18:40:12 and then open them in unity3d Oct 02 18:41:01 uh so yes, I was trying to zip the videos with a password, convert to OBB format, and then upload to google Oct 02 18:41:15 but I realized that I can't read the content properly Oct 02 18:41:58 ALL I wanna do is to make the piracy not as easy as extracting mp4s from the OBB file…. any ideas? Oct 02 18:42:13 xor 0x7f Oct 02 18:42:20 'file' won't know what the content is Oct 02 18:42:26 you'll have to process your input stream, naturally Oct 02 18:42:36 also, you still haven't told us, whose videos are these. Oct 02 18:42:41 who is actually going to buy these videos Oct 02 18:42:46 users? Oct 02 18:42:47 You might have some success if you set your deckchair up on the beach and commanded the tide to not come in Oct 02 18:43:01 I sincerely doubt that this is something that any of the movie studios are involved with; they have their own drm requirements Oct 02 18:43:09 are you working for some indie producer or something? Oct 02 18:43:15 AimHere: this too Oct 02 18:43:17 unless they are movies, you made, and you plan to sell them. i see no copyright confict Oct 02 18:43:33 lov: I am making tutorial videos for sale Oct 02 18:43:43 * lov groans Oct 02 18:43:47 ok, so. Oct 02 18:43:53 is the xml editor supposed to be this buggy?! Oct 02 18:43:55 then why are you putting them in the video player app? Oct 02 18:43:56 do you actually know that you have a market? Oct 02 18:44:07 or is this all wishful thinking? Oct 02 18:44:23 maybe you want the video player app to help market your tutorials..... then just make those videos DEMOS Oct 02 18:44:30 oh shi Oct 02 18:44:30 you mean I shouldn't put videos in a video playing app? Oct 02 18:44:46 no, generally Oct 02 18:44:50 not full videos you want to sell Oct 02 18:44:53 maybe short demos Oct 02 18:45:02 noon, they are full videos Oct 02 18:45:06 nono* Oct 02 18:45:14 they make demos of them? Oct 02 18:45:15 yeah the obvious thing to do imho is have people sign up for an account for your service and stream them Oct 02 18:45:20 seriously Oct 02 18:46:00 the company is already doing this, they just want to expand the market to android Oct 02 18:46:13 So have an android app that streams the videos Oct 02 18:46:15 calvinchan: they already stream? why would you include the videos then? Oct 02 18:46:18 so they're already in the business of selling tutorial videos, but don't have any idea how to perform encryption? Oct 02 18:46:19 yeah Oct 02 18:46:24 soemthing doesn't make sense here. Oct 02 18:46:38 Most hardware running android is packed to the gunnels with 57 flavours of ways of talking to other computers Oct 02 18:46:45 lov: first job heh Oct 02 18:46:52 they told me to make android apps, telling me not to stream them before they are responsible for hosting the content or what not Oct 02 18:46:54 just a guess Oct 02 18:47:03 * lov shrugs Oct 02 18:47:12 because* Oct 02 18:47:17 either look into fully featured DRM solutions or just use xor 0x7f. Oct 02 18:47:21 there's really no other solutions. Oct 02 18:47:22 Lets see, these guys can't afford the bandwidth to stream anything Oct 02 18:47:23 the end. Oct 02 18:47:44 And they get some random coder straight out of college to build their mission-critical android app ;) Oct 02 18:47:56 what is xor 0x7f? I can't find it on google? Oct 02 18:48:04 Inverts the bits Oct 02 18:48:29 0x7f == 011111111 binary Oct 02 18:48:44 Well I think there's one too many '1's there Oct 02 18:49:03 calvinchan: look up XOR first. Oct 02 18:49:05 XOR just flips all the bits apart from the highest bit Oct 02 18:49:13 oh yes I know XOR gates Oct 02 18:49:14 *xor 0x7f that is Oct 02 18:49:21 so you XOR your content Oct 02 18:49:25 then you XOR it again when you want to use it. Oct 02 18:49:27 "encryption". Oct 02 18:49:36 The thinking man's Rot13 Oct 02 18:49:38 by what means can I achieve that? Oct 02 18:49:40 is there a way to find out what rotation is stored for a JPEG blob in its metadata without saving it to a file first? Oct 02 18:49:42 are you fucking serious Oct 02 18:49:52 think about what you just asked. Oct 02 18:49:56 calvinchan: i can do it Oct 02 18:49:59 (calvinchan, not TheJH) Oct 02 18:50:04 it's like all android APIs assume that everything is files, not in-memory blobs :/ Oct 02 18:50:05 paypal me your first born Oct 02 18:50:12 lov, I realized that :D Oct 02 18:50:18 111 1111 = 0x7f Oct 02 18:50:27 Come to think of it, I wouldn't know, off the top of my head, how to xor a char in java Oct 02 18:50:39 AimHere: there's an amazing tool called "google" Oct 02 18:50:44 char * 'xor' Oct 02 18:50:44 AimHere, what about the | operator? Oct 02 18:50:46 youse the ascii code Oct 02 18:50:56 TheJH: that's the OR operator, not XOR. Oct 02 18:50:59 char * ('xor'+0x7f) Oct 02 18:51:02 lov > I know about that Oct 02 18:51:02 and the binary function Oct 02 18:51:03 I am so lost, because I have a content provider, and currently I am reading the videos by feeding an agosolute path Oct 02 18:51:05 lov, oh, right. then ^? Oct 02 18:51:06 absolute* Oct 02 18:51:22 calvinchan: well you're going to have to modify the stream yourself, sorry. Oct 02 18:51:29 lov> I think they make an operating system too. You might have heard of it Oct 02 18:51:45 AimHere: no one uses chromeos. Oct 02 18:51:47 ummmmmmm Oct 02 18:51:58 Chromeows you mean Oct 02 18:52:19 forget about xoring, just add 1 to every character Oct 02 18:52:21 and subtract it Oct 02 18:52:27 good point. Oct 02 18:52:56 don't worry if you overflow, because most good codecs can handle a few wonky bits Oct 02 18:52:57 how can I achieve that when I have a string that represents the absolute path to the video file? Oct 02 18:53:05 mikedg_, that would be easily spotted if there was any text sitting in your binary blob Oct 02 18:53:27 calvinchan: you don't. Oct 02 18:53:32 calvinchan: you're going to have to open and stream the file yourself. Oct 02 18:53:48 figure out how to pass an arbitrary stream of data to the mediaplayer Oct 02 18:53:50 lov: that means I can't use content provider? Oct 02 18:53:58 no, it means that you're going to have to think about what you're doing. Oct 02 18:54:04 instead of HERP DERP COPY PASTE Oct 02 18:54:17 calvinchan: what company is this for Oct 02 18:54:24 sometimes companies have acces to special apis Oct 02 18:54:29 that normal people cant use Oct 02 18:54:37 what is apis? Oct 02 18:54:53 lov: can you ban him, this is getting disruptive Oct 02 18:55:06 lol Oct 02 18:55:16 lol Oct 02 18:55:21 ._. Oct 02 18:55:38 sorry for all stupid questions, I am newbie to android Oct 02 18:56:01 yeah, I don't think android is the big problem here. Oct 02 18:56:23 ^^ don't worry, your not that dude Oct 02 18:56:58 (maybe you have parts hidden) Oct 02 18:57:08 think i know where to look and what to do, thanks people Oct 02 18:58:05 stack overflow is much better for people with many noobs in their pant Oct 02 18:58:25 they have a ton of extra stacks to give you Oct 02 18:58:30 we are pretty low on stacks Oct 02 18:58:42 too many ios developers took our stacks Oct 02 18:59:09 i ahvent been very active in here lately Oct 02 18:59:24 yeah big shot Oct 02 19:00:19 is there a way for an activity to access its classpath? Oct 02 19:04:45 Hi guys, I have created a Service and there Im using sockets. Insine the socket connection I have a while that receive the messages. I want to use a persistant connection, but my app freezes. Anyone here sometime got something like that? Oct 02 19:05:11 define freezes Oct 02 19:05:23 is the connection opened in the oncreate of the service? Oct 02 19:06:09 Duailibe: you'll have to do that on another thread ;) Oct 02 19:06:22 i create the socket in OnStart Oct 02 19:06:32 thats the problem Oct 02 19:06:38 spawn a thread for all your socket work Oct 02 19:06:41 and the freezes is really freeze, in the log i can see that socket is created and connected, but i cant use the app Oct 02 19:06:44 thats the ui thread Oct 02 19:06:45 look at the Service in the BluetoothChat example Oct 02 19:06:47 michal_ i see Oct 02 19:06:56 g00s i will take a look Oct 02 19:06:59 thanks for you attention guys! Oct 02 19:07:12 please deposit $25 to continue this conversation Oct 02 19:07:25 michal_ can be $0,25?! :S Oct 02 19:07:50 sure Oct 02 19:08:09 every bit counts, i'm traveling cross country and stuck here and need money for a bus Oct 02 19:08:11 and my dog Oct 02 19:08:52 kkkkkk Oct 02 19:08:53 :P Oct 02 19:09:05 if you are that broke, then one should not have a mutt Oct 02 19:12:04 or any other animal.. Oct 02 19:14:59 hey Oct 02 19:15:21 can someone type my name just checking my alert Oct 02 19:15:27 panegyric: no! Oct 02 19:15:32 thanks Oct 02 19:15:37 damn, fooled.. Oct 02 19:15:43 ;) Oct 02 19:17:24 panegyric: Oct 02 19:18:37 do you guys know on mirc Oct 02 19:18:43 they have those line-breakers Oct 02 19:18:51 that show up in the chat every so often Oct 02 19:19:01 i think when there's inactivity not sure Oct 02 19:19:04 how do you get rid of those Oct 02 19:19:11 don't use mirc Oct 02 19:19:28 how about if i have to use mirc Oct 02 19:19:32 any way to get rid of the Oct 02 19:19:36 them* Oct 02 19:19:51 i know there is, just forgot Oct 02 19:20:01 I don't know, try #anroid-dev, that seems appropriate, I'm sure there are a bunch of mirc experts hanging around there Oct 02 19:20:11 * lov checks the channel name Oct 02 19:20:15 * lov notes the lack of "mirc" Oct 02 19:20:20 * lov glares at panegyric Oct 02 19:20:37 does no one use mirc? Oct 02 19:20:45 errr, not since I used Windows Oct 02 19:20:50 * wilee-nilee puts lov in ignore Oct 02 19:21:17 I use irssi and have for a while Oct 02 19:21:35 +1 for irssi Oct 02 19:21:38 what IS so great about irssi Oct 02 19:21:46 why is it the irc client of the future Oct 02 19:21:55 It's not. It's the IRC client of the past Oct 02 19:21:59 screen? *shrug* I feel dumber every time you get me to speak Oct 02 19:22:52 screen? Oct 02 19:23:19 yes, screen Oct 02 19:23:22 you guys are so smart in here, i wish i could hang Oct 02 19:23:27 whats screen Oct 02 19:23:36 console window manager Oct 02 19:24:31 why did you say that Oct 02 19:24:40 ? Oct 02 19:24:57 screen? Oct 02 19:25:01 panegyric: http://en.wikipedia.org/wiki/GNU_Screen Oct 02 19:25:14 screen > * Oct 02 19:25:26 TMUX Oct 02 19:25:29 * Hodapp hits pfn with a chair Oct 02 19:25:36 lol Oct 02 19:25:36 just kidding, I use screen too. Oct 02 19:26:03 why is screen so good Oct 02 19:26:59 screen is "just" a useful tool. Oct 02 19:27:07 it's insanely useful. Oct 02 19:27:20 especially if you're in the practice of using machines remotely. Oct 02 19:27:56 yes, but it's more a general purpose tool, not specific like the abovementioned irssi for instance Oct 02 19:28:24 panegyric: the idea is that I can remote into my shell, and run 'screen -r' which will re-attach my screen instance which is running irssi Oct 02 19:28:26 I'm just using this for irssi ;) Oct 02 19:28:31 on remote server Oct 02 19:28:43 then, later, I can detach my screen instance, go somewhere else, log into my shell from another machine, and re-attach Oct 02 19:28:52 basically my irc connection stays on all day, but I can use multiple computers.\ Oct 02 19:29:01 you can also get a Bouncer which does kind of the same thing Oct 02 19:29:13 and, for instance, I'll run server instances inside of 'screen' for boxes I used headlessly, and perhaps have a logger window inside it too Oct 02 19:29:15 regardless, screen is really excellent for when you're going to be doing a lot of work, and might be moving around a lot. Oct 02 19:29:24 yes, that Oct 02 19:29:33 can detach and let it run, but that whole session stays there if I need to re-attach to it later Oct 02 19:29:35 is there a screen equivalent for windows Oct 02 19:29:38 going to be installing something that takes several hours, but it's command line only? Just use screen, then do it. Oct 02 19:29:40 BAHAHAHAHAHAHAHA Oct 02 19:29:45 sort of. Oct 02 19:29:48 not really. Oct 02 19:29:56 there's terminal services, etc. Oct 02 19:29:57 you can run screen on Windows.... if you're inside of cygwin. Oct 02 19:30:08 Hodapp: YES Oct 02 19:30:10 you can remote desktop into your windows machine Oct 02 19:30:11 that's my dream Oct 02 19:30:20 gorudonu: It's my reality. It's not as interesting as most dreams. Oct 02 19:30:36 :) Oct 02 19:32:56 also, for when you use BitTorrent for legal things, it's quite handy to have it running inside of a screen session; it runs headlessly, but you can do whatever you need to interact with it remotely Oct 02 19:34:27 you ment rtorrent :> Oct 02 19:34:34 I use vuze, it has http ui's Oct 02 19:34:46 gorudonu: I meant whatever textmode client you feel like using. Oct 02 19:35:09 pfn: yeah, a lot of the clients have HTTP interfaces... I don't make my home network accessible via HTTP though Oct 02 19:35:10 what to use to do audio streaming on android? Oct 02 19:35:22 something that will support running app in background and still streaming that audio Oct 02 19:35:36 ubert_mac i have a blog post about it if you want to read Oct 02 19:35:42 YES PLZ Oct 02 19:35:47 in meeting, they want answers hahahahah Oct 02 19:35:50 gimme gimme Oct 02 19:36:00 uses the MediaPlayer class and a service to play in background Oct 02 19:36:21 hello Oct 02 19:36:31 speakingcode: sounds interesting Oct 02 19:36:36 http://www.speakingcode.com/2012/02/22/creating-a-streaming-audio-app-for-android-with-android-media-mediaplayer-android-media-audiomanager-and-android-app-service/ Oct 02 19:36:36 anybody know how one do long polling in android Oct 02 19:36:45 i tried googling but didn't find any good ansewrs Oct 02 19:36:53 THANKS Oct 02 19:37:19 np. gl Oct 02 19:37:28 give me a shout out in ur source code :-p hehe Oct 02 19:37:36 I will Oct 02 19:37:38 speakingcode: will watch you on rss then ;) Oct 02 19:37:41 we do tourguides :) Oct 02 19:37:58 if we use it, we will mention you in disclaimer Oct 02 19:38:10 thanks gorudonu Oct 02 19:38:40 dark_element what do u mean by long polling? Oct 02 19:38:52 http long polling Oct 02 19:39:03 im not sure what the "long" means Oct 02 19:39:20 by polling do you mean hitting a servive on some interval to ask for new data? Oct 02 19:39:25 service* Oct 02 19:39:31 speakingcode yup Oct 02 19:41:12 Hey Oct 02 19:41:28 Anyone get this message Oct 02 19:41:36 speakingcode i think asynctask with a timer would do the trick Oct 02 19:41:47 well, Oct 02 19:41:55 do you want it to run in background or only when the app is running? Oct 02 19:42:14 i would maybe implement a service, and use a Handler http://developer.android.com/reference/android/os/Handler.html Oct 02 19:43:34 speakingcode only when the app is running Oct 02 19:46:25 oh ok. well, i don't know a lot about async task but i think it is generally for something "small" that runs n comes back with a result Oct 02 19:46:43 if you want to repeatedly poll, i would maybe do it in a service Oct 02 19:47:00 someone who knows more about that could probably correct me, tho Oct 02 19:47:47 dark_element: use a service. Oct 02 20:09:02 anyone have any experience with the Android infrared (IR) API? Oct 02 20:09:44 my phone doesn't have infrared Oct 02 20:10:35 Snuffel: well I only detected it today on my Galaxy Note 10.1 Oct 02 20:10:59 I can control the TV, but not the digibox/STB Oct 02 20:21:17 belgianguy: that's a samsung-added API; you're very very unlikely to get support here Oct 02 20:32:00 evancharlton: yeah, I found only _one_ reference to it on XDA devs Oct 02 20:32:08 so I knew it to be a long shot Oct 02 20:32:40 is there a samsung-specific irc chan? Oct 02 20:35:36 try korea. Oct 02 20:35:51 seriously though no I don't think so. Oct 02 20:37:25 woe me, korea made me think of that PSY song Oct 02 20:37:41 oppa gangnam style! Oct 02 20:37:52 belgianguy: thank you, now I need to dance here Oct 02 20:37:56 that's the one ;) Oct 02 20:38:09 :p Oct 02 20:38:48 I kindly mailed the folks at Samsung and they told me it's only for US use atm Oct 02 20:39:14 but they're working on a Int'l version, which would be available "at a later date" Oct 02 20:39:25 probably delivered by a hover-car Oct 02 20:41:35 wait Oct 02 20:41:40 samsung actually responded to you? Oct 02 20:41:44 congratulations on winning the lottery Oct 02 20:43:00 now sue them! Oct 02 20:44:39 lol Oct 02 20:45:08 anybody know what the difference between JRO03L and JRO03R is? Oct 02 20:45:25 the L and R ? :P Oct 02 20:45:28 * ubert_mac hides. Oct 02 20:46:40 some cool stuff happening in irda. the 10 Giga-IR working group is making progress for 10Gbps speeds. requires line of sight, but still cool Oct 02 20:46:49 they work with 4.1.1_r6 instead of _r3, but i'm curious as to what the specific changes are Oct 02 20:47:57 g00s: nice to hear, it's pretty convenient, and LOS is easier with mobile devices I reckon Oct 02 20:48:49 so far, this is the only Android code I've found using the irda functionality Oct 02 20:48:50 http://forum.xda-developers.com/showthread.php?t=1670289 Oct 02 20:50:00 but alas, I don't understand the message string format Oct 02 20:50:10 belgianguy how can i now if my s3 have IR Oct 02 20:50:11 ? Oct 02 20:51:16 Duailibe: my best bet would be that running that code would then throw an exception if it wasn't available Oct 02 20:52:18 also, I haven't heard of any device having this functionality Oct 02 20:52:30 and it doesn't seem to pop up in S3 spec sheets Oct 02 20:53:17 yeah Oct 02 20:53:22 that is what i thought Oct 02 20:55:52 hello everyone Oct 02 20:56:29 I try to change the color of the tabStrip ( horizontal line that is located under the tabs in a TabWidget ). For that I am creating a theme Oct 02 20:56:57 but it seems Eclipse doesn't know what 'tabWidgetStyle' is Oct 02 20:58:01 http://pastebin.com/MZxadki6 Oct 02 20:59:40 This is my first theme, I understood that Views are referenced through ids that can be found into themes.xml from the SDK ( there is no reference documentation for them ). So I wanna use that in order to stylize my tabwidget but I have to admit that I'm a bit lost with that. Any advice would be more than welcome Oct 02 21:02:14 Eclipse says: Error: no resource found that matches the given name: attr 'tabWidgetStyle' Oct 02 21:08:02 Can anyone help me with a question I have about installing the android ADT on eclipse? Oct 02 21:08:14 don't ask to ask Oct 02 21:08:16 just ask Oct 02 21:08:20 and no, i m clueless lol Oct 02 21:10:04 hi, im having problems while trying to install the ADT plugin in eclipse juno. System behind authenticated proxy. Oct 02 21:10:19 I guess I should read the rules of the server.... I am following the tutorials on the android.development website and I am supposed to get a "welcome to android development" screen where it asks which SDK's to use. That message never appears once I install the ADT. Oct 02 21:10:59 the ADT installed because I have the icons on my eclipse toolbar that help with my AVD's and what not Oct 02 21:11:20 but I cannot change the directory of my SDK Oct 02 21:11:24 even after setting all the required proxy parameters in eclipse, it cant fetch either the list of packages not the packages themselves Oct 02 21:19:56 .msg NickSrv help Oct 02 21:26:51 nikon coolpix s800c in hand, I seek out to see if its shitty reviews are accurate... Oct 02 21:27:07 okay... this spinny sparkly startup screen is cool and all but I kind of want to use the camera... Oct 02 21:30:06 hey guys Oct 02 21:30:12 any tricks to make eclipse run faster? Oct 02 21:30:23 on a mac Oct 02 21:31:57 meetoman: well, tbh, if speed is the issue, perhaps consider the IntelliJ IDEA IDE Oct 02 21:32:29 and if you have an Intel CPU, find the optimized emulator (it's quite a hefty boost) Oct 02 21:32:41 belgianguy, there seem to be some sort of memory leak, it crashes after a while Oct 02 21:32:55 just got this consulting gig, and their project is huuuuge Oct 02 21:33:07 takes at least 60 seconds to deploy.. Oct 02 21:33:15 jeez :/ Oct 02 21:33:22 does upgrading JDK speed up things? Oct 02 21:33:28 sounds like Linux Oct 02 21:33:50 meetoman: that should not affect it much Oct 02 21:33:50 java? speed? now that;s an oxymoron Oct 02 21:33:55 I almost wanted to run this on a linux machine instead Oct 02 21:34:01 and Java is slow as f... Oct 02 21:34:12 I'm on Ubuntu :p Oct 02 21:34:19 as is my Android dev stack Oct 02 21:34:31 I can't do other tuff while on ubuntu Oct 02 21:34:32 such as evernote Oct 02 21:34:38 skype, etc Oct 02 21:35:01 then you're better off on Windows :) Oct 02 21:35:01 it takes 800 some live memory -_- Oct 02 21:35:02 I thought they hacked skype to work on linux Oct 02 21:35:15 evernote works from the webpage if they don't hve a native app Oct 02 21:35:16 hacked version never last long Oct 02 21:35:29 pfn, i like the native app, doesn't take much resources Oct 02 21:35:31 and as far as I remember, there is actually a linux skype client Oct 02 21:35:43 eclipse + chrome = worst memory nightmare Oct 02 21:35:51 if I thought this was an issue, I should've bought the 8GB macbook air Oct 02 21:36:07 cant wait for next macbook air with 16GB memory Oct 02 21:36:20 pfn: there was a version of syyke for linux Oct 02 21:36:41 Since M$ took it over, no more Oct 02 21:36:49 lol Oct 02 21:37:28 oh, i have chrome OS too, and they went microsoft style lol Oct 02 21:37:30 couldnt believe it Oct 02 21:38:37 when will android make their own SDK =| Oct 02 21:39:20 yeah..typing in all that XML is tedious Oct 02 21:39:41 on Windows Phone SDK you all need to DRAG, DROP, CODE Oct 02 21:40:22 at least REAL Eclipse plug-in, and/or a Plugin for Windows Visual Studio Oct 02 21:40:34 If nVidia can do it, then Google can too Oct 02 21:40:53 What's wrong with coding your own widgets and drag and drop them in the gui editor? Oct 02 21:41:02 works fine for me so far Oct 02 21:41:20 maybe I;'m just blessed not having experienced the amazing smoothness of WP8 dev Oct 02 21:43:49 Joozey: is the windows phone 8 sdk available yet? Oct 02 21:44:44 I have no idea, but according to everyone else the IDE and SDK is way better with GUI than android Oct 02 21:44:49 louielouie: to some. my neighbor has access because he works at adobe Oct 02 21:44:53 developing wise Oct 02 21:45:08 but generally no Oct 02 21:45:34 if you are a student and you join the imagine cup you get access, I suppose Oct 02 21:45:58 the i-magine cup, har har Oct 02 21:46:15 yay! Oct 02 21:46:53 so.. rewrite eclipse to qt and write new tool! Oct 02 21:55:43 So I want to use an AlarmManager to start my service. I plan to do this with PendingIntent.getService(..). I'm reading about wakelocks being held only during onReceive(). Is this something I need to handle specially, or is that only for broadcast receivers which in turn call startService() ? Oct 02 21:56:06 The docs, as usual, are a bit unclear. Oct 02 21:56:44 mrenouf|work: ah yes. if i recall, getService() works but not as reliably. you need to use the wakelock method Oct 02 21:56:56 mrenouf|work: so. Oct 02 21:57:00 reliable in the sense of some corner cases. Oct 02 21:57:47 yeah Oct 02 21:57:51 so, what happens is Oct 02 21:58:00 you're guaranteed to be kept alive as long as you remain in your receiver Oct 02 21:58:09 it's possible for you to start your service, and then immediately go asleep Oct 02 21:58:20 if I give a service intent to AlarmManager, what is my "receiver" ? Oct 02 21:58:32 onStartCommand? Oct 02 21:58:39 mrenouf|work: skip that method. use the broadcast receiver Oct 02 21:58:40 oh, whoops, you're calling startService directly nvm Oct 02 21:58:43 yeah Oct 02 21:58:59 listen to g00s. Oct 02 21:59:03 * lov goes back home Oct 02 21:59:04 its confusing, because the apidemos show both. the startService() one looks very simple and enticing … and wrong Oct 02 21:59:04 why is that bad? wouldn't that work better? instead of broadcast->receiver->startService? Oct 02 21:59:16 g00s, why is it wrong? it plain doesn't work? Oct 02 21:59:17 err, getService() rather Oct 02 21:59:37 it works if your phone is on and isnt going to sleep :P Oct 02 22:00:07 so what you're saying is, using getService for the pendingIntent leaves me with no control of the wakelock policy Oct 02 22:00:18 louielouie: a "limited" release has been done Oct 02 22:00:30 which sucks, but it makes sense Oct 02 22:00:30 yes, if i recall. its been about a year since i looked at it. i don't think anything has changed Oct 02 22:00:43 g00s, wouldn't matter cause I support API 7+ Oct 02 22:00:50 ;) Oct 02 22:00:51 *yawn* Oct 02 22:00:52 ok Oct 02 22:01:04 you can look at cwac-wakeful for some ideas i think Oct 02 22:01:24 ok, so. I've never used a wakelock. What's needed here? Just as long as my service is started? Oct 02 22:01:36 it's going to do some network, some sql, then quit Oct 02 22:01:53 yeah, so there is a "handoff". the cwac-wakeful code will be self evident Oct 02 22:01:56 is there a way to use a thread in more than one activity without "stop" that? Oct 02 22:02:08 https://github.com/commonsguy/cwac-wakeful Oct 02 22:02:16 or i need to use service? Oct 02 22:02:34 reading cwac-wakeful now Oct 02 22:02:37 tnx Oct 02 22:02:59 Duailibe: use how? try an Executor or ExecutorService. Oct 02 22:03:41 JakeWharton example, i want to make a persitent socket, and i want to send messages to this socket in 3 differents activities Oct 02 22:03:53 when i create the socket in the main activity, when i choose another, the socket closes :~ Oct 02 22:04:40 a service would work Oct 02 22:04:53 Duailibe: were you asking about this before? you can use the BluetoothChat example as a template. just remove the BT :) Oct 02 22:05:01 you just need to have the activities NOT manage the thread Oct 02 22:05:05 g00s i did it! Oct 02 22:05:14 g00s but when i change the activity, the connection still closing Oct 02 22:05:24 they have something like BluetoothService which isn't a real service. youneed to put that in a real service Oct 02 22:05:32 g00s hum Oct 02 22:05:46 g00s bluetooth service is a class, and inside this have 2 threads Oct 02 22:05:51 i was looking that Oct 02 22:05:53 yeah its weird. change that class to extend Service and add the correct Service callbacks Oct 02 22:06:32 but there is a lot there to learn, like how to interrupt the thread blocked on i/o Oct 02 22:06:37 hey, is jvm 7 faster than jvm 6? Oct 02 22:07:03 try it and find out Oct 02 22:07:05 g00s yes! o learned a lot! Oct 02 22:07:11 (i Oct 02 22:07:12 *i Oct 02 22:07:16 JakeWharton i will Oct 02 22:07:18 thanks for ur attention guys Oct 02 22:07:22 well, 7 is the number of "Perfect number and symbol of the divine abundance" so it should be meetoman Oct 02 22:07:29 :) Oct 02 22:07:44 this stuff is so overcomplicated ?! O_o Oct 02 22:07:50 Hey guys : Oct 02 22:07:57 mrenouf|work what stuff? Oct 02 22:08:02 WallnPall hello Oct 02 22:08:25 lol g00s Oct 02 22:08:27 cwac-wakeful Oct 02 22:08:34 I m suppose to download Java SE Development Kit 7u7? Oct 02 22:08:44 Mountain Lion doesn't really support much, and I m stuck =| Oct 02 22:09:02 Hey guys, can you please tell me , why when i try to get DateFormat object into .setText method on EditBox a get this into editBox instead of the Date user picker from DatePicker ? --> java.Text.SimpleDateFormat@dbd* Oct 02 22:09:03 parsing the manifest to extract a class name from your own service definition. ugh. that doesn't even need to be a library Oct 02 22:09:42 lol... String clsName = xpp.getAttributeValue(null, "listener"); followed by: Class cls = (Class) Class.forName(clsName); Oct 02 22:09:46 Ummm... good one buddy Oct 02 22:10:33 your listener can be any class you'd like. As long as it's com.commonsware.cwac.wakeful.WakefulIntentService.AlarmListener Oct 02 22:10:49 i would just look at how he handles the wakelock. Oct 02 22:10:59 yeah, I'm just bitching Oct 02 22:11:39 I should point out, that's an interface. but such an odd way of doing things Oct 02 22:12:09 I have a problem with the NDK, I hope someone can help me understand..compile error Oct 02 22:12:18 checking build system type... i686-pc-cygwin Oct 02 22:12:18 checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized Oct 02 22:12:18 aconfigure: error: /bin/sh ./config.sub arm-linux-androideabi failed Oct 02 22:12:32 ugh, just do all that in the listener, so much simpler Oct 02 22:12:42 KNERD, what is you're configure line? Oct 02 22:13:02 edman007: it's a script...i should paste it for you Oct 02 22:13:05 KNERD, wait...you're on cygwin? Oct 02 22:13:14 edman007: and linux..tried both Oct 02 22:13:23 same error Oct 02 22:13:33 KNERD, yes pastebin the script that calls configure Oct 02 22:14:54 edman007: http://pastebin.ca/2238670 Oct 02 22:15:49 KNERD, is there a reason you're using that script? Oct 02 22:16:18 it suppose to make compiling the project simpler? Oct 02 22:16:50 Can someone help me about my EditBox showing this - java.textSimpleDateFormat- after setText method Oct 02 22:17:12 KNERD, just try `./configure --disable-video` does that work? Oct 02 22:17:20 g00s, any reason I need to use START_REDELIVER_INTENT? I don't care if I'm killed while running, as long as it gets a shot to run. Oct 02 22:17:24 or even omit the disable video thing... Oct 02 22:17:25 are there better alternatives for OAuth 2 besides the Google APIs Client Library? Oct 02 22:17:40 g00s, is that to ensure the wakelock is released? Oct 02 22:18:01 edman007: the way it is setup now, it would not use the SDK, I am guessing Oct 02 22:18:07 sorry..I mean NDK Oct 02 22:18:31 Hello, can anyone see my text. Oct 02 22:18:43 *? Oct 02 22:18:45 what "text"? Oct 02 22:18:48 *there is no anyone* Oct 02 22:18:49 KNERD, meh, well my main question is why are you trying to do this? what's wrong with clicking install from eclipse? Oct 02 22:18:57 Mackshun, nope Oct 02 22:18:58 need to install ADT plugin in clipse juno bhind authenticatd proxy. but eclipse just refuses to recognise any proxy settings Oct 02 22:19:13 Oh, ok. Apparently I wasn't registered. I thought I was being ignored. Oct 02 22:19:17 edman007: the project is written in C and not compiled Oct 02 22:19:43 It builds libraries Oct 02 22:20:05 So, I am making an android application. I want to know the best ways to use background layers and scroll them. Any pointers? Oct 02 22:20:17 ohhh... wait, you're building your own android library? from C? against the NDK? Oct 02 22:20:31 edman007: correct Oct 02 22:21:05 you got to define "best" a little better Oct 02 22:21:25 Any working method. Oct 02 22:21:31 KNERD, ahh, give me a few minutes, I haven't done that type of thing in a long time, my immediate guess is configure is you're missing some system thing... Oct 02 22:21:32 does eclipse juno recognise proxy settings at all? Oct 02 22:21:45 but out of my head you could just load a big bitmap as a resource, and clip it in a view from a certain position Oct 02 22:21:47 edman007: sure thing...thanks Oct 02 22:24:28 I see an example here, but if I were to implement that, how would scrolling take place. Oct 02 22:24:32 http://pastebin.com/ueFEupFW Oct 02 22:25:30 KNERD, is this an application you wrote or you're porting to android, or is it know to build on android? Oct 02 22:28:40 damnit! Using a WorkSource is so much cleaner. Aquire the lock with the WorkSource, send it over to the service, and it can use the same object to release the lock. But it's API 9+ :-( Oct 02 22:29:43 of course it's completely undocumented Oct 02 22:29:50 *shocker* Oct 02 22:32:29 edman007: i did not write it. I needs to be ported to Android Oct 02 22:33:29 mrenouf|work: minSdkVersion="14" Oct 02 22:34:01 KNERD, alright, well the issue is android isn't in your config.sub Oct 02 22:34:25 oh....any ideas on what to do now? Oct 02 22:35:28 hi Oct 02 22:36:13 i'm not sure what needs to be done to get that right now, try running autoconf/automake Oct 02 22:36:42 but config.sub is created by autotools, you should look at the docs for that on how to add OS support Oct 02 22:36:52 JakeWharton, eh? Oct 02 22:37:00 solves all problems :) Oct 02 22:37:07 yeah, I wish Oct 02 22:37:27 though looking through NDK docs you might be better off just pasting the code into the NDK stuff, looks like they have their own build system they want you to use Oct 02 22:37:30 edman007: it is a open source project called pjsip Oct 02 22:37:35 if it's a small project I'd do that Oct 02 22:38:00 Can I just do work in my BroadcastReceiver? Is that so bad? Oct 02 22:38:07 KNERD, alright, well i'll take a crack at it ... Oct 02 22:38:13 I really don't want to add wakelock permissions Oct 02 22:38:40 edman007: thanks.. the community has been silent on this issue and I had not been getting anywhere Oct 02 22:39:00 I picture an angry mob of users with torches and pitchforks throwing phones with dead batteries at me. Oct 02 22:40:22 edman007: the project is actually a few sub projects built put together Oct 02 22:41:38 edman007: I am really only interested in the SIP part of it. I have not been able to find SIP written in Java. Seems everyone has been using a common available C source, even in their Java based SIP applications Oct 02 22:42:20 KNERD, SIP is built into Android since Gingerbread Oct 02 22:42:38 hmmm Oct 02 22:42:43 probably doesn't make sense to rewrite SIP in Java anyhow Oct 02 22:43:17 well this project also includes video support and other tools, but thanks. I will look at that Oct 02 22:44:05 I'm using http://pastebin.com/CfMnL3RN for Accoutn authentication. However, it doesn't actually add accounts - pressing the "add account" button doesn't do anything, in fact. Why not? Oct 02 22:46:13 mrenouf|work: that would be 2.3..right? What is I want to go back to v 1.6? I would need to do my own project Oct 02 22:46:22 own libraries that is Oct 02 22:47:35 KNERD, grab the trunk version, look at aconfigure.ac and search it for iphone, add something similar to the iphone stuff in there, but with the android system name, then run automake and autoconf Oct 02 22:47:36 It seens that I have the layers working. Now I just need scrolling. Oct 02 22:51:46 And I need BOOT_COMPLETED if I want this alarm to fire without the app having been opened, right? Oct 02 22:51:54 as in, they don't persist across reboots? Oct 02 22:52:06 edman007: thanks a lot..i will give it a try Oct 02 22:52:10 is there any trick to avoid needing that? Oct 02 22:53:54 KNERD, yea, I'm not completly sure that will solve it, but since they have iphone stuff in there, I'd basically search if for iphone and look at modifications made for iphone and just extend all those modifications for android Oct 02 22:53:58 that's a good start anyways Oct 02 22:54:06 *search it for iphone Oct 02 22:54:41 edman007: okay..gotcha..thanks..now if I only knew the SVN password :-( Oct 02 22:54:45 oh, right. onReceive in Broadcast recevier is called on main. so blocking is a no-go Oct 02 22:55:56 KNERD, svn co http://svn.pjsip.org/repos/pjproject/trunk pjproject Oct 02 22:56:05 no password... Oct 02 22:56:29 edman007: i was using Tortise on windows..it is asking for password Oct 02 22:56:45 there is no anon checkbox? Oct 02 22:56:49 no Oct 02 22:57:13 maybe I will fire up the Limux VM Oct 02 22:57:19 yea, do that :) Oct 02 22:57:53 it just takes so much out of my single core Celery laptop Oct 02 22:58:30 get a dual socket 8-core xeon like me, 4 years old and keeps up with modern stuff just fine Oct 02 22:58:48 yeah I wish Oct 02 22:58:52 (All this and more, for one low payment of one arm or one leg!) Oct 02 22:58:59 lol Oct 02 22:59:00 true, true Oct 02 22:59:19 i got a desktop, just can't take it with me Oct 02 22:59:19 * edman007 paid a little over 3k 4 years ago Oct 02 22:59:36 Haven't gone down. Oct 02 22:59:48 (Assumably, the new ones are thirty-two times as fast.) Oct 02 23:00:00 crap..i need more memory in the laptop Oct 02 23:00:05 the VM wont boot Oct 02 23:00:56 guess I better go buy an extra stick of RAM for it this weekend Oct 02 23:01:31 Anyway. http://pastebin.com/CfMnL3RN seems to implement AccountAuthenticator. Why can't I add accounts with it? Oct 02 23:03:07 KNERD: i got it on Tortise...i was doing it wrong...I was doing IMPORT rather than CHECKOUT Oct 02 23:11:49 Ok, I am in another pinch. Oct 02 23:12:14 I have these gif files that I want to displat, but as we knoe, android has no support for gif files. Oct 02 23:12:40 Is there possibly a way to draw a video? Oct 02 23:12:50 Mackshun: Android supports GIFs Oct 02 23:13:16 How so? Oct 02 23:13:24 You can use GIF in your applicatin Oct 02 23:13:28 Do they need to be decoded initially? Oct 02 23:13:30 but not animated GIFs Oct 02 23:13:45 Yes, that is what I am aiming for. Oct 02 23:13:48 Animation. Oct 02 23:14:14 Is there a video format that it accept that I could use insted. Oct 02 23:14:20 *insted. Oct 02 23:14:31 what kind of animation are you trying to play? Oct 02 23:14:47 I am working with a large amount of gifs, so separating them into frames would be tedious. Oct 02 23:15:03 Pokemon frames, as in their animation from b/w. Oct 02 23:15:38 oh wait Oct 02 23:15:41 I forgot Oct 02 23:15:46 I think you can use the Movie class Oct 02 23:16:14 For gifs? Oct 02 23:16:17 yes Oct 02 23:16:53 I actually have seen an example of that and it wasn't pretty. Oct 02 23:17:02 I guess it is worth a try. Oct 02 23:17:12 what do you mean it wasn't pretty? Oct 02 23:17:51 http://pastebin.com/TBd8c0sA Oct 02 23:18:10 you're posting a link to a link? :) Oct 02 23:18:12 In that tutorial, the the result is at the bottom. Oct 02 23:18:27 Sorry, I just don't want to get in trouble. Oct 02 23:19:35 Then again, I am not advertising... Oct 02 23:22:33 want n easy way to feel bad about yourself? interview with google Oct 02 23:24:30 Mackshun: when you say "Pokemon frames", you work for Nintendo? Oct 02 23:25:01 speakingcode: did you interview? Oct 02 23:25:06 No. I wish. Oct 02 23:25:29 I am in the middle of developing a pokemon app. Oct 02 23:25:42 With the proper license? :) Oct 02 23:26:05 Going to add a ton of features that help competitive gameplay. Oct 02 23:26:17 It isnt a game... Oct 02 23:26:21 Just a tool, Oct 02 23:26:52 There are still matters such as trademarks and copyrights to deal with Oct 02 23:27:04 I actually wantede to create one of my original games (I started programming with ds game maker.) Oct 02 23:27:26 I wasn't really planning on releasing it to the public. Oct 02 23:28:01 Truthfully, I don't have my liscense for publishing apps, I just really enjoy programming. Oct 02 23:28:38 I am mostly doing this project for the education out of it. Oct 02 23:28:51 I am new to Android, XML and Java. Oct 02 23:29:58 yeah i did Oct 02 23:30:52 romainguy just 30 minutes ago. the first problem was pretty easy, i retardedly stumbled my way through it. i don't like coding in google docs Oct 02 23:31:32 if you need your app tested, just submit it to the samsung app store Oct 02 23:31:41 they do this full testing cycle and send you a report Oct 02 23:31:51 with images, log files, videos etc Oct 02 23:31:52 cool Oct 02 23:31:56 it's pretty comprehensive :p Oct 02 23:31:57 for free? Oct 02 23:32:08 speakingcode: Even if it doesn't work out (which it may), it's still a good experience Oct 02 23:32:10 it's free at the moment Oct 02 23:32:25 speakingcode: I felt like I was stumbling my way through my interviews too Oct 02 23:32:44 romainguy yeah. i got to a correct implementation but he had to hint at logic errors quite a bit Oct 02 23:32:51 I think they normally charge for testing or something... but I suspect that if they charged, nobody would ever submit to the samsung store Oct 02 23:33:12 i came up with the approach to the solution, just kind of fumbled with putting it to code. syntax was correct and i used generics :-D Oct 02 23:33:21 Meh, I guess this project has reached its end. Oct 02 23:34:02 I don't want to be illegal or anything. Guess I never thought about that. Oct 02 23:34:11 if i'm turned down, do you know the usual time to try again? Oct 02 23:34:29 Mackshun you could release it open source and anonymously Oct 02 23:35:33 Copyrighted material doesn't become magically uncopyrighted if you release it for free. Oct 02 23:35:44 hence "anonymously" Oct 02 23:36:08 and it may qualify under fair use act since he did it for leanring purposes, if he open sources it Oct 02 23:36:09 I'd rather not. Oct 02 23:36:18 Just to be safe. Oct 02 23:36:46 So, anyone here into game development? Oct 02 23:37:31 if you have a good idea that will help gamers and improve that community Oct 02 23:37:34 go for it Oct 02 23:38:26 https://play.google.com/store/search?q=intitle%3Apokemon&c=apps Oct 02 23:38:31 I don't believe I have enough experience yet. Maybe I will come back to it sometime. Oct 02 23:39:21 ^^ doogan Oct 02 23:45:21 So, anyone play any rpg's on an android device. Oct 02 23:45:34 I have never seen that accomplished yet. Oct 02 23:45:54 As in 2d-style. Oct 02 23:46:10 Mackshun: Square Enix released Final Fantasy III. Oct 02 23:46:45 I love that game. I have actually bought that game at least 4 times. Oct 02 23:47:00 For ds because I always lost my cartridge, Oct 02 23:47:05 i've seen a few i think, but i don't really have time for rpg's Oct 02 23:47:22 They are porting it for multiple devices. Oct 02 23:47:23 Doubtful. You probably bought V a ton of times. III wasn't previously available in english before June. Oct 02 23:47:35 I'm using the android support library but still have an error in Build.VERSION_CODES.HONEYCOMB Oct 02 23:47:46 V? Oct 02 23:47:59 Mackshun: The numbers were weird, and anyway, we're drifting off-topic. Oct 02 23:48:00 Hi Does anyone knows how to add 'Sony Bravia Engine' ? Oct 02 23:48:25 Jamesst20: to your app? Oct 02 23:48:28 Also I'm having an error in android.R.layout.simple_list_item_activated_1, looks like it doesnt find the resource, and stuff. Oct 02 23:48:29 cyberrog: Right. The compatability library adds in app.compat.v4.* which can be used for a lot of cool things, but doesn't actually change any of the android.* classes. Oct 02 23:48:52 freeone3000, so what should I do to solve this? Oct 02 23:49:12 Leeds to my ROM :P Oct 02 23:49:23 cyberrog: Treat it like it's v4 with some additional libraries, instead of like it's v12 with some fewer capabilities. Oct 02 23:49:24 Jamesst20: and you *know* that this is the wrong channel for that Oct 02 23:49:46 Just asking in case :p android-root is always empty :/ Oct 02 23:50:24 So, what devices does everyone use. Oct 02 23:50:28 *? Oct 02 23:50:30 freeone3000, how to make that error go away.. what should I import in this case.. it doesnt recognize the VERSION_CODES.HONEYCOMB neither the android.R.layout.simple_list_item_activated_1 Oct 02 23:50:39 cyberrog: Right. You can't use those. Oct 02 23:50:51 My phone is pretty weak for testing. Oct 02 23:51:04 but I just downloaded the projcet from the docuimentation.. Oct 02 23:51:19 freeone3000, i just downloaded it from here http://developer.android.com/training/basics/fragments/index.html Oct 02 23:51:42 cyberrog: WHat does the minSdk in the AndroidManifest.xml file say? Oct 02 23:52:17 freeone3000, Oct 02 23:52:49 freeone3000, and my project is set to 2.2 Oct 02 23:53:58 Mackshun: that's not necessarily a bad thing - a lot of devs have a bad habit of testing on their own top-end phone and ignoring the mainstream :) Oct 02 23:54:04 IDK why but, everytime I try to use this support library, I get this error.. Oct 02 23:54:43 cyberrog: 'cause you can't use them. minSdk for that should be 11. Oct 02 23:54:54 Does anyone own an xperia x10? Oct 02 23:55:03 freeone3000, so I cant use this for 2.2 ? Oct 02 23:55:13 It seems ok for gaming... Oct 02 23:55:17 cyberrog: You can use Fragments. You can't use Build.VERSIONS.HONEYCOMB. Oct 02 23:55:25 got it Oct 03 00:10:47 you should still be compiling against SDK 16 Oct 03 00:11:02 which would let you use Build.VERSIONS.HONEYCOMB Oct 03 00:14:57 probably shouldn't be referencing android.R.layout.simple_list_item_activated_1 either Oct 03 00:15:08 just copy it into your own project Oct 03 00:16:44 agreed Oct 03 00:51:26 is it possible to make the emulator sleep like a real device? Oct 03 00:54:12 n/m... had to uncheck "stay awake" Oct 03 00:55:16 ah, ah, ah, ah, staying awake, staying awake Oct 03 00:55:20 * Leeds does 70s dance Oct 03 00:57:34 * mrenouf *forehead* Oct 03 00:57:56 er, facepalm even Oct 03 00:58:39 so it does sleep, it just doesn't simulate screen turning off. but you can tell its asleep because it wont respond to touch input until you hit power. Oct 03 00:58:52 testing wakelock crap Oct 03 00:59:19 IT WORKEDDDDD!!!!!!!!!!!!!!!!!!!!!!!!!! I WON THE FRAGMENTS WITH SLIDING MENU ISSUE!!!!!!!! AHAAAAAAAAAAHAHAHAHAHAHAHAHAHAH Oct 03 01:00:38 meanwhile... AlarmService->PendingIntent.getService() seems to be working/// testing on 2.2 emulator Oct 03 01:00:58 lower your case Oct 03 01:01:04 (without explicit wakelocks) Oct 03 01:17:25 * p_l just did a complete update of a phone back from nearly original OS to latest, all stock... :tired: Oct 03 01:22:48 guys... it`s secure to backup/restore the /misc partition usin nandread/nandwrite from mtd-utils ? or it will certainly brick the device ? Oct 03 01:23:36 tecnovicioBR: device-specific and probably material for #android-root or better yet, device-specific channel Oct 03 01:24:11 thanks p_l Oct 03 01:58:15 g00s, http://www.youtube.com/watch?v=OUemfrKe65c&t=2688s Oct 03 01:58:37 from the source... AlarmManager to service intent. Oct 03 01:59:35 mrenouf: what did you learn from that? Oct 03 02:00:09 was there a specific time to look at in the clip Oct 03 02:00:19 i think i watched that in 2009 :D Oct 03 02:00:22 that link should open to it Oct 03 02:00:34 there's a slide where he shows that Oct 03 02:01:03 I have an alarm which starts my IntentService, which sleeps for 30s then stops itself. Oct 03 02:01:12 working great while sleeping Oct 03 02:01:23 I think problems might come in if your service is slow to start Oct 03 02:01:51 hmm. i would try to catch ctate if you can; thats who i discussed this with a while back Oct 03 02:05:33 * maslen needs to set up an 'autostart' for an app that Oct 03 02:10:27 hi Oct 03 02:11:04 how to publish an app to sale, it always says "Free" in the app publication page Oct 03 02:19:05 I am having problem with azimuth pitch roll in landscape for Orientation sensor. Anyone has worked with it Oct 03 02:21:13 mrenouf: from dianne h "Pending services work fine. However currently for the alarm manager I would recommend always first sending to a receiver, since there is a limitation in the system where the wakelock it holds will be released too early when delivering to a service. So if you want to be sure you receive the alarm, you need to deliver it to a receiver, have that receiver acquire a wake lock and start the service, and then have t Oct 03 02:21:14 service release the wake lock when appropriate." Oct 03 02:21:45 g00s: should I first publish my app as free and then set a price ? Oct 03 02:21:59 (it seems it wasn't possible to do it this way) Oct 03 02:22:31 maxagaz: watch the i/o 2012 vids on monetizing your app. i don't know Oct 03 02:22:38 g00s, yeah. I would correct that by saying: "might be released too early" Oct 03 02:22:52 and if it's an occasional thing, then I don't care Oct 03 02:23:01 ok Oct 03 02:23:14 it's more important it work "ok" and I dont need to add wake lock permissions Oct 03 02:24:07 I've got another hack in mind, if the app is not running then you can block the main thread without too many repurcusions (no GUI=no ANR) Oct 03 02:24:25 and if the app IS running, then you dont have to worry about wakelocks Oct 03 02:24:38 but that's really hacky Oct 03 02:25:44 ok, so does a running service somehow hold an implicit wakelock? How does it normally work, that if a thread starts, then it will keep running without sleeping? Oct 03 02:26:37 I've seen people do stuff like grab a wakelock before doing a network request in the background, and I thought that was all unecessary Oct 03 02:27:03 the system wont go to sleep if the radio/wifi is active right? Oct 03 02:27:57 mrenouf: why not just use a wakelock permission? Oct 03 02:29:19 I would, except if I can make this work without it, it's highly preferable. Adding permissions blocks auto-updates people might have selected, and sometimes users will be suspicious. And for the benefit the feature would add, it's not entirely worth the risk of adding that complexity. Oct 03 02:29:48 I want to wake up twice a day if there's connectivity, refresh a list of resources, and store the results. Oct 03 02:30:18 Airpush SDK does this without using a wakelock permission Oct 03 02:31:32 Yeah, if this were a full feature I was planning to do for real, there'd be a cloud backend, and the updates would be checked on the service and I would send push notifications when there were updates. Oct 03 02:31:57 but my resources are very limited. I'm hoping to make it would just a little better without too much extra changes. Oct 03 02:32:12 Right now, things only update when the user opens the list. Oct 03 02:32:39 And less optimal, they all update every time the list is opened :-( Oct 03 02:33:02 Why can't you just use an alarm to wake up a service that does your network update? Oct 03 02:33:04 im lost Oct 03 02:33:38 hi, anyone knows how to end a call pls? Oct 03 02:34:01 call the person on the other end names Oct 03 02:34:07 lol Oct 03 02:34:18 ^^ Oct 03 02:34:20 mrenouf: just set yourself an alarm, and if there's no connection, set it for an hour or 30 minutes or something until there is? Oct 03 02:34:48 mrenouf: http://developer.android.com/reference/android/app/AlarmManager.html Oct 03 02:34:56 yeah, I got that all working Oct 03 02:35:07 why the wakelock then Oct 03 02:35:17 I guess you don't know :) Oct 03 02:35:17 the question is how necessary is it to protect the broadcast->service transition with a wakelock Oct 03 02:35:49 there seems to be a corner case possible where the device goes back to sleep before the service can start up Oct 03 02:35:54 not necessary as far as I can tell Oct 03 02:35:55 but I'm not seeing that behavior Oct 03 02:36:10 I haven't ran into that issue Oct 03 02:36:14 if it's rare, then I dont give a crap. this isn't saving lives, its checking for price changes (not stocks even!) Oct 03 02:36:21 yeah Oct 03 02:36:33 I've got a test app that works great Oct 03 02:36:59 I would go with it. I'm sure you won't experience the issue you described. Oct 03 02:37:50 l Oct 03 02:37:51 k Oct 03 02:39:08 I would like to programmatically change the color of the cursor in EditText (I can't use resources as the views are created dynamically). Any hint? Oct 03 02:39:16 Does somebody know how to end a call? pls Oct 03 02:39:43 hang up your phone Oct 03 02:39:52 in code pls Oct 03 02:40:13 isn't this the developers channel? Oct 03 02:40:29 heh, sorry.. sad attempt at humor Oct 03 02:40:43 mrenouf: i'm wanted to close my chrome windows, here is the original link i found. see dh response https://groups.google.com/forum/?fromgroups=#!topicsearchin/android-developers/wakelock$20alarmmanager/android-developers/NPr5zJY-9_w Oct 03 02:41:16 yeah, from 2010 Oct 03 02:41:37 ;) Oct 03 02:41:41 good luck Oct 03 02:42:53 Time to go investigate the platform code and see if anything has been done to improve this. I'm happy to have it be flaky for Froyo people. *evil grin* Oct 03 02:43:11 Upgrade your damn phones! *shakes fist* Oct 03 02:43:28 when i talked to ctate in march timeframe it was unchanged Oct 03 02:43:42 in other words, it was never fixed. Oct 03 02:44:25 but yeah, go on your archaeological dig and let us know what you turn up Oct 03 02:45:00 well it does work under certain conditions so I need to find out what the controlling factor might be. I'm still betting service startup time is an important factor Oct 03 02:54:43 hi, i have a quick question about building android from source. I gave it the ole "make -j4" and i have some boot.img and system.img files produced here. is there a make command that will have it create an installable zip file with the partition images in it? **** ENDING LOGGING AT Wed Oct 03 02:59:58 2012