[please use jmol-developers list for this sort of programming question] Not a bad start at all, Chance!
What errors are you getting in the Android console? Those should point you in the direction of what is going wrong. Unfortunately, in moving to Windows 8 on a new computer, I have lost the capability to debug Android apps. However, what you have done is almost reasonable. I've checked in a modification to Platform.java that is a bit better -- changing Point3f to P3 and adding the necessary new parameter to allocateRgbImage. Sounds like you have the requisite Jmol project checked out as well. Right? So you have two projects in your workspace: Jmol JmolAndroid ? On Sat, Jul 13, 2013 at 1:35 AM, Chance Leachman <leachmancha...@gmail.com>wrote: > Hello, > > I am a 15 year old, beginning android developer. I started using Jmol in > my AP Chemistry class last year. Recently I have decided to make my > chemistry teacher his own app for his class. It will include reminders for > homework and other stuff, along with the molecule viewer, Jmol. I have > finished every part of this app except for the molecule viewer. Here's my > problem: After I downloaded Jmol's source code and built the application > and put it on my android phone, it showed a black screen. It didn't show > any molecules. Even when I went into ''mol' and typed in a molecule for it > to display nothing happened. My plan is to implement Jmol into my app, by > looking at the source code of JmolAndroid. > > [image: Inline image 1] > > I'm pretty confident I did everything correctly. Here were my steps: > 1. I did a svn checkout at Sourcefordge. > 2. After that I went into the Jmol folder and typed "ant" which built jmol. > 3. Next I imported the project into eclipse. > 4. After that I ran Jmol for desktop, which worked perfectly. > 5. After I did that I opened JmolAndroid, which contained 2-3 errors in > the Platform class. Those were the only errors. > 6. I fixed those errors by #1: Adding umplemented methods, #2: deleting > the import org.jmol.util.Point3f; which no longer existed, and lastly #3: > deleted: > @Override > > public void convertPointFromScreen(Object display, Point3f ptTemp) { > // unnecessary > > } > because org.jmol.util.Point3f; was no longer imported. > > 7. Now there were no more errors, but this lead me to just a black screen. > If anyone could help me that'd be awesome. Thank you! > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Jmol-users mailing list > jmol-us...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
<<Screenshot_2013-07-07-14-39-24.png>>
------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers