Android :: Safely Run Multiple Droid Emulators On Same Machine And Communcate Using Sockets?
Nov 19, 2009
I would like to simulate a small cluster of Android devices either on one laptop (worst-case), or on several machines on a private network. This is for testing communications and process migration on Android.
Is there a safe way to identify and launch a particular emulator from a given application under Eclipse? I have a recent Eclipse/Java/ADT setup and I'm using the a variety of tutorials from Mark Murphy, Meier, and Abelson.
View 1 Replies
Nov 11, 2010
I am trying to develop an application for which I want multiple screen support. I have read the Android article on Best practices for Multiple Screen Support. As per the article we have to follow 3 important things
1. Mention support for different screen sizes(large, medium and small) and any density in AndroidManifest.xml.
2. Place images of 3 dpi's (120, 160, 240) in 3 folders res/ldpi, res/mdpi and res/hdpi.
3. In layout's the dimension should be mentioned in "dip" units. Then Android will take care of the scaling on its own.
I have implemented all these points in my project. The images are picked up correctly from the appropriate folders. But the arrangements of the controls in not same.
e.g. I ran the app on three emulators
1. Resolution 240*320 dpi 120.
2. Resolution 240*320 dpi 160.
3. Resolution 240*320 dpi 240.
(All the emulator have same resolution but different density.)
The problem is the position of the controls is not same on all the three emulator. As per my understanding if the android:layout_marginLeft and android:layout_marginTop are mentioned in "dip" then this problem should not occur. As the density of the emulator increases the controls get placed more towards the right. Is it absolutely necessary that I provide layouts for all combination's of screen dimension and density even if the layout is same for all the devices?
Images:
https://docs.google.com/leaf?id=0By3GYC3k5AMDNzUwNjkwMWEtOGQzZC00MjQ0LWE2OTgtYjFhYzZmM2ExOGVl&hl=en&authkey=CLOEsZsI
View 1 Replies
View Related
Feb 3, 2010
I am trying to set up multiple Android development environments on single Linux Debian machine. Everything works fine for one user. But whenever second user on the same machine tries to launch Eclipse (with ADT) there is an error displayed, that 8700 port is being used. Therefore, the second user is unable to debug. I have researched this issue myself and tried following solutions, but I am yet unsuccessful: 1) I have changed the DDMS port in Eclipse, for the second user to 8740 (Window -> Preferences -> Android -> DDMS -> Base local debugger port). No use: Eclipse still opens 8700 port for listening (showed by netstat and strace). 2) I have run the DDMS before running Eclipse, changed the port in it to be 8740 (File -> Preferences -> Debugger -> Port of selected VM). Not handy to have DDMS running outside Eclipse, Eclipse still opens 8700 port for listening. 3) Tried looking in the source code of ADT, found the reference where the 8700 port is passed and opened, it looks ok though and leaves me without a clue. 4) I have found several similar threads, but none of them helped my case (piled below for reference): 4.1) http://groups.google.com/group/android-developers/browse_thread/threa...
4.2) [url]4.3) [url}
Using: Eclipse 3.5.1 ADT 0.95 Debian Lenny
View 4 Replies
View Related
Sep 20, 2010
In iPhone there is Cocoa Asynchronous socket library. Is there a similar library in Java for Android? Can it be done using Java Asynchronous sockets(NIO library) or is there a way I can make use of NDK for Android and use native libraries for asynchronous sockets?
View 1 Replies
View Related
Apr 10, 2010
I know that iphone users can jail break to get the old school emulators and I think that by now, there are some emulators in the apple market. My question is on a couple levels...
- Without jailbreaking, can you get roms on the iphone for free?
- If so how?
- How well does the on screen controller work
- Is the small screen you have to use on the iphone emu an issue?
Also add any feedback you like and your opinion as well. I'm just curious that's all. Hopefully one of you has experience in this field
View 8 Replies
View Related
Jan 15, 2010
I know that we can safely write to /data/data/app_package... however, can the application also create folders and maybe access other folders as well, such as system? I could easily create an application to test that, but what i really want to know if the official Android approach to this issue. I don't want to assume something that will be changed in the future.
View 4 Replies
View Related
May 1, 2010
For my app, I need to record audio from MIC on an Android phone, and send it over TCP to the other android phone, where it needs to be played. I am using AudioRecord and AudioTrack class. This works great with a file - write audio to the file using DataOutputStream, and read from it using DataInputStream. However, if I obtain the same stream from a socket instead of a File, and try writing to it, I get an exception. I am at a loss to understand what could possibly be going wrong.
This is the code:.................
View 2 Replies
View Related
Jul 9, 2010
I've been trying to connect two Android devices (2.1) via TCP sockets.
The vital part of the code:
Server:
ServerSocket serverSocket = new ServerSocket(SERVERPORT);
Client:
Socket socket = new Socket(serverAddr, SERVERPORT);
The weird thing is I can make it work if the client is an emulator, but the same code fails if running both of them on real devices.
The failure in the client side is:
CODE:................
I tried with WIFI and mobile net too, they were in the same subnet both times, INTERNET permission is given, the server is addressed through its real 192.168.. IP. I am planning to change the socket implementation with setCustomSocketImplFactory(). The problem is crucial in the process of implementing MSRP protocol to Android.
View 1 Replies
View Related
Sep 24, 2013
I am trying to implement basic Datagram Sockets in Android. I am starting with one of the samples available on the web:
Code:
String messageStr="Hello Android!";
int server_port = 54372;
try {
[code].....
The program dies when it hits the s.send(p) command.
View 2 Replies
View Related
Jan 13, 2010
I'm thinking of creating an answering machine in android that automatically alerts the caller that he/she has reached the answering machine after an alloted time and then records the message. Is it possible in android?
View 4 Replies
View Related
May 5, 2009
I'd like to create an app that allow you to filter incoming call to various answering message with :
"this number is not available" for black listed phone numbers
A formal message for strangers
A informative message about what your doing for friends
I don't know I you can get automatically a call, play a recorded message then wait for the answer and record it. Or maybe there is just a way to interact with the actual answering system so I just have to plug in.
View 3 Replies
View Related
Jun 6, 2009
An application I'm working on stopped being usable after upgrading to 1.5, and the reason seems to be that, after joining a WiFi network and creating a TCP/IP or UDP/IP socket, there is no way to communicate using it from a remote entity. I can not even ping the phone using the normal ping command, which was possible using 1.0. This affects my program since it's using mDNS/DNS-SD and peer-to-peer TCP sockets for communication. Is there anyone else who can confirm this?I have tried running the program built with SDK 1.0 and SDK 1.5 while running on a real phone running Android 1.5 and the problem is still the same.
View 2 Replies
View Related
Jul 18, 2010
Is it possible to safely delete the VZW backup assistant?
It seems unnecessary as I have my contacts in Gmail, and it won't even sink now anyway...
I know I can just set it to not sync, but I can't stand knowing that it is there, doing nothing...
Can this be done without damaging any of the phones information?
View 1 Replies
View Related
Oct 28, 2010
I wanted to know if it is possible the communication between two Android Emulators started on two different machines networked.
For example
- Emulator A run on machine M1
- Emulator B run on machine M2
Can A and B exchange messages?
If yes, what ip address do I use?
View 4 Replies
View Related
Nov 24, 2010
Is there a way to interconnect 2 emulator instances running on different machines? One of them is acting as a client and other as a server, hence 2-way interaction is required.
View 1 Replies
View Related
May 30, 2010
I have an Android activity which in turn starts a thread. In the thread I open a persistent TCP socket connection. When the socket connects to the server dynamic data is downloaded. The thread sends messages using Handler-class to the activity when data has been received. Now if the user happens to switch from portrait to landscape mode the activity gets an onDestroy call. At this moment I close the socket and stop the thread. When Android has switched landscape mode it calls onCreate yet again and I have to do a socket re-connect. Also, all of the data the activity received needs to be downloaded once more because the server does not have the ability to know what has been sent before, i.e. there is no "resume" feature.
Thus the problem is that there is alot of data which is resent all the time when landscape mode is changed. What are my options here? Should I create a service which handles the socket traffic towards the server thus I always got all the data which the server has sent in the service. Or should I disable landscape mode all together perhaps? Or would my best bet be to rewrite my server which is a VERY BIG job
View 1 Replies
View Related
Aug 30, 2010
Using Ti Backup, what are some of the bloatware apps we can safely uninstall?
Apps that are safe to remove (so far):
Amazon MP3
Twitter
Facebook
Email
Visual Voicemail
Google Goggles
News and Weather Widget
Home Screen Tips
View 24 Replies
View Related
May 22, 2012
Is it possible to write a in-app openvpn connection (via streams and sockets)? If it is, then is there any android application which managed that already? I have also problems finding in-depth openvpn protocol description.
View 4 Replies
View Related
Jul 17, 2010
I am trying to communicate between two android emulators for communication , thus I am trying to forward port X to port Y on 127.0.0.1 where port X is the port I am transmitting too and Y is the one I am receiving . Is this possible and if so how do I forward the local ports?
View 3 Replies
View Related
Dec 25, 2009
I am looking for opinions on the best comfortable and easy control config for each of these the nes,snes and sega emulators on the droid.
View 6 Replies
View Related
Mar 14, 2010
Are there any emulators on the webs that I could download (other than the paid ones on the marketplace) that work pretty well? I'm all down for paying for apps and stuff to support the devs but it would be cool if there are free ones out there that work just as well. I figured I'd ask here first instead of googling it without knowing what to really look for.
View 1 Replies
View Related
Nov 11, 2009
Since the Droid Eris lacks the physical keyboard, I'm wondering if Snesoid, Nesoid or Gensod work at all on the Eris? Anyone give them a try?
View 15 Replies
View Related
Nov 6, 2009
Anybody able to get Emulators working on the droid?
View 3 Replies
View Related
Feb 12, 2010
Maybe even some non market apk's ? I'm a broke college student..
View 15 Replies
View Related
Jul 16, 2010
I have a self signed server certificate (cert.pem) and need to enable it for SSL sockets in an Android application. Ideally I'd like to package the code as .jar file and not need an external certificate file (i.e. include it into the code). With this code I can accept all certificates, which is not what I want: SSLContext sc = SSLContext.getInstance("TLS"); sc.init(null, new TrustManager [] { new MyTrustManager() }, new SecureRandom());
Do I need to add the certificate to a custom KeyManager or the custom TrustManager? One problem I've encountered is that Android does not accept JKS keystores (KeyStore.getDefaultType() returns "BKS"): "java.security.KeyStoreException: KeyStore JKS implementation not found"
View 1 Replies
View Related
Sep 28, 2010
I've found lots of great tutorial on starting a thread, however what's the best way to close a thread that's using a SurfaceView in a game loop and set a new view? Could you provide some sample code?
View 5 Replies
View Related
Nov 25, 2009
My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now, I can't support the Droid.
View 8 Replies
View Related
Aug 29, 2010
Call me a newbie, but does Android store any critical data on the SD card? Just did a factory reset on my Sprint Hero in preparation for giving the phone to a family member, & I'd like to give them the phone with a clean slate on the SD card as well as the phone. How Can I safely format SD card?
View 1 Replies
View Related
Nov 17, 2009
I uploaded about 50 pictures from iPhoto (using a Mac) just to see what they looked like and then later formatted the Droid's SD card, so the pictures were no longer there.
Now, if I mount the Droid via USB and view the file structure there is a folder named /albumthumbs which contains 50 files, presumably for the 50 pictures a had on the SD card.
To me, these file, unless linking to actual photos stored on the SD card, take up extra space in the phone's memory (not worried about the SD card). I wonder if I can safely delete them (just the files...not the folder)?
View 2 Replies
View Related
Nov 19, 2010
Can any one tell me , how to stop thread safely ? Can any one help me how to stop or cancel this thread safely ? Code...
View 2 Replies
View Related