[android-developers] Re: how to add jar file to Java Application ?

2017-01-29 Thread Avi Parshan
Find the libs directory, and place your jar in there. Next, you'll have to 
add it as a dependency in the gradle folder. 

On Saturday, January 28, 2017 at 11:23:26 AM UTC+2, array overflow wrote:
>
> *how to add jar file to Java Application ?* 
> 
>
>
>
> http://arrayoverflow.com/question/how-to-add-jar-file-to-java-application/306
>

-- 
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/9d5df11e-c0a0-4a8a-a72a-2d6fa71f571a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Getting 50mb apk size limit.

2017-01-29 Thread Avi Parshan
I think there may be a limit, look into the apk expansion. You can upload 
multiple apks to complete one app. I don't remember exactly how it works, 
but search it. 

Also, you should try using proguard and set minifyEnabled true in your 
gradle file. It should help shrink down your app size. 

On Sunday, January 29, 2017 at 1:22:03 AM UTC+2, Michael Flynn wrote:
>
> I've never had this issue before, normally apps are fine until 100mb.
>
> It is my first app in beta. Is there a 50mb apk size limit in beta or 
> could there be some other reason the Play Store is limiting my apk size?
>
> Thanks in advance,
>
> Beth
>
>

-- 
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/d1c31bad-fef6-40da-9e19-40a2fff36a8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] The zoom ( setZoom(scale) ) is not work!

2013-04-29 Thread avi . rubner
I have Android 2.3.3.
I wrote an application of the camera and now I'm trying to add the option of 
zoom by two fingers on the screen.
But, for some reason, the method isZoomSupported () always gives me a '
false' and the method getMaxZoom () always gives me 0, even though I have 
Android 2.3.3. What could be the reason for this?
I know that zoom should work from Android version 2.2.
 
Please help me,
 
Thanks!

-- 
-- 
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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Reboot after settings database change?

2013-02-20 Thread avi
Hi,

If I update the settings database (either through adb shell or 
settings.jar), settings app doesn't seem to reflect the new value until I 
reboot the device.

For example, if I change the volume settings in 
/data/data/com.android.providers.settings/databases/settings.db (system 
table), I don't see the change updated until i reboot the device (even adb 
shell sync does not work)

Is there a way to update the settings without actual reboot of the device.

I am observing this problem in Android 4.2 version.

Thanks,
Avi

-- 
-- 
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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: AccessibilityEvent in monkey

2012-02-01 Thread avi
I would really appreciate it if someone could help me with the below
problem

On Jan 27, 10:01 am, avi avinanku...@gmail.com wrote:
 All,

 I am trying to develop an UI based automation system and I was
 exploring AccessibilityEvent option in Monkey. Following are the steps
 that I did
 (i) Launched monkey server socket
 (ii) Opened Settings app (tried other on board apps as well)
 (iii) Created a client socket from host machine and connected to
 monkey's server
 (iv) Issued listviews command
 (v) I always get the response No accessibility event has occured yet

 Could you please let me know if I am missing something?

 Thanks,
 Avi

-- 
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: AccessibilityEvent in monkey

2012-02-01 Thread avi
I found out the problem. sConnectionId variable has to be initialized
to -1 instead of 0

On Feb 1, 9:43 am, avi avinanku...@gmail.com wrote:
 I would really appreciate it if someone could help me with the below
 problem

 On Jan 27, 10:01 am, avi avinanku...@gmail.com wrote:







  All,

  I am trying to develop an UI based automation system and I was
  exploringAccessibilityEventoption inMonkey. Following are the steps
  that I did
  (i) Launchedmonkeyserver socket
  (ii) Opened Settings app (tried other on board apps as well)
  (iii) Created a client socket from host machine and connected to
 monkey'sserver
  (iv) Issued listviews command
  (v) I always get the response No accessibility event has occured yet

  Could you please let me know if I am missing something?

  Thanks,
  Avi

-- 
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] AccessibilityEvent in monkey

2012-01-27 Thread avi
All,

I am trying to develop an UI based automation system and I was
exploring AccessibilityEvent option in Monkey. Following are the steps
that I did
(i) Launched monkey server socket
(ii) Opened Settings app (tried other on board apps as well)
(iii) Created a client socket from host machine and connected to
monkey's server
(iv) Issued listviews command
(v) I always get the response No accessibility event has occured yet

Could you please let me know if I am missing something?

Thanks,
Avi

-- 
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: getAudioInputStream

2011-11-28 Thread Avi
Hi, I am using this method in simple java program and its working
fine. But when i am using the same method in android its not working.
Can you please tell me is there alternative method in android for
doing the same thing. I googled it i found that this method doesn't
support android any more. Please help me i am trying it from long
time.

Regards

-- 
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: Replay monkey execution

2011-05-13 Thread avi
Hi Diego,

Thank you for your post..I tried the exact same steps..Running monkey
with verbose option and post processed the file to replay Monkey...but
there was slight deviation from the original run..If you have tried
it, could you please share your solution with me?

Thanks again

On May 8, 10:52 pm, Diego Torres Milano dtmil...@gmail.com wrote:
 I haven't tried this but it seems possible.

 Step #1: Increase monkey verbosity (-v -v -v)

 Step #2: Run the script and collect the output

 Step #3: Parse the output to regenerate a monkey script (optionally
 you can modify monkey to spit a valid monkey script)

 Step #4: Run the script

 On May 7, 2:20 pm, Bob Kerns r...@acm.org wrote:

  True enough, but the difficulty generally comes between step #1 and step #2,
  in this sort of scenario of a rare, hard-to-reproduce crash.

  Often you have to figure out everything you need to know to do step #3 (fix
  the bug) before you can do step #2.

  Even so, do it in this order. Write the test case before fixing it, so you
  can do step #4 -- verify that you fixed it.

 --
 Have you read my blog ?http://dtmilano.blogspot.com
 android junit tests ui linux cult thin clients

-- 
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: Replay monkey execution

2011-05-06 Thread avi
Sorry, I meant I am getting different crashes on the same build
(without any fix)...The crash that I am looking at happens only 1 out
of 10 times and it happens after running Monkey for several hours (~8
hours)..So, I would like to replay the monkey run which caused the
crash and check if my fix works.

On May 6, 4:41 am, lbendlin l...@bendlin.us wrote:
 You are experiencing different crashes because you have fixed the bugs
 causing the other ones. Right?

-- 
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: Replay monkey execution

2011-05-06 Thread avi
Thank you Dianne for your response. So, what is Google's recommended
process for fixing issues caused by monkey runs?

On May 6, 4:24 pm, Dianne Hackborn hack...@android.com wrote:
 If you give the same seed, you will have the same sequence of events
 executed.

 However it is pretty unavoidable that the results will be non-deterministic.
  There is just too much asynchronous stuff, things running in the background
 that can impact behavior, etc.









 On Fri, May 6, 2011 at 2:57 PM, avi avinanku...@gmail.com wrote:
  Sorry, I meant I am getting different crashes on the same build
  (without any fix)...The crash that I am looking at happens only 1 out
  of 10 times and it happens after running Monkey for several hours (~8
  hours)..So, I would like to replay the monkey run which caused the
  crash and check if my fix works.

  On May 6, 4:41 am, lbendlin l...@bendlin.us wrote:
   You are experiencing different crashes because you have fixed the bugs
   causing the other ones. Right?

  --
  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

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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] Replay monkey execution

2011-05-05 Thread avi
Hi,

I was wondering if there is a way to replay monkey execution. The
problem is that even when I run monkey with same seed and throttle, I
am experiencing different crashes..So, I would like to replay the
monkey run on my build with the fix for the crash and verify if my fix
really fixed the problem or not..

Could you please let me know if there is a way to do it?

Thanks,
Avinan

-- 
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] SIPDemo is not working...

2011-01-20 Thread Avi
I tried to use SIPDemo application on Android 2.3 - revision 9
emulator

But it returns null for the SIPManager.newInstance(this).

if

(manager == null) {
 manager = SipManager.newInstance(this);
}

On checking SIPManager.isAPISupported. It retruns false. Has any body
run SIPDemo application, any help is appreciated. I have already
specifed follwoing feature permissions in

the Manifest file:



uses-permission android:name=android.permission.INTERNET /
uses-permission android:name=android.permission.USE_SIP /
uses-feature android:name=android.software.sip /
uses-feature android:name=android.software.sip.voip /


Kindly please guide me how to fix this problem and run the SipDemo
application successfully.

-- 
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] Efficiency of code with cursor.requery()

2010-10-06 Thread avi nigam
Hi All,

I am new on Android Development.  I am trying to make email client
application for android. I studied the google open source code for
email app. I find it quite tough for me. I have implemented
cursor.requey() to maintain the checked state of my checkbox when I
scroll my list view. Is it effect the efficiency of my code so badly?
Please make comments on that and also give me alternate Idea to save
the checked state of checkbox when i scroll my ListView.

Thanks,
Avinash Nigam

-- 
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] Efficiency of code with cursor.requery()

2010-10-06 Thread avi nigam
Hi All,

I am new on Android Development.  I am trying to make email client
application for android. I studied the google open source code for
email app. I find it quite tough for me. I have implemented
cursor.requey() to maintain the checked state of my checkbox when I
scroll my list view. Is it effect the efficiency of my code so badly?
Please make comments on that and also give me alternate Idea to save
the checked state of checkbox when i scroll my ListView.

Thanks,
Avinash Nigam

-- 
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] Increase Old Keystore Validity

2010-09-07 Thread avi
I have an app in the market, signed with a keystore which is valid
only until March 2011.
I need to upload an update to the app, Android market is not allowing
me to update unless my validity is until 2023.

How do I increase the validity of my keystore
OR
How do I obtain the old private and public keys and create a new
Keystore file?

Thanks,
Avinash

-- 
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] Trade

2010-04-02 Thread Avi
I will trade my Droid + $100 for a Nexus One.

-- 
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

To unsubscribe, reply using remove me as the subject.


[android-developers] How to create text file and read and write from it ?!?!

2010-02-24 Thread Avi
Hi,

I am very new to android and i have wrote an application that reads
the Cell ID information , now i want to create a text file and store
the information inside , i have googled this issue but i couldn't find
a solution that really workd .

can someone help me ?!?

-- 
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: Read data from WebView (WebKit) or Browser Intent

2009-09-08 Thread Avi ......


Hi Steve,
are you able to solve the problem of yours?
one possible way would be reading the entire source in a string and
fetching the required data via string operations.
but i think this is nt the best solution 
if you are able to do it with some better way then plz do reply

Thanks and Regards,
Avi

--~--~-~--~~~---~--~~
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: How to get a deliver pdu from a SmsMessage

2009-03-26 Thread avi


Is there a function available to construct a deliver PDU type based on
Standards 23.040 ? I know getSubmitPdu is used for constructing Submit
PDU.

Or if someone has already written a function for it, could you please
share it with me?

Avi
On Feb 18, 9:23 am, Mark K mark.ka...@gmail.com wrote:
   To get thepdufrom a message, use a broadcast reciever, set the
 intent filter in the manifest to recieve sms, you can get apdufrom a
 message in the broadcast reciever as follows:

 public void onReceive(Context context, Intent intent)
         {
                 // if the abort command is issued this will execute when the
 next message is received.
                 // The message will not be processed and this instance will be
 removed as a receiver.
                 System.out.println(onRecieve message.);
                 System.out.println(Intent action: +intent.getAction());
                 if (intent.getAction().equals(ACTION_RECIEVED))
                 {
                    System.out.println(getting messages.);
                    // retrieve the received sms messages form the intent.
                    Bundle bundle = intent.getExtras();
                    if ( bundle==null)
                    {
                       System.out.println(Message bundle is null!);
                       return;
                    }
                    else
                    {
                         // retrieve all incoming messages that haven't been
 processed.
                         // typically will be only one message per receive 
 event.
                       Object[] pdusObj = (Object[]) bundle.get(pdus);
                       if ( pdusObj==null )
                       {
                          System.out.println(Messagepdu'sare null!);
                          return;
                       }
                       SmsMessage[] messages = new SmsMessage[pdusObj.length];
                       System.out.println(retrieving: +pdusObj.length+
 messages.);
                           for (int i = 0; ipdusObj.length; i++)
                           {
                                 // create the message from thepdu
                              messages[i] = SmsMessage.createFromPdu ((byte[]) 
 pdusObj
 [i]);
                              System.out.println(Message: +i+ +messages
 [i].getMessageBody());
                              System.out.println(Message from: +messages
 [i].getOriginatingAddress());
                              if (saveMessage)saveMessage(messages[i]);
                           }
                    }
                 }
                         }

 On Feb 16, 9:48 pm, Hui wan...@yeah.net wrote:



  To SmsMessage, it only supports to parsedeliverpduinto SmsMessage,
  but how to do a reverse operation (get adeliverpdufrom a
  SmsMessage). On the other hand, there is a method getSubmitPdu to get
  a submitpdufrom a submit message, but no reverse function.- Hide quoted 
  text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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] data transfer to moblie from server/pc using GPRS

2008-12-26 Thread avi

hi,
i have to build an application that will transfer data from a server
to an android enabled mobile phone via GPRS...
i dont know where to start..give me some ideas...
thanks...

--~--~-~--~~~---~--~~
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: Command line parameters to Instrumentation test case

2008-12-17 Thread avi

I found it out. Posting it for people who might be interested.

 Intents are used for this purpose. The Activity Manager command line
tool am can accept Intent parameters.

adb shell am -e param_name value -n package/.Activity_class
can be used to execute the Activity from command line and in the java
class intent.getStringExtra(param name); function can be used to
retrive the value.

HTH

avi
On Dec 16, 9:04 pm, avi avinanku...@gmail.com wrote:
 All,

 Is there a way to provide command line parameters to Instrumentation
 test case. I know in regular jUnit test cases, we can specify -
 Darg_name=value. Can I do something similar?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---