Re: [android-developers] Re: InApp Billing v3 and multiple accounts

2017-01-06 Thread aram
Alexandar,

Could you please let me know, how you solved this problem? Did you add any 
server layer for validating the purchase? Is it possible to validate loally 
on the device.

-
Aram
On Monday, September 30, 2013 at 1:45:55 PM UTC+5:30, Alexander Osmanov 
wrote:
>
> Thank you guys for your replies. I still have no clear understanding of 
> how to handle this problem more efficiently but at least now I am sure it's 
> not entirely myself missing something important. 
>
> Still I refuse to believe there is no one that ever faced the same problem 
> in android developers world, so I would really appreciate if someone anyone 
> described how they managed to handle it gracefully. I also have a question 
> with 100 rep bounty on SO: 
> http://stackoverflow.com/questions/18899870/android-appengine-endpoints-auth-and-inapp-billing
>  just 
> in case.
>
>
> On Mon, Sep 30, 2013 at 6:26 AM, kj > 
> wrote:
>
>> I'm not saying that getting the Google account name via the API wouldn't 
>> be useful, but unfortunately that doesn't exist right now. I agree that 
>> forcing accounts is not user friendly and probably isn't a good idea for 
>> the majority of apps, but it is an option that may be considered. Sticking 
>> with the default IAB model of purchases being tied to the Google account 
>> that downloaded the app works for most cases and users have a reasonable 
>> expectation of how that will work.
>>
>> What I meant by current Google account is what Alexander mentioned 
>> previously, that the Google account making the purchase is the one that 
>> downloaded the app from the Play store.
>>
>> On Sunday, September 29, 2013 9:48:18 PM UTC-4, Nikolay Elenkov wrote:
>>
>>> On Mon, Sep 30, 2013 at 7:56 AM, kj  wrote: 
>>> > The Google IAB dialog has the Google account name that will be 
>>> associated 
>>> > with the purchase. In-app purchases are generally understood to be 
>>> tied to 
>>> > your Google account and apps you download/purchase are associated with 
>>> the 
>>> > account used in Google play. 
>>> >... 
>>> > ... If you need more explicit guaruntees of user behavior, force them 
>>> to make 
>>> > accounts. 
>>>
>>> Your point being? Letting the developer know what account the user used 
>>> to 
>>> buy an IAB item, etc. is genuinely useful. It has been requested 
>>> countless 
>>> times, but the it's not part of the API. 'Force them to make accounts' 
>>> is 
>>> hardly user friendly and is really BS in a world where people are used 
>>> to 
>>> simply using their Google/FB, etc. account. Additionally Google is 
>>> aggressively 
>>> pushing OAuth and more specifically G+ accounts for *everything* now, so 
>>> forcing people to create a bunch of throw-away accounts just to 
>>> compensate for the limitations of the IAB API is not only bad advice, it 
>>> also 
>>> goes against even Google's policy. And BTW, what exactly is 'the current 
>>> Google account'? 
>>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Android Developers" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/android-developers/EbcAdThiIWc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> android-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Best regards, 
> AlexO 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/fb7b2c3f-f926-4889-bab4-b5d251a425ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Multidex on Android Studio 2.0+

2016-10-02 Thread aram
Did you try this?

https://developer.android.com/studio/build/multidex.html

On Saturday, October 1, 2016 at 7:11:31 PM UTC+5:30, Hamza Sekalema wrote:
>
> Hi all,
>
> Now, I have a fairly large App for a directory that I have been working on 
> ever since I used Android Studio 1.5.1. Due to its size, I definitely used 
> the MultiDex option to meet the 64K limit - also enabled proguard. Now 
> since Android 2.0, when ever I compile my App, all the activities and 
> classes are reported as missing - which forces me to resort to my perfectly 
> working 1.5.1, yet I really adore the lastest 2.2 which worked temporarily 
> for me and later failed. What can I do?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a465e06f-1407-4666-901c-e66539c4853d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Proguard rules for Android support library (v4 & v7)

2016-10-02 Thread aram



I use, android support library v4 and v7 in my app. I am using only few 
widgets from the support library (not all of them). But in final release 
API, 18K functions are included from support libraries. (screenshot 
attached) How to reduce them? In attached image, v4 and v7 takes 9k and 
6,5k respectively. 

Following is my proguard config. 

-optimizationpasses 3

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.billing.IInAppBillingService
-keepattributes SourceFile,LineNumberTable
-keep public class * extends android.view.View {
public (android.content.Context);
public (android.content.Context, android.util.AttributeSet);
public (android.content.Context, android.util.AttributeSet, int);
}
-keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public (android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.content.Context {
public void *(android.view.View);
public void *(android.view.MenuItem);
}
-keep public class * extends android.app.Activity
-keep public class * extends android.support.v7.app.AppCompatActivity
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.app.IntentService




-dontwarn com.google.appengine.api.urlfetch.**
-dontwarn rx.**
-dontwarn retrofit.**
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.** { *; }
-keep interface com.squareup.okhttp.** { *; }
-keep class retrofit.** { *; }
-keepclasseswithmembers class * {
@retrofit.http.* ;
}

-keep class com.google.** { *; }
#-keep class org.apache.** { *; }
#-keep class android.support.** { *; }
-keep class com.makeramen.** { *; }
-dontwarn android.net.http.AndroidHttpClient
-dontwarn com.google.android.gms.**



# Suppress warnings if you are NOT using IAP:
-dontwarn com.google.**
#-dontwarn org.apache.**
-dontwarn com.makeramen.**
-dontwarn android.support.**


-keepattributes Signature

# For using GSON @Expose annotation
-keepattributes *Annotation*

# Gson specific classes
-keep class sun.misc.Unsafe { *; }

## -- Google play services --
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}

-keep public class 
com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}


## --- For native methods -
-keepclasseswithmembernames class * {
native ;
}

# - To maintain custom components names that are used on layouts 
XML ---
-keepclassmembers public class * extends android.view.View {
   void set*(***);
   *** get*();
}


## -- keep generic information ---
-keepattributes Signature,*Annotation*,EnclosingMethod
-keep class sun.misc.Unsafe { *; }


## -- keep custom components 
-keep public class * extends android.view.View {
public (android.content.Context, android.util.AttributeSet);
}

-keep public class * extends android.view.View {
public (android.content.Context, android.util.AttributeSet, int);
}


##  We want to keep methods in Activity that could be used in the 
XML attribute onClick -
-keepclassmembers class * extends android.app.Activity {
   public void *(android.view.View);
}



## -- For enumeration classes, see 
http://proguard.sourceforge.net/manual/examples.html#enumerations -
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}


## To keep parcelable classes (to serialize - deserialize objects 
to sent through Intents) -
-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}



##  Keep the R.java file ---
-keepclassmembers class **.R$* {
public static ;
}



##---Begin: proguard configuration for Bean class  --
#-keep public class com.nektapp.datamodels.**{ *; }
#-keep public class com.nektapp.matcher.model.**{ *;}

##-- Keep e

[android-developers] Re: Setting for Poxy based Network Connections

2009-07-29 Thread Aram

Proxifier is the best solution for all the proxy based problems.

You must set the proxy address in the settings page and select the
checkbox that helps to enable the all the connectivity through your
proxy IP and port

On Jul 16, 2:07 pm, Aram  wrote:
> Hello all,
>
> Can anybody give me the Exact methodology for Connecting through
> Android Browsers and also Exact way for making the Map application
> work in my "Proxy Networked Machine"
>
> None of the methodology in the below are working for me
>
> 1. placing the http_proxy in settings.db
> 2. -http-proxy in console
>
> thankyou
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Strange Proxy setting and INTERNET problem Emulator

2009-07-29 Thread Aram


I have found out a solution using Proxy Tunnelling software
'Proxifier'...Setting the connectivity to be passed through your proxy
address will enable internet based activity in the android emulator.



On Jul 16, 12:07 pm, Aram  wrote:
> Hai,
>
> I was trying to configure the "proxy" network connectivity for my
> emulator run through Eclipse3.4.
>
> I implemented the usual 2 ways already done by the users,
>
> Solution 1 : using -http-proxy [ip]:[port]
>
> Solution 2 : adding the http_proxy to data/data/
> com.android.providers.settings/databases/settings.db and check to find
> the result as below
>
> sqlite> SELECT * FROM system;
> 
> 
> 111|http_proxy|172.24.1.1:8080
> 
> .
>
> After implementing the both ways I could not connect to the internet
> and I get the following error
>
> From the Eclipse Console
> -
>
> [2009-07-16 12:12:37 - Emulator] proxy_http_setup: creating http proxy
> service connecting to: 174.24.1.1:8080
> [2009-07-16 12:12:37 - Emulator] server name '174.24.1.1' resolved to
> 174.24.1.1:8080
> [2009-07-16 12:12:37 - Emulator] proxy_http_setup: creating HTTP Proxy
> Service Footer is (len=2):
> [2009-07-16 12:12:37 - Emulator] '
> [2009-07-16 12:12:37 - Emulator]
> [2009-07-16 12:12:37 - Emulator] '
> [2009-07-16 12:12:37 - Emulator] http_service_connect: trying to
> connect to 209.85.153.104:80
> [2009-07-16 12:12:37 - Emulator] http_service_connect: using HTTP
> rewriter
> [2009-07-16 12:12:37 - Emulator] tcp:209.85.153.104:80(3576): cannot
> connect to proxy: 
> [2009-07-16 12:12:37 - Emulator] http_service_connect: trying to
> connect to 209.85.153.104:80
> [2009-07-16 12:12:37 - Emulator] http_service_connect: using HTTP
> rewriter
> [2009-07-16 12:12:37 - Emulator] tcp:209.85.153.104:80(3540): cannot
> connect to proxy: 
>
> From the Log Cat:
> --
>
> 07-16 12:29:09.217: WARN/KeyCharacterMap(623): No keyboard for id 0
> 07-16 12:29:09.217: WARN/KeyCharacterMap(623): Using default keymap: /
> system/usr/keychars/qwerty.kcm.bin
> 07-16 12:29:11.858: ERROR/ActivityThread(658): Failed to find provider
> info for com.google.settings
> 07-16 12:29:13.288: ERROR/MapActivity(658): Couldn't get connection
> factory client
> 07-16 12:29:55.098: WARN/WaitingHelper(658): Network error: 3
>
> Also I am finding it impossible to integrate Google Map due to the
> same problem.
>
> Can anybody give me a solution so that I can work on it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Strange Proxy setting and INTERNET problem Emulator

2009-07-16 Thread Aram

Hai,

I was trying to configure the "proxy" network connectivity for my
emulator run through Eclipse3.4.

I implemented the usual 2 ways already done by the users,

Solution 1 : using -http-proxy [ip]:[port]

Solution 2 : adding the http_proxy to data/data/
com.android.providers.settings/databases/settings.db and check to find
the result as below

sqlite> SELECT * FROM system;


111|http_proxy|172.24.1.1:8080

.

After implementing the both ways I could not connect to the internet
and I get the following error

>From the Eclipse Console
-


[2009-07-16 12:12:37 - Emulator] proxy_http_setup: creating http proxy
service connecting to: 174.24.1.1:8080
[2009-07-16 12:12:37 - Emulator] server name '174.24.1.1' resolved to
174.24.1.1:8080
[2009-07-16 12:12:37 - Emulator] proxy_http_setup: creating HTTP Proxy
Service Footer is (len=2):
[2009-07-16 12:12:37 - Emulator] '
[2009-07-16 12:12:37 - Emulator]
[2009-07-16 12:12:37 - Emulator] '
[2009-07-16 12:12:37 - Emulator] http_service_connect: trying to
connect to 209.85.153.104:80
[2009-07-16 12:12:37 - Emulator] http_service_connect: using HTTP
rewriter
[2009-07-16 12:12:37 - Emulator] tcp:209.85.153.104:80(3576): cannot
connect to proxy: 
[2009-07-16 12:12:37 - Emulator] http_service_connect: trying to
connect to 209.85.153.104:80
[2009-07-16 12:12:37 - Emulator] http_service_connect: using HTTP
rewriter
[2009-07-16 12:12:37 - Emulator] tcp:209.85.153.104:80(3540): cannot
connect to proxy: 


>From the Log Cat:
--

07-16 12:29:09.217: WARN/KeyCharacterMap(623): No keyboard for id 0
07-16 12:29:09.217: WARN/KeyCharacterMap(623): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
07-16 12:29:11.858: ERROR/ActivityThread(658): Failed to find provider
info for com.google.settings
07-16 12:29:13.288: ERROR/MapActivity(658): Couldn't get connection
factory client
07-16 12:29:55.098: WARN/WaitingHelper(658): Network error: 3


Also I am finding it impossible to integrate Google Map due to the
same problem.

Can anybody give me a solution so that I can work on it.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Setting for Poxy based Network Connections

2009-07-16 Thread Aram

Hello all,

Can anybody give me the Exact methodology for Connecting through
Android Browsers and also Exact way for making the Map application
work in my "Proxy Networked Machine"

None of the methodology in the below are working for me

1. placing the http_proxy in settings.db
2. -http-proxy in console


thankyou

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---