Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2640)

Issue 2232042: Issue 37: App doesn't build from svn (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by jeremy.wadsack
Modified:
13 years, 7 months ago
Base URL:
http://npr-android-app.googlecode.com/svn/trunk/
Visibility:
Public.

Description

If you checkout the app from SVN it will not build as is because the app is looking for an api_key in the resources that is not provided. This resolves that issue so that the app will build and provide a dialog with a message explaining what needs to be done to make the app useful.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated to remove tab #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
Npr/res/raw/api_key.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
Npr/res/values/strings.xml View 1 1 chunk +5 lines, -1 line 0 comments Download
Npr/src/org/npr/android/news/Main.java View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7
jeremy.wadsack
13 years, 7 months ago (2010-09-16 19:42:15 UTC) #1
Michael Frederick
http://codereview.appspot.com/2232042/diff/1/Npr/res/values/strings.xml File Npr/res/values/strings.xml (right): http://codereview.appspot.com/2232042/diff/1/Npr/res/values/strings.xml#newcode83 Npr/res/values/strings.xml:83: </string> Remove tab. http://codereview.appspot.com/2232042/diff/1/Npr/src/org/npr/android/news/Main.java File Npr/src/org/npr/android/news/Main.java (right): http://codereview.appspot.com/2232042/diff/1/Npr/src/org/npr/android/news/Main.java#newcode233 Npr/src/org/npr/android/news/Main.java:233: ...
13 years, 7 months ago (2010-09-16 19:48:56 UTC) #2
jeremy.wadsack
Have removed the tab before </string> in res/values/strings.xml. Can't figure out how to upload a ...
13 years, 7 months ago (2010-09-16 20:42:17 UTC) #3
jeremy.wadsack
Updated to remove tab
13 years, 7 months ago (2010-09-16 20:42:43 UTC) #4
Michael Frederick
On 2010/09/16 20:42:17, jeremy.wadsack wrote: > Have removed the tab before </string> in res/values/strings.xml. Can't ...
13 years, 7 months ago (2010-09-16 20:45:39 UTC) #5
jeremy.wadsack
On Thu, Sep 16, 2010 at 1:45 PM, <mfrederick@google.com> wrote: > On 2010/09/16 20:42:17, jeremy.wadsack ...
13 years, 7 months ago (2010-09-16 21:03:59 UTC) #6
Michael Frederick
13 years, 7 months ago (2010-09-16 21:10:38 UTC) #7
Ahh. I was thinking that the dialog was preventing the normal sequence.

LGTM


On Thu, Sep 16, 2010 at 5:03 PM, Jeremy Wadsack <jeremy.wadsack@gmail.com>wrote:

>
> On Thu, Sep 16, 2010 at 1:45 PM, <mfrederick@google.com> wrote:
>
>> On 2010/09/16 20:42:17, jeremy.wadsack wrote:
>>
>>
http://codereview.appspot.com/2232042/diff/1/Npr/src/org/npr/android/news/Mai...
>>
>>> Npr/src/org/npr/android/news/Main.java:233:
>>> ApiConstants.createInstance(key.toString());
>>> On 2010/09/16 19:48:56, Michael Frederick wrote:
>>> > This won't work, right?
>>>
>>
>>  It seems to work enough to launch the application so that the dialog
>>>
>> shows. Once
>>
>>> you back out of the dialog, the application closes, so that's all we
>>>
>> need.
>>
>>  If I bypass the dialog (in code) it definitely makes the app unusable,
>>>
>> which is
>>
>>> what we want.
>>>
>>
>> What happens if you don't include this? Won't it show the dialog and
>> close out anyway?
>>
>
>
> No, the app throws a null ref at line 101 when it tries to use
> ApiConstants.instance().
>
> There are 8 references to ApiConstants.instance() and none of them check
> for null.
>
> --
> Jeremy Wadsack
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b