質問編集履歴

3

誤字

2015/04/26 11:22

投稿

FujiKinaga
FujiKinaga

スコア6

test CHANGED
File without changes
test CHANGED
@@ -1,8 +1,6 @@
1
1
  スプラッシュ画面で以下のようなNoClassDefFoundErrorが出ていて、起動できません。
2
2
 
3
3
  特に問題のありそうな変更を加えて起きたバグではなく、Cleanしてビルドしたところ起きたバグです。
4
-
5
- 変えたところで覚えのある部分としては、BuildToolのバージョンくらいです。
6
4
 
7
5
 
8
6
 

2

誤字

2015/04/26 11:22

投稿

FujiKinaga
FujiKinaga

スコア6

test CHANGED
File without changes
test CHANGED
@@ -107,115 +107,3 @@
107
107
  E/NetworkScheduler.SchedulerReceiver﹕ Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
108
108
 
109
109
  ```
110
-
111
-
112
-
113
- ```lang-java
114
-
115
- import android.app.Activity;
116
-
117
- import android.content.Intent;
118
-
119
- import android.location.Location;
120
-
121
- import android.os.Bundle;
122
-
123
- import android.util.Log;
124
-
125
- import android.view.Window;
126
-
127
- import android.view.WindowManager;
128
-
129
- import android.widget.Toast;
130
-
131
-
132
-
133
- import com.XXX.Application;
134
-
135
- import com.XXX.R;
136
-
137
-
138
-
139
- import io.nlopez.smartlocation.OnLocationUpdatedListener;
140
-
141
- import io.nlopez.smartlocation.SmartLocation;
142
-
143
-
144
-
145
-
146
-
147
- public class SplashActivity extends Activity {
148
-
149
-
150
-
151
- private Application app;
152
-
153
-
154
-
155
- @Override
156
-
157
- protected void onCreate(Bundle icicle) {
158
-
159
- super.onCreate(icicle);
160
-
161
-
162
-
163
- app = (Application) getApplication();
164
-
165
- firstLocation();
166
-
167
-
168
-
169
- Window window = getWindow();
170
-
171
- window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
172
-
173
-
174
-
175
- requestWindowFeature(Window.FEATURE_NO_TITLE);
176
-
177
-
178
-
179
- setContentView(R.layout.activity_splash);
180
-
181
- }
182
-
183
-
184
-
185
- private void firstLocation() {
186
-
187
- SmartLocation.with(getApplicationContext()).location().oneFix().start(new OnLocationUpdatedListener() {
188
-
189
- @Override
190
-
191
- public void onLocationUpdated(Location location) {
192
-
193
- if (location != null) {
194
-
195
- app.setFirstLocation(location);
196
-
197
- Intent mainIntent = new Intent(SplashActivity.this, LoginActivity.class);
198
-
199
- SplashActivity.this.startActivity(mainIntent);
200
-
201
- overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
202
-
203
- SplashActivity.this.finish();
204
-
205
- } else {
206
-
207
- Toast.makeText(SplashActivity.this, "起動できませんでした", Toast.LENGTH_LONG).show();
208
-
209
- }
210
-
211
- }
212
-
213
- });
214
-
215
- }
216
-
217
-
218
-
219
- }
220
-
221
- ```

1

誤字

2015/04/24 03:06

投稿

FujiKinaga
FujiKinaga

スコア6

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  特に問題のありそうな変更を加えて起きたバグではなく、Cleanしてビルドしたところ起きたバグです。
4
4
 
5
- 変えたところで覚えのある部分としては、BuilToolのバージョンくらいです。
5
+ 変えたところで覚えのある部分としては、BuildToolのバージョンくらいです。
6
6
 
7
7
 
8
8