Game :: Best Strategy To Implement This Behavior In Android App?

Jul 2, 2010

In my Android app, I have some data that needs to be synced daily but also needs to be updated every hour when a user is inside the app. I have already implemented a service that gets called from an alarm for the daily update. I'm having a problem with developing a strategy to do the hourly sync. I could use an hourly alarm too and fire the same intent, but since your app can be killed at any time, there would be no way to cancel it (and since they use the same Intent, doing a cancel would cancel ALL alarms including my daily sync, so that's probably not good). The other option is to use a Timer that's set when inside the app, and have that fire my Intent when inside the app. I'm assuming all Timers get canceled when an app is killed right? But my app consists of several activities and I want the timer to work across all activities, how do I do that? I dont want to duplicate code - we're already using a subclass for Activity and ListActivity.

Game :: Best strategy to implement this behavior in Android app?


Android :: Game Engine Deployment Strategy For Phone?

Apr 15, 2010

In college, my senior project was to create a simple 2D game engine complete with a scripting language which compiled to bytecode, which was interpreted. For fun, I'd like to port the engine to android. I'm new to android development, so I'm not sure which way to go as far as deploying the engine on the phone. The easiest way I suppose would be to require the engine/interpreter to be bundled with every game that uses it. This solves any versioning issues. There are two problems with this. One: this makes each game app larger and two: I originally released the engine under the LGPL license (unfortunately), but this deployment strategy makes it difficult to conform to the rules of that license, particularly with respect to allowing users to replace the lib easily with another version. So, my other option is to somehow have the engine stand alone as an Activity or service that somehow responds to intents raised by game apps, and somehow give the engine app permissions to read the scripts and other assets to "run" the game. The user could then be able to replace the engine app with a different version (possibly one they made themselves). Is this even possible? What would you recommend? How could I handle it in a secure way?

View 1 Replies View Related

Game :: Android A Synchronous Service Calls Strategy

Sep 29, 2009

Client makes remote call to the service (returns void) and provides a callback object Service executes some long running logic on the background thread and then uses callback object to trigger ether success or failure which (since these manipulate visual elements) The scenario runs fine. The question is - can I use AsyncTask to make code less verbose (how?) and would be there any advantages in doing it
that way Or should I just get away from client callbacks alltogether and execute remote service calls retrofitted to return some value.

View 2 Replies View Related

Android :: Need Snippet Of Code To Implement Joystick Behavior

Aug 3, 2009

I'm wondering if someone know a snippet of code that would implement a joystick behavior. I did a 4 orientation button widget but it's really not user friendly for my game.

View 5 Replies View Related

Games :: Trained _ New Strategy Game / Need Feedback

Nov 14, 2010

I am new to this scene, I have just uploaded a game to the android marketplace. Only one person have downloaded the game so far, so I would like to get some feedback on how you can actually have people recognize your game and try it out, maybe by including more text in the name (Like Trained strategy, Trained puzzle etc etc..), or by other means? All comments are welcome on the game itself too!Game is ready for release on WP7 and Iphone/Ipad as well. The game is a boardgame where decent strategy and pattern recognition skills are needed. I think its suitable from 7 years and up. I am quite sure young people will develop their pattern recognition skills by mastering this game.

View 4 Replies View Related

Android :: Bug-free Way To Implement Sound Effects In Game?

Oct 9, 2009

I have pretty common question: is there any bug-free way to implement sound effects in a game?Or we only have unpredictable SoundPool with its horrible bugs? Or MediaPlayer that can only play one sound at once and which is not solution for a game at all?In fact, it is disturbing question for numerous developers right now!

View 5 Replies View Related

Android :: Strategy For WCF Server With Net Clients?

Apr 15, 2010

I am using WCF to write a server that should be able to communicate with .Net clients, Android clients and possibly other types of clients. The main type of client is a desktop application that will be written in .Net. This client will usually be on the same intranet as the server. It will make an initial call to the server to get the current state of the system and will then receive updates from the server whenever a value changes. These updates are frequent, perhaps once a second. The Android clients will connect over the Internet. This client is also interested in updates, but it is not as critical as for the desktop client so a (less frequent) polling scenario might be acceptable.

All clients will have to login to use the services, and when connecting over the Internet the connection should be secure. I am familiar with WCF but I am not sure what bindings are most appropriate for the scenario and what security solution to use. Also, I have not used Android, but I would like to make it as simple as possible for the person implementing the Android client to consume my services. So, what is my strategy?

View 1 Replies View Related

Android :: Sprint Plan Savings Strategy

Sep 8, 2010

