Skip to content

Instantly share code, notes, and snippets.

View jayeshcp's full-sized avatar
🏎️

Jayesh Chandrapal jayeshcp

🏎️
View GitHub Profile
@jayeshcp
jayeshcp / AndroidFeedback.java
Last active December 21, 2015 14:28
Android: Sending App Feedback from within App itself
/**
* Open Android's standard Feedback screen for users to send app feedback
* Create options menu, and on its click event call following method.
* Show this menu item, only if Build version is greater than or equal
* to ICE_CREAM_SANDWICH (4.0)
*/
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
private void OpenFeedbackForm() {
// Check if Build is higher than or equal to Ice Cream Sandwich (4.0)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
@jayeshcp
jayeshcp / blog_send_html_in_json.json
Last active December 21, 2015 13:39
Blog: Sending HTML in JSON using DOCTYPE
{
"htmltext": "<!DOCTYPE html><p>Indexing using Apache Lucene</p><p>In this article we will discuss about how indexing works in Lucene...<a href=\"http: //www.blogger.com/%22articles//lucene.jsp/%22\"/>Indexing using Apache Lucene</a></html>"
}
@jayeshcp
jayeshcp / EULA.txt
Last active December 20, 2015 11:58
EULA for Android AppUseful for developers who do not have company. Can be used for Paid or Free app. Modify "MyApp" in this text to your requirement and any other contents if required.
END USER LICENSE FOR ANDROID MyApp SOFTWARE
\nPlease read this document carefully before using this software. This license provides important information concerning the software, provides you with a license to use the software and contains warranty and liability information.
\n\nBy using the software, you are accepting the software \"AS IS\" and agreeing to be bound by the terms of this license agreement. In no event will the authors be held liable for any damages arising from the use of this software. If you do not wish to do so, do not use the software.
\n\n1. Terms of License
\nThis license allows you to:
\n(a) use the Software on a single device; and
\n(b)If you wish to use the Software on more than one device, you must license another copy of the
Software.