Related
Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
porting your iphone add to android
hi there,
i'm a android programmer and did many games already. you can see my games at:
not sure you still need help to port your iphone app to android. may be you can send me the source code. i can do it for you. very easy for me.
Tony Chan
[email protected]
Android uses java syntax and java libraries
so if you like java, then you would probably like android
layouts are done in XML
chingy1788 said:
Android uses java syntax and java libraries
so if you like java, then you would probably like android
layouts are done in XML
Click to expand...
Click to collapse
hehe well said
I don't think anybody can tell you what you need to do. Just start by reading through all of this: http://developer.android.com/guide/topics/fundamentals.html and you should be able to handle this.
Note: your application appears to be trivial.
One thing that I suggest is that you forget about locally-stored web pages and just rewrite those pages in Android/Java. The reason I suggest this is that unlike apple, you can't make any assumptions about what browser the user has installed (if any), or what rendering engine their browser happens to have, or javascript engine, etc. There are AT LEAST three different rendering engines in use on Android, including khtml, gecko, and presto. There are at LEAST two different JAVASCRIPT engines, including SquirrelFish and V8, and soon you will be able to add SpiderMonkey to this list (when Firefox launches). And no, you can't force your application to call on a particular browser since this would violate the modularity designed into the platform.
DANNEMAN101 said:
Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
Click to expand...
Click to collapse
look at the NDK
Freedomcaller said:
look at the NDK
Click to expand...
Click to collapse
The NDK is *NOT APPLICABLE*.
Why don't you create a converter from iPhone to Android? There are few Italian app.. only this is better than Android for Italian user.. but I love Android!
I have an app that has been created for android, and I need help creating it for the iphone. I'll share the source code if someone will create the app for me please.
DANNEMAN101 said:
Hi!
Ive just finished an iPhone-application, and Im looking into the possibility to convert it to an android-application.
Let me tell you the basic structure of the app:
- It has a simple drill-down-menu, with three levels of lists. Pressing a list-item will bring you deeper down into the hierarchy, and pressing a back-button will take you up a step.
- At the bottom of the hierarchy is a webview that loads a unique webpage depending on the hierarchical path the user has taken. These web-pages (html and javascript) are all localized on the device so it never goes online.
- The webpages has two main resources: images, and sound (mp3). The sound should be playable from within the webpage. All these resources are also loaded from the device.
- When exiting the app, it should save its location and when relaunched it should reopen that location.
As you can see, its a pretty simple application. Im wondering if anybody could detail a little what I need for this to come alive on Android. Perhaps the application-layout Im after is so generic, even, that there is a template for this?
My background as a programmer is mostly C++ and C#, so Im more at home with the Java-syntax than the awful Objective-C that iPhone uses.
So far Ive installed the development-environment, and have tried out the basic "Hello Android"-sample. Thats about it for the moment.
Click to expand...
Click to collapse
Is it possible to post this in the Q&A and not development section?
sparksco said:
Is it possible to post this in the Q&A and not development section?
Click to expand...
Click to collapse
This is from the first half of 2009, I highly doubt that they care where it should be posted (now).
Converting iPhone app to Android will be greate.
I would like to have All My Recipes iphone app in my Galaxy Tab
It was be great if somebody can port the secret of mana game from iphone to android ! =)
This is a little project i've been working on and i thought it was ready enough to be released into the wild. Below is the readme file. I think it covers everything for now. Before posting please read the first 3 posts - especially post 3 - if it is obvious that you haven't done this i will not respond with any form of help and i don't not expect any of the users to do so either.
----------
Included with this zip file are several .cab, .reg and .xml files that will automatically configure your NRGZ28 energy rom when XDA_UC runs upon first boot after flashing.
Included are the following configuration files
activesync.xml
This will configure your MS Exchange settings. Editing with your personal settings is required. Look for the username, server, domain and password tags at the start of the file
aGPS.reg
Enables aGPS
BackLight.reg:
Sets backlight to auto. There are some other settings included for dim and light off times when on battery and AC power aswell
bt_ident.reg
Sets the Bluetooth Identity. Edit the deviceid line to suit
copy.mscr
Copies files from the copy2root folder to the matching location in device storage. A My Documents folder with My Ringtones and My Wallpapers sub folders have been created already. Place you ringtones and wallpapers in these folders. There is also an application data folder which contains a coreplayer config.xml and a program files folder which contains a myPlayer options.ini. Feel free to create more. Thanks to nrfitchett4 for providing this script.
Del.mscr
This file will remove all unwanted ringtones, wallpapers and any other files you decided to add. Edit as you need to. N.B any readonly files will need attributes changed before they can be deleted.
DisableSenseVsync.cab
Disables Vsync in sense increasing the framerate thus making it faster
HD2MemTweaks.cab
Increase's glyphcache size past the bsb tweaks and advanced config defaults, incrases filesystem cache size and a few other bits. This cab file is optional. Delete it if you don't want it. Thanks go out to g.lewarne for documenting the tweaks
HTCAlbumIgnore.reg
Stops the sense music player playing ringtone files from \My Documents\My Ringtones\ and \storage card\ringtones. Copy the examples
if you want to add to it.
M3PH HTC Location Service Enable.cab
Enables HTC location Service and automatically excepts the TOS
ident.reg
Changes the phones identity at first boot. If NRGZ28 won't make it sensible i'll make it so we can customise it . Editing required. this one is pretty obvious
Palringo.reg
Sets up palringo, sorta, change [email protected] to your user name and it should show up at sign in. All you need to do is enter your password
QuickGPS.reg
Enables and configures QuickGPS with the defaults
Ringtones.reg
Configures the ringtone, sms tone and email tone. Needs some editing but you only need to change the file name for each entry, not the
path. The Ringtone2 entry allows for second ringtone to be added to the list of usable ones so you change them with too much fuss.
Also enables flashing light on sms reception for 5 minutes.
wifi_setup.xml
wifi settings. Edit required. This link should help you set it up (see post 3 for details on how to edit)
M3PH Enable Time Auto Update.cab
Enables NTP
Volume.Reg
Sets the volume levels. You can use this one or export your own from HKEY_CURRENT_USER\ControlPanel\Volume
Windows live.reg
Pretty much configures windows live. You do still need to enter your password and you will also need to do atleast one manual sync before Sense will create the mailbox on the email tab but otherwise it works
Opera User Agent String folder
See the readme.txt in that folder
Sense Folder
If you put your wallpaper in this folder it will be installed as the sense default. Just rename it to sense_wallpaper.png.
Start Menu folder
Copy Start Menu shortcuts here
----------
If you like this or any of my other work click the "donate to me" link above my avatar
----------
REMEMBER THIS COLLECTION OF FILES IS PRESENTED AS IS UNDER THE GNU GPLv2. IT IS BETA SOFTWARE AND COMES WITH NO WARRANTY OR ANY FORM OF OFFICIAL SUPPORT. I, M3PH, SHALL NOT TAKE RESPONSIBILITY FOR ANY DAMAGE OR DATA LOSE THAT MAY OR MAY NOT OCCUR TO YOUR DEVICE.
Change Log
Change Log:
1.1.1 Final
Removed Keyboard sensitivity tweaks
Removed opera memory tweaks
Added more palringo settings
Added Quick shutdown settings
1.1 Final
Updated volume.reg to default to seperate system and ring volume controls.
Removed all tweaks now included in Energy roms dated nov30 and newer. I will leave v1.0 posted for a while so people that like to install older versions still get the benefit
1.0 Final
Added Windows_live_settings.reg. You will need to edit it as prescribed on page 16 but it will work.
Added Improved GPS settings.cab. This is untested by me but i trust scabes24 enough to know he's not going to pass on unreliable tweaks
Improved M3PH Location Service enable.cab: Added an extra registry setting that should trigger Manila to showing it's on. This is doubtful but even if it doesn't the file does work
Added alarm_settings.reg: This is only an example file. You will need to export your own settings but this should be a reasonable starting point
Removed readme.txt: It was a habit a picked up from Linux development practices and was pointless for this project
Removed time.reg permanently because there is nothing changed in the registry when it is enabled.
--- Pre Final releases
Tips and Tricks
What follows are some tips and tricks i have found that i'm not going to include for whatever reason but thought some people might find handy or notes on what settings do what and their options.
Q. Can i delete file xyz using xda_uc because i like to have as much space as possible?
Yes you can. i found this link. All you need to do is create a file in the xda_uc folder with the extension .mscr which contains the following:
Code:
delete \test.txt, TRUE
or
Code:
deltree \test, TRUE
Obviously change test to the file or directory you want to delete. For more details check out the provided link above.
Q. The default wifi.xml doesn't match my configuration and i can't find a resource that tells me what are valid values for the options?
A. See this link and this one. As a note if you use WPA2 you need to use <parm name="Authentication" value="6" /> and WPA2-PSK is 7
Q. The exchange settings in activesync.xml aren't how i like them. Can i change them?
A. Sure can! Here's a link to the documentation
Q. I use a [enter service name here] and i want to create an xml file to configure it when i update my rom. Can i do this?
A. Thanks to microsoft developing WAP provisioning to an incredibly encompassing level you can do almost anything. See this link
Q. I want to make a cab file out of all my changes. How do i this?
A. There are many ways but i think this is the best one i've found because it doesn't involve any third party software and is really simple. All you need is the windows mobile sdk, which can be found here. You may also need visual studio but i'm not sure
Making either is very simple. You just pass a normal XML file to makecab and give it the name of the output file you want. The one trick is that the XML file must be named _setup.xml. If you call it something else, makecab will succeed, the CAB or CPF file will be generated fine, and then it will fail with a cryptic error when you try to use it. Beware, the documentation doesn't make this very clear.
The syntax for making a CAB file is:
Code:
makecab _setup.xml config.cab
Click to expand...
Click to collapse
Q. Wow you really do know a lot about this sort of stuff. How can i learn?
A. Well i don't know that much at all really, i just learn fast. Most of the stuff you see here was obtained from or via this MSDN article: http://msdn.microsoft.com/en-us/magazine/cc500581.aspx
Q. Is there a way to boost the performance of Opera in terms of memory/speed?
A. Yes, this cab will force Sense to unload when launching Opera, allowing for better performance while browsing. (When exiting Opera, Sense will then reload) (thanks to Scabes24 for this one)
Code:
[URL="http://www.megaupload.com/?d=O5O1RE97"]Enable Opera Max Memory Tweak.cab[/URL]
Q. I've installed the Opera tweak and everything is working fine, but the page loading seems very slow. Is there a way to improve this?
A. Yes you can, the following registry tweak will enable almost instantaneous web page loading in the web browser. It apparently enables wireless N mode but seems to work with cellular data too. Go to:
HKLM/Comm/BCMSDDHD1/Parms
11nModeDisable = Change from 1 to 0 (thanks to Scabes24 for this one aswell)
Q. My wifi hotspot uses EAP certification and i can't use it because the phone gives me a certificate verification failure error. What can i do?
This was posted in the energy rom thread
NRG, after weeks of not being able to connect to my work wireless network because I was getting a "certificate is from an unknown authority" error, I finally got it working. Can you add this key to your ROMs?
[\HKLM\Comm\EAP\Extension\25\]
"ValidateServerCert"=dword:00000000
This is where I found the answer:
http://social.msdn.microsoft.com/for...-3ebe003aa996/
Click to expand...
Click to collapse
Thanks to oppressa for hunting this one down. The tweak is included as an option in EXCT as M3PH EAP Cert Disable.cab
Here are some locations where 3rd party apps store their values. These were provided by angusc
CodeCity Time settings and Key Code:
[HKEY_CURRENT_USER\Software\CodeCity\CityTime]
Ageye G-Alarm settings and keycode:
[HKEY_CURRENT_USER\Software\ageye\G-Alarm]
Ageye G-Profile settings and keycode:
[HKEY_CURRENT_USER\Software\ageye\G-Profile_v1]
SK Manager settings and Keycode:
[HKEY_CURRENT_USER\Software\sk\smgr]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Rai\:S KSM]
SlingPlayer Login Details:
[HKEY_LOCAL_MACHINE\Software\Sling Media\SlingPlayer\SlingAccounts]
SPB Language Cards key code:
[HKEY_CLASSES_ROOT\CLSID\{F5C24D33-742A-41BC-BC22-1195BC138ECE}]
SPB Traveller Key Code:
[HKEY_CLASSES_ROOT\CLSID\{7D562A74-A69B-45F5-8D1F-20DABDCE2C76}]
SPB Wallet Key Code:
[HKEY_CLASSES_ROOT\CLSID\{A79D1B0D-2F6A-4E7E-AF94-5EEBC8BFD684}]
Sprite Back-up Key Code:
[HKEY_LOCAL_MACHINE\Software\Sprite Software\Sprite Backup]
RSS Hub Settings and Feed Storage Locations:
[HKEY_CURRENT_USER\Software\Ilium Software\RSS Hub]
SPB Traveller Settings:
[HKEY_CURRENT_USER\Software\Spb Software House\SPB Traveler]
Today Wall Paper Location:
[HKEY_CURRENT_USER\Software\Microsoft\Today]
KeyBoard Config by Tarkim (Settings):
[HKEY_LOCAL_MACHINE\Software\KeyboardConfig]
Resco Explorer Settings:
[HKEY_LOCAL_MACHINE\Software\Resco\Explorer]
Palringo Settings:
[HKEY_CURRENT_USER\Software\Parlingo\Settings]
Click to expand...
Click to collapse
The FAQ
Q. Will you include xyz tweak for me?
A. Only if it's a common one or one that i haven't thought of
Q. I use xyz program and i want to have the config file included in your great collection. What do ya' say?
A. See above but you could always spend 10 minutes tracking it down and then creating a folder in copy2root for it
Q. Why is the bluetooth identity the only tweak for BT you include?
A. Because everyones setup and hardware is far too different for it to be worth it. Also, Although you can export the pairings importing them may not be possible due to the way the bluetooth security protocols work.
(More To Come)
Happy to try this, thank you for cobbling everything together.
wow
this would be so handy, i hate spending time making your phone how you like it. I don't flash as often because i get too comfortable with the current configuration.
thanx M3PH
btw: without NRGZ28 i would have sold my HD2 7 months ago
grumpylad said:
Happy to try this, thank you for cobbling everything together.
Click to expand...
Click to collapse
No worries. I did it because i was getting annoyed with spending ages setting everything up and even more annoyed with people not reading the energy rom FAQ properly (i'm guilty of that too). I used the pre-release version last night after flashing the latest energy rom and it saved me in the region of an hour to an hour and a half. It's not perfect by a long way. Things like the sms led notification is enabled and some people may not like that but is is easily reverted with bsb tweaks.
My plans for the next version is to have all the reg files converted in to cab files for they can be removed and i'll tidy up the readme a bit.
One thing i would like help with though is the FAQ. Can the first few people take notes of any problems or questions they have and things or that nature.
Thanks everybody
Thank you, I'll try it out with the new Energy release. I'd be happy with the reg files to import it doesn't even need to be a cab!
Thanks!
lantern20 said:
Thank you, I'll try it out with the new Energy release. I'd be happy with the reg files to import it doesn't even need to be a cab!
Thanks!
Click to expand...
Click to collapse
Cab files are better because they can be removed and Reg files can't. So if one of these files causes a problem your stuck and that's why it's labeled as alpha software. Also labelling it as that will scare off the less experienced users from trying it and doing themselves a mischief.
V0.2 will be all cab files as far as possible but don't expect a release until 0.1 has had a thorough real world testing.
oh. it is better ,if i find this post eight hour ago.
it drives me nuts ,everytime i get into a new nrg rom.
thank you very much.
Great idea man, thank you so much for this!
Thanks a lot for this! It will definitely save me a lot of time after a rom update. I just have to hope I've set them up correctly and dont break something
Hello
This project is a very good project, I hope is work well
Is it compatible with other language ?
Ex : "Start Menu" folder in WWE Rom is "Menu Démarrer" In FR
Good luck.
@+
diamond_cbr said:
Hello
This project is a very good project, I hope is work well
Is it compatible with other language ?
Ex : "Start Menu" folder in WWE Rom is "Menu Démarrer" In FR
Good luck.
@+
Click to expand...
Click to collapse
no sorry as it stands it's wwe only. If you want to convert it to french and send it over to me i will post it.
yeoldgreat, if you would like to pm me your changes i will look them over.
Overall i'm really pleased with the response so far but i really do need everyones help with composing the faq because for me this works fine (apart from the unteseted bits because i haven't used them yet) so can all of you please, please, please make some notes on your progress and keep posting those questions
M3PH said:
Overall i'm really pleased with the response so far but i really do need everyones help with composing the faq because for me this works fine (apart from the unteseted bits because i haven't used them yet) so can all of you please, please, please make some notes on your progress and keep posting those questions
Click to expand...
Click to collapse
My temptation would be to assume that the FAQ is written for me if I can install and get it working anyone can. For instance in the wifi detailing where the various parm's can be found would make it much easier to install. Very happy to install on what you have and pass back any questions assumptions.
As I frequently flash(ROM's only) I can help with refining the documentation.
grumpylad said:
My temptation would be to assume that the FAQ is written for me if I can install and get it working anyone can. For instance in the wifi detailing where the various parm's can be found would make it much easier to install. Very happy to install on what you have and pass back any questions assumptions.
As I frequently flash(ROM's only) I can help with refining the documentation.
Click to expand...
Click to collapse
Sweet, thanks. That is exactly the sort of thing i'm looking for, because it's been over a year since i did any kind of manual writting i'm pretty rusty. It also doesn't i developed most of the parts in just over 24 hours working on my phone and not my pc everything is a bit scattered in my mind. That's the reason why the readme looks the way it does. It all came out in a bit of a splurge.
The wifi script is one of my older scripts and it took 3 attempts to get right and now i can't for the life of me find the resource on ms technet that i used.
I'll probably have a sitdown over the weekend and have a rerun through the readme and make it a bit more detailed. If i can make it as easy to install as possible then the faq won't be such an important thing
How many people want me to include a coreplayer config.xml in the next version? i've got one that works perfectly with myplayer and turbo3d.
Nice Work
I used a number of these to flash the latest Energy Rom and it worked out great. Very smooth! It will be interesting to see what is added on in the future. Thank you for putting the time in and starting a new thread.
jamesdee said:
I used a number of these to flash the latest Energy Rom and it worked out great. Very smooth! It will be interesting to see what is added on in the future. Thank you for putting the time in and starting a new thread.
Click to expand...
Click to collapse
I'm taking suggestions for additions. So how about one?
Very interesting sir!
I am going to flash the new Energy ROM either tonight or tomorrow and so will chuck this in with it.
I wont use several of them as I dont use those aspects, but those I do will return with feedback.
I have been frustrated with this as well.... fingers crossed.
Hi,
I'm a developper/system debugging on Android Gingerbread for new smartphones with Intel processors. I am currently integrating new components and middleware for Intel adaptation, especially in sound/audio domain. I am quite newbie on Android.
In the Android system, there are asset files to provide applications or service the method to get their ressources files like audio notification sound files.
My problem is that for a particular service, these asset files are not found and it takes some time to check and return that these files are not found. As a result, a latency of 10 s is observed, when asking for system volume levels.
This happens to the Mediaplayer (Mediaplayer.java) in the setDataSource method. The method openAssetFileDescriptor tries to open an uri which is "content://settings/system/ringtone". Does it mean that it looks for some package Id ringtone ? It is also the same for notification_sound and alarm_alert. And of course, these ids are not present under my platform, so a File Not Found exception is raised..
If you may have just a small clue about this, it might help.
Thanks
Vinio
So do I have to admit that no one know about asset files in the Android world except people from Google ?
I already STFA and did not find what I was looking for. I was wondering if there is an application that will allow viewing of existing Google Sketchup files, editing/creating files - no - not so much, think that would be best done on a full blown desktop, One earlier post was asking about running a fully functional Sketchup, and I tend to agree that it would be too much of a tax on the processor and memory to be feasible for a mobile device. I also found the SketchBook program from AutoDesk which is designed for mobile devices but from what it says it is more like Paint in Microsoft Os's not a CAD type program.
Anybody know if there is anything like that available out there to be able to view Google Sketchup files? Thanks in advance for any information on the subject.
Sorry to wake up an old topic (very old) but I too am looking for such an app.....being a kitchen builder in my spare time I was asked a few times if I had any models on hand to show. And since I do all my sketches in Sketchup, well you guessed it....I can't show them on my tab....
Would be kinda cool to show potential customers how their kitchen might look like if I could just drop existing cabinets in place etc...
If you've already found something would you mind sharing with me? Very much appreciated...
Hi.
Before I start with my question, just a little background. I work in a user guide development firm, and mainly work on Galaxy devices.
One of the most time-consuming process in my work is to match all UI strings (app names, menu text, labels, etc) of the actual device with the user guide.
This is currently being done with human power, with a staff looking at the user guide, check the device if this is correct, and annotate the draft PDF if the UI strings don't match.
If this was for just one language, it's doable. But with 40 or so languages (including Arabic, Cyrillic, Chinese), it definitely makes me want to puke.
This is a very tiring, eye-straining work that I'm trying to resolve, for everyone's sake.
I tried decompressing the Galaxy firmware myself, but the XML data is encoded into binary(for what reason I have no idea), and is not readable.
So now I'm turning to the masters and hope for any luck.
What I would like to know is ...
Hack the Galaxy firmware(md5), and extract UI strings for all language and save in spreadsheet or something, or
Mirror the device's screen on the desktop, copy the desired UI string, and paste it to a desktop application(e.g. Adobe Acrobat).
If the first option is possible, then I can utilize the data for some sort of automation, and would be the best.
If the second option is possible, then I would no longer have to type all kinds of foreign characters(this is also a very time-consuming work), and make some progress in timeline.
If all options are not possible, and there's absolutely no way of automating this process, then well... I guess I'll go see the eye doctor more often than now.
Any ideas or helps would be great.
Thank you.