0

I am a programmer, I primarily program in Java, but I am now working with Drupal. Drupal uses HTML and CSS for most of its design, from blocks to views, but I have discovered it's much harder to create things that are dynamically designed.

What I am used to is designing things in Android programming where XML is used to design the layout and Java to control it.

Is there any way to do this in Drupal that allows me to create things like blocks using Java or even JavaScript? Is there a way to develop my own modules using Java, or can I only do it in PHP?

4 Answers 4

4

Drupal is a PHP web framework. The tools that is uses are those of the web. If you are trying to implement something with XML and Java you are not really using Drupal. There are skills that you have to learn in order to create web pages which are different from those on a phone.

Having said that. I believe that there are some Android front ends for Drupal. That may be a good starting point for you.

0
0

For certain applications, such as computations and interactive visualization of secure data, java is one of the only viable solutions. I use it to visualize secured datasets over public Internet connections via a Drupal Services based API. The java applet is passed the API end-point at launch, and communications with the applet take place RESTfully over https.

Any dataset visualized in most web technologies can have their data scrapped off the page; but not in a java applet. It is easy to imagine situations where this is useful: banking, market research, product designs, legal contracts and agreements, any secured data, really.

0

Look at web services. Write your web service in Java and then write a Drupal module to consume/interact with it.

1
  • 2
    While that is correct, it only makes sense to use existing services or to process large amounts of data outside of Drupal. You'd still have to use HTML/CSS to create your layout.
    – Berdir
    Commented Jun 28, 2011 at 14:19
0

You can use headless Drupal as backend and like Jeremy French said, use Android as front end. Here is a Drupal 8 Android app https://github.com/onedrupal/One-Drupal-Android

https://play.google.com/store/apps/details?id=com.technikh.onedrupal

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.