小编Hel*_*rld的帖子

HelloWorld for Google Glass

我正在尝试使用提供的GDK为Google Glass制作一个HelloWorld应用程序.

这是整个代码堆,我正在努力解决这个问题.编译不会产生任何错误,但运行它会.

package leagueMatch;

import com.google.android.glass.timeline.LiveCard;
import com.google.android.glass.timeline.TimelineManager;
import com.luisdelarosa.helloglass.R;

import android.os.Bundle;
import android.os.IBinder;
import android.app.Activity;
import android.app.Service;
import android.content.Intent;
import android.graphics.Color;
import android.view.Menu;
import android.widget.RemoteViews;

public class MainActivity extends Service {
    String blue_team, purple_team, mvp, casters;
    int blue_kills, purple_kills;

    private LiveCard mLiveCard;
    private TimelineManager mTimelineManager;
    private RemoteViews mViews;

    private static final String TAG = "LeagueMatchInfo";
    private static final String LIVE_CARD_ID = "leaguematch";

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate();
        //mTimelineManager = xxxxxx;

        mViews.setTextViewText(blue_kills, "Lol, Let's see if this works"); …
Run Code Online (Sandbox Code Playgroud)

google-glass google-gdk

4
推荐指数
1
解决办法
1803
查看次数

标签 统计

google-gdk ×1

google-glass ×1