Android development: Loading bitmaps

If you want to add graphics to your application you can use the following information Create a custom Activity like this public class GameActivity extends Activity implements Observer{ private static final String TAG = “StrategoGameActivity”; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setContentView(new StrategoGameView(this)); ActionBar actionBar = getActionBar(); actionBar.hide(); } @Override public void update(Observable observable, … Read more

Android Development: Starting a server socket

As you already know the application i’m building is using service discovery to connect to other devices. How does this work? Step 0:  Add activity as observer to the servicehelper class (line 4) Step 2: Start registering the service to the network (10) protected void onResume() { Log.d(TAG, “On Resume called”); ServiceHelper.getInstance(this).addObserver(this); if (!ServiceHelper.getInstance(this).hasServiceRegistered( StrategoService.SERVICE_NAME, … Read more