Skip to content

jbbeirnaert/AJOL-Android-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AJOL-Android-App

Ajol Paper is an android mobile application that allows the user to customize the device's wallpaper so it changes depending on the device's location. The source code for the project is in the Ajol Paper 2 directory (we never got around to deleting the other one).

Known Issues

  • Device location: the lastKnownLocation() function that we use doesn't actually determine the device's location, but rather checks whatever position was returned by the last app on the phone that determined it. This means that if Ajol Paper is the first application opened after connecting to a network, the device's location is unknown.

  • Images: we can't store URI references to the photo gallery in the database because they have limited access time-wise. Once the activity that pulled that image from the gallery ends, so does the access with that URI. We also can't really store copies of the images in the database because SQLite cursors have a size limit of 1MB. Images larger than that cause errors when the app tries to read from that cursor. This is what Ajol Paper does currently. SOLUTION: get path to image and use that instead of the uri.

  • Map Display: The existing wallpapers are not displayed on the map the first time the app is opened. It should be reloaded after permissions are granted. Newly added/modified wallpapers also don't show on the settings activity map, which might be fixed if SettingsActivity had a publicly accessible static variable to keep track of whether the map should be reloaded.

  • Map Interaction: If the user clicks on a point in the map in settings the modify/add activity should be started and passed the wallpaper info or new location.

  • Photo Selection: When the user selects a photo in the modify activity the onActivityResult() method from the photo picker stalls the UI thread. I'm not completely sure why. I tried to use AsyncTasks but I'm not sure if I used them correctly. SOLUTION: I partially handled this problem by lowering the image resolution in the preview.

  • Stalls: The app does not handle asynchronicity very well with loading images, so the app will easily stall for a few seconds when it encounters any heavy processing/interaction (like scrolling in the list view). SOLUTION: asynchronous loading of images would help greatly, as well as using recycler views for the list view items.

  • List Empty: We never added a view to say the wallpapers or defaults database tables are empty.

  • UI: The user interface still lacks some key improvements, many of which were suggested by the Human-Computer Interface review group. Principally, there is still no help menu, the settings activity confusingly shows a map of wallpapers, buttons to view the database, and preference toggles all in the same screen, and the modify activity's save button doesn't bring the user back to the list view.

Tasks

  • User Interface
    • main/settings layout
      • include map
      • defaults toggle
      • refresh time input field
      • wallpapers button
      • defaults button
      • save button
    • list layout
      • toolbar
        • search bar
        • navigation to settings
      • list item
        • wallpaper name
        • image
        • radius
        • edit button
        • delete button
      • list-empty view
      • scrollable
      • clickable
      • use item.image
    • modify layout
      • include map
      • wallpaper info
      • save button
      • map displays wallpapers
      • map.onclick() -> changes desired x and y coordinates
    • link activities together
      • settings -> modify
      • settings -> list
      • list -> settings
      • list -> modify
      • modify -> settings
      • modify -> list
  • Persistent Storage
  • Enable UI buttons
    • settings
    • list
    • modify
  • Background App
    • track device location
    • compare location to wallpapers.locations
    • update device wallpaper
  • Device Location Integration
    • ask permission in activity
    • google maps api key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages