Hi I am developing an android app for a robotics competition. In the app we have buttons that add numbers to text boxes. I would like to get the number and save it to a locally stored Google sheet. Or to try to explain it the Google spreadsheet will be downloaded first then the app will put data in it on each separate device and when we are back on the internet it will upload to Google's servers I cannot find any way to do this and I am new and don't know how to save things yet so please explain carefully. So far the link hasn't been helpful. Can you even put data in a local table I could really use more specific examples I have figured out how to make the app save data then read it to a text box but now I want to put that data in google sheets and the api documentation has not been helpful
I think you need to add libraries for accessing the google spread sheets. The following link has a brief on it:
Android - Google Spreadsheet Api
Related
I'm working on an App for Android and I have to retreive information (JSON) from a URL; save it on the phone and then display the information on a list.
Until now I've managed to retreive the information using Jackson library, but now I wonder which is the best way to keep this information on the phone.
I tried to save it as a file into the Internal Storage but then, when I try to read this file to create a JSON Object again, I get errors and I can't find the file on the phone using ADB Monitor to check what's going on.
Then, I tried to saved into the External Storage, but with Android 6.0 there is new Permission Model which I don't quite understand. I would like to have more time to just implement this but I have a deadline for this task.
My last option is to create a SQLite database. Which I haven't done before and also is taking some time to understand.
I would like to read some recomendations from people with experience because I'm new on Android and I don't know in which of these options to focus.
My local church hosts a weekly show and upload the videos on Youtube. And I've been asked to develop an app for them, so far all is well, however, I have to implement a feature that will allow me to stream the show's videos unto the app.
I honestly don't have much of a clue how to go about it (still new to android programming)! I've looked around here and seen that a few people have already attempted to do this, but unlike what most people have done or tried to do, the videos are released on that day (not live streaming). For example the 10/02/13 video will be released on 10/02/13.
This link gives me an idea on how to stream a video on Android, but that shows that I have to explicitly put in the link for the video.
Is there a way to do the same thing, but instead of adding the link myself, the app should retrieve the videos from a server??
Thank you in advance for your help!
Is there a way to get the link but instead of adding the link myself, the app should retrieve the videos from a server??
To achieve this you need to make the webservice which help to communicate mobile and web server. When you send the request from mobile to server then make the web service which give you response which have link of video then you can stream the video.
To stream the video.
Read here.
Inside the API DEMOS you have on example.
API DEMOS >> Media >> Mediaplayer >> Play Streaming Video
You need to downloaded using the SDK Manager, and then inside eclipse you go throw create new project form existing sample, then you read the code and copy it inside your app.
I am currently developing a small android app using the google drive SDK/google doc's embedded player which will play through power point files in a slide-show manner. Since there's no direct way I can tell when one powerpoint ends and another begins using the SDK, I was wondering if there was any way for me to retrieve the number of slides from a power point. With the amount of slides I'll be attempting to use the interval between slide changes to calculate the time taken for each powerpoint to play and then using that I can switch through files. I know .pptx files carry the amount of slides in it's metadata (not so sure about .ppt), but I'm not sure how to go on reading it. I've looked at google drive SDK's part to read metadata, but it seems rather limited to what you can actually read. I've looked at ApachePOI but it doesn't seem it's android compatible. Could anyone point me in the right direction with this?
Thanks :).
Sorry, this is not possible using the Google Drive SDK. You could easily download the pptx, unzip it (it is just zipped XML) and extract the required metadata.
Hello I am new to android programming, I haven't started writing the code for my app idea yet but I am in planning and learning the Android OS. I was wondering if there is a way that I could pull data from a site such as a wiki from wikia.com and format it in an android app and how would I go about doing this?
I want to pull data such as the information under the different sections, for example take a band history such as The Beatles, I want to pull the History section, Discography, stuff like that and format it to look good in my app. Is there a way to do this? Thank you in advance.
You have a few options.
APIs
Scraping/reformatting the site
If a website has an API you can simply use that to query the website and get the data you need. If not you'll be forced to download the html and scrape out the relevant information.
Scraping is considered a legal gray and most websites don't appreciate it, especially if you plan on redistributing the content of the site.
I have a site where, via Android, a user needs to:
fill in a document (simple html I think).
the next step would be to sign on the Android.
the data should be saved into a database inside the site.
Points I should mention:
the UI should be as simple as it gets
I am the one who should build the web database
So therefore my idea was :
the application would open an browser where the user will insert all his stuff into the html.
the html will save automatically all the data into a class called data.
the next intent of the application would be the surfaceView (where like a painter the user will sign).
the surfaceView will be saved into png and with data both will be stored in another class which will be inserted into the server.
so in this class would be two files the png one and one contain all the info that was on the html as strings (Jonathan Leffler I hope this one solves my misleading)
the server will take this class and parse it and save it into tables.
Someone has another idea?
In which language should I write it? I thought Java and Android where the database would be MySQL. Does anyone have another idea?
another idea I have is to change this html file into Android sheet
so all the information would be stored on the device and by clicking upload all the information would be sent to the internet site where a server will store it in his database
Can someone point what would be a better solution
note:in my second solution no internet availability is needed so it can work offline where in the first case its needed.
I would like to hear more then on solution on to pick the best who fits my qualities
You will need a webpage optimized for mobile display for Android. That should be PHP and MySQL.
The next thing would be a native Android application written in Java. That will probably use some local data, so it will use mobile SQLite database on the phone.
When the user logs into your website, that is done by the web, and later it will redirect the user to a custom scheme something like signature://capture . The webview will detect this scheme, and will launch your native app.
You will setup your Android application to react to this custom scheme, so it will open up, and will open up the SurfaceView. Then the user will be able to touch the screen, to give his signature.
When you capture the signature, either the set of the points (reccomended) or the generated image (will cause postprocessing issues) you will issue a simple HTTP Post method, that will send/post the data to your server.
So you will end up having in your web environment the captured signature.
Good luck with development.