zhongshuiyuan / android-in-practice Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/android-in-practice
Automatically exported from code.google.com/p/android-in-practice
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:
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
Deepak
Original issue reported on code.google.com by [email protected]
on 12 Feb 2014 at 10:29
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
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:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.