[android-developers] Netbeans for Linux and Android
I am thinking of writing C/C++, java for Linux and Android, on desktop of course. Any problem with NetBeans ? Trying to kill 3 birds with one stone. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Packing data onto socket stream ?
If you're doing web dev and don't know about json, you're probably doing something wrong. Anyway, good luck with your odd approach. OK, OK, I shall look at it. May be it can simplify some of my tasks. You see there are always so many things to look into it that ends up looking a few things only. Java alone has so large a library it will probably take quite a while to get acquited with them, or at least read them very quickly just leave an impression. I have done a lot of C/C++, even then there are areas that I think are hair-raising. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Re: Re: Re: Packing data onto socket stream ?
If it's a trusted library such as apache (for example, the dynamically linked org.apache harmony system...) that's an entirely irrational fear. If it's a random jar you pull off a forum that's more understandable. If you want one, go find a trusted jar, make sure your download matches the checksum, and you'll be fine. Though I have to admit, the questions you're asking could easily be resolved if you set aside two or three days worth of time, read through basic socket tutorials outside of the context of your current questions, and came back to this issue. For what you're doing, this sounds like you're trying to implement something similar to IRC. IRC has messages, and also incorporates a mechanism for file transfer, if you look at the newer CTCP. However you won't be able to read and implement these (well, or your reduction to it) unless you have background socket programming knowledge, which you should get... I have done some pretty simple socket programing with C/C++. In this case, with pointers I have quite a free hand to encode my data using a scheme onto a memory buffer. At the receiving end once I get socket data into a memory buffer I can easily decode the data. As of now, I am just not certain how to encode my data onto a bytearray with java tools. For example given an integer, with C, just obtain a pointer to the integer then pack the 4 bytes one by one onto my buffer. In java, I think, as of now, I have to use the 'shift' operator and be careful with the sign bit. For you info, the file I/O and byte stream features in java are bewildering to a new comer. For one with a lot time they are no much of a problem. Thus advice help of gurus are essential to cut down learning time. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Packing data onto socket stream ?
Well, now it sounds like you're reinventing mime types..., but this isn't a horrible way to do it either I suppose. In either case what's giving you the difficulty? You can send the bytestream by doing a standard read() and write() across the socket, so this shouldn't be too bad.. Thanks. I am pretty new with Java (I have written no more than 2 programs, all from tutorial). I think there are pretty large gap in my knowledge. Only yesterday I discovered that a JTextArea object can be passed to another class; I have not come across this before. In C/C++ this is pretty normal with the use of pointer. Given a memory buffers (pointer), one can cast a length of bytes (from an offset) to a data type. Since you mention bytestream, I assume that I can use the format abytestream bb[i] to read the data. I shall test it out anyway. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Re: Packing data onto socket stream ?
These days, it's common to use text-based formats even if it's somewhat less efficient -- to simplify development, debugging and later, maintenance and enhancements. I have not thought about this; anyway I have been more active with PHP, javascript intepreted languages (before C/C++, occassional cursory look at Java). By the way you mean the current thinking is to convert binary data into ASCII representation ? I think hexadecimal notation (correct me if I am wrong), something like in an RTF file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Re: Re: Packing data onto socket stream ?
If you have a background with php and javascript you should already know about json. What are you trying to do? This sounds like something a simple webservice with a fileserver could easily do. I have heard about 'json' but never bother with it. Those web related things are done with PHP and javascript without 'json'. Recently while I was planning to FTP some files onto a webserver with java that I discovered java does not provide FTP features (quite a let-down really). Of course 3rd-party library like apache provides such a service, but I am a bit reluctant to use a 3rd-party tool, always fearing the possibilty of a back-door virus. It was only then I realised that a PHP script on a webserver would do the job. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Packing data onto socket stream ?
I am sorry, I think this is not strictly an android question. From an android device, I want to a message to a PC via a socket. I am going to pack my data as follows: xxxThis is a greeting. where: xxx - message type (3 bytes, text) - integer, 4 bytes, length of text 'This is a greeting.' - the actual text The program at PC needs to decode the byte stream. I have done that in C/C++; not too sure with JAVA. I have searched for a while on net, now I have got headache (I am going to take a rest for a while). :-( :-( Java gurus please recommend. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Packing data onto socket stream ?
xxxThis is a greeting. where: xxx - message type (3 bytes, text) - integer, 4 bytes, length of text 'This is a greeting.' - the actual text There's no reason to use the NDK for this, The standard Java socket API can be used for this easily: http://docs.oracle.com/javase/tutorial/networking/sockets/ I am not sure, for example, how to retrieve the integer portion (ie 4 bytes); any problem with Endian oddities ? Just thinking, can I use an object, serializable one ? Thanks. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Packing data onto socket stream ?
I am thinking of adding another component, eg image, as follows: xxxThis is a greeting.iii... where: xxx - message type (3 bytes, text) - integer, 4 bytes, length of text 'This is a greeting.' - the actual text iii - image type (png, gif) - image length ... - image data I suppose your recommendation still stands, extract byte by byte. Use a byte buffer as Miguel suggested. Extract byte by byte (or long by long). You'll have to deal with the little endian / big endian problem regardless of the language/stack you chose. If you have the latitude, don't use binary... -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emulator takes 15 minutes to start an app, something wrong ?
I am just playing with some sample applications, eg LunarLander. It takes about 10-15 minutes to start when run the application. Have I missed something ? My machine: XP SP2, 1GB RAM, 10GB free space. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is this template in java
Java format: ArrayAdapter(Context context, int textViewResourceId, ListT objects) Is the above template like in C++ ? I have a 15-year Java book; I think there is no such thing in there. I did a little search on net, but did not see documents explaining the above. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is this template in java
Not really. The confusion between Java generics and C++ templates causes more trouble than it explains things. When you come right down to it, the only thing in common is the angle-bracket syntax. It's very misleading to say that Java generics are like C++ templates. For that matter, it's pretty misleading to say that anything in Java is like its counterpart in C++. In Java pointers are called references and behave very differently from C++ pointers or references. Garbage collection works differently from destructors. The memory model is different. And so on. Not only that, but almost nothing from 1996 Java applies today. You don't use 'Vector' or 'Hashmap' any more, you have Swing (well, not for Android), a new threading model, generics, 'assert', for:each, enums, ... OMG! The list is HUGE what's missing from a 15-year-old reference. So much that it is essentially useless for a budding Android programmer. I did a little search on net, but did not see documents explaining the above. http://lmgtfy.com/?q=Java+tutorial Mine, I am reading a 15-year old book (from a friend) to catch up on Java. I think you have over-emphasized somewhat, it can't be that nothing applies. On second thought, may be I should sue my friend for (may be intentionlly ) misleading me. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android IDE with c/c++ (not NDK) ?
With ARM's DS-5, is there a possibility of Android IDE using C/C++, instead of java ? Just contemplating. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android documentation in PDF
Is there somewhere the online Android developer documentation in PDF format I can download ? It is easier to read and search without going online, I think. Thanks. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ARM DS-5
What is the price of this software, anybody ? -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Search newsgroup
Try the Search This Group button. I am reading from Opera 6.4, no such button. :-( -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is there Android RS232 sample code ?
Why not communicate with Windows via USB? Or WiFi? Or TCP/IP? Wish to hear about communicating with windows via USB, with a windows program I mean (sockets ?). Thanks for any tips. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Run PPP over USB
1. What is the meaning of the following statement (online Android developer guide) ? 'Note that you should not automatically start a PPP connection.' 2. Once PPP-over-USB is enabled, is an Android device and PC on a LAN-like network ? Meaning if host is 192.168.0.1 and Android device 192.168.0.2, sockets programming can use these IPs. Thanks. 3. Is Android ADB making use of sockets while communcating with Android device connected to a PC, just like ActiveSyn to backup data from Android device to PC ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Search newsgroup
Is there any method of limiting my search just to this newsgroup for example, ie without search the whole web ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: device in sleep mode, service still working ?
Depends on your definition of working. It's not terminated, but the entire device may go to sleep, unless something wakes it up. If you have an open network connection (WiFi or mobile, not sure about Bluetooth) and a packet comes in, the device will wake up for a short time. Keeping it awake for a duration you might need to process that data is up to you. Look up PowerManager. -- Kostya Thanks. I don't have a smartphone yet. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Open Accessory Protocol
1. Has anyobe has come across implementation of Open Accessory Protocol on windows XP ? 2. (Not too sure after reading its web pages) Is it feasible to buy a Arduino board and plug it onto a pc running windows xp ? 3. Can I use MicroUSB2-to-ethernet adapter to plug into a pc ? If I am not wrong there are boards that implement Open Accessory Protocol. With this I can plug an android to a pc, without having to implement the protocol myself. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] device in sleep mode, service still working ?
Assume I write a service (no interface) that communicates with a PC when an event occurs via WiFi or Bluetooth. When the phone goes into sleep mode, is the service still working ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android and WinXP: look for some tips
Customers will have to start usb debug mode to get the connection to work. But how can a socket connection via usb cable without usb debugging mode be established? Interesting question, but I don't know. But since someone points to DDMS in answering my first post, I post further to ask. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android and WinXP: look for some tips
Customers will have to start usb debug mode to get the connection to work. But how can a socket connection via usb cable without usb debugging mode be established? I think there is a need to clarify since some insinuates there be some ulterior motives, that the programs I mentioned in my frist post are for my own use, ie not to be distributed. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Re: Android and WinXP: look for some tips
It is. It enables not only debugging, but also other adb - based features, and does no harm. If you need some of those features to support a PC-side application, just leave it on. Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android and WinXP: look for some tips
I want to query an Android phone connected to a winxp PC via an USB cable. 1. Would socketing programming do the work ? Any better method ? 2. When, say an SMS comes in, I want the phone to notify the pc. Do I have to implement socket on Android as well ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android and WinXP: look for some tips
Google is my friend http://developer.android.com/guide/developing/debugging/ddms.html I have a brief glimpse at the page, I a bit concerned that Android phoe would be running in the debug mode. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Android and WinXP: look for some tips
What do you mean? You can use Android phones for development. That doesn't mean they are in some low-level debugging mode. Assume that I have an Android phone plugged onto a winxp pc via a USB cable, and my program on winxp is running 24/7. I am just wondering whether it is appropriate to let the phone on debug-mode all the time (because my program is no longer debugging). Your reply seems to indicate that it is not running in the debug-mode. -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Re: Android and WinXP: look for some tips
Your reply seems to indicate that you have some rather indirect concern. I don't know I get what you meant by the above statement. As for me, I am thinking that once, say SMS/MMS, comes in, I just to transfer to my pc immediately. Dalvik Debug Monitor Server (DDMS) seems to put the phone into debug mode, as the name suggests. Normal practice says once you are finished with it stop the service since it is for debugging only. The term 'indirect concern' you suggest some evil motives, don't you ? -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HTC SDK for windows XP - any advise ?
I am planning to write an app on windows XP to access a smart phone's SMS/MMS messages (for my own use). I am thinking of buying a HTC. Any advise ? Thanks. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android SDK platforms 2.2 and ASE
On Mon, 04 Apr 2011 21:47:23 -0700, swarnendu gotoswarne...@gmail.com wrote: you can see the facade from sl4a platfrom, the api supported by sl4a is only shown thr in .java file. On Apr 3, 2:08 pm, rahul katoc...@gmail.com wrote: I m using Android SDK platform 2.2 release 1 and having all platforms required for SDK 2.2 but I m not able to see facade.From where i ll get the facade?. Is facade avialable on ASE or Android SDK? test. ignore -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en