Android :: Advice On First Application (loading Data / Populating Data)

Jun 23, 2010

to start with I've gone through the entire notepad tutorial, I'm a professional game programmer who has some extra time. (though most of my time has been in C++, I did take a year or two of Java classes in college, and remember some of it). I'm not sure the site is a good site to ask questions like this.. If someone has a Forum that might be a good place to ask these newbie questions, please feel free to point me in the direction. I've examined a few of the samples, and think I've a grasp of what I want to do. I've a three to four project plan for some Android releases to sharpen my skills, but since this is my first project and I have never really developed for a mobile phone or the android before, I'd like to make sure I have a solid plan.The first project is an example of the license plate game, however I want to do a few things to change it. Heck maybe when I'm done it'll become a bingo style game, with bluetooth connectivity, you never know. The base idea is I want to offer a list of states, with checkboxes next to them. so to do this, I'll be starting with a Linear List layout similar to the note pad example, and then have a row that is only a Checkbox. I can use text and call strike through if it's been checked off. Perhaps offer an option to not show them if they are checked.

But I want the list to be generated from a set of lists. Maybe all of America's states, maybe reasonable American states (no Hawaii, no Alaska) maybe a North American list, (add in Mexico and some Canadian provinces), a European list, who knows. I'd probably have to have a pop up window that lists all of the lists I suppose using a radiogroup of some sort. So then as far as the data, after weighing options I think best solution is to make a database with two fields, "checked" and "name".I figure I can use the menu for most of the user interaction (aside from clicking on stuff we want to check off) with maybe a few context menu items, I understand how to make all of those already so I should be good. The question I have is what is the best way to populate the lists? Should I create raw data, and have different files for all the lists? Or is there some other way to do this? I've seen this done on the searchable dictionary, but I'd like to hear what people who have actually generated the data like this before. In addition is there an easy way to look at the sql database these applications create, or do you have to run searches on them and output the data? Finally any other suggestion or advice? I definitely want to try to get something like this on the market so I can see the full life cycle and see if anyone actually likes it. (luckily there's not a plethora of them already) but I also want a few people to look over my code if they're willing when I'm done to make sure I've done this right or at least not missing any basic mistakes.

Android :: Advice on first application (loading data / populating data)


Android :: Loading Google Maps Data Into Searchable Data Structure

Mar 2, 2010

For my CS bachelors I am doing a Senior project using android and google maps.My vision was to do a (relatively) simple Dijkstra shortest path using google maps road data. I was going to add elevation change along with 2D distance. I am doing well playing with maps in android but I am completely stumped trying to access google maps data in any sort of searchable form.How would I go about accessing the data for say intersections of roads (lat/long) in a particular area?There has to be a way to pull that data in some sort of tree form. It seems like it may be possible with kml?Any pointers would be awesome.I want my paths to follow roads but If i cant this is going to turn into an orienteering application fairly fast.

View 2 Replies View Related

Android :: Best Way To Store Application Data / When Data Stored / Data Format Could Change In Future Versions?

Mar 4, 2010

I'm making an Android Java app game (although this question applies to all languages really) and hope to release the first version soon. I'm nervous about how I save data in my game. My problem is that, if in a later update, I decide to store more data or store the same data in a different way, I need to be careful I don't lose or corrupt data for users that upgrade (i.e. I want users to be able to use data created by an old version in the new version, like their high scores from before).For example, say I want to save high scores in version 1.

View 3 Replies View Related

Android :: WebView Not Loading Data

Jan 1, 2010

I'm trying to load the parsed HTML data from an rss feed using a WebView, but the webview claims...

View 3 Replies View Related

Android :: Way Of Loading Data / Notifying An Activity?

Oct 8, 2009

I just tried a stupid approach and it crashed my app... Basically I have an activity that has three tabs (containing three activities). Each of the tabs gets its input from an xml file downloaded off the net. Everything is fine but when I start my app, it has download the xml file and there's a "wait" time for this.I managed to get around this by adding a splash screen. It looks beautiful but the problem is when I click on the second tab, it still has to get the list off the net, so it looks ugly now... It waits before displaying the list. So what I did was design an AsyncTask that just downloads the xml file. In my main activity, I spawn two tasks initially and send the URL and Intent as parameters. And inside the activities that start inside the tabs, I use a wait(). Inside the AsyncTask, after it is done with the download, I notify the Intent using notify(). This crashed! Of course, I didn't expect it to work but just wanted to try :) Writing it so that I can either get a feedback as to why this failed or to prevent others from wasting their time on this...Now, I am sure many face the problem of a "wait" time inside the tabs. How do I solve this? I am thinking of either dimming the screen and then displaying a series of toasts or display a progress indicator inside the tabs or pre-fetching the xml files... I don't have a clue on how these can be achieved.

