[Q] RemoteDesktop/Nagios App - Java for Android App Development

Morning guys,
since a few days i have much more time at work and i would like to spend it programming an app for different workcases.
I'm a beginner in android programming, since i have just finished about 3 fun apps, like "how much u can drink" etc.
Now my questions are:
1. Currently I'm using 2x client for RemoteDesktop on my Nexus 7. How can i realize in a onClickListener that it should open a remotedesktop connection with special parameters. I don't really care if it opens the Activity of 2x client or if it is integrated in my own app, but in my own would be more presentable.
Since it's only for my personal use.... is it possible to copy paste the "connection" activity of my 2x client and get it in my app and adding it to manifest.xml?
2. Is it possible to get my Check_MK (Nagios) Hostgroups Overview into my app?
I know that these might be stupid questions, but im just a stupid beginner
thanks in advance

bump...

Related

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.

Just a quick Q

Ok so im planning to build my first ever app. Cant really tell what I'm going to make since there's too many 'Zuckerbergs' around Just kidding. This forum is AWESOME!
Ok so im currently learning JAVA. I have basic knowledge of C++ (I know how to build a basic caluclator, use loop functions etc). Im using the newboston tutorials as well as reading from a book called 'Head First Java'. Anyways, my app will be using multiplayer functionality and was wondering how to get that multiplayer function. Do I have to host my own server or can I use my own internet bandwidth (I have zero knowledge in netowrking).
TwilightLoz said:
Ok so im planning to build my first ever app. Cant really tell what I'm going to make since there's too many 'Zuckerbergs' around Just kidding. This forum is AWESOME!
Ok so im currently learning JAVA. I have basic knowledge of C++ (I know how to build a basic caluclator, use loop functions etc). Im using the newboston tutorials as well as reading from a book called 'Head First Java'. Anyways, my app will be using multiplayer functionality and was wondering how to get that multiplayer function. Do I have to host my own server or can I use my own internet bandwidth (I have zero knowledge in netowrking).
Click to expand...
Click to collapse
It depends on what kind of multiplayer you want. Do you want real time multiplayer or turn based multiplayer?
Google just came out with Google Play Games which would help with turn based multiplayer. Real time multiplayer I can't help you much with as I haven't looked into it at all but I would imagine you would need a server to host it.
As you are just starting with android. I would prefer you to start by developing some basic apps first. WHen you get how it works then move on to other big things. Directly staring with multiplayer( I assume you are trying to make a game) , you wont be able to implement your ideas. So I would prefer you to get an android book foe beginners and start making small basic apps first then move on to more complex apps and then after that get android android book for learning Game Development and then move on to Game Development.
Thanks

Need help in making multiple choice question apps

Guys, I need help in making apps for multiple choice questions (mcq). Basically I want the apps to show the questions and we can answers by touching the correct answer. I have around 100 questions.
This gonna be my first app and I need someone to guide me or pinpoint me to the correct threads? I already have the android sdk btw. And whats the different between java and c++? Which one should I use in this kind of app?
Sent from my GT-N7100
Use Java. C++ is much more complicated and there wouldn't be any advantages if you used it in this case.
You need an Activity with one Textview for the question and one Button for each answer.
Then in Java get them using
Code:
findViewById(R.id.myid)
There you can dynamically set their texts:
Code:
myTextView.setText("This is the question");
myButton.setText("Answer 1");
But if you really want to make this app, learn Java first and then have a look at the Android things.

What Topic Do I Need To Tackle To Develop This Kind Of App?

The harvard university android app from google play store. (I can't seem to post any outside link yet for this account)
I want to create one for may school but I'm just starting to learn android programming, so guys I need your help on the topics that I need to study to create an app like that. I greatly appreciate any kind of comments. Cheers!
clonedaccnt said:
The harvard university android app from google play store. (I can't seem to post any outside link yet for this account)
I want to create one for may school but I'm just starting to learn android programming, so guys I need your help on the topics that I need to study to create an app like that. I greatly appreciate any kind of comments. Cheers!
Click to expand...
Click to collapse
Fragments, ListViews, JSON parsing (for communication with the web server to download news etc), Android SQLite databases (I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example), Google Cloud Messaging notifications, notifications, encryption.
There are lots more but these are some of the main ones. In addition I would not advise trying to copy the "look" or aesthetics of the Harvard application as it frankly looks disgusting, whoever designed that needs a course in UI design
any book suggestions?? im only studying at home and wanted to start studying android app development
m0nm0npalam0n said:
any book suggestions?? im only studying at home and wanted to start studying android app development
Click to expand...
Click to collapse
Android Application Development for Dummies and Learn Java for Android Development are 2 that I have in ebook form, though I can't say I've used them much as I don't really learn by reading books, more like looking at the source code of other apps and messing with it to see what happens
Android Application Development for Dummies goes through a wide range of topics including widgets, SQLite storage, possibly SharedPreferences (can't remember), ListView etc but does assume that you can at least follow what the sample code is doing - the sample code is commented but if you have not done any coding at all before then you probably should learn the basics of Java before reading it
Jonny said:
Android Application Development for Dummies and Learn Java for Android Development are 2 that I have in ebook form, though I can't say I've used them much as I don't really learn by reading books, more like looking at the source code of other apps and messing with it to see what happens
Android Application Development for Dummies goes through a wide range of topics including widgets, SQLite storage, possibly SharedPreferences (can't remember), ListView etc but does assume that you can at least follow what the sample code is doing - the sample code is commented but if you have not done any coding at all before then you probably should learn the basics of Java before reading it
Click to expand...
Click to collapse
thanks man! this really helps
Jonny said:
Fragments, ListViews, JSON parsing (for communication with the web server to download news etc), Android SQLite databases (I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example), Google Cloud Messaging notifications, notifications, encryption.
There are lots more but these are some of the main ones. In addition I would not advise trying to copy the "look" or aesthetics of the Harvard application as it frankly looks disgusting, whoever designed that needs a course in UI design
Click to expand...
Click to collapse
Thank you very much for the reply, I'm really thankful for the information that you share. Can you please clear this one for me?
I suggest using this to store the information from the webserver locally so the app does not require a constant internet connection to view a news article for example
Click to expand...
Click to collapse
clonedaccnt said:
Thank you very much for the reply, I'm really thankful for the information that you share. Can you please clear this one for me?
Click to expand...
Click to collapse
When you get data from a server to an Android app you use php for the server code - for example you can use php/mysql to run a search for calendar events in the database and return those events. Then you need to use php's JSON encode function to send the data in a JSON array.
The output should look something like this - this is the output of the calendar database for my school:
http://wgsb.cobainschofield.com/android_db/get_calendar.php (note this is not the live schools site, its the test server the guy who maintains the live site allows me to mess with err use).
You would then use a JSON parser class and an AsyncTask from within the app to "download" the content of the JSON array and then display it in a listview or textview etc.
Now obviously to get this information requires an internet connection yes? So every time someone wanted to check for an event on the calendar or read a news article for example they would need a working internet connection to receive the output of the get_calendar script, this is inefficient and bad design as it does not allow for offline viewing of the data.
Therefore what you can do is use androids SQLite implementation to create a local sql database then the first time you need to get the data from the webserver, you connect to the internet and get the output of the php script, the using the JSON parser class you store the information in the sqlite database then get the information from the database to display to the user.
By this way users can view news articles or calendar events offline and you only need to connect to the internet to refresh the information
I've uploaded screenshots in the attachments of how I've done it for my school's app.
That made it clear! Thank you very much.

[Q] Sending data over wifi

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)

Categories

Resources