GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bostonandroid/TimePreference: Make your time ... as a preference!

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
TimePreference
TimePreference
 
 
TimePreferenceTest
TimePreferenceTest
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README
README
 
 

Repository files navigation

In Eclipse with your project open:

  1. In the Package Explorer right click on your project and select "Properties".
  2. Select "Java Build Path" -> "Libraries".
  3. "Add External JARs..." then select the TimePreference.jar file.

In your activity that descends from PreferenceActivity:

  import org.bostonandroid.timepreference.TimePreference;
  
In your preference XML:

  <org.bostonandroid.timepreference.TimePreference
     android:key="alert_at" android:title="@string/alert_at"
     android:defaultValue="14:01" />

To quickly get the Time selected for "alert_at", in your PreferenceActivity:

  TimePreference.getTimeFor(
    PreferenceManager.getDefaultSharePreferences(this),
    "alert_at");

To set the time use .setTime(String).


To make the JAR:

With just the TimePreference source code loaded in Eclipse:

  In the Package Explorer right click on the "default.jardesc" file and select "Create JAR"

About

Make your time ... as a preference!

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

7 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.