Hello all,
As I mentioned in a previous post, I am attempting to learn how to set up a B4A project to work with the WIMM platform (a cool new Android smartwatch). One of the obstacles that I've run into is the need to "modify the Activity class to extend LauncherActivity."
Those are part of the instructions provided by WIMM for how to adapt apps to their system, but as a novice android coder I don't quite know what they mean, particularly since the instructions are targeted towards people developing in Java with Eclipse. Does anyone know how I might be able to do this from within my B4A code, or in any other way?
Any help would be much appreciated! In addition to building a WIMM app of my own, I am hoping to put together a guide for the forums here on how to compile B4A projects for the WIMM once I figure all of this out.
The more details WIMM instructions for this step are as follows:
As I mentioned in a previous post, I am attempting to learn how to set up a B4A project to work with the WIMM platform (a cool new Android smartwatch). One of the obstacles that I've run into is the need to "modify the Activity class to extend LauncherActivity."
Those are part of the instructions provided by WIMM for how to adapt apps to their system, but as a novice android coder I don't quite know what they mean, particularly since the instructions are targeted towards people developing in Java with Eclipse. Does anyone know how I might be able to do this from within my B4A code, or in any other way?
Any help would be much appreciated! In addition to building a WIMM app of my own, I am hoping to put together a guide for the forums here on how to compile B4A projects for the WIMM once I figure all of this out.
The more details WIMM instructions for this step are as follows:
Open StarterAppActivity.java in the editor.
a) Add the following import statement:
import com.wimm.framework.app.LauncherActivity;
b) Extend the StarterAppActivity class with LauncherActivity.
c) When this step is completed the generated activity file should include entries as shown in the following sample code (the WIMM elements you added are shown with comments):
If your activity includes vertically scrolling elements, it should also implement dragCanExit().B4X:package com.test.starterapp; import android.os.Bundle; import com.wimm.framework.app.LauncherActivity; 'ADDED FOR WIMM public class StarterAppActivity extends LauncherActivity { 'ADDED FOR WIMM @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } }