Hi guys, I am soon launching facebook ads extension but, I face a problem, The problem is that some people resell extension, I want to make a system in which,
If app package name doesn't contain the the user email, app will close, kindly help me implement this
2 Likes
Yes i also want the answer on this topic as it is a big problem of reselling extension
1 Like
Im use this :
private String GetEmail() {
String x = "";
String usrID = "";
try {
XmlResourceParser xml = this.context.getAssets().openXmlResourceParser("AndroidManifest.xml");
for (int eventType = xml.next(); eventType != 1; eventType = xml.next()) {
if (eventType == 2 && xml.getName().equalsIgnoreCase("provider")) {
usrID = xml.getAttributeValue("http://schemas.android.com/apk/res/android", "authorities").split("\\.")[2];
}
…
Manifest contains email. So you can parse the manifest using xml parsers.
But there is a big disadvantage in this method which is...
Technically, there’s no way to get the email address of the person who built the app. First, you can have multiple email addresses that map to the same username (for example, I am ewpatton@gmail.com and ewpatton@appinventor.mit.edu, both will yield the same ai_ewpatton). Second, people can repackage their apps (e.g., AppToMarket) using a package name that is different from the one used to compile.
If we can take a step back to the 30k foot view, what would be the purpose of knowing this informa…
1 Like