I would like to write an application that would run initially on a Motorola Droid. The application would retrieve row(s) from a database and display some textual data from the rows as well as an image associated with the record that will be stored on the SD card.
I really think that the results would be best displayed in a fashion similar to the Calendar app that ships with the Droid - that is the data and associated image will scrollable left and right by dragging the current "page".
I assume that some of you will know how this is implemented - I dont' seem to be able to ask the right question when searching. Any help would be appreciated.
Is this the Calendar app you are referring to? Looking through the source might help.
Related
I'm starting my first android app and (for now) i need it just to do this: load a gridview or listview (dont know which is best) with data from an Access database that i created.
I tried to search around (Example) but i just found how to CREATE new tables when the app opens, and that doesn't fit my needs.
To anyone who can help me, i apreciate it!
Thanks for reading.
[EDIT]
Ok, i discovered that i can't use an access database on my app, oh well.
I am working on an app and I basically want to implement some type of function like the note apps do. Basically I have a listview set up that has a link to different xml files. I want the user to have a create new option where they can add some text to an edit text and be able to save the text and add it to the listview I have set up.
My question is how do apps like the Note Pads and Memos ect. do this. Do I need to set up some type of database or?
I have googled it quickly and did a quick search on stack but I don't know if I'm even searching for the right thing. I am just looking for a step in the right direction please!
Thanks!
They all save their data in a database. For android you should use an SQLite database because it is included in the SDK. There are a lot of great tutorials for SQLite out there, but I think that this is the best one
http://www.vogella.com/articles/AndroidSQLite/article.html
It is possible to do this using SharedPrefernces, but I would not recommend it, for efficiency and simplicity
I am working on an app in which I have pdf images that contain have text, I need to highlight the text on which user long pressed by his finger, as in pdf reader like repligo and others.I searched a lot but didn't find any relevant way to do it.
Can someone will share the idea to do it or it maybe more helpful if someone can explain via some code or example.
My Friend.
Even I am also thinking about the same kind of situation. According to me, It can only be done if u know the pixel values of the text . I mean from where it start and at which pixel it ends. Then you have to make a Database for the entire pdf like the Quran Android Application on Market. They simply recognize the device before sending the data from server to client. '
Suppose u r using tablet, then tablet specific pixels are there n if you are using Mobile Device, Then device specific coordinates will come in form of database which can easily be matched by touch.
Then u can easily find which word or paragraph is going to be selected . Then u can do the selection part by using the object of Path in Canvas.
Thank You
Short version at the bottom
I'm working on an android app for a computer game, Heroes Of Newerth. A part of the apps functionality is to list all the heroes in the game. Each hero has:
a short description
a few stats(faction and primary attribute)
an icon
4 spells, which also has:
a short description
a few stats (mana cost, difference in ranks, etc.)
an icon.
There are approximately 110 heroes, which means I have about 500 sets of descriptions and stats.
I made a working version of the app. I downloaded all the images and put them in the drawable folder (note, this was 500 images), and created a Hero Enum which stored name, faction and primary attribute. Obviously, this was a bad idea, as it was horrible looking, and hard to extend to storing the rest of the data.
I have though about using a database, but as I don't have any experience with databases, I'm not really sure as how to do this, especially in Android. I looked it up, and it seems I need to initialize the database on the phone, which means I have to get that data from somewhere - which, again, means I'm back to square one.
I have never worked with this much data in a programming project, and have no idea for how to save it all. As if this is not enough, the game developer, S2 Games, releases new heroes with only weeks in between. As I wouldn't want to update one of my apps every other week, I want the app to be able to update itself with the new data. The best way I see this in my head is you download the app, either with a database of the current heroes, or without any, and the app checks each friday(patches are released on fridays) if the app is up to date. If not, update the database(with text and icons).
Short version
I want to save a few thousand strings, some formated in a special way(unless I can to this afterwards), and about 500 icons. How should I approach this?
Note: I know this was a really bad question, with a horrible structure, but I've been stuck here for weeks, and I couldn't get myself to ask someone, I really need help here!
well it's very recommended that you use sql and databases . you could go to w3schools for the basics .
if you don't want to use DB (or don't have time) , you can store all the data in xml files , and then parse them all . the images should never be part of the DB (or the xml files) , since they cause a bad performance while moving between items.put their names/paths instead .
if the images take a lot of space , consider using google expansion library .
I am working on an android application in which I have to perform OCR from an Image. For example if I have drawing of building, user clicks on a particular area on the image (like Kitchen or Parking lot), after that click I want the location name/number where the user have clicked. This number will be present in that location.
in the given image if i click on Lecture Room part then the application must detect the area where I have clicked and give me the name (i.e. Lecture Room) for further queries..
Please help me out. I have tested many applications but most of them detects words not the drawing images.
Edit
It is just like HTML Image Maping
Interesting project, I've been developing an Android app with OCR and I included useful information and a code example in the next post, have a look at it and if you have any question, just ping me:
https://solidgeargroup.com/ocr-on-android
I'd say that you need to work on how you have abstracted your problem, if the goal of the application is to read any image file and extract all the text from it in order to make it searchable, you've got quite a project ahead of you.
However, if your goal is to make a finite number of maps clickable, I'd say that you should create a table of all the known locations in each image and then save the coordinate where the user clicked. That way you can look up that coordinate in your table of known locations and present the corresponding room to the user. A room could for instance be defined by the coordinates of its northwest corner and its southeast corner. Determining whether or not a coordinate is within those boundaries is trivial.
If your application really requires OCR you are in a world of trouble I'm afraid.
Edit: minor mistakes edited out.