Continuing the discussion from Spark Core and Android Application:
And now after having solved this puzzle I'm stuck with the next one.
The Spark app distributed via Google Play uses several typefaces in the Gotham family. If you have a license to these, you can place the following 4 files in SparkCore/assets/fonts.
•gotham_bold.otf
•gotham_book.otf
•gotham_light.otf
•gotham_medium.otf
Otherwise, in order to build a working app, you will need to either modify the app not to look for the fonts or put some other fonts in their place.
As I have not got the license for the gotham fonts I tried to replace them with a standard TTF.
For a quick try I copied the dull Arial.ttf into assets/fonts, altered the font_names.xml and the Typefaces.java accordingly and rebuilt the app - with no errors (just two warnings).
But when I run the app on my phone (Android 4.0.4) it immediately ends and the Eclipse log reports this:
02-12 21:50:12.444: E/ActivityThread(20268): Failed to inflate
02-12 21:50:12.444: E/ActivityThread(20268): android.view.InflateException: Binary XML file line #33: Error inflating class com.danh32.fontify.EditText
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.rInflate(LayoutInflater.java:742)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-12 21:50:12.444: E/ActivityThread(20268): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-12 21:50:12.444: E/ActivityThread(20268): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
02-12 21:50:12.444: E/ActivityThread(20268): at android.app.Activity.setContentView(Activity.java:1835)
02-12 21:50:12.444: E/ActivityThread(20268): at io.spark.core.android.ui.SignUpActivity.onCreate(SignUpActivity.java:84)
And a lot more.
@zachary, have you ever tried/succeeded building the app without the original fonts?
I'm using Eclipse Kepler under Windows 8.1 and can't seem to get it working.
Once I'd have the standard app build an run on my device, I'd like to take a stab at an additional feature that I suggested in another thread
+ Dedicated RGB-LED-control with a color picker/color wheel (e.g. the cog wheel in the middle of the app)
+ Expose the RX/TX pins as digitalRead/digitalWrites pins, too - if not used as USART (as I think to recall, that they should be usable as digital pins)
I'd also rename the font_names-strings to something more general, if GOTHAM is not available.
BTW, is there a particular reason why Typeface.java does not use the strings out of font_names?
And why does Typeface.java reference italic fonts, where font_names.xml does not? Or italics used at all?
I know, this is not high priority since it's not a Core problem as such, but any help would be appreciated greatly