I have two EVO's, and I'm on the absolutely unlimited everything plan for both phones, which means that on a monthly basis Now, if I moved down to unlimited everything plan except for calls to landlines, I could save a lot. As I understand that plan, all calls to any cell phone are unlimited, but I would have a minutes cap on land line calls during the day on weekdays. So, can I use some kind of App to make land line calls during the day on weekdays and avoid the charge to my limited land line minutes? I would want an App that allows calls to be received and placed. I think there is an App for that, but it requires a new number to be registered?

View 13 Replies View Related

Android :: Any Benefit In Centralized Contact Strategy?

Jul 8, 2010

I know that Android will help merge/link duplicates, but I keep wondering if I should consolidate my contact management in one place. That is your contact management strategy? Centralized? Distributed? Where do you keep your contacts? My gut is telling me to keep them all in MS-Exchange, and delete all contacts in the other places, and just keep them updated in MS-Exchange... At the same time, since Android is a Google based phone, perhaps consolidating in Google/Gmail is the right answer...

View 4 Replies View Related

Android :: Just In Section - Only Viable Strategy For New Application?

Sep 3, 2010

So I've recently released an application on to the Android Market. Whilst it was in the "Just In" section I was seeing decent download numbers, but since then interest seems to have dropped off significantly. I think now people can only find my app through a specific keyword search, which doesn't make me particularly confident about it ever becoming popular.

What can you do when your app has passed the 'Just In' stage but has not reached the 'Featured' stage? The majority of applications seem to be in this middle stage so I think other people must have a similar problem. It seems like the 'Featured' section just makes the popular apps more popular, and makes it really difficult for newer apps to ever catch up with them. Does anyone know if the situation with the Apple App Store is any different?

It seems to be possible to refresh your app and make it appear in the 'Just In' section again if you update it sometime after, but I can't find any real guidelines on this. Is anyone familiar with the specific rules for this, and is repeatedly riding the 'Just In' buzz the only viable strategy for a new app?

View 1 Replies View Related

General :: Nexus 7 - Strategy War Games For Android?

Aug 5, 2012

Is there any strategy war games for android? Like click and point type.?

Nexus 7 using xda premium

View 6 Replies View Related

Android :: Need Test Strategy For Phone App Running On Various Handsets

Nov 24, 2010

We have been working on making a Android Application. The issue we are facing is the support across various Handsets, which actually are increasing by everyday. Our application deals with Android Calendar. Does anyone have idea about as to how we can span across the various handsets, is there a way where we can give types of handsets supported, or MARKET can handle it on its own?

View 1 Replies View Related

Android :: Strategy To Distribute Application Without Putting On Market

Nov 24, 2010

We are planning on this strategy to distribute our application to clients. We would like to get your your thoughts, if you have done something similar, in terms of whether we are missing something. We have tested this approach and it works.We want to distribute our application to our clients without putting it on the market as we do not want every one to download it. We want our clients to be able to easily get future upgrades to the application. Here is how we are planning to do this:

1. export the apk file using the Eclipse wizard.

2. put this apk file on a website. The user will be able to go to this website on the browser on the phone and install the 1st version of the app.

3. next versions of the app will have an incremented android:versionCode, and android:versionName in the manifest. A button in the settings will point to a link which will have the next version of the app. So to upgrade the user will click on this settings button and download the next version and click on the apk file to replace the old version.All subsequent versions of the app will be signed by the same certificate using the export wizard in Eclipse

View 2 Replies View Related

Android :: Strategy For Branching In Subversion With Mobile Releases

Oct 5, 2010

I'm developing a series of applications for mobile devices, we'll call them Orange, Cherry, and Pear. Now, because of my familiarity with Blackberry, I chose to begin implementing the first of these three applications, Orange, on the Blackberry platform. I found a way to integrate a number of Blackberry platforms (since they use relatively the same API among different BB operating systems, with some exceptions) into the same codebase. Currently, my codebase looks something like this:I thought that perhaps another thing I could do would be to create separate projects, for instance orange-blackberry and orange-android. This might clutter my svn repository, however, since we keep all of our projects in the same repository. So, inevitably, I will have orange-blackberry, orange-android, cherry-android, cherry-blackberry, pear-android, pear-blackberry, along with a series of project folders for any other application I create. So, I'm looking for some feedback about what might be the best way to manage all of this chaos. Also, if you could throw in some ideas about the logistics of transferring from my current implementation to the newer one, (i.e. what svn commands I should use to maintain history.

View 1 Replies View Related

Android :: Using Activity Lifecycle Methods / What's Best Strategy For Binding?

Sep 15, 2010

I'm binding to a local Service (that is, not using IPC and AIDL) from several activities. I want to ensure that I'm not holding references to this service from activities that the user isn't using. My options are: 1.) to bind to the service in onCreate() and unbind in onDestroy(). 2.) bind in onStart() and unbind in onStop(). 3.) bind in onResume() and unbind in `onPause(). Or some combination of these. Which is the best-practice way of binding and unbinding to a local service? Do I not need to be concerned with holding local connections from stopped activities? Additionally, once bound to this particular service I am retrieving a Cursor which is attached to my ListActivity via a CursorAdapter. The data retrieved by the Cursor may have changed while the Activity was out of view so I want to requery it when the Activity is shown again. If I bind in onCreate() I can requery in onRestart(). If I bind in onResume() each time the data will be fresh because I'll query it in the Service's connected callback.

View 1 Replies View Related

Android :: Strategy For Installing Large Applications On Archos 5 Tablet

Nov 14, 2009

I have an app which has a download size of about 7MB and an installed/ configured size of about 25MB. So far, I've been handling this by using the SD card for the baulk of the data. This works fine although the installation process is a little cumbersome. I notice the smallest of the Archos 5 tablets is 8GB.

Can someone confirm whether this is all part of the internal memory? In other words, can /data/data/com.mypackage fill this memory (potentially). If so, does this mean there is a good chance that getExternalStorageDirectory() will quite often return null? Because people will have less need to use an external SD card.

View 2 Replies View Related

Android :: Design Strategy - Large HTML In Apps Bookmark Location

Nov 8, 2010

I write Windows/iPhone/Android apps that mostly display large documents (HTML) in an HTML container view. What is a good strategy to determine where in a document the users has scrolled to so that when the app runs again, it goes to that location in the HTML document? ll of my software can 'listen' to javascript. Is there a way to find in a HTML page, perhaps with javascript, where the visible section is?

View 1 Replies View Related

HTC Eris :: Need A Backup Strategy?

Oct 24, 2010

This Eris is rooted, with KaosFroyo v37 and Pirelli Z-rated tires. It's fast, stable, functional - everything I'd hoped. I have a nandroid save of the unit on v34, which I'd like to keep - just in case. If I do a nandroid backup, of v37, will it write over v34? I have mybackup pro and Titanium free. This Eris isn't used for music or video, so memory is far from used up. Given these conditions and resources, and considering my ignorance, what's my best backup strategy?

View 5 Replies View Related

HTC Incredible :: What's Best Strategy To Get This Phone?

May 14, 2010

Long story short, my Dad gets a discount on monthly data plans on VZW through his job, so I don't want to order the Incredible online or by mail because it would be a hassle to set up the contract that way. And after reading other forums people are having a ton of problems with finding when their orders will arrive, canceling credit card billing, etc. So next week I'm coming home from school, my current phone is broken, and I need a new phone before I start a new job on the week of the 24th. If I went into one of my four local Verizon stores on Monday, Tuesday, or Wednesday, what are some tips to get the phone in-store? Are there any chances of finding one or advice you guys could offer on getting employees to pull strings?

View 12 Replies View Related

Android :: How To Store Path Of Game Pawn In Turn Based Game?

May 22, 2010

I have a square grid, for a turn based game ( grid is similar to the chess board ), but the moves in the games are different based on whether you have lapped your opponent pawn at least once or not.i.e if you have not lapped (beaten any of the opponents pawns) in the outer most grid as below.if you have lapped your opponent pawn once at least, then you get to reach home,this way.Any player having all his pawns reaching "home" first wins.The ones in yellow are safe-houses, i.e both the opponent pawn and the player's pawn get to stay in the same grid, this is not considered to be lapping ( the opponent ).The lapped pawn will return to its start point.Now the question is, what is the effective way to store the paths for the all the pawns.we will have 4 pawns for the player and 4 opponent pawns.Is there any pattern to store such static information, in a elegant way?

View 1 Replies View Related

Android : Puzzle Game With 7x7 Grid Of Graphics / How To Save And Continue Game

Nov 12, 2010

I have a puzzle game with a 7x7 grid of graphics, and a timer, its just about ready to go. But I am stuck on how to go about saving/continuing game. For example when someone exits I want them to be able to save and exit, then come back and click continue to pick up where they left off with all of the graphics in the right place, timer and score. I looked at onSaveInstanceState android examples, but not sure if this is what I need or how to implement it in my case.

View 8 Replies View Related

HTC Desire :: Strategy For Managing Contacts

Mar 29, 2010

When i get my Desire i will primarily be using my Outlook Exchange for work mail and google mail for private mail.

I have all my outlook contacts up to date and a few years ago i synched the outlook contacts with my google mail account.

Since then i have probably updated just a few of the google mail contact details.

This means there will be a clash between some of the contacts in my outlook and google account.

What will the phone do if i synch with outlook and also sign in to my google account?

Firstly i'm wondering if all the contacts will be out in the same place? (is this called people?)

I'm also wondering if it will duplicate contacts?

Could it be a neat new method of keeping outlook and google contacts fully synched?

For example, If i temporarily delete all my google contacts, synch the phone with outlook, and then they will be synched with google?

View 1 Replies View Related

HTC Incredible :: Need Regular Backup / Strategy Handling?

Oct 3, 2010

I rooted my Incredible a few weeks ago (thanks to everyone here) and I want to know how I should be handling regular backups. At the time of the root I did a Nandroid backup and then a Titanium backup. I then copied the contents of my SD card over to my PC for safe-keeping. Should I continue to do regular Nandroid + Titanium backups? Or, should I just do Titanium?

View 7 Replies View Related

Games :: Space STG Real Time Strategy

Nov 3, 2009

Space STG - Galactic Wars (real-time strategy) - introduction I want to introduce my game. If You would like to see more, please visit www.inventiventure.tk. Space STG - Galactic Wars is real-time space strategy game. Build buildings, economies, ships, defense and technology. Send your fleets of ships to conquer enemy planets. Use nuclear missiles, probes, planetary defenses, cloaking technology and more. The aim of Space STG is to dominate the Galaxy. Expand your empire by mining resources, building space fleets and planetary defenses. Invade your enemies planets and size control of each region.

View 31 Replies View Related

Android :: How To Set Notifications Behavior On EVO?

Jul 13, 2010

Does anyone know how to set the notifications behavior on the EVO? Specifically with Google Talk? I would like the phone to beep at me only once when someone sends a google talk message, and then not ever again for the following messages until I unlock the phone's screen and reactivate the google talk app. I think it already works this way for email, but not for Gtalk. Can this be done? And, I already know that if I open up the chat session, the sounds shut off on successive messages. However I would like it to stop the beeping without opening the chat window.

View 1 Replies View Related

Android :: Customize Spinner Behavior

Apr 21, 2010

I want to customize the spinner behavior a little bit. I want to add a couple of buttons at the end of the drop down menu that is displayed when the user selects the control. Any idea how this could be done?

View 4 Replies View Related

Android :: Odd Behavior With A Search Activity

Oct 24, 2009

I have a package with two activities

1. A main activity 2. A search activity

The search activity is invoked by a search suggestion provider in two possible ways

1. By clicking directly on a suggestion invoking the search activity through a VIEW action 2. By clicking on the explicit search icon invoking the activity through SEARCH action

If it is invoked through SEARCH I stay on the search activity and show some text to the user. Now when I click the back button I go back CORRECTLY to the home page.

ODD Behaviour: However if I came to the search activity through the VIEW, I invoke a browser activity and call finish() on the search activity. Now I have the browser in my view. If I now go back I would expect to go back to teh device home page. But from now where the "main activity" is showing up.

I see in the logcat a message from ActivityManager indicating

moveTaskToBack: 8

I have tried various flags to invoke the browser activity the tried flags include new task previous is top and I have also tried both a singleTop and otherwise with the SearchActivity as well. Same end result.

View 2 Replies View Related

Android :: Behavior Of Activity For Cases

Mar 18, 2010

1. I want to know the behavior of activity for the cases where onStop and on Destroy were not called like low memory situations.
2. I was registered my handler in on Create() and unregistering in on Destroy, what is the behavior if other thread sends messages to the registrants after the activity was killed by android without calling on Destroy. I know that those handler were not removed by GC as they are still referring by the thread.
3. Also suggest me to handle the above situations.

View 3 Replies View Related

Android :: Getting Right Highlighting Behavior In ListView

Sep 20, 2010

I have a ListView set up in single-choice mode like this:

<ListView android:id="@id/android:list"android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#ff444444" android:layout_weight="1"
android:drawSelectorOnTop="false" android:choiceMode="singleChoice" android:scrollbars="vertical"
android:headerDividersEnabled="true"/>

When I press my finger on a choice, the selection changes from white text on light gray to black text on orange. But as soon as I lift my finger, the selection reverts to the original state. I'd like that chosen row to remain in the black-text-on-orange mode when I lift my finger so that the user knows what was selected in the list (my onClickListener has captured the selected row, of course). Is there a way I can tell the ListView that I want this behavior or something similar so the user knows what item has been selected?

View 6 Replies View Related

Android :: Select Behavior Of TextView

Oct 18, 2010

I have a TextView which is inside a LinearLayout which is in the child position of an ExpandableListView. Without assigning a color state selector to the text view, the following behavior is observed:Text unselected - text paints as white Text selected - text paints as black.If I add a color state selector with a call to text.setTextColor(R.color.textcolorstatelist) then the following behavior is observed:Text unselected - text paints as black Text selected - text paints as black.I tried two versions of textcolorstatelist.xml and both produced the results above.

View 9 Replies View Related







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