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
| private boolean isAppInstalledToSDCard(Context context) { | |
| PackageManager pm = context.getPackageManager(); | |
| try { | |
| int extStorage = ApplicationInfo.FLAG_EXTERNAL_STORAGE; | |
| String package = context.getPackageName(); | |
| ApplicationInfo appInfo = pm.getApplicationInfo(package, extStorage); | |
| return extStorage == (extStorage & appInfo.flags); | |
| } catch (NameNotFoundException e) { | |
| e.printStackTrace(); | |
| return false; |
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
| <TextView android:id="@+id/my_text" ...> |
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
| TextView text = (TextView) findViewById(R.id.my_text); |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <item name="my_text" type="id" /> | |
| </resources> |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <style name="my_textview_style" parent="@android:style/Widget.TextView"> | |
| <item name="android:id">@+id/my_text</item> | |
| ... | |
| </style> | |
| </resources> |
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
| <TextView style="@style/my_textview_style" .../> |
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.github.super8.fragments; | |
| import android.os.Bundle; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.AdapterView; | |
| import android.widget.GridView; | |
| import com.github.super8.R; |
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
| class DownloadTask extends AsyncTask<String, Void, File> { | |
| protected File doInBackground(String... args) { | |
| final String url = args[0]; | |
| try { | |
| byte[] fileContent = downloadFile(url); | |
| File file = writeToFile(fileContent); | |
| return file; | |
| } catch (Exception 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
| public class Pager<I, O> { | |
| private static final Observable FINISH_SEQUENCE = Observable.never(); | |
| private PublishSubject<Observable<I>> pages; | |
| private Observable<I> nextPage = finish(); | |
| private Subscription subscription = Subscriptions.empty(); | |
| private final PagingFunction<I> pagingFunction; | |
| private final Func1<I, O> pageTransformer; |
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
| Process: Mix-ide [31034] | |
| Path: /Applications/Mix-ide.app/Contents/MacOS/Mix-ide | |
| Identifier: . | |
| Version: ??? (mix ) | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: Mix-ide [31034] | |
| User ID: 502 | |
| Date/Time: 2016-06-15 09:09:57.574 +0200 |