Back to project page sana.
The source code is released under:
Copyright (c) 2010, Moca All rights reserved. The source code for Moca is licensed under the BSD license as follows: Redistribution and use in source and binary forms, with or without modification, ...
If you think the Android project sana listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
??p a c k a g e o r g . m o c a . a c t i v i t y ; i m p o r t a n d r o i d . g r a p h i c s . T y p e f a c e ; i m p o r t a n d r o i d . w i d g e t . B u t t o n ; i m p o r t a n d r o i d . w i d g e t . T o a s t ; //w w w .java 2 s . c o m i m p o r t o r g . m o c a . C o n s t a n t s ; i m p o r t o r g . m o c a . R ; i m p o r t o r g . m o c a . d b . M o c a D B . N o t i f i c a t i o n S Q L F o r m a t ; i m p o r t o r g . m o c a . d b . M o c a D B . P r o c e d u r e S Q L F o r m a t ; i m p o r t o r g . m o c a . d b . M o c a D B . S a v e d P r o c e d u r e S Q L F o r m a t ; i m p o r t o r g . m o c a . s e r v i c e . B a c k g r o u n d U p l o a d e r ; i m p o r t o r g . m o c a . s e r v i c e . S e r v i c e C o n n e c t o r ; i m p o r t o r g . m o c a . s e r v i c e . S e r v i c e L i s t e n e r ; i m p o r t o r g . m o c a . t a s k . C h e c k C r e d e n t i a l s T a s k ; i m p o r t o r g . m o c a . t a s k . M D S S y n c T a s k ; i m p o r t o r g . m o c a . t a s k . R e s e t D a t a b a s e T a s k ; i m p o r t o r g . m o c a . t a s k . V a l i d a t i o n L i s t e n e r ; i m p o r t o r g . m o c a . u t i l . M o c a U t i l ; i m p o r t a n d r o i d . a p p . A c t i v i t y ; i m p o r t a n d r o i d . a p p . A l e r t D i a l o g ; i m p o r t a n d r o i d . a p p . D i a l o g ; i m p o r t a n d r o i d . c o n t e n t . D i a l o g I n t e r f a c e ; i m p o r t a n d r o i d . c o n t e n t . I n t e n t ; i m p o r t a n d r o i d . c o n t e n t . D i a l o g I n t e r f a c e . O n C l i c k L i s t e n e r ; i m p o r t a n d r o i d . n e t . U r i ; i m p o r t a n d r o i d . o s . B u n d l e ; i m p o r t a n d r o i d . p r e f e r e n c e . P r e f e r e n c e M a n a g e r ; i m p o r t a n d r o i d . u t i l . L o g ; i m p o r t a n d r o i d . v i e w . M e n u ; i m p o r t a n d r o i d . v i e w . M e n u I t e m ; i m p o r t a n d r o i d . v i e w . V i e w ; i m p o r t a n d r o i d . w i d g e t . T e x t V i e w ; i m p o r t a n d r o i d . g r a p h i c s . T y p e f a c e ; / * * * M a i n M o c a a c t i v i t y . W h e n M o c a i s l a u n c h e d , t h i s a c t i v i t y r u n s , a l l o w i n g t h e u s e r t o * e i t h e r r u n a p r o c e d u r e , v i e w n o t i f i c a t i o n s , o r v i e w p e n d i n g t r a n s f e r s . * / p u b l i c c l a s s M o c a e x t e n d s A c t i v i t y i m p l e m e n t s V i e w . O n C l i c k L i s t e n e r { p u b l i c s t a t i c f i n a l S t r i n g T A G = M o c a . c l a s s . t o S t r i n g ( ) ; / / O p t i o n m e n u c o d e s p r i v a t e s t a t i c f i n a l i n t O P T I O N _ R E L O A D _ D A T A B A S E = 0 ; p r i v a t e s t a t i c f i n a l i n t O P T I O N _ S E T T I N G S = 1 ; p r i v a t e s t a t i c f i n a l i n t O P T I O N _ S Y N C = 2 ; p r i v a t e s t a t i c f i n a l i n t O P T I O N _ L A N G U A G E = 3 ; / / A c t i v i t y r e q u e s t c o d e s p u b l i c s t a t i c f i n a l i n t P I C K _ P R O C E D U R E = 0 ; p u b l i c s t a t i c f i n a l i n t P I C K _ S A V E D P R O C E D U R E = 1 ; p u b l i c s t a t i c f i n a l i n t P I C K _ N O T I F I C A T I O N = 2 ; p u b l i c s t a t i c f i n a l i n t R U N _ P R O C E D U R E = 3 ; p u b l i c s t a t i c f i n a l i n t R E S U M E _ P R O C E D U R E = 4 ; p u b l i c s t a t i c f i n a l i n t S E T T I N G S = 6 ; / / A l e r t d i a l o g c o d e s p r i v a t e s t a t i c f i n a l i n t D I A L O G _ I N C O R R E C T _ P A S S W O R D = 0 ; p r i v a t e s t a t i c f i n a l i n t D I A L O G _ N O _ C O N N E C T I V I T Y = 1 ; p r i v a t e s t a t i c f i n a l i n t D I A L O G _ N O _ P H O N E _ N A M E = 2 ; p u b l i c s t a t i c i n t l a n g = 0 ; p r i v a t e S e r v i c e C o n n e c t o r m C o n n e c t o r = n e w S e r v i c e C o n n e c t o r ( ) ; p r i v a t e B a c k g r o u n d U p l o a d e r m U p l o a d S e r v i c e = n u l l ; p r i v a t e c l a s s B a c k g r o u n d U p l o a d e r C o n n e c t i o n L i s t e n e r i m p l e m e n t s S e r v i c e L i s t e n e r <