This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Context appContext = getApplicationContext(); | |
ImageView image = new ImageView(appContext); | |
BitmapDrawable newIcon = (BitmapDrawable) getResources().getDrawable(R.drawable.new_icon); | |
newIcon.setGravity(Gravity.LEFT | Gravity.TOP); | |
Drawable[] drawables = { | |
getResources().getDrawable(R.drawable.twitter), | |
newIcon | |
}; | |
LayerDrawable ld = new LayerDrawable(drawables); | |
image.setImageDrawable(ld); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jun 17, 2014 9:27:04 AM WARNING hudson.security.csrf.CrumbFilter doFilter | |
No valid crumb was included in request for /gitlab/build_now. Returning 403. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test run failed: Instrumentation run failed due to 'java.lang.IllegalAccessError' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main_activity.xml); | |
getWindow().getDecorView().setBackgroundResource(R.drawable.bg_1920x1080); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public NetworkResponse performRequest(Request<?> request) throws VolleyError { | |
long requestStart = SystemClock.elapsedRealtime(); | |
while (true) { | |
HttpResponse httpResponse = null; | |
byte[] responseContents = null; | |
Map<String, String> responseHeaders = new HashMap<String, String>(); | |
try { | |
// 略 | |
} catch (SocketTimeoutException e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.appli; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.test.ActivityInstrumentationTestCase2; | |
import com.example.appli.TestUtils; | |
public class MainActivityTest extends ActivityInstrumentationTestCase2<TestActivity> { |