Git Product home page Git Product logo

android-in-practice's People

Contributors

michael-galpin avatar obviam avatar

android-in-practice's Issues

Error in Chapter 3 example

What steps will reproduce the problem?
1. Install LifecycleExplorer.apk to emulator
2. Click the app icon to launch


What is the expected output? What do you see instead?
Expected: Two buttons: Finish and Go to Activity 2
A counting clock

Actually seen: A message saying "Unfortunately LifecycleExplorer" has stopped

What version of the product are you using? On what operating system?
Android 4.0.3 (API 15). On Windows 7


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Apr 2012 at 5:36

Attachments:

Improve override of onOptionsItemSelected

default:
        return super.onOptionsItemSelected(item);

Right now we just return false in most, which works, but in case of overriding 
and a parent can handle the item, the default/super is better. 

For example see DealDroid code. 

Also callout to making a super class to handle the menu if you need same menu 
on multiple activities? 


Original issue reported on code.google.com by [email protected] on 22 Mar 2011 at 4:28

MyMoviesDatabase bug in intent data being passed

From Logan:

https://gist.github.com/17ff6a85086a0f7c1a89

diff --git 
a/ch07/MyMoviesDatabase/src/com/manning/aip/mymoviesdatabase/MyMovies.java 
b/ch07/MyMoviesDatabase/src/com/manning/aip/mymoviesdatab
index 0cc8d77..1465bf4 100755
--- a/ch07/MyMoviesDatabase/src/com/manning/aip/mymoviesdatabase/MyMovies.java
+++ b/ch07/MyMoviesDatabase/src/com/manning/aip/mymoviesdatabase/MyMovies.java
@@ -107,7 +107,8 @@ public class MyMovies extends ListActivity {
       ///long movieId = cursor.getInt(cursor.getColumnIndex("_id"));
       Intent intent = new Intent(this, MovieDetail.class);
       ///intent.putExtra(MovieDetail.MOVIE_ID_KEY, movieId);
-      intent.putExtra(MovieDetail.MOVIE_ID_KEY, Long.valueOf(position)); ///
+      long movieId = ((Movie)l.getItemAtPosition(position)).getId();
+      intent.putExtra(MovieDetail.MOVIE_ID_KEY, movieId); ///
       startActivity(intent);
    }


Original issue reported on code.google.com by [email protected] on 5 Mar 2011 at 2:34

Running the project from Source

What steps will reproduce the problem?
1. Download / install the ASK / Java bundle: adt-bundle-windows-x86_64.zip
    a. Downloaded 1/4/2012
2. Download book source from Publishers webpage (zip file)
3. import MyMovies Project

What is the expected output? What do you see instead?

I would like the project to compile / run
I receive: 
Errors occurred during the build.
Errors running builder 'Android Pre Compiler' on project 'MyMovies'.
java.lang.NullPointerException

What version of the product are you using? On what operating system?

Windows 8 64x


Please provide any additional information below.

I have tried:
          1) right-click on your project and select "Android Tools -> Fix Project Properties" 

2) right-click on your project and select "Properties -> Java Compiler", check 
"Enable project specific settings" and select 1.6 from "Compiler compliance 
settings" select box.
  3) Deleting the gen directory and having it recreated..

       I am sure it is a quick configuration update but I can not find the solution.   Any help would be greatly appreciated.

Original issue reported on code.google.com by [email protected] on 4 Jan 2013 at 11:10

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.