Month: May 2012

Attaching Files In Email In Android Java

Opening the email application from java can be done like the following: final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE); emailIntent.setType(“plain/text”); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[]{“email”}); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, “subject”); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,”Extra”); //has to be an ArrayList ArrayList<Uri> uris = new ArrayList<Uri>(); //convert from paths to Android friendly

Tagged with: , ,

Change The Default Application For Android Tasks

To change the default app for an android task go into android settings. Open either Settings or Menu depending on which version you’re running. Selected App or Applications from the list. Manage applications. Then select the app that you want

Tagged with: , ,

Visual Studio Make Selection Uppercase Or Lowercase

In Microsoft Visual Studio you can make a selected code or text uppercase or lowercase by using choosing: Menu: Edit -> Advanced -> Make Uppercase; Edit -> Advanced -> Make Lowercase Command: Edit.MakeUppercase; Edit.MakeLowercase You can also use the following

Tagged with: , ,

Linux Setup DNS

Setting up the DNS in Linux can be done in a few steps. sudo cp /etc/resolv.conf /etc/ Now edit the dhclient sudo gedit /etc/dhcp3/dhclient.conf Look for the below line, which will be commented, and match this setting. # append the

Tagged with: ,

Linux Add Boot Option In Grub2

You can add boot option for Grub2 for Ubuntu by editing the 40_custom file. sudo gedit /etc/grub.d/40_custom Append the following line menuentry “Ubuntu Mymod” { recordfail insmod ext2 set root='(hd3,1)’ linux /boot/vmlinuz-2.6.32-21-generic-pae root=UUID=c01e7d24-fc8c-4498-86a2-ad0ea8d1d4ec ro quiet splash acpi=off noapic nolapic initrd

Tagged with: , , ,

Android SetTextColor From Colors

When setting the colors for e.g. a TextView you can use the settextcolor from either a color or resource. void android.widget.TextView.setTextColor(int color) public void setTextColor (int color) Sets the text color for all the states (normal, selected, focused) to be

Tagged with: , ,

Diablo 3 Error List

Released on May 15. Diablo 3 is the sequel from Diablo 1 and 2 and Blizzard newest game. Here is a list of the different Diablo 3 error you can run into. The list might be missing some and is not complete. Most

Tagged with: , , ,

Android SetTextSize From Dimen

Setting the TextSize of your TextView from a dimension resource might not work at first. When setting make sure to use the getResource()  text.setTextSize(getResources().getDimension(R.dimen.textsize)); dimens.xml <?xml version=”1.0″ encoding=”utf-8″?> <resources> <dimen name=”textsize”>24sp</dimen> </resources>

Tagged with: , ,

Do Not Save Web Browser History

There are different ways of disabling browser history. You can either temporarily disable or permanent disable it. This goes for most browser. Go into the Tools or Settings and find the privacy tab and find Clear Browsing Data or Delete Browser History.

Tagged with: , , , , , ,

Add, Remove Or Change Credit Card From Android Google Play

To add or remove a credit card from Google Play for your Android phone you sign into your account at Select Payment Methods Here you can add a new credit card by pressing “New Card” Remove a card by locating the

Tagged with: , , , ,