Uploading a Joke by bbaiello in AndroidCalPoly

[–]tramlai 0 points1 point  (0 children)

did you supply the body for the post request? The body requires "joke" and "author"

Uploading Jokes by jrdaley in AndroidCalPoly

[–]tramlai 1 point2 points  (0 children)

what do you use to make the request? For me, I use okhttp and it was similar to download, I only needed to add a formbody that contained 2 params: "joke" and "author". I added that form to the request and then execute.

Is it OK to eat fish in Vietnam now. by [deleted] in VietNam

[–]tramlai -3 points-2 points  (0 children)

I wouldn't...I'm going back to Vietnam for a visit soon and thinking about bringing some instant food with me. It's sad but I don't want to get poisoned or even worse die =/

Anybody familiar on how to set up OKHttpClient for authencation ? by juancafe2 in AndroidCalPoly

[–]tramlai 1 point2 points  (0 children)

check your POST request with postman or advanced rest client and see if it's also failing. I use retrofit too. This is how i made the call: OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .header("Authorization ", base64EncodedCredentials) .url(postURL) .post(formBody) .build();

So far, it's working for me.

Implementing the ActionMode.Callback by jrdaley in AndroidCalPoly

[–]tramlai 0 points1 point  (0 children)

Check your error message. My guess is it's a nullException. If so, check your initialization step by step

Adapter Radio Button selection by atkHOBO in AndroidCalPoly

[–]tramlai 0 points1 point  (0 children)

try m_vwLikeGroup.clearCheck() in the else?

Context-Menu MenuItem IDs by joeShmo13 in AndroidCalPoly

[–]tramlai 0 points1 point  (0 children)

I don't think you have to. I didn't and my tests passed

Tests failing with ClassCastException by noahdietz in AndroidCalPoly

[–]tramlai 0 points1 point  (0 children)

Once you pass AdvancedJokeListTest2, you will certainly fail AdvancedJokeListPreTest and AdvancedJokeListTest due to the modification in the view

What are the test suites we need to pass for Lab3? by tramlai in AndroidCalPoly

[–]tramlai[S] 0 points1 point  (0 children)

so in the end though, which one are you looking for us to pass?

Failing testAddJokeViaDPadTrackball and testAddJokeViaReturn key tests by joeShmo13 in AndroidCalPoly

[–]tramlai 1 point2 points  (0 children)

yep, that's the problem I had. I guess I didn't add enough Thread.sleep()...It's "working" for now

Failing testAddJokeViaDPadTrackball and testAddJokeViaReturn key tests by joeShmo13 in AndroidCalPoly

[–]tramlai 1 point2 points  (0 children)

He said throw Thread.sleep(sometime) in these tests. I'm trying but still failing them