[Q] Noob trying to make app connect to internet - Android Q&A, Help & Troubleshooting

Hello, I am a noob trying to learn to make android apps. I hope to learn how to make apps both for my personal use and eventually to possibly put on the market.
I have some basic understanding of developing for android such as watching some tutorials and reading the resources on developer.android.com.
Right now I'm trying to make an app that uses access to a website that requires a username and password. I pretty much have the UI layouts set up, and right now the startup screen has a login button that just takes you to the main menu. What I need to know is how to connect the app to the website, or if it is even possible if I'm not the admin of said website.
Any help would be greatly appreciated including just pointing me in the right direction. Thanks in advance.

Hi,
What you are asking for is possible as far as I know. I think I've seen quite a few third party client apps for logging in to web services, although I don't really know how to do it.
A google search of what you wanted gave me this result:
http://stackoverflow.com/questions/6443401/performing-login-to-https-website-via-android-app

Thanks for the lead! I really appreciate it.

Related

[Q] Restric privileges on the tablet for other users

Hi everyone! First of all sorry for my english, second, I'm here because I've a big problem.
I need to lend some tablets to some friends for testing an app. The problem is that I don't complete trust in them (or they are too smart or they aren't very familiar with digital products), so I'm afraid that they can make some trouble voluntarily or not.
I'm searching for something that can block the access to determinate applications of the tablet (for example: phone, settings or other installed apps) and the install of new app. Something like a limited user of the tablet, that allowed you to running only some default apps.
I've tried to test some apps that allow you to open the app just by entering a code or a sequence, but they aren't very safe. I always find a way to bypass them. Moreover this type of application don't block the install of new app.
Do you have any solution? What can I do to create this sort of "Limited User"?
Thanks to everyone
You could try the app called "SwitchMe". It should be able to help.

Where to Start? -Development

