(warwound Expert, example) ( with add #if JAVA, inside B4A)[ the original was make for compile the lib outside B4A]
is it possible?
if will possible it, how will be the code for used ( referrer below) I know I will need ( supposed) Dim jo As JavaObject = Me... for beginnig..... I'm new, sorry!
Thaks
is it possible?
B4X:
#if JAVA
package uk.co.martinpearman.b4a.googlemapview;
import android.os.Bundle;
import anywheresoftware.b4a.BA.DependsOn;
import anywheresoftware.b4a.BA.Hide;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
@DependsOn(values = { "maps" })
@Hide
public class MyMapView extends MapActivity {
[USER=69643]@override[/USER]
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MapView mapView = new MapView(this, "0k1SIJwKfCiZzLeQxv6UEHoTeHXJzmX7uYlDXUg");
setContentView(mapView);
}
[USER=69643]@override[/USER]
protected boolean isRouteDisplayed() {
return false;
}
}
#end if
B4X:
#if JAVA
package uk.co.martinpearman.b4a.googlemapview;
import android.content.Intent;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BA.ActivityObject;
import anywheresoftware.b4a.BA.Author;
import anywheresoftware.b4a.BA.Permissions;
import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;
@ActivityObject
@Author("Martin Pearman")
@Permissions(values = { "android.permission.INTERNET" })
@ShortName("IntentCreator")
@Version(1.0f)
public class IntentCreator {
public Intent GetIntent(BA pBA){
return new Intent(pBA.activity, MyMapView.class);
}
}
#end if
if will possible it, how will be the code for used ( referrer below) I know I will need ( supposed) Dim jo As JavaObject = Me... for beginnig..... I'm new, sorry!
B4X:
Sub Process_Globals
End Sub
Sub Globals
Dim Test As IntentCreator
End Sub
Sub Activity_Create(FirstTime As Boolean)
StartActivity(Test.GetIntent)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Thaks