Code Monkey home page Code Monkey logo

mobile-android's People

Contributors

asoberlin avatar cbhl avatar dontcallmedom avatar httpdispatch avatar hussanhijazi avatar iamhashaan avatar jmathai avatar pas256 avatar patricksan avatar pboos avatar zedascouves avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobile-android's Issues

Error when log out and log in

The credentials and url is not refreshed during different users sessions. Let's get the value all the time from:

 PreferenceManager.getDefaultSharedPreferences(...)

The network time is extremely slow compared with this request.

Duplicate photo uploaded when auto upload is enabled

Reproduce.

  1. Latest version of app
  2. Enable auto upload
  3. Use the OpenPhoto app to take a photo
  4. Notice immediately that the photo begins to upload (before hitting upload)
  5. Press upload and notice it start to upload again (i left it private)

The last two photos say the upload failed on my phone in the notification bar but when I check the website it shows 3 duplicates of both photos.

http://test.openphoto.me/photos/list

Auto upload not sending photo data

When auto upload is enabled and a photo is taken with the native camera app it processes the upload. However, there's an error on the backend and dumping out the $_FILES array shows that the file isn't being sent properly. I believe this is a problem with the app since uploading from within the app works okay.

array (\n  'photo' => \n  array (\n    'name' => 'IMAG0345.jpg',\n    'type' => '',\n    'tmp_name' => '',\n    'error' => 3,\n    'size' => 0,\n  )

Per the PHP documentation error no. 3 is a partial file upload.

http://php.net/manual/en/features.file-upload.errors.php
UPLOAD_ERR_PARTIAL
Value: 3; The uploaded file was only partially uploaded.

Duplicate photos disallowed by default

If a duplicate photo is posted to the upload API it will return a 409 conflict response.

Eventually we may want to include messaging to differentiate this from other errors.

openphoto/frontend#43

Auto upload taken pictures

If enabled in settings, automatically upload pictures taken with the android phone to the openphoto server. It will add a tag "autoupload" or whatever tag specified in settings.

pboos already has implemented that with flickr and will copy that code into this project.

Activity feed on home tab

We'll want to include recent activity on the home tab. These APIs are being tracked in openphoto/frontend#498.

iOS equivalent at openphoto/mobile-ios#88

Upload Image: Use UploadService in background

When uploading a picture through the app, do not show a blocking progress dialog. Instead use the UploadService. But for that the progress and error handling there needs to be implemented already (see #7 and #8 )!

So it will look the following to the user:

  1. User fills out everything for the upload
  2. Click on Upload
  3. Upload window closes immediately with message, that it is uploading in background
  4. UploadService is called to upload
  5. UploadService shows a notification which shows the progress of the upload(s) (if many they are queued).
  6. UploadService shows a done notification when success
  • Or if it failed it shows a error notification which will bring the user back to the activity if clicked

OpenPhoto icon gets cut off at bottom

The logo/icon gets slightly cut off at the bottom of the circle. This happens everywhere I've seen it such as the home screen and the icon when present in the notification bar while uploading.

thumnails not loading

When i first open the app the thumbnails load up ok but if I exit the app and then open it again they fail to load. I have to force stop in my apps management and then they will reload again.

BrowserID alternative for mobile applications

There are random issues with BrowserID on mobile applications. Below is a proposal to resolve it.

  1. Require the user to log into their OpenPhoto account (ideally from a non mobile device).
  2. Under their settings page they can generate a 6 character "mobile passphrase" which lasts 15 minutes. After 15 minutes the passphrase is invalidated.
  3. From the mobile application the user is redirected to the same oauth page with an additional mobile=1 parameter.
  4. Instead of seeing the "sign in" link the user will be prompted to input their mobile passphrase.
  5. Once entered the user will be authenticated and can complete the OAuth flow without invoking BrowserID.

I believe this is secure and resolves the issues we're seeing not only on Android but also on iOS.

CC @patricksan & @pboos for comments.

Refresh tab when it's selected

When I click the photos/tags/home tag it should refresh. Another option is to add refresh into the menu bar. Not sure which is more common on Android.

Unable to login HTC One X and Asus transformer prime.

Hi I have an asus transformer and HTC One X.

Both run ICS 4.0.3 and on both I can't login using the app.

I downloaded the latest app from the repo and that did not solve my issue.

let me know how I can debug this for you.

Lance

Uploading photo does not work

Moving from email to this issue.

{
  "message":"oauth_problem=signature_invalid&debug_sbs=POST&http%3A%2F%2Fcurrent.openphoto.me%2Fphoto%2Fupload.json&description%3D%26oauth_consumer_key%3D487eee32b4dce22b0b78c217aa9326%26oauth_nonce%3D1276576652435996063%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1318595671%26oauth_token%3Da8291920e569f6b7788a3924db3bb9%26oauth_version%3D1.0%26permission%3D0%26tags%3D%26title%3D",
  "code":403,
  "result":null
}

Allow photos to be zoomed

In the image detail view where the photo is displayed the user should be able to zoom into the photo. This with the normal touch zoom gestures.

Do url encoding when uploading photo

I/UploaderService( 5071): Starting upload to OpenPhoto: file:///mnt/sdcard/DCIM/Camera/IMG_20111115_185218.jpg
D/UploaderService( 5071): Connectivity changed to online
I/ActivityManager(  183): Displayed me.openphoto.android.app/.MainActivity: +738ms
E/UploaderService( 5071): Could not upload the photo taken
E/UploaderService( 5071): java.lang.IllegalArgumentException: Illegal character in query at index 67: http://current.openphoto.me/photo/upload.json?tags=tokyo&title=Good night Tokyo&description=After some work on OpenPhoto on my way back home.&permission=1
E/UploaderService( 5071):       at java.net.URI.create(URI.java:776)
E/UploaderService( 5071):       at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:79)
E/UploaderService( 5071):       at me.openphoto.android.app.net.ApiBase.createHttpRequest(ApiBase.java:139)
E/UploaderService( 5071):       at me.openphoto.android.app.net.ApiBase.execute(ApiBase.java:99)
E/UploaderService( 5071):       at me.openphoto.android.app.net.OpenPhotoApi.uploadPhoto(OpenPhotoApi.java:196)
E/UploaderService( 5071):       at me.openphoto.android.app.service.UploaderService.handleIntent(UploaderService.java:104)
E/UploaderService( 5071):       at me.openphoto.android.app.service.UploaderService.access$0(UploaderService.java:93)
E/UploaderService( 5071):       at me.openphoto.android.app.service.UploaderService$ServiceHandler.handleMessage(UploaderService.java:54)
E/UploaderService( 5071):       at android.os.Handler.dispatchMessage(Handler.java:99)
E/UploaderService( 5071):       at android.os.Looper.loop(Looper.java:130)
E/UploaderService( 5071):       at android.os.HandlerThread.run(HandlerThread.java:60)

Test: Auto upload

Write tests for auto upload functionality

To test:

  • provider
  • broadcast receiver
  • upload service

Test builds

would be nice if there was newer test builds, so we can test it and give feedback
the one here on github is an ancient alpha build

Auto upload issue

After I take a picture auto upload of the image to openphoto starts. I then get a message stating it has failed. The app then continually keeps trying to upload the image but failing. When I then check my open photo account it has been uploaded multiple times and I have multiple copies of the image in my dropbox account.

Asynchronous photo uploads

Allow the user to start uploading a photo and continue using the app. Should also be able to take another photo and upload it simultaneously.

Unsure what amount of effort this requires...

See openphoto/mobile-ios#40 for the iOS version of this bug.

Upload retry can be problematic

I recently was stuck in an upload loop where the app thought the upload failed (when it succeeded) so it kept trying and duplicating the photo. Is this because the return code for uploads changed?

Maybe related to #29 but I don't believe it's a dup.

Unable to login Sony Xperia (Gingerbread - 2.3.3)

Hi,

I tried to login using my Open-Photo id: "mudit.openphoto.me" but when i press "Login" button on the app it redirects me to a new page [URL: http://mudit.openphoto.me/v1/oauth/authorize?mobile=1&name=OpenPhoto Android App&oauth_callback=openphoto://callback].

The Page says "You need to sign in to create an app." and when i presses the sign in link below - nothing happens.

I checked the code of Android app:

when clicking on "Sign in" link, the code control is not going inside "shouldOverrideUrlLoading" function of WebViewClient.

Small font sizes in Honeycomb

When setting up and logged into the app on a honeycomb tablet, the text is small and hard to read and all to the left.

It should probably be made flexible and set center instead of left. Can the font size be set to a relative size so it adjusts based on screen size?

https://twitpic.com/7ciavj

Uploading of images of newer photos not working

I have uploaded loads of photos to my hosted openphoto account and all is working well.

When I open the newer version of the android app thumbnails fail to upload until i get to photos that were taken on the 11th Feb. I just get black thumbnails on the photos that I have uploaded since then. If i click on the black thumbnail it says loading but nothing loads up. Not sure why this happening, the only thing I can think of that has changed is that I have installed the openphoto dropbox app on my hosted account. I have tried deleting the photos I had uploaded via that method and then uploaded them via the hosted account site but that still didnt work.

Also when i click on the home tab no image loads up, I just get a white page with the openphoto logo at the top and the three tabs at the bottom.

As I say all is working well on the beta PC version and the images appear on there fine, just not on the android app.

HTC Desire S, Android version 2.3.5

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.