[Q] Sending data over wifi - Java for Android App Development

I want to use the screen of android phone/tablet as a remote input device.
I want to get the position of the finger(s) and send that using udp socket to a pc/laptop.
Later I'd also like to add more input possibilities and add the option to send data (text/images) to the phone and displaying that.
I've already created a simple server that receives messages in C++ but my knowledge about java/android development revolves around the hello world program, so I'd need a lot of tips and pointers for this one.
Anyone knows about a good(detailed) tutorial about this?

Perhaps try reposting this in C++ forum? I don't know much about it and I'm sure other may be the same way, especially since we're in the Java section. Although i really like this idea!
Sent from SPH-L710 (using XDA app)

Related

Phone usage monitor

Im looking for a usage monitor which basically will predict my bill for the coming month. It needs to monitor gprs (like spb does) phone calls and text messages.
I have googled for this program, but with no luck.Therefore, im looking to develop it myself, probably using C# with visual studio 2005. I m downloading the trial, but as a user with no experience im going to be using msdn a lot while developing. Does anyone have any good guides for c#? because all the google results are either rubbish or expensive.
And, would it be better to program in a different language? [Ive looked at C++, but seems too complicated with no experience]
Also, what are some of the popular apps written here on xda-devs written in? [eg melody, slide to unlock, oto, schaps' programs etc]
Any if anyone knows of a product like this that already exists, please tell me, and save me some work.
And, does anyone know a way to get msdn premium subscription on its own or cheaply? As i think its a great resource just waiting to be tapped.
Thanks to you all here in the great developers forum, I just want to be considered on of you greats some time
Rory
x

Please help, info about using java on wm with c# & googlemaps api

Hi first I must apologize for posting here I know I should post in the questions and answers section, I have already done this twice with two similar posts but I have not received a reply I beleive because the expert programmers are less likely to look there to help people as most questions are about useing software not developing it. anyway here is what i posting before I really hope someone can help me...
Hello everyone I was wondering if anyone could answer this question for me.
I am creating a wm app and for part of it i want some information from googlemaps, the maps api is in java and i was thinking of ways to incorperate this into my app. Can i create a java program to get data from google and have my c# program run the java program and get info from it? I could write my program totally in java but i don't like the way i have to first start the vm and launch my program from that is there a way to automate this? also I need quite a lot of information from the phone so using c# will make getting this info easier.
or are there any other ways i might be able to get the info I want, I don't really know anything about applets but could they somehow be used?
oh btw the specific data i want is distance between to map locations (via googles route not direct)
many thanks i hope someone can help
I apologize again for posting in here but this app is for a final year project and I need to know if im barking up the wrong tree as soon as possible.
I might be wrong here, but to the best of my knowledge, Google Maps API is actually JavaScript API, not Java. If you found Java API, it's most likely a wrapper. And if it exists, I'm sure C# wrapper should exist as well. You might want to take a look at this. I know it's not exactly what you are looking for, but it might be helpful to some degree. Also, one other thing I can suggest, is to look at Virtual Earth API. I'm almost 100% positive, that they do have a C# implementation of the API.
Hi hobbbbit thanks so much for your reply, so googlemaps api is javascript , I have never used javascript before and saw that the api used objects methods and looked like java so i just assumed thats what it was. If there isn't a wrapper for c# do you (or anyone) know of a way of using the api to obtain one of the objects and use it in c#?
I would use virtual earth but unless I am totally wrong here I thought to use it you needed a licence which costs around $8000 which I don't want to pay for. Even with google if I wanted to release the app i think I would have to pay although I have contacted them and they say I can develop my app using the free api.
**EDIT**
Ok well I took another look at virtual earth, I really am a complete idiot. I signed up for a FREE developers account so hopefully everything I need I can get from there.
again thanks for your advice if you hadent posted I would probably still be trying different ways to hack google earth to work in my wm app.
On codeplex is a windows forms project that uses googlemaps api as wel as a few others. Im pretty sure you can get an idea of how to go about this from there
cornelha said:
On codeplex is a windows forms project that uses googlemaps api as wel as a few others. Im pretty sure you can get an idea of how to go about this from there
Click to expand...
Click to collapse
Superb this was just the thing I was looking for I will be sure to study this code closely. Thanks so much for the information.

Connect Android to Enterprise Java Bean

Hi!
Im sorry if this is a dumb question but I googled some stuff about it and never found a straight YES/NO answer.
Im a student in my final year and as a semestral project I have an electronic voting system built on Java Enterprise technology with enterprise java beans (EJBs) running on Glassfish.
For my final work id like to create an app for android that could communicate with those beans on a Glassfish server and thus a people could vote by a cell phone.
My question is Is this even possible? Over the past three days ive been googling stuff concerning this matter but nothing really helped. Id really appreciate a straightforward answer because my time for choosing a final project is almost up and I dont want to end up doing something that is impossible.
Don't take it bad, but it looks like you are a student who doesn't even know what he's working with. Not that it surprises me, but I'm willing to help you.
Answer these straight questions.
1. What is an EJB?
2. Who "runs" an EJB?
3. Where does an EJB "live"?
If and when you answer these three questions you'll know what is needed for a project where "people could vote with a cellphone".
What I can tell you in the most straightforward way is that it is possible for you to have people using their android phones to vote with your Glassfish server.
Android <-> Glassfish
I am looking for the same thing - to write Android apps that communicate with session beans on an app server (i.e. Glassfish). Since I will own both ends of the app, I am looking for a simple approach (e.g. RMI) as opposed to a lot of unnecessary bru-ha-ha (e.g. why turn Java objects into SOAP, just so we can turn them back into the same Java object ... not that Android really supports SOAP).
It looks like Google, for some reason, crippled the Android's ability to communicate. About the only built-in mechanisms I've found are REST (and I don't like REST) or writing my own protocol and using servlets.
Surely, by now, someone has come up with a simple, concise, mechanism for addressing this issue ... I just can't find it.

The Communicator app: Where to start with Android app development

Hey guys
Aight so the idea is to create an app that lets the user speak to someone in a different language. You make a recording and using the same function that the voice search feature has that recording gets translated to typed words on the phone. The app then uses some translating service like google translate to convert that writing to a language of your choice. That writing will then get read* by the phone and can be heard through the speakers. So essentially you can talk to someone even if you dont speak the same language.
*I know this is possible because I used to have an app that did just this: it read out loud what you wrote down
I have no experience with android development, and not very much with programming either for that matter (ive done some python stuff). However, I thought of this, which dosen't seem too hard to create, and I thought this would be a great way for me to start off and learn about app development.
Ok so because most of the features already exist it should just be a matter of patching them all together (right?). This is where I need you guys' help. Any suggestions on where I could start?
I appreciate any help, no matter how big or small!
MODERATORS: I wasn't really sure if this was the right place to post this, so feel free to move it to where ever you find suiting if this isn't right.
I would love it if someone wanted to work on this together with me, but
PLEASE DONT BE A D*CK AND JUST STEAL THIS IDEA!
Hi,
I'm relatively new to Android myself. But in my understanding, I would suggest the best method to start coding this app is, to build a Service which is intended to do the network polling, and the translation for the App in Background. So I think you need a server which tracks your Messages, and serves the data for the app. U have to look at IPC (Inter Process Communication) to communicate with you service.
If you finished all these, then you can start to build an Android Activity to communicate with your user.

Advice on what to research and study to make app that connects to web services

Hello! overflowers? I'm a beginner android developer and I have developed several apps that use the "basics" of android and java (for college requirements)
Now, I need to develop a new project that consists of making a web app which stores the records of all students from my college and the students will be able to check their records and other information from the college from their android phones.
I have done a lot of stuff with Android but I haven't done anything incluiding web queries, pulling info from a website to display into the device, etc etc.
So I want some advice here and/or tutorials that focus on this.
also, I have some important questions: 1. Can I pull information from the actual website from my college? If so, do I need to recieve some sort of permissions?
2. In case of not being able to pull information from the actual website from my college (for any reason whatsoever, like them not giving me permissions to do this), I could create a website that imitates its behavior, I would appreciate some tutorial or guide which could help me to achieve this.
Your help is very appreciated.
Btw, excuse if I'm breaking a rule here but something is not making sense to me.. the forum title says Q&A but when I mark this as a question it says this is not Q&A. I am aware this might be moved somewhere else but I dont know where.
Granolaa said:
Hello! overflowers? I'm a beginner android developer and I have developed several apps that use the "basics" of android and java (for college requirements)
Now, I need to develop a new project that consists of making a web app which stores the records of all students from my college and the students will be able to check their records and other information from the college from their android phones.
I have done a lot of stuff with Android but I haven't done anything incluiding web queries, pulling info from a website to display into the device, etc etc.
So I want some advice here and/or tutorials that focus on this.
also, I have some important questions: 1. Can I pull information from the actual website from my college? If so, do I need to recieve some sort of permissions?
2. In case of not being able to pull information from the actual website from my college (for any reason whatsoever, like them not giving me permissions to do this), I could create a website that imitates its behavior, I would appreciate some tutorial or guide which could help me to achieve this.
Your help is very appreciated.
Btw, excuse if I'm breaking a rule here but something is not making sense to me.. the forum title says Q&A but when I mark this as a question it says this is not Q&A. I am aware this might be moved somewhere else but I dont know where.
Click to expand...
Click to collapse
I would look into hosting an sqlite3 database on a server, and access it to retrieve the data from within your app.
But the problem is, by default you cannot access an online database on Android, so you'll need to add some kind of RESTful interface, the easiest way probably being a php script which will retrieve the data from the database and return it into a JSON object for example, that you can then pull from within your app.
You'll need to expose some kind of syntax from your php script so that your app can request the data for a specific user (ie row X / column Y).
There's probably a better approach, but this is what comes to my mind.

Categories

Resources