[Q] Android Emulator Interconnection - Android Q&A, Help & Troubleshooting

Hi guys i have a question how can i interconnect two android emulator instances and how can i test if the connection is successful? After interconnection i want to use it with socket programming.
Android developers page says:
Set up the server on B, listening to 10.0.2.15:<serverPort>
On B's console, set up a redirection from A:localhost:<localPort> to B:10.0.2.15:<serverPort>
On C, have the client connect to 10.0.2.2:<localPort>
But I don't understand how and where can I set it up.
Please help me.

Related

[Q] Android equivalent to the iPhone Configuration Utility

Hi all,
I work as the Executive IT Support person in my company, and part of this role includes configuring mobile devices for a select group of end users.
For iOS devices, this has been easy thanks to a combination of a Mac Mini Lion Server, iOS Config Util, and the iOS Configurator.
I was just wondering if there was something similar available for Android devices. Main things that need to be configured are passcode settings, WiFi(including proxy settings), Email(Exchange), and VPN.
Is there an application that can do this, or can config profiles be hand coded and loaded onto the device?
We don't yet have an enterprise level Mobile Device Management solution in place yet (although we should have had one implemented a LONG time ago - we have 4000 staff members!).
Any help is much appreciated as this would make my job a bit easier.
Thanks

[Q] Need help in creating an Android App

My aim:
There is a webpage to view my company's bus schedule and I wanna make an android app for that portal.
About the portal:
authentication: used 'live http headers' firefox addon and saw this 'WWW-Authenticate: Basic realm=*******' . Googling came to know it is just basic HTTP access authentication
webpage technology: i guess asp.net ( homepage URL is /Default.aspx)
for searching for bus routes i guess just a webform is used.
NOTE: i have zero experience and zero knowledge in asp.net...by zero i mean literally zero...dont even know what it is.
Now about my android experience:
Have been using android mobiles for around 3 yrs.Tried the'hello world' program.There ends my knowledge with android.
Softwares Installed:
Eclipse IDE- Configured for android development
Android SDK installed and configured
Have used Virtual Device(AVD Manager) for that hello world program
Visual Studio 2008 Professional Edition ( i guess not needed for this project.Mentioning it just in case if it is needed)
So i am expecting some tutorials or materials which can help me in kick starting this project.
keertikumar_ws said:
My aim:
There is a webpage to view my company's bus schedule and I wanna make an android app for that portal.
About the portal:
authentication: used 'live http headers' firefox addon and saw this 'WWW-Authenticate: Basic realm=*******' . Googling came to know it is just basic HTTP access authentication
webpage technology: i guess asp.net ( homepage URL is /Default.aspx)
for searching for bus routes i guess just a webform is used.
NOTE: i have zero experience and zero knowledge in asp.net...by zero i mean literally zero...dont even know what it is.
Now about my android experience:
Have been using android mobiles for around 3 yrs.Tried the'hello world' program.There ends my knowledge with android.
Softwares Installed:
Eclipse IDE- Configured for android development
Android SDK installed and configured
Have used Virtual Device(AVD Manager) for that hello world program
Visual Studio 2008 Professional Edition ( i guess not needed for this project.Mentioning it just in case if it is needed)
So i am expecting some tutorials or materials which can help me in kick starting this project.
Click to expand...
Click to collapse
With this website (http://www.appsgeyser.com/) you can actually make an android app of any website, with 0% coding experience needed.
keertikumar_ws said:
My aim:
There is a webpage to view my company's bus schedule and I wanna make an android app for that portal.
)
Click to expand...
Click to collapse
create an app in Java to send you to your webpage.
Creating the life cycle of your app here:
http://developer.android.com/training/basics/activity-lifecycle/starting.html
Creating buttons here
http://developer.android.com/guide/topics/ui/controls/button.html
Dont forget to read.
Add this to a button in your code or in onCreate():
------------------------------------------------------------
Uri uri = Uri.parse("our url here");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
-------------------------------------------------------------
@coolsandie : Thanks..I wil look into that link
@Jrcon : Thanks for those links... wil help me really in coding a android app.but i guess i was not clear enough..I dont want a redirecting app... I need to create a complete new GUI app that can replace that web portal. take for example XDA Android app itself..its a completely standalone App for this website..I wanna code such an app

[Q] communication between android app and java application

Hi all,
Im new in this forum and just wanna ask for some help on where can i find a simple tutorial or a sample project of an android application that can communicate with a java application on a PC.
im thinking via wifi.. also i got some knowledge in java programming and right now im starting to learn more about android development.
some simple tutorial/samples like an android app where you have to type a message and it will show on the java application when the send button is clicked.
Hi Wakkana,
If you want to communicate with your own computer on your local network, it's the most easy.
On your Android client, you have just to open a HttpURLConnection (see URL, URL.openConnection(), URL.setRequestMethod()) and check if the result is == 200 (if it's okay) or not. On your computer, you'll need to manage a connections server. There are good libs to do that, Netty for example, with really easy examples.
If you want to communicate with your own computer from an external network, you have to redirect from your box a port to your computer/server port, and use the box IP in the Android client.
BUT, I'm not sure xda is the best forum to speak about network programming (without a custom ROM for example)...
Try to get good java basis before start to learn Android

[Q] Samba net rpc command implementations in Android API? Does it exist?

So, on most linux distributions that have samba pre-installed, there is a command "net rpc ..." that lets me run remote procedure call commands on windows systems. Primarily remote restart/shutdown "net rpc shutdown ..."
This comes in handy if I have alot of computers in my house to remotely restart, I even made a python script that parses a list of IP/host addresses and sends a restart command to them recursively.
Now, its a bit cumbersome to pull out my computer (on either windows or linux) and run these commands to give a quick restart to all my computers. Is it possible to implement some of this functionality into an android app? I've googled everywhere trying to find a implementation of this function, but all the apps that people make require some form of extra software to run on the windows PC's to allow the android app to send commands. I want to use the built-in WMI on windows machines, and not have to worry about some extra software running in the PC.
If anyone has any ideas or snippets of code, i'd love to hear it. If possible, it would be interesting to figure out how to write scratch code to construct RPC commands to send to windows hosts.
(I also have a far fetched idea of having a remote restart android wear app that i can press while in my house to restart all my computers! Taking convenience to the next level)
Bump, and I hope bumping isn't against the rules. Its just that this thread has had no views in the past 3 days.
Did you find any ressources on this subject ?
I'm search to do the same things as you, try to shutdown PC remotely from Android with help of net RPC shutdown
Please let me know if you have any Progress on this way
Sorry for my english i'm french...
I would be interested in that too
Sent from my sumire using XDA Labs

Communication between Android app and Raspberry (Win 10 IOT)

Hello,
I would like to ask what is the ideal type of communication between Android app and Raspberry Pi 2 (running Win 10) for my application. These devices could be on the same network.
The application is for detecting of manufacturing defects in small industrial production process.
1. Raspberry Pi using a camera obtains the image of a product.
2. Raspberry Pi using OpenCV and neural networks evaluate if the product is good, bad or cannot decide. Number of good or bad products is sent to database.
3. If Raspberry cannot decide if the product is good or bad, the image is sent to Android application (on smartphone) - it can be sent also to SQL database / uploaded to webserver and Android app could show it from here.
4. Now the user can classify the product (image) himself using Android app. This information is sent back to Raspberry and the product is classified as good or bad according to user's choice.
5. The next product is evaluated - so we go again to 1.
The application on Raspberry would be probably C++ (Windows Universal App) as I would like to use OpenCV.
On Android application I would like to see data in database (number of good and bad products).
I was thinking about using of Azure (I have free student account) or simple SQL database.
Simplest way to Send/Receive message from/to Rpi just by opening on a link
The hopmsg.com allows you the make a free message channel by creating a random key for free (no registration,login,etc) which can be used to get status / send command to your rpi:
1, Simplest way to Send/Receive message from any kind of OS/browser/platform just by clicking on a link, only need to know the ID of your msg!
Example: set your message by opening a link : hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY&value=message
get your message from any device by opening: hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY
or use the Android App to get/set it.
2, Control your device inside Nat/Lan
Example: set your command by opening a link : hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY&value=command
get your command from any device by opening: hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY
or use the Android App to get/set it.
3, Basic monitoring system
Bash script checking uptime:
UP=`uptime | sed -e 's/ /_/g'`; curl "hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY&value=`echo ${UP}`"
and use the Android App or a browser to check the status of the device.
4, Get your IP address, the message source, poor man's dyndns
If you set some values, with src=1 parameter your IP and the UTC time also added to your message
Example:
hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY&value=VALUE&src=1
wget -qO- hopmsg.com/ctl.php?id=YOUR_UNIQUE_KEY > result.txt
to use with some script.

Categories

Resources