**** BEGIN LOGGING AT Sun Jun 21 03:00:04 2009 Jun 21 03:22:28 Skail, we can't help you if you don't clearly state your problem. Jun 21 06:17:29 How do you connect to a remote site in an app?? Jun 21 08:59:05 Has anyone made a mod-player library for Android yet? :-) Jun 21 13:16:12 I have an issue when trying to create a gl surface with an alpha buffer - whenever I do m_glView.getHolder().setFormat(...); with PixelFormat.TRANSLUCENT or PixelFormat.RGBA_8888, the whole screen is white in the emulator... Has anyone got this working? Jun 21 13:32:31 hello! I'd like to know - is there any solution for Eclipse to display SlidingDrawer component in layout visual editing? Jun 21 13:34:00 Is there any easy way of retreiving the current Activity? Jun 21 13:34:49 Need to tell a Dialog where to open, and was hoping I wouldn't have to pass that context down through several classes.. :/ Jun 21 15:27:03 hello, will i have any problems with compatibility of my written applications if i will flash my ADP1 to any of modded roms? Jun 21 15:30:14 hi Jun 21 15:30:16 it depends on applications, but for most cases apps should be compactible Jun 21 15:31:31 java.net.SocketException:Permission denied(may be missing INTERNET permission) Jun 21 15:32:03 Why I am getting this exception Jun 21 15:32:15 eventually i came to good channel, i presume Jun 21 15:33:20 inamru, read the error message Jun 21 15:33:22 it says right there Jun 21 15:33:30 yes Jun 21 15:33:42 but why I am getting this Jun 21 15:34:05 (may be missing INTERNET permission) Jun 21 15:34:32 like I said, it's right in your exception message Jun 21 15:34:44 So what should to do for getting the permission Jun 21 15:35:02 http://developer.android.com/guide/topics/security/security.html Jun 21 15:35:26 read (and understand) that whole page Jun 21 16:11:22 Anybody,please give me the exception reason java.net.SocketException:Permission Denied Jun 21 16:11:58 I am sorry for power fail,cann't check the previously posted link Jun 21 16:13:57 hm, could this be due to missing INTERNET permission in the xml file? Jun 21 16:14:27 so how can I add this Jun 21 16:15:16 start here: http://d.android.com/reference/android/Manifest.permission.html Jun 21 16:15:33 for more information refer to the documentation, section Manifest.xml Jun 21 16:15:44 ok,thanks Jun 21 16:17:43 this link should be more helpful than the first: http://developer.android.com/guide/topics/manifest/manifest-intro.html Jun 21 16:18:01 ok,thanks Jun 21 16:34:48 i've got a problem with reading a stream with HttpURLConnection... i just get a part of the content, maybe someone arround that could help me out? Jun 21 16:49:58 rac2030, start by making a pastebin of the relevant code Jun 21 16:57:35 KNY: hy... pasted the relevant code here: http://www.pastebin.cz/20281 Jun 21 16:58:20 are you getting more than 50 bytes back? Jun 21 16:59:29 I get an json exception that says unterminated string at character 150540 Jun 21 17:00:13 so I think i get more than 50 bytes Jun 21 17:00:34 or am I wrong? Jun 21 17:01:13 so why are you declaring a byte array of size 50? Jun 21 17:02:08 hmmm..... dont know... but I see what u mean Jun 21 17:02:32 also, reading byte-by-byte is incredibly slow. use read(byte[]) Jun 21 17:02:40 (read the javadocs for more information) Jun 21 17:03:36 I had this before but thougth I try it this way but I will revert back the code Jun 21 17:07:38 KNY: with byte[] buffer = new byte[is.available()]; and is.read(buffer) it will read 2048 bytes and if i read the same content from a file in assets it reads 299184 bytes. Jun 21 17:08:27 just read in even chunks until you're done Jun 21 17:08:37 and accumulate them into a StringBuilder or something Jun 21 17:10:56 KNY: u mean setting conn.setChunkedStreamingMode(2048)? Jun 21 17:11:24 byte[] buffer = new byte[2048] Jun 21 17:11:48 rac2030, or just use a BufferedReader and make this easy on yourself Jun 21 17:13:06 KNY: ok thx, I will try it with a bufferedreader (sry for my beginner probs but I crush my head at this for couple hours now...) Jun 21 17:22:48 KNY: tested it with looping and reading 2048 bytes at a time and this works ;-) thx a lot Jun 21 17:45:41 Hi, I know that I can use Geocoder and its getFromLocation() function to do reverse-geocoding from longitude/latitude to a list of Addresses. But is it also possible to find neaby businesses like restaurants? Jun 21 19:08:08 I wonder which one is faster of kxml and the XML parser included in Android. Jun 21 19:09:46 owait, ksoap2 uses xmlpull. nvm Jun 21 20:37:38 Anyone ever had a call to lockCanvas in a surfaceview always return null ? Jun 21 20:40:46 I basically fetch a surface holder, then try to call lockCanvas, to draw a background to it, similar to some of the example projects, oddly though lockCanvas never returns the canvas, always null Jun 21 20:41:43 from the docs: A null is returned if the surface has not been created or otherwise can not be edited. You will usually need to implement Callback.surfaceCreated to find out when the Surface is available for use. Jun 21 20:44:33 I am adding the callback, you know I just realized though what I am doing, thank you (I am waiting for the canvas on the same thread, blocking it from creating itself ? ) Thought maybe it was async done (hence the callback) Jun 21 20:47:51 yea but I wouldn't be surprised if you have to throw it into it's own thread in order to trigger that callback Jun 21 21:00:07 Ya solution was to create a separate thread Jun 21 21:00:33 I actually had one, but I was trying to write to the canvas before the callback Jun 21 21:00:44 blocking it from creating the canvas (: Jun 21 21:05:25 Anyone know of a good example for scrolling large backgrounds ? Jun 21 22:15:28 is there something like the timepicker just for numbers? Jun 21 22:24:13 goodevening everyone! Jun 21 22:26:13 I'm just learning java and is a bit curious: isn't the something like signal/slots in java? Jun 21 22:26:57 i've looked at the java.util.EventObject/listener.. but it seems a bit messy Jun 21 22:27:27 isn't there something like C++ boost.signal? Jun 21 22:32:26 anybody have any idea why the Layout view in eclipse shows a "NullPointerException" when using a TabView? Jun 21 22:32:51 it's like that even for the HelloTabView tutorial Jun 21 22:37:06 doep google? http://freshmeat.net/projects/javasignalslot/ Jun 21 22:37:39 yeah.. I say that one.. but it's gpl :( Jun 21 22:37:59 doep what's the problem with that? Jun 21 22:38:04 doesn't work for me.. I'm doing a BSD app Jun 21 22:38:09 ah Jun 21 22:38:40 other than that, it's nothing wrong with it :) Jun 21 22:39:00 hehe nah ic.. licensing doesn't work for your project.. Jun 21 22:39:09 the gpl licensing that is Jun 21 22:40:51 i'm seeing the effort of not having a NumberPicker in the android API increase my effort needed to build this app :) Jun 21 22:41:04 oh great sentence there Jun 21 22:41:27 raugust: I guess I need to go with the EventObject way then :/ Jun 21 22:43:38 i'm not familiar with c++ at all :-) but couldn't you use another design pattern? Jun 21 22:45:16 the Observer pattern maybe? if that covers the sigslot base :-) Jun 21 22:46:25 hm.. havn't seen that one before Jun 21 22:47:41 seems a bit limited though.. Jun 21 22:48:14 but thanks for the recommendation.. I can probably use the observer in some cases Jun 21 22:49:08 ur welcome.. hope it helps anyway... Jun 21 22:50:05 yup.. at leased now I know that I havn't missed something obvious in java :) Jun 21 22:53:26 where can I find more info about recycling? Jun 21 22:59:34 I am trying to decouple rending from game logic, and am having trouble deciding the best design for the game thread to give the renderer a list of things to draw. Anyone have suggestions? I was thinking of having some static vector that they could add drawables too, but I think the needs of the game thread could go far beyond just drawables. Jun 21 23:00:21 And the variety of drawables will be rather large Jun 21 23:38:49 hey guys can you record video from java in android? Jun 21 23:56:13 Gaz, yes Jun 22 00:00:56 KNY, u know of any sample code? Jun 22 00:01:37 Gaz, it's intent-based; I believe there are docs on d.android.com Jun 22 00:02:48 cheers Jun 22 00:06:26 hmm http://developer.android.com/reference/android/media/MediaRecorder.html Jun 22 00:16:56 I'm having some problems listing my device with adb devices on a debian machine Jun 22 00:17:36 It doesn't show.. I've tried to make the rules file in /etc/udev/rules.d Jun 22 00:17:52 Is it different from an ubuntu machine? Jun 22 00:18:11 frez: named 51-... Jun 22 00:18:15 or 50-.... Jun 22 00:18:34 /etc/udev/rules.d/51-android.rules Jun 22 00:18:42 try 50 Jun 22 00:18:53 shouldn't make a difference, but worth a try Jun 22 00:19:39 didn't do any difference Jun 22 00:20:07 was a wild guess, sorry :/ Jun 22 00:20:13 thanks anyway Jun 22 00:21:55 try with superuser privilegies Jun 22 00:22:25 no good Jun 22 00:22:37 I also tried restarting udev daemon and the adb server Jun 22 00:22:58 what tail -f /var/log/messages says when You attach phone? Jun 22 00:24:17 Jun 22 02:24:34 frezebox kernel: [1184422.070344] usb 1-4: new high speed USB de Jun 22 00:24:20 vice using ehci_hcd and address 8 Jun 22 00:24:23 Jun 22 02:24:34 frezebox kernel: [1184422.229642] usb 1-4: configuration #1 chos Jun 22 00:24:26 en from 1 choice Jun 22 00:24:28 Jun 22 02:24:34 frezebox kernel: [1184422.232535] scsi9 : SCSI emulation for USB Jun 22 00:24:31 Mass Storage devices Jun 22 00:24:34 Jun 22 02:24:34 frezebox kernel: [1184422.234295] usb 1-4: New USB device found, Jun 22 00:24:37 idVendor=0bb4, idProduct=0c01 Jun 22 00:24:40 Jun 22 02:24:34 frezebox kernel: [1184422.234301] usb 1-4: New USB device string Jun 22 00:24:42 s: Mfr=3, Product=2, SerialNumber=1 Jun 22 00:24:45 Jun 22 02:24:34 frezebox kernel: [1184422.234304] usb 1-4: Product: Android Phon Jun 22 00:24:48 e Jun 22 00:24:50 Jun 22 02:24:34 frezebox kernel: [1184422.234307] usb 1-4: Manufacturer: HTC Jun 22 00:24:53 Jun 22 02:24:34 frezebox kernel: [1184422.234309] usb 1-4: SerialNumber: HT95VKF Jun 22 00:24:56 03424 Jun 22 00:24:59 Jun 22 02:24:39 frezebox kernel: [1184427.310185] scsi 9:0:0:0: Direct-Access Jun 22 00:25:02 HTC Android Phone 0100 PQ: 0 ANSI: 2 Jun 22 00:25:04 Jun 22 02:24:39 frezebox kernel: [1184427.320544] sd 9:0:0:0: [sdd] Attached SCS Jun 22 00:25:08 I removable disk Jun 22 00:25:10 sorry should of used pastebin or something Jun 22 00:25:11 man, pastebin :p Jun 22 00:25:13 :P Jun 22 00:25:24 yeah, sorry :S Jun 22 00:27:26 I'm (when developing in Eclipse) executing in seperate terminal those commands: killall adb; sudo killall adb; sudo `which adb` logcat Jun 22 00:27:35 maybe you have old adb version? Jun 22 00:28:27 Android Debug Bridge version 1.0.20 Jun 22 00:32:41 then don't know how to help Jun 22 00:33:01 you are running on debian? Jun 22 00:33:54 It should be SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" in the rules file right? Jun 22 00:37:46 are you sure you need a udev rule for adb devices? Jun 22 00:38:25 no, I'm not sure but the googling seems to say so.. Jun 22 00:39:18 oh. maybe my distro does something for my automagically Jun 22 00:39:29 what distro do you use? Jun 22 00:40:54 gentoo Jun 22 00:41:05 is there any way to create an android app that has the ability to insmod the taptun.ko and whatnot? I'm thinking of making an openvn app Jun 22 00:41:30 cj, wait for the NDK Jun 22 00:41:36 NDK? Jun 22 00:41:46 native development kit Jun 22 00:45:38 got it to work :) Jun 22 00:45:42 what was it Jun 22 00:46:16 had to use SUBSYSTEMS instead of SUBSYSTEM and add OWNER="user_i_use_for_adb" Jun 22 00:51:45 so, is it safe to root the magic? Jun 22 01:05:17 Description Resource Path Location Type Jun 22 01:05:17 The project cannot be built until build path errors are resolved Android Project Zero Unknown Java Problem Jun 22 01:05:19 d'oh Jun 22 01:05:40 KNY: can I get on the beta testers list? :) Jun 22 01:06:09 cj, you ask as if I have anything to do with it Jun 22 01:06:30 KNY: you know more about the NDK than I do... you may be able to point me in the right direction. Jun 22 01:06:42 cj, there's a Google Group for it Jun 22 01:15:14 http://pastebin.com/d740b5bc6 Jun 22 01:15:27 if I use that code to create and write to a new file... Jun 22 01:15:31 where is that file created? Jun 22 01:16:00 /data/data/your.package.here/app/ I believe Jun 22 01:17:05 I'm on emulator Jun 22 01:17:17 why would that affect anything? Jun 22 01:17:20 data dir for that? Jun 22 01:17:22 just adb shell in and poke around Jun 22 01:17:43 will do Jun 22 01:52:44 Has anyone noticed canvas save causing the screen to flash ? Jun 22 02:17:12 what's the standard for inserting line breaks into XML? (I have a block of help text in my strings.xml that I want to format) Jun 22 02:17:14 \n ? Jun 22 02:17:24 ya Jun 22 02:24:35 does android support emoji? Jun 22 02:49:03 can it add one button to statusbar? **** ENDING LOGGING AT Mon Jun 22 02:59:57 2009