View 2 Replies View Related

Android :: Loading New Data With Back Button

Apr 10, 2009

I have a message application so that on view 1 is displayed a list of messages and when you go to view 2 (subactivity) you can send a message. I want the program to work so that when you hit the android back button, you can go back to view 1 and see the list of messages including the new message. Right now only the old data is displayed, and I noticed that displayContent() is not called when going back which I assumed it would. Is there any way to specify that when the back button is hit, to call displayContent() again on the previous activity?

View 3 Replies View Related

Android :: Loading - Row At The End Of The List - During Data Download

Aug 1, 2010

I have got list that is filled with data from internet.

Datas are downloaded in chunks. At the end of the list next portion of data is downloaded and added to the list.

I'm detecting list end with help of onScrollListner:

CODE:........

I would like to addLoading... row when datas are being downloaded. Something similar to Gmail loading row at the end of the list.

I know that I can hack adapter.getCount() to return size + 1 and force adapter.getView to display loading... at the end of the list.

How can I do that in more elegant way?

View 1 Replies View Related

Android :: Loading Data Asynchronously While Displaying GUI

Jan 20, 2009

My application needs to load and process some data at the startup which delays the displaying of the GUI quite a bit. I addressed that problem by starting a new thread to load and process the data. It solves the problem nicely, but is there a better way to do asynchronous processing in Android applications that I missed?

View 2 Replies View Related

Android :: Stuck On Loading Data Please Wait

Dec 1, 2009

I just purchased my Driod on Wednesday. I took it back today because it kept on freezing. They gave me a new one, but for the last 6 hours it has been "loading data, Please wait...". The Verizon store had no clue what was going on. It is in the task bar.

View 4 Replies View Related

Android :: ActivityList - Loading Data From Network Best Practice

Sep 29, 2010

I have multiple ListActivity(s) with a custom ArrayAdapter. I have to load an XML file from the Web, and the user moves to a new activity by selecting a list item.

What is best practice for:

Displaying a loading indication to the user.
Threading the networking stuff so that the user can cancel the loading of the data if need be / move to the previous activity.

Example/source code would be greatly appreciated - I've used http://www.helloandroid.com/tutorials/newsdroid-rss-reader as an introduction, however it doesn't display a loading indication.

View 1 Replies View Related

Android :: Loading External Data On Local File In WebView

May 27, 2009

when I load external web page, image or javascript file from local webpage. I can't see external image and can't load javascript or webpage. But I can only see local image. Why I can't load external javascript, webpage or image? Here is the HTML source. (of course, I filled right [daum open API key])

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta
http-equiv ="Content-Type" content="text/html;
charset=UTF-8"> <title>Daum 지도 API</title>
<script type="text/javascript"
src="http://apis.daum.net/maps/maps.js?
apikey=[daum open API key]" charset="utf-8"></script> </head> <body>
<div id="map" style="width:600px;
height:400px;
" style="border:1px solid #000">
</div> <img src="http://4.bp.blogspot.com/_2-7AdSkZA7I/RlCnDhD3ZfI/ AAAAAAAAE9U/LEHMtyVLdY8/s400/CutyTale10.jpg">
<img src="file:///android_asset/coffeebean.jpg">
<script type="text/javascript">
var map = new DMap("map", {point:new DLatLng(37.48879895934866, 127.03130020103005), level:2} );
</script> <iframe src="http://www.daum.com" width="300" height="150"></iframe> </body> </html>

