Setting IDE for develop mobile moodle

Setting IDE for develop mobile moodle

by blackjack sovietwings -
Number of replies: 12

hi

i try to develop moodle mobile.

i download "moodlemobile-master" that contain some files and folders.

but i can't run it in any IDE. i like dreamweaver 6 and try it, i try eclips too, but i can't.....

please help me to start that....

Attachment Capture.PNG
Average of ratings: -
In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Dave Perry -
Picture of Testers

You need to create a new site in Dreamweaver, with the site root being the folder you have shown us the screenshot for - that'll let you edit the app easily.

For testing, you need to have it on a web server - this could be running on your development PC, or a test/live server under a different site:

  • Local PC - put the files above into a new folder, then it'll work under localhost. For example, if I put those files into c:\apache\htdocs\moodlemobile on my desktop, I browse to http://localhost/moodlemobile in my browser

  • Separate development server - set the Remote part of the Dreamweaver site with the appropriate paths and FTP details. Then browse to http://servername.yourdomain.ac.uk/moodlemobile.

To compile it, see the BUILDING section on the wiki page:
http://docs.moodle.org/dev/Moodle_Mobile_Customization

HTH

In reply to Dave Perry

Re: Setting IDE for develop mobile moodle

by blackjack sovietwings -

hi david

it means i must have apache in my os? it can't work with iis?

In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Dave Perry -
Picture of Testers

You could use IIS yes - that'll just be a different folder (C:\Inetpub\wwwroot last time I dealt with it - most of what we look after runs on Apache these days so am a bit rusty on finer points of IIS).

In reply to Dave Perry

Re: Setting IDE for develop mobile moodle

by blackjack sovietwings -

sorry...

i try it with iis and apache, but that didn't show any item...

just show an empty page, same as when i run (F12) t in dreamweaver...

are you sure run and see it currently in apache and is..?

In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Dave Perry -
Picture of Testers

It should work if your apache/IIS is setup properly. Proof it can attached (my dreamweaver site, and firefox loading it). Unless you're using an old browser that can't handle the HTML5-ness of the app?

Attachment moodlemobile_localdev.jpg
In reply to Dave Perry

Re: Setting IDE for develop mobile moodle

by blackjack sovietwings -

thanks david.

it solved until now... i try it with firefox instead of chrom and it worked.

thanks.

do you know any test url,user and pss? or site that i find it?

In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Dave Perry -
Picture of Testers

I would have done this 15minutes ago but the site was in maintainance mode / being upgraded - if only ours was this smooth!

I think if you just enter 'student' as the username, without anything else, the code auto-logins to a test moodle site run by the company who built the app.

In reply to Dave Perry

Re: Setting IDE for develop mobile moodle

by blackjack sovietwings -

hi david

i got this error: "Cannot connect: the site must use Moodle 2.4 or later." so i don't know this problem is from moodle server or my app?!.

i test it with username only (student) and all field such as bellow:

url: http://school.demo.moodle.net

user : student

pass : moodle

finally, are you know eclipse? because i want open moodle mobile in an IDE and change ui and services. i searched and found Eclipse for Mobile Developers(juno) but when open project for moodle mobile, i have problems.. 

can you help me in this case?

 

 

 

 

In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Dave Perry -
Picture of Testers

I know nothing about Eclipse - maybe Juan (who maintains the generic release) might.

If your moodle site isn't moodle v2.4 or above, the app won't connect.

Have you ticked the 'enable web services' box in the Settings> Site Administration > Advanced features page?

Also check if the 'enable mobile access' option is set - on moodle 2.4, the settings page you need is http://your.moodle.url/admin/settings.php?section=mobile

In reply to Dave Perry

Re: Setting IDE for develop mobile moodle

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

you have here a detailed information for customizing the app:

http://docs.moodle.org/dev/Moodle_Mobile_Customization

Notice, that I recommend to use Google Chrome (because iOs and Android uses the same renderer engine)

http://docs.moodle.org/dev/Moodle_Mobile_Customization#Testing_and_developing

 

 

In reply to Juan Leyva

Re: Setting IDE for develop mobile moodle

by blackjack sovietwings -

thanks juan

but i think, i have several problem.... and got different errors! when i try to use source...

but now.. just i want change lang or theme for example, so i try to use source and build... i have errors

later, i try to decompile apk and compile again. but i can't and the bad point: i confused.

i try several way but it not work in mobile.

are you try it already?

In reply to blackjack sovietwings

Re: Setting IDE for develop mobile moodle

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Blackjack,

please, you must be more specific and report your problems or errors in a detailed way so I can help you.

Have you read this document and all the ones linked? (Moodle Mobile Customization, etc...)

http://docs.moodle.org/dev/Moodle_Mobile

 

Regards