From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: Org-mode contacts to Android Date: Sat, 01 Jun 2013 08:23:26 +0800 Message-ID: <87li6u8yrl.fsf@news.tumashu-localhost.org> References: <87li6yx8u9.fsf@news.tumashu-localhost.org> <87wqqhlchq.fsf@tanger.home> <2013-05-30T19-33-07@devnull.Karl-Voit.at> <874ndk9fov.fsf@tanger.home> <2013-05-31T11-39-01@devnull.Karl-Voit.at> <87txlj5lyo.fsf@news.tumashu-localhost.org> <2013-05-31T23-39-39@devnull.Karl-Voit.at> <87obbq6ay7.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiZcj-0004fC-91 for emacs-orgmode@gnu.org; Fri, 31 May 2013 20:24:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiZce-0005kS-BO for emacs-orgmode@gnu.org; Fri, 31 May 2013 20:24:45 -0400 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:60052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiZce-0005kJ-3X for emacs-orgmode@gnu.org; Fri, 31 May 2013 20:24:40 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc17so3020703pbc.18 for ; Fri, 31 May 2013 17:24:39 -0700 (PDT) Received: from tumashu ([110.97.85.56]) by mx.google.com with ESMTPSA id eq4sm9974778pad.16.2013.05.31.17.24.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 17:24:38 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UiZbS-00086k-BA for emacs-orgmode@gnu.org; Sat, 01 Jun 2013 08:23:26 +0800 In-Reply-To: <87obbq6ay7.fsf@news.tumashu-localhost.org> (Feng Shu's message of "Sat, 01 Jun 2013 06:28:32 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Feng Shu writes: > Karl Voit writes: > >> * Feng Shu wrote: >>> Karl Voit writes: >>> >>>> In the future, I plan to add a workflow that gets contact >>>> information form Org-mode (my central point of information) to my >>>> phone and so forth. >>> >>> If you use android phone, you can write a function >>> "org-contacts-export-to-sqlite3" which can export org-contacts to >>> android contacts.db >> >> Yes, I am using Android on my phone. >> >> No, I am not able to write a sqlite3 export in ELISP because I don't >> know ELISP (yet) :-( >> >> However, why should I? You mentioned your VCard export method in >> another email here. This sounds reasonable to me. I guess, I have to >> test this method on my Android as well some time. > > The reason: > 1. speed: very slow when import vcf to android(>100 contacts) > 2. automatic: If we export to db directly, we only need update db to > android phone,and don't need to run Vcardio in the phone > > > Maybe we can do like this: > > org-contacts -> vcf file ---vcf to sqlite3 command--> db --> push to android! I'm very interested in integrating org and android phone effectively, so I want to share the solutions with others who are using android phone and org-mode! I changed my setting again for unstable WIFI connection! Integrating android phone with org has many details to resolve: 1. speed(import vcf, import org file to org-mobile and so on) 2. WIFI problem! 3. Battery (I think this should be pay more attention when we use WIFI, I use android app: Better Wifi on/off) 4. maximum possible automation. This is my new solution: 1. I use botsync, pull all my agenda.org to my phone by sshd in computer 2. Change the keybinding "g" in the agenda buffer, #+begin_src emacs-lisp (org-defkey org-agenda-mode-map "g" (lambda () (interactive) (org-agenda-redo t) (org-contacts-export-as-vcard) (org-mobile-push))) #+end_src --