This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="net.granoeste.creador.InternalOnlyAppWidget" | |
android:versionCode="1" | |
android:versionName="1.0" | |
android:installLocation="auto" | |
> | |
</manifest> | |
This file contains 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 GoogleServiceAuthExampleActivity extends ListActivity { | |
private static final String TAG = GoogleServiceAuthExampleActivity.class.getName(); | |
GoogleServiceAuthenticator authenticator; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
authenticator = new GoogleServiceAuthenticator(this); | |
Account[] accounts = authenticator.getGoogleAccounts(); |
This file contains 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"?> | |
<TextView | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:background="@drawable/list_row_background" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content"/> |
This file contains 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
final PackageManager pm = getPackageManager(); | |
final List<ApplicationInfo> appInfos = pm.getInstalledApplications(Context.BIND_AUTO_CREATE); | |
for (final ApplicationInfo appInfo : appInfos) { | |
// Determination of the bit flag. | |
if( (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1) { | |
Log.d("ApplicationInfo[SYSTEM]",appInfo.toString()); | |
} else { | |
Log.d("ApplicationInfo[NOT SYSTEM]",appInfo.toString()); |
This file contains 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
Exception occurs when lack of capacity when you commit in SharedPreferences | |
--- | |
02-16 15:10:15.378: W/ApplicationContext(2289): writeToFile: Got exception: | |
02-16 15:10:15.378: W/ApplicationContext(2289): java.io.IOException: No space left on device | |
02-16 15:10:15.378: W/ApplicationContext(2289): at org.apache.harmony.luni.platform.OSFileSystem.write(Native Method) | |
02-16 15:10:15.378: W/ApplicationContext(2289): at dalvik.system.BlockGuard$WrappedFileSystem.write(BlockGuard.java:171) | |
02-16 15:10:15.378: W/ApplicationContext(2289): at java.io.FileOutputStream.write(FileOutputStream.java:300) | |
02-16 15:10:15.378: W/ApplicationContext(2289): at com.android.internal.util.FastXmlSerializer.flushBytes(FastXmlSerializer.java:212) | |
02-16 15:10:15.378: W/ApplicationContext(2289): at com.android.internal.util.FastXmlSerializer.flush(FastXmlSerializer.java:233) | |
02-16 15:10:15.378: W/ApplicationContext(2289): at com.android.internal.util.FastXmlSerializer.endDocument(FastXmlSerializer.java:183) |
This file contains 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 net.vvakame.delegatefactory.sample.hide; | |
/* @hide */ | |
public class Bridge { | |
public Bridge() { | |
} | |
/* @hide */ | |
static Data2 combine(Data1 data) { |
This file contains 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/LabelText" | |
android:text="@string/name" /> |
This file contains 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
Map<String, Integer> mapResources = new HashMap<String, Integer>(); | |
static final String defType = "drawable"; | |
static final String defPackage = "android"; | |
static final String [] names = { | |
"ic_menu_account_list", | |
"ic_menu_add", | |
"ic_menu_agenda", | |
"ic_menu_allfriends", |
This file contains 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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<ImageView | |
android:id="@+id/imageView1" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
This file contains 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
Intent intent = new Intent(this,MyActivity.class); | |
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); | |
startActivity(intent); |