Back to project page android-weather-demo-application.
The source code is released under:
GNU General Public License
If you think the Android project android-weather-demo-application listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.openweathermap.utils; /*w w w .j a v a 2 s . co m*/ /** * Helper methods related to reflection * @author samkirton */ public class ReflectionHelper { /** * Create a new object instance based on the class provided * @param c Create a new object instance based on this class * @return A new instance of the class */ public static Object newInstance(Class<?> c) { Object object = null; try { object = c.newInstance(); } catch (InstantiationException e) { } catch (IllegalAccessException e) { } return object; } }