Monthly Archives: August 2012

Android File To String

Here’s an example of turning a file into a string, by reading it line by line File file = new File(path); InputStream inputStream = new FileInputStream(file); BufferedReader r = new BufferedReader(new InputStreamReader(inputStream)); StringBuilder total = new StringBuilder(); String line; while

Posted in Android, Tips and Tricks Tagged with: , ,

Android Developer This Class Is Not Available With API Level 15

When searching on you might run into this message you can’t close or so it seems. The error message: This class is not available with API level 15. To use this class, you must develop your app using a build target

Posted in Android, ErrorFix Tagged with: , ,

Android Graphics Rotate Example

There are lots of ways to make Graphics in Android. Take a look at the pictures and the examples afterwards how to make it. It is using Canvas, style onDraw() and so on. Code: import; import android.content.Context; import;

Posted in Android, Tips and Tricks Tagged with: , ,

Android Fragment Save States Of Views

To save the Fragment state in Android you can do this. First save the state: @Override     public void onSaveInstanceState(Bundle outState) {         super.onSaveInstanceState(outState);         outState.putInt(“curChoice”, mCurCheckPosition);     } And later use

Posted in Android, Tips and Tricks Tagged with: , ,

Android ViewPager With ListView Pages

To implement multiple ListView for a Viewpager take a look at this example: public class MainActivity extends Activity { /** Called when the activity is first created. */ private Context mContext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext

Posted in Android, Tips and Tricks Tagged with: , ,

Guild Wars 2 Join And Leave World Vs World, PvP and PvE

To toggle between the difference types of world in Guild Wars 2. World vs World, PvP and PvE. There are two windows you should know. The Hero and World Vs World page. In the hero page go to the pvp

Posted in Windows Tagged with: , , ,

Guild Wars 2 Failure The Link You Clicked Is Expired Or Invalid

When trying to validate Guild Wars 2 from the mail “Activate your Guild Wars account” you might encounter this error: Failure The link you clicked is expired or invalid. Arenanet has given this answer in their announcement: “If you’re having

Posted in Windows Tagged with: , ,

Android Google Analytics Does Not Receive Anything

When setting up Google Analytics for your Android problem you might run into several issues which and you won’t get anything in your analytics. One common issue in newer Android version is the new Lint 16.0.0 which added to let

Posted in Android, ErrorFix Tagged with: , , ,

VB.NET Draw On Form Outside form1_paint() Function

In Visual Studio Form project you can draw on the form simple by doing this is the Form1_Paint function and then using the e As System.Windows.Forms.PaintEventArgs like this: Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint

Posted in Tips and Tricks, Windows Tagged with: , ,

Mac Recycle Trash Can Folder

To locate the recycle trash can folder on Mac you’ll first need to set hidden files and folder to visible. Show hidden files in Mac Finder. When this is done open Finder and navigate here: “Macintosh HD>Users>your username>.Trash” This is

Posted in Mac, Tips and Tricks Tagged with: , , ,