Wednesday, November 30, 2011

Carrier IQ spyware on Android?

Here is a link to an article on possible spyware in Android phones.

I am really concerned about this. There is no reason any phone should be logging all this info for the phone maker or your phone service provider.

Tuesday, November 29, 2011

Sliding view

I created an activity layout that switches to another activity layout and noticed that the images actually slides across the screen , which I found a little bit weird. I suppose that if I want to change the layout smoothly I will have to just change it in the same activity.

( I am sure there is a better way of doing this  but this is what I wrote. Any suggestions on how to improve it would be welcomed)
package kitty.tran;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class KittyActivity extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
    }//end of onCreate
private void setButtonClickListener() {
      ImageButton imageButton1 = (ImageButton)findViewById(;
      imageButton1.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
      Intent myIntent = new Intent(KittyActivity.this, SecondPage.class);
      };// end of onClick
      }); //end of imageButton1.setOnClickListener
    }// end of setButtonClickListener
} //end of  class KittyActivity

Friday, November 25, 2011

One word ImageButton

     I had this bit of code and it would compile and load in the emulator but would not run ( force close).
Button secondButton = (Button) findViewById(;

     I just could not see the problem for the longest time but then I fixed it. Just changed Button to ImageButton.
ImageButton secondButton = (ImageButton) findViewById(;

    I returned the Amazon Kindle and bought the Acer Iconia tab. Same price, not tied down to Amazon, slot for and SD card an two cameras ( one with flash) . It seems to run rather well.


Thursday, November 24, 2011

Trouble processing

I received this error-- trouble processing "java/lang/Object.class": 
The fix I found that worked is at this link--

why Eclipse added "android.jar" to my project I am not sure  but after deleting it I no longer received the message and my project would build.

I wish that pointer tool popup would also show an example of use and not just a definition. 

Tuesday, November 22, 2011

Kindle Fire app install

     I was able to install a couple of my own small apps on my Amazon Kindle Fire. They look a bit different then when they are on a phone . I will have to take that in to consideration when making the apps that might go in to a Kindle.  I had to first install an app called ES file explorer. Then using USB , transfer my App apk file from my computer to the download folder on the Kindle .Then using the file explorer app, install my app. I am a little annoyed that the Kindle only accesses Amazon's app store. ( Annoyed enough that I might return the Kindle and buy a Vizio Android tablet. Same price and it has a camera and a slot for an SD card). Just not as many apps at Amazon as there are at Google's marketplace. Still I want to look in to this "cloud" storage that Amazon offers.

Sunday, November 20, 2011

Misread letter

   I was typing in an example  code from a book and read a small letter  l ( L ) as  a  number 1 ( one) and it caused an error that was very hard to track down. Even in this post "l" looks like "1". Now I don't know if I should be upset that the writer did not see that using one letter that looks like a number would be a problem or I should be glad for the learning experience.
     A few things I learned ,
One: Variables themselves are not numbers, they are names (letters) that reference variables that could be numbers. ( I should have known that it was a letter  based on what it was doing)
Two: First thing first  when you have errors , check your typing.
Three: When I write programs , make the name of the variables  meaningful  and not just one letter.
Four: Writers make mistakes , proofreader approve it, editors sign it off  and printers bundle them up and ship.
          So even with that many layers  reviewing you have to check and make sure whatever is written makes sense.      
  (Interesting side note. the font in the drafting of this blog is different from the actual post . In the draft the small letter l looks like the number 1 but in the post it is plain to see that they are different)

Saturday, November 19, 2011

Android icon resource

A website that shows the icons included in android resources  in the R class.

I watched a couple movies on the new Kindle. Even though there are a limited amount of movies ( most sucking) the playing of them was actually rather good.

Friday, November 18, 2011

Amazon Fire tablet

     Yesterday I bought the Fire tablet. I am not sure yet if I am going to keep it. It does  not seem to hold a wifi connection very well. Surprisingly I sort of like reading books on it. There is one annoying thing about reading a book on it. Resizing a page does not carry over to the next page so you have to resize that one also, perhaps there is an auto-resizing feature I can adjust.. I am not impressed with the movies offered by Amazon's prime service ( one month free with purchase of the Fire)... More review to follow

Thursday, November 10, 2011

Buggy Eclipse?

     Don't assume your code is incorrect if you are getting error warnings from Eclipse. I installed some of the sample apps included with Android  SDK and was getting error messages. Restarting Eclipse did not seem to fix it  and re-installing  the apps  has not fixed the errors. If I make a few assumptions that 1: Eclipse is correct ,2:  The sample code is correct  and 3: The computer is working correctly then I have to assume that  somehow I am not doing something correctly. What am I missing?