and I use this Activity source
package bo.my.android.test;
import android.app.Activity;
import android.os.Bundle; import android.webkit.WebView;
public class OpenAPITest extends Activity {
WebView webView;
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.main);
webView = (WebView) findViewById(R.id.webView1);
webView.setWebViewClient(new DaumMapClient());
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("file:///android_asset/daummap.html");
//webView.loadUrl("http://www.daum.net");
} }

View 3 Replies View Related

Android :: Root Permission - Loading Data On Real Device

Jun 12, 2010

I have got an htc hero device and would like to install my apk on it. It successfully installs my apk but without the database it is using. My database is populated prior to running the application, so it runs ok on the emulator. But I couldn't load my data on the real device and the apk is displaying forse close error. How to load my data on the data folder of the device including every detailed steps?

View 2 Replies View Related

Android :: Weatherbug Elite - Loading Data Please Wait Message

Oct 7, 2010

I just received a warranty exchange Samsung Vibrant, & I am currently in the process of putting all my apps onto it. I have the widget on my home screen. The widget seems to be working, but the "loading data please wait" message is still displayed in my notification drawer & the little circle of dots is still in the task bar up top.

View 1 Replies View Related

Android :: Droid ListView Data Virtualization - Lazy Loading More Than 10,000 Items

Mar 4, 2010

Does anybody have an example of lazy loading (about 10,000 items) an Android ListView from a Sqlite databse?

View 1 Replies View Related

Android :: Message - Saying Loading Data Please Wait - Taking Long Time

Nov 25, 2009

I have a message -- saying Loading Data, please wait -- but it's been a long time. What does this mean? How can I make it stop?

View 8 Replies View Related

Workflow When Loading Data From Server And Filling Activity Listview

Feb 7, 2013

I'm pretty new to Android development and I just hit a brick wall in the development of an app, I'm currently working on.

The problem is that I have a list of locations (states), and when one is selected, a list of cities from that state is loaded via http request and JSON and then is supposed to be inserted into a listview in another activity.

So now I have the StateList activity and the CityList activity. Currently, the statelist activity starts the citylist activity via an intent and gives it a state name. Then, the citylist activity uses that name and requests data from a server via AsyncTask. As result I get an array of City objects, which are supposed to be inserted into an adapter for a listview.

Now begins my problem: I don't want the second activity to show up before all data is loaded. I also don't want the first activity to do the request and then have to transfer the whole result to the second activity using intent extras.

So what would I have to do now to have the second activity load all the data and only then really show up? I tried only setting the content view after receiving the data, but since the base class onCreate() is tied to some manipulation of the layout, I would also have to call onCreate() at that point, which is not allowed.

Here some code snippets of what I tried already:

The onCreate() method of my second activity (which is supposed to hide):
[high]protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
// send request for citylist data
CitylistRequest request = new CitylistRequest(this, new State(0, getIntent().getExtras().getString("state")));
request.execute();

[Code]...

View 2 Replies View Related

General :: Apps Not Loading - Data Resets After Restart (Galaxy Note 2)

Jan 4, 2013

I download apps from play store, amazon appstore and other places..

When I restart my phone, Some apps (no matter where are they from (play, amazon, etc.)) They stop working.. they dont work anymore.. and I will have to re install the apps again and loss all data

And also some apps that still work, they start like its the first time I am starting them and all data in them are lost..

I tried multiple things to fix this like I factory reset my phone and also tried to flash new version of stock rom but I still have this problem.

My device: Galaxy Note 2, jelly bean 4.1.2, rooted (no custom rom indtslled)

View 3 Replies View Related

Android :: Advice Needed On Application Approach

Nov 2, 2009

I'm a total newbie to Android (and to Java in general... mostly a PERL/ PHP guy here...), so forgive me if I use the wrong terminology to refer to things... I have been asked by my company to implement an application for Android that allows a user to enter a note at the end of every call. E.g., either they or the other party hangs up, immediately a notes area pops up with a "save" button and if they enter a note, the note is saved with a reference to the call log entry. As I understand it, onCallStateChange() will give a pretty good indicator of a hangup if the state has become Telephony Manager.CALL_STATE_IDLE. I've figured out how to do the UI part, how to save it in a database, etc... My question, however, is about how I implement this "listening" aspect of it. Should I have a service running all the time that has an instance of android.telephony.PhoneStateListener? If so, do I use the onBind or onStart method, and how do I make sure it doesn't go away when memory runs low? Or can I somehow attach the listener to this event, and then terminate? Or is a Broadcast Receiver the way to go?

View 16 Replies View Related

Android :: Application Data Remain After Application Removal

Feb 6, 2010

I want to add a flag that will tell how much time my application is running. This flag will have to stay even after the application is removed. And, if its installed back, i must have a way to recover this flag. What's a way to implement this?

View 8 Replies View Related

Android :: Provide Files Into Data - Data Directory Of Droid App On Install / Where To Put Them In Project?

Sep 24, 2010

Is it possible to provide files into the data/data directory of an android application on install? If so, where would I put these files in my project?

View 1 Replies View Related

Android :: Fetching Data - Responsebody - HttpClient In An AsyncTask And Returning Data

Mar 16, 2010

How I'm able to do what I've written in the topic. I've looked through many tutorials on AsyncTask but I can't get it to work. I have a little form (EditText) that will take what the user inputs there and make it to a url query for the application to lookup and then display the results.

What I think would seem to work is something like this: In my main activity i have a string called responseBody. Then the user clicks on the search button it will go to my search function and from there call the GrabUrl method with the url which will start the asyncdata and when that process is finished the onPostExecute method will use the function activity.this.setResponseBody(content).

This is what my code looks like simpliefied with the most important parts (I think).

CODE:.......................

View 1 Replies View Related

Android :: Copy File From Sdcard To Package Filesystem - Data - Data - Packagename - Files

Apr 14, 2010

Is it possible to copy a file located on the sdcard to a package's internal filesytem located at /data/data/packagename/files/ folder?

View 3 Replies View Related

Android :: Updated Screen Data Instead Of Reading All Data From Framebuffer?

Jun 2, 2009

I just want to capture the updated screen data instead of reading all data from framebuffer. Can I get this data by what method?

View 4 Replies View Related

Android :: Send Data Using CSD / Data Channel Of GSM Service?

Jul 28, 2010

I wanna develop an app that uses CSD or Data channel of GSM Service to send data. Can anyone help me out with it?

View 1 Replies View Related

Android :: How To Set Data In Google Maps / Further Access Data

Aug 9, 2010

Dear Android geeks, I am new to android development, and i want to develop an app in which u can set some data and location in google map and at a later time we can retrieve it also. Please help me out with it I am not able to set data in maps.

View 20 Replies View Related

Android :: Listing / Data / Data Device Contents

Feb 1, 2010

I'm trying to get a list of folders in /data/data that starts with "totalcross". Is this possible? All i get is "permission denied". All these folders are signed with the same key and have the same user id.

View 5 Replies View Related

Android :: Cant Read File From Data / Data/ Pkg / Files

Mar 29, 2009

I am saving an image using openFileOutput and now i want to use this image in my java script file.

View 9 Replies View Related

Android :: Which Application Using How Much Internet Data?

Jul 18, 2010

I am using a lot of Internet Possibly 15mb a day, is there an application to tell me what app is using up what usage?

View 1 Replies View Related

Android :: Application Cache Data?

Oct 20, 2010

I'm trying to understand the way android handles my application cache data....Some times i'll go in there and the cache directory is 6-7mb. What type of data is stored there? Is there a way in the mainifest I can say don't use cache or clear cache at Xmb ?

View 5 Replies View Related

Android :: Broadcast Data To Other Application?

May 15, 2009

I create an application where i get the various data from net (say for example i am getting the temperature information of particular city and another data is the information of stock value of a particular company) now i want to broadcast that various data to all application. I create a registration process for diff application for diff data (EX app A is registrar for temp of city). so application is registrar for particular data will get that data.

How can i broadcast the information to all application which are registrar .

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved