[Q] communication between android app and java application - Android Q&A, Help & Troubleshooting

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

Related

[Q] Android Emulator Interconnection

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.

[Q] Application Development Help

Hi
I'm new to android dev and I'm trying to make an application for internal use among people in the company and partners. Its a very simple app, and I think I can cover most of the coding, but what I can't is connection to a remote mysql database. Its used to verify login credentials and edit certain columns (without it, app is useless).
From what I understand, its suppose to work like this: SQL > PHP > APP where the app pulls info from a php script located on the remote server. My issue with this is Java, which I'm very new to. I'm looking for someone to guide me through making that first bridge (I tend to make more, where I can pull sql data from app to show some stats or whatever)
Thank you
Loldawg said:
Hi
I'm new to android dev and I'm trying to make an application for internal use among people in the company and partners. Its a very simple app, and I think I can cover most of the coding, but what I can't is connection to a remote mysql database. Its used to verify login credentials and edit certain columns (without it, app is useless).
From what I understand, its suppose to work like this: SQL > PHP > APP where the app pulls info from a php script located on the remote server. My issue with this is Java, which I'm very new to. I'm looking for someone to guide me through making that first bridge (I tend to make more, where I can pull sql data from app to show some stats or whatever)
Thank you
Click to expand...
Click to collapse
If you're into web development and performance is not an issue, then you can try the webview instead of coding natively. At that time, you'll be using more html, javascript, jquery in which you may be more familiar with.
wcypierre said:
If you're into web development and performance is not an issue, then you can try the webview instead of coding natively. At that time, you'll be using more html, javascript, jquery in which you may be more familiar with.
Click to expand...
Click to collapse
Hi, thank for the swift reply =) I thought about it, but I'd like to make it right the first time. It would be nice to make the data available so I can do whatever with it. I did find a tutorial including examples and code on how to connect to sql and pull information, I'm just having a hard time actually implementing it into eclipse.. No idea where to type it in and stuff lol

[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] Technical information needed for a Server/Client application

Hi,
I am a student in computer programming and I am looking to self-learn advanced android development by making an android app for my personal use. I was thinking about making an application that would require a Client/Server model that would let me browse/playback my music that sits on my PC from my android device. Something similar to the Audiogalaxy application where I would stream the data from my PC to my device.
Knowing that I know how to make an Android app, I would like to know what would be the best technology to use. I would like to be able to access my library from Internet or via Wifi. I have done some search and found out that using Zend Framework as the server and using JSON-RPC as the client could be one of the way to go, but I haven't found all the informations that would convince me to go with that idea.
I would like to know your opinion/feedback on the technology or where I should start looking to make this happen.
Thanks!
have a good day!
* Please move this topic to the correct sub-forum if I haven't done it correctly.

Android App Development help please

Hello, I am looking Android App Development help please.
I would like to make an Android TV box app and was wondering if I can get some help creating one with the following requirements;
1) Looking for a Template, for starters, so I don't have to code one from scratch since I have no idea of what I'm doing
2) Configure the app to utilize a Username/Password which verifies the account on a server database that I control.
3) Hopefully it will be easy to include a link within the code that reaches out to an XML file on my server or whatever where I have a list of Video Streams/Feeds that the app reads and you can select what video you want to play.
Thank you
Hi I'm not an android coder but a c# coder in terms of a template project, something like this? https://github.com/hitherejoe/AndroidTvBoilerplate
I just searched android TV boilerplate (a boilerplate is template). Hope it helped.

Categories

Resources