I want to get into developing Ubuntu touch apps, i have 0 programming/developing background and only started using ubuntu over the past couple weeks. I am a tech savvy quick learner though, i dont think it will take me too long to get in the game
My question is, what programming language do i need to learn, or do i not need to? i know there is a SDK which i dont fully understand but it seems to be a shortcut to typing code if im correct? but limited in use?
Visit the Ubuntu Developer Portal
Chuckatron said:
I want to get into developing Ubuntu touch apps, i have 0 programming/developing background and only started using ubuntu over the past couple weeks. I am a tech savvy quick learner though, i dont think it will take me too long to get in the game
My question is, what programming language do i need to learn, or do i not need to? i know there is a SDK which i dont fully understand but it seems to be a shortcut to typing code if im correct? but limited in use?
Click to expand...
Click to collapse
You should start by visiting out developer portal, developer.ubuntu.com (sorry it's not a clickable link, my XDA account is too new), which will get you setup with the SDK and walk you through developing your first application. We are encouraging the use of QML for developing native apps, because it is a very easy to learn, declarative language with the power of Javascript when you need it. There is a tutorial on the developer portal that will teach you everything you need to know to get started. You'll still need to do some typing, but I think you'll find it easy and intuitive.
mhall119 said:
You should start by visiting out developer portal, developer.ubuntu.com (sorry it's not a clickable link, my XDA account is too new), which will get you setup with the SDK and walk you through developing your first application. We are encouraging the use of QML for developing native apps, because it is a very easy to learn, declarative language with the power of Javascript when you need it. There is a tutorial on the developer portal that will teach you everything you need to know to get started. You'll still need to do some typing, but I think you'll find it easy and intuitive.
Click to expand...
Click to collapse
Thank you, I appreciate your response. :laugh:

Developing Login System

Hi,
I've been assigned to set up my schools tablet system. I've got to somehow build a login system that can login the user, then send the login details to a network folder, and then after a set interval log the user out again and lock them out from logging in again that same day. I know a bit about android roms but not that much about apps. Anyone who want's to GUIDE me on how to do this? I'd really like to create something myself with the help of others and not get something prebuilt.
Thanks in advance,
Shadow
Do you have programming experience in general?
If you send info to a network folder how would you prevent a user from connecting to the network and changing the network folder manually?
Bikonja said:
Do you have programming experience in general?
If you send info to a network folder how would you prevent a user from connecting to the network and changing the network folder manually?
Click to expand...
Click to collapse
I don't really have any experience programming. I'm learning Java right now. And the system is for a primary school, so unless these kids are geniuses I don't think they'll change the network folder.
ShadowCodeGaming said:
I don't really have any experience programming. I'm learning Java right now. And the system is for a primary school, so unless these kids are geniuses I don't think they'll change the network folder.
Click to expand...
Click to collapse
In that case, I think it's a pretty great project to learn Android development for a programmer. But since you're not a programmer, you will need to learn Java before...
But also, you'd be surprised what kids these days are doing.. With a simple download of Wireshark and the likes of it, snooping network traffic, etc... It really isn't rocket science anymore. But if it's not absolutely imperative that no student ever beats the system that really makes it a great learning project.
Unfortunately, I do not have time to properly and fully guide you through the whole process as I'd like, but for any direct question you have, I'll help as much as I can.
I assume you have some kind of deadline? How much time do you have for it?
Bikonja said:
In that case, I think it's a pretty great project to learn Android development for a programmer. But since you're not a programmer, you will need to learn Java before...
But also, you'd be surprised what kids these days are doing.. With a simple download of Wireshark and the likes of it, snooping network traffic, etc... It really isn't rocket science anymore. But if it's not absolutely imperative that no student ever beats the system that really makes it a great learning project.
Unfortunately, I do not have time to properly and fully guide you through the whole process as I'd like, but for any direct question you have, I'll help as much as I can.
I assume you have some kind of deadline? How much time do you have for it?
Click to expand...
Click to collapse
I have about a month for it.
Sent from my Sense 5 powered HTC Sensation
Well, that will definitely make you cut corners in your learning...
You'll either need lots of help from somoene experienced or use something prebuilt...
Hopefully there's someone here (or somewhere) who has the time and knowledge to help you. As I said, I can give you straight answers with a little bit of help, but guiding you through the whole project is unfortunately out of my available free time...
Another piece of helpful information for potential people to guide you though would be what exactly does "login" mean in the sense of will the tablet be unusable/locked while not logged in? While there be some apps locked? Will the tablet be "normal", but the login allows the user to access within the same login app some other stuff? Etc... This could potentially significantly change the weight of the project.
Bikonja said:
Well, that will definitely make you cut corners in your learning...
You'll either need lots of help from somoene experienced or use something prebuilt...
Hopefully there's someone here (or somewhere) who has the time and knowledge to help you. As I said, I can give you straight answers with a little bit of help, but guiding you through the whole project is unfortunately out of my available free time...
Another piece of helpful information for potential people to guide you though would be what exactly does "login" mean in the sense of will the tablet be unusable/locked while not logged in? While there be some apps locked? Will the tablet be "normal", but the login allows the user to access within the same login app some other stuff? Etc... This could potentially significantly change the weight of the project.
Click to expand...
Click to collapse
The login app basically needs to act as a launcher so that when people unlock the device they have to login to proceed to the homescreen.
In that case, I have no experience with developing custom launchers/lockscreens which would be the best solution. Hopefully someone who has experience and knowledge in that field will help you. You would also need to disable installation of custom launchers/lockscreen because that would easily override your lock so it makes the project actually not that basic and out of my domain, I'm sorry.
Sent from my HTC Desire using xda app-developers app
Bikonja said:
In that case, I have no experience with developing custom launchers/lockscreens which would be the best solution. Hopefully someone who has experience and knowledge in that field will help you. You would also need to disable installation of custom launchers/lockscreen because that would easily override your lock so it makes the project actually not that basic and out of my domain, I'm sorry.
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
It doesn't need to be a fully fledged launcher, it just needs to appear when pressing the home button
Sent from my Nexus 7 using Tapatalk
But does the tablet need to be disabled if not logged in? If so, I'm not sure this could be achieved without a lockscreen/launcher and even then what if the user goes to apps and changes the default launcher... Hmmm...
Sent from my HTC Desire using xda app-developers app
It just needs to be the default launcher, not really much else. Settings and other unnecessary apps will be disabled using the multi account feature
Sent from my Nexus 7 using Tapatalk
ShadowCodeGaming said:
It just needs to be the default launcher, not really much else. Settings and other unnecessary apps will be disabled using the multi account feature
Sent from my Nexus 7 using Tapatalk
Click to expand...
Click to collapse
Hm, I'm reading up a bit on the multi account feature and it seems that users can still change some settings and install apps and also the feature itself seems to be available only on some devices so you might want to check for all this (installing apps might be a problem if a user can install another launcher instead of the current one). I don't have a multi-account capable device to check that out.
I'm guessing that whatever the case may be, the code for login would be the same so you might want to get started with a simple android app that just does the login (without actually logging in meaning anything) so you have that code ready. Until then, hopefully you, me or someone more experienced will think of what would be the easiest way to achieve the locking out and triggering the login and logout.
Bikonja said:
Hm, I'm reading up a bit on the multi account feature and it seems that users can still change some settings and install apps and also the feature itself seems to be available only on some devices so you might want to check for all this (installing apps might be a problem if a user can install another launcher instead of the current one). I don't have a multi-account capable device to check that out.
I'm guessing that whatever the case may be, the code for login would be the same so you might want to get started with a simple android app that just does the login (without actually logging in meaning anything) so you have that code ready. Until then, hopefully you, me or someone more experienced will think of what would be the easiest way to achieve the locking out and triggering the login and logout.
Click to expand...
Click to collapse
It works on the nexus 7, which is the tablet we're going to use
Sent from my Nexus 7 using Tapatalk

[Q] app for streaming music??

Hello xda, as u can see i am new to this site.
I joined because I recently had an idea to make an app that would stream music to my phone. I want anyone to be able to use this app.
Here are my questions tho:
First of all i have no clue where to start. I have seen some ways on how to stream online radio stations, but thats not what i am looking for. I want this app to be like a radio station, but play only certain artist off of my computer. It does not have to be fancy. Im looking for a program to use to develop this app, or insight on how to do it. PLEASE help if anyone understands what i am asking for lol
derrickthaller said:
Hello xda, as u can see i am new to this site.
I joined because I recently had an idea to make an app that would stream music to my phone. I want anyone to be able to use this app.
Here are my questions tho:
First of all i have no clue where to start. I have seen some ways on how to stream online radio stations, but thats not what i am looking for. I want this app to be like a radio station, but play only certain artist off of my computer. It does not have to be fancy. Im looking for a program to use to develop this app, or insight on how to do it. PLEASE help if anyone understands what i am asking for lol
Click to expand...
Click to collapse
First things first I would start by learning Java and taking a look at the official Android developer documentation and training. For developing your app the Eclipse IDE and the ADT bundle (Android Development Bundle which includes the Eclipse IDE and Adroid SDK) will include all the tools you need to get started. Once you have worked through writing some basic apps,I would recommend checking out this tutorial on how to make a basic music streaming app. While the tutorial is outdated and uses an outdated version of Android the principles and concepts shown still very much apply today.
I have limited knowledge of Java already, just basics. In that TUT he is using http to stream his music. My question for this is there anyway to not do it via http but rather straight off my hdd or even cloud?? Also I do appreciate you replying so quickly, the TUT you sent is very helpful.
derrickthaller said:
I have limited knowledge of Java already, just basics. In that TUT he is using http to stream his music. My question for this is there anyway to not do it via http but rather straight off my hdd or even cloud?? Also I do appreciate you replying so quickly, the TUT you sent is very helpful.
Click to expand...
Click to collapse
What your looking for is something similar to this app here. One way would be to use cloud storage api's for Android such as Dropbox, Google Drive, etc. to stream the music. Directly off your hdd do you run Linux or Windows because you could look into integrating Samba share as a possibility. Also I would recommend then brushing up on your Java knowledge to make your Android programming experience more enjoyably and seamless (Not having to look up new Java things every minute).
App Making Program
derrickthaller said:
Hello xda, as u can see i am new to this site.
I joined because I recently had an idea to make an app that would stream music to my phone. I want anyone to be able to use this app.
Here are my questions tho:
First of all i have no clue where to start. I have seen some ways on how to stream online radio stations, but thats not what i am looking for. I want this app to be like a radio station, but play only certain artist off of my computer. It does not have to be fancy. Im looking for a program to use to develop this app, or insight on how to do it. PLEASE help if anyone understands what i am asking for lol
Click to expand...
Click to collapse
I love your idea, but really love your desire to make it yourself. A tutorial is the best way to learn app creation. When you "walk" thru the process, or learn as you go, you are learning a new skill that you can expand into other avenues.
I have taken app creation to making my website so others can take their great idea and make it into a reality....good luck and have fun!
DLL
website owner
http://easyappcreation.com

Help with Android app for Ampache server

Hello Everyone,
Please I am wondering if anyone here can help me with my project.
I am currently working on a university project of building an Android app that can connect to my ampache server and be able to display and play my album and song list. Something similar to “just player” and “lullaby for ampache”. I have already setup the ampache server and I can browse and listen to the music on the web player.
I do not want the app to ask for credentials when a user first launches it like just player or lullaby, but instead already logged in to the main page so that anyone can be able to view and listen to the song on the server.
I have had a look here https://github.com/ampache/ampache/wiki/XML-API but I do not know how to generate, the key, passphrass or how to use it.
I have also had a look here https://github.com/meandor/ampdroid but the source code seems a bit too much for me to wrap my head around as I am still pretty much a n00b in the Android app development world.
Please I really need help or someone to guide me with the connecting to my server part of my project.
Please, please I am begging anyone out there with any idea to help me, no matter how little.
Thank you.

Categories

Resources