[Q] easiest way to save/ read data - Android Software Development

Im making a game that will have a high scores list, and I haven't really made any apps that read/write data before. What is the easiest way to do it?

Youll have to take a look at some examples/docs of how it works... but an SQLite database is the way to go for this sort of thing

Also read this Data Storage - developer.android.com/guide/topics/data/data-storage.html
and this - 3w dot higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/2/
3w dot reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
and also this 3w dot anddev.org/working_with_the_sqlite-database_-_cursors-t319.html

Shared preferences is the easiest for beginners. Then again...all of this information is on developer.android.com
Sent from my SGH-T959 using XDA App

Related

Has anyone tried putting together this one touch zoom?

http://blogs.sonyericsson.com/devel...witter&utm_campaign=blogs&utm_content=Twitter
This may be in the wrong area but it seems like this could be incorporated into more than just pics (maps, etc). Has anyone tried this? Im not a developer and have no idea what to do with this.
I'll pose a question though, could this be made into an apk for a quick install? If someone knows of a good tutorial for hardcore noobs I will definitely do it myself.
Just download the "Sony Ericsson Tutorial" app from the market for a demonstration
I did and its not the demo I after. I want it running in maps and for viewing pics.
-------------------------------------
Sent via the XDA Tapatalk App
As I understand it, everything runs from an initial source code. That code needs to be compiled using Android sdk?? And they mention eclipse, what is that?
Edit: and from what I read the source code for it is there
-------------------------------------
Sent via the XDA Tapatalk App
Oh I see
If it can be done - then excellent - I presume the app would need to hook all the screen presses and then emulate the zoom in\out buttons.
Unfortunately I am also like yourself, a newbie
MOD EDIT - I've moved thread to General discussion
MOD EDIT - I've moved thread to General discussion
Click to expand...
Click to collapse
Can u delete instead? Got a plethora of resources on xda and this just adds clutter
-------------------------------------
Sent via the XDA Tapatalk App

Battery update

Hi!
Does anybody know what this battery update is. I got it as an update and to unlock the full features, I had to pay 3€per month!
I immediately unistalled this.
Is it spam? Virus!
Best regards
Sent from my GT-N7000 using Tapatalk
What are you referring to? No link.
It sounds suspicious though.
It came like a system update and then it installed a battery app that monitored my battery behavior and wanted me to pay 3€ per month ;-)
This is the first time I see something like this on my android phones!?
Sent from my GT-N7000 using Tapatalk
I've never heard of anything like that. It does sound very suspicious.
As you say, probably scareware/malware.
Now I have to look for an app to remove what ever is doing this ;-)
Sent from my GT-N7000 using Tapatalk
It is probably related to an app you have already installed. Go through any apps you aren't sure are from trusted sources/devs.
Thanks for the tip, I will check my apps. All my apps are from market place, its sad if we cannot trust the market?
Regards
Sent from my GT-N7000 using Tapatalk
The sad thing is mate you can't trust the market. You have to be careful what your installing!
Always check what permissions needs the app you are downloading depends of the type you dl it should need the right permissions. So lets say you dl a game and it needs permission for your contacts and call services then it is up to you to dl it I would never. And as long the developers have no other way to get cash they implant ofc in their apps some advertises so be carefully all the time.
And market is like Facebook a no money platform that helps people to find things, but it moment check what it provides, it is on the user to report bad apps. So many people abuse that.
Sent from my GT-N7000 using XDA App
Thanks a lot, I will try to be careful, and read before accepting anything this time.
Regards
Sent from my GT-N7000 using Tapatalk
Are you serious?
Lol that's one of the scammiest things I've ever heard of.
If I were you I'd factory reset, and in future only install well reviewed and tested apps.
Sent from my GT-N7000 using Tapatalk
As a rule of thumb, I don't click on any links from any app, except the browser
I use a program that lets you assign permissions to any app. Anything that I install that I don't think needs to access contacts, location etc, I just block.
It has a side benefit of blocking the stupid ads in the apps also.
Try to use "LBE privacy guard" from the market its free!
NEED ROOT!
With this app u can control every app u installed give and take permissions!
https://market.android.com/details?id=com.lbe.security.lite&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5sYmUuc2VjdXJpdHkubGl0ZSJd
I had one of these updates in my notification menu. Never installed it though.
Sent from my GT-N7000 using XDA App
I get this when I play certain games.
its just an in game advert made to look official which links to an app in the market.
It reads something like " You have two Battery updates available"
Download addon detektor then you can see whats causing the the push ad
And remove that battery thingy its probably the one that steals your contacts for spam
MikeFRG said:
Try to use "LBE privacy guard" from the market its free!
With this app u can control every app u installed give and take permissions!
https://market.android.com/details?id=com.lbe.security.lite&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5sYmUuc2VjdXJpdHkubGl0ZSJd
Click to expand...
Click to collapse
It requires root for full features.
equalness said:
Hi!
Does anybody know what this battery update is. I got it as an update and to unlock the full features, I had to pay 3€per month!
I immediately unistalled this.
Is it spam? Virus!
Best regards
Sent from my GT-N7000 using Tapatalk
Click to expand...
Click to collapse
Unfortunately you have been hit by a 'Scareware' attack.
As Android is becoming more popular and unlike Apple which has tighter control the Android OS is much more open to attacks such as this.
You really have to be on your guard watching for these malicious attacks.
Read the comments from PCWorld and 2Viruses for a greater explanation.

How to get my imstagram app up in the rankings

Hi everyone. I have just published an app to the playstore. What it does is that you sign In with you instagram account pick a photo then I put it on a T-shirt and deliver it to the customer.
Problem is that when you type in instagram in the search my app is quite far down the list so therefore quite hard to see.
I've tried different keywords changing the title, description and even category but none of them seem to be moving it further up.
Does anyone have any suggestions?
Thanks
Sent from my GT-P1000 using xda premium
Maybe try uploading to this website in the appropriate section of course. I'd put it on at least a few more websites like App brain. You could also put a video on YouTube on how to use the app even if it's very simple. Things like his could get your app to used by more people. This is just an idea as I've never developed an application but it's worth a try I guess. Good luck!
Sent from my PG86100 using Tapatalk 2

(Q) Building automated script for Android game

Hello there,
First I will apologize if I'm in the wrong thread, but from what I read that's the place to ask the question I have
To get to the pint:
I would like to write a script for an android game, which will execute certain actions in the game. I'm talking about a strategy game so the script will make attacks in a loot, thus saving enormous amounts of time if I do it by hand.
I've seen a script like that but I can't get my hands on it, so I've decided to look into writing my own.
Here comes the fun part: I'm a total noob in writing any codes , but I'm a fast learner.
So far I've realized that because the game runs on servers, I'll need to open the source code of the game to extract the commands that the game is using for each action. Than compile a script that will execute that same action (sending it to the server) from my behalf (using my account information) and than put this action into a loop for as many times I would like to (think that would be the easiest part compared to everything else)
I would really appreciate it if someone can point me in the right direction as far as what to read and what to use to do all of that.
Thank you Much in advance!
Shlevy
Sent from my SM-N900R4 using XDA Free mobile app
Does anyone have an idea if it's possible to monitor an application in live time to see the code that is being executed when you perform certain actions?!
For example you press a button in the app and on the computer you are able to see exactly the command executed?
Sent from my SM-N900R4 using XDA Free mobile app
Bump...
Does anyone have at least a slightest idea how to do that? Or any general directions?
Thank you
Sent from my SM-N900R4 using XDA Free mobile app
Up
Bump
Come on guys anything is appreciated
Sent from my SM-N900R4 using XDA Free mobile app
Thank you for the reply!
I'm trying to put a script together that will do automated number of hits for me on certain set target. It is a strategy game (not sure if I'm allowed to post the name of the game)
So pretty much it will need to be able to set number of troops, type and how many times to hit the target. Using that info and my user name it will emulate that I'm hitting manually from the game, but it will be much faster because there is no human lag, directly talking to the server of sorts.
Sent from my SM-N900R4 using XDA Free mobile app
Would you mind to elaborate what is OOP.
I'm pretty noob in scripting
Sent from my SM-N900R4 using XDA Free mobile app
shlevy said:
Would you mind to elaborate what is OOP.
I'm pretty noob in scripting
Sent from my SM-N900R4 using XDA Free mobile app
Click to expand...
Click to collapse
OOP means Object-Orientated Programming.
if you want to see what code is being executed etc, maybe you mean debugging?
if so you can use logcat, eclipse or android studio
Here's the link for the debugging guide : forum.xda-developers.com/showthread.php?t=2325164

Can someone write Kernel Manager EX Guide?

We need a detailed config guide for the app and all of its options. Cpu,gpu, i/o, all that. I find general stuff on Nexus phones on the web but not one for this phone and the best for its soecific hardware. Im just experimenting now. Whats the big deal with the cpu big clusters and why should it be set so high?
Sent from my SM-G935T using XDA-Developers mobile app
dldennis88 said:
We need a detailed config guide for the app and all of its options. Cpu,gpu, i/o, all that. I find general stuff on Nexus phones on the web but not one for this phone and the best for its soecific hardware. Im just experimenting now. Whats the big deal with the cpu big clusters and why should it be set so high?
Sent from my SM-G935T using XDA-Developers mobile app
Click to expand...
Click to collapse
This is something I'd like to do, but haven't had time. I wonder if I could start a wiki perhaps, crowd sourcing basically.
That would be cool and would apply to more then just one device. The functions apply to all devices and then of course the optimized device specific settings for each option. There are so many options in that app.
Sent from my SM-G935T using XDA-Developers mobile app

Categories

Resources