mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
use resource rather than hard-coding name of game.
This commit is contained in:
parent
1b542a1d22
commit
99e0fea3c3
1 changed files with 6 additions and 3 deletions
|
@ -21,6 +21,7 @@
|
||||||
package org.eehouse.android.xw4;
|
package org.eehouse.android.xw4;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
|
import android.content.Context;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.eehouse.android.xw4.jni.XwJNI;
|
import org.eehouse.android.xw4.jni.XwJNI;
|
||||||
|
@ -45,15 +46,17 @@ public class XWApp extends Application {
|
||||||
BTService.startService( this );
|
BTService.startService( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
public static UUID getAppUUID() {
|
public static UUID getAppUUID()
|
||||||
|
{
|
||||||
if ( null == s_UUID ) {
|
if ( null == s_UUID ) {
|
||||||
s_UUID = UUID.fromString( XwJNI.comms_getUUID() );
|
s_UUID = UUID.fromString( XwJNI.comms_getUUID() );
|
||||||
}
|
}
|
||||||
return s_UUID;
|
return s_UUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getAppName() {
|
public static String getAppName( Context context )
|
||||||
return "Crosswords";
|
{
|
||||||
|
return context.getString( R.string.app_name );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue