My studying notebook

Showing posts with label iOS. Show all posts
Showing posts with label iOS. Show all posts

2014/02/02

[Cydia] How to export Audio Record m4a directly.

2/02/2014 11:19:00 PM Posted by Unknown , , 1 comment
iOS Audio Record Cydia tweak is very a awesome tool to record voice phone call with ease. You all need to do is clicking the record button. There is a more detail introduction ( Record iPhone Calls With Audio Recorder – Free & No Warning | iPhone4idiots : http://www.iphone4idiots.com/2013/04/record-iphone-calls-with-audio-recorder-free-no-warning/)

Send m4a file via Email

Audio Record tweak default let you can send voice recording via email as following snapshot show. But you will not be able to send voice recording m4a file when file is too big.

Export m4a file via iFile/iTools etc tools

If we can not send voice recording file via email. You might think that we could get file directly. How do we do? In Audio Recorder list view. When you click shark button. Audio Recorder might take some time prepare data (m4a file) for sending via Email. Audio Recorder will create two m4a file in /var/tmp as following snapshot show. Both of them are same. 

Audio Recorder m4a file path

/var/tmp

2012/05/26

[Titanium]iOS: App build fails on Snow Leopard/iOS 4.3 configured machine

5/26/2012 04:55:00 PM Posted by Unknown , , 2 comments
OS
  • Lion 10.7.4
  • xCode 4.3
iPhone Simulator


Titanium SDK 1.7.5, 1.8.2, 2.0.1GA and 2.0.1.GA2. Everything does work on iPhone Simulator. But, it is very SLOW when you want to rebuild project or debug it.


Install to iOS Device

I got an error message below when i want to install project to iOS device in the couple days.  It success when i choose Titanium SDK lower 1.8x.

[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/NetworkModule.m:252:44: error: use of undeclared identifier 'UIRemoteNotificationTypeNewsstandContentAvailability' [2]
[ERROR] /Users/timothy/Documents/Titanium Studio Workspace/Scratch/build/iphone/Classes/NetworkModule.m:304:33: error: use of undeclared identifier 'UIRemoteNotificationTypeNewsstandContentAvailability' [2]
[ERROR] 
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1318, in main
execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s %s" % (log_id,sdk_version,debugstr,kroll_coverage)],False)
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/builder.py", line 1224, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120410131722/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65

Finally, i got the solution when i search an issue tracker in appcelerator. This bug has fixed in Release 2.1.0.

Reference

2011/09/22

[Notebook] How to setup iphoneofflinemap on your iPhone, cydia requirement.

9/22/2011 11:47:00 PM Posted by Unknown , , , , 3 comments

Smart phone map App may have already improved your life experience if you ever used it. You can check map anytime and anywhere on your smart phone but internet necessary. Offlinemap let you can check map without internet. It's very convenient to you when you are in oversea or can't access the internet. 

iphoneofflinemap is an iphone cydia app that you can put offline map grabbed from Google map using GMDL (Global Map Download Tool)

simple scenario 

preparing necessary tools → backup current iphone cache map → Download target offline map → modify downloaded map → upload to iPhone → setup bookmark → respring

Step1.Getting started. You need to download few tools.
  1. GMDL (Global Map Download Tool). In iphoneofflinemap project. issues 59 reported: downloaded map doesn't work with ios4. Someone update a GMDL ip4 v10 hack. You can download hacked version here that you don't need to convert maps by mapconverter anymore.
  2. SQLite manager Firefox extension that you can modify downloaded map.
  3. iFunbox that you can upload offline maps to your iPhone very easily.
  4. install iphoneofflinemap app in cydia
Step2. backup iPhone current cache map.
Attache iPhone to computer and backup "/var/mobile/Library/Caches/Map/MapTiles/MapTiles.sqlitedb"  (this is original iPhone cache map)  by iFunbox.

Step3. Grab target offline map you want to download. 
  1. Download maps by GMDL.
  2. Convert maps tiles in an SQLite DB. The only one thing you should notice is locale. "en_TW" for example.

  3. In output folder. You can see "com.apple.Maps" and "MapTiles.sqlitedb". done.
Step4. Modify download maps.
  1. Open backup cache map earlier (original MapTiles.sqlitedb) by Firefox SQLite manager can check version and locale.

  2. Modify downloaded MapTiles.sqlistedb version and locale same as cache map.
Step5. Upload offline map to your iPhone.
  1. put target offline maps MapTiles.sqlitedb to "/var/mobile/Media/Maps/ChiMai". If Media don't have "Maps" folder, create one and put maps on folder you want by iFunbox.
Step6. Setup offline map bookmark.
Without internet access. you still can view map with GPS but search and direction. Therefore, it's better to put some map books in offline map also.

  1. you can visit Google Map (my places) and make some placemarks in maps called "Thailand trip" for example.

  2. copy KML address and visit (http://vcenter.iis.sinica.edu.tw/mobile/kml/loadkml_map.html) to convert those placemarks to iPhone plist.

  3. upload Bookmarks.plist to "/var/mobile/Library/Map" (it's better to backup original one)
Step7. respring (it's very important).
  1. open iphoneofflinemap (atlas) on iphone and "remove all  caches".
  2. type your map and select copy
  3. select "Continues". Do NOT select "Map" directly. 
  4. respring your iPhone 
  5. turn off 3G, WiFi and Data. You can use offline map now.
Result.