[android-developers] Re: com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/internal/view/SupportMenu.class

2016-07-21 Thread Igor Ganapolsky
Try to leverage the *configurations.all { }* block at the bottom of your 
build.gradle.  You can then exclude module: 'support-annotations'

On Wednesday, June 8, 2016 at 12:41:29 AM UTC-4, Sabyasachi Dash wrote:
>
> Hi,
> I included compile 'com.google.android.gms:play-services-gcm:9.0.0*' *in 
> build.gradle and also added 
> configurations.all {
>
> resolutionStrategy {
> force 
> *'com.android.support:support-annotations:23.1.0' *}
> } to force a common support-annotations versions for both the app and test 
> app. But after that I am getting the following error
>
>
> com.android.build.api.transform.TransformException: 
> java.util.zip.ZipException: duplicate entry: 
> android/support/v4/internal/view/SupportMenu.class
>
>
> I am not able to resolve the error and stuck here. Any help will be much 
> appreciated.
>
>
>
>

-- 
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/61d0dd89-4f48-4da3-a64e-0f135db8d3a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: AppWidget: help with setOnClickPendingIntent()

2016-06-29 Thread Igor Ganapolsky
I am facing the same problem with my RemoteViews in notification layout.  I 
cannot set multiple PendingIntents with different intent extras.  Is this 
still the case in 2016?  I am surprised they didn't fix it.

On Sunday, June 14, 2009 at 3:19:31 PM UTC-4, BoD wrote:
>
> Hi! 
>
> I'm making a little AppWidget that should be configured when you first 
> add it and also when you click on it. 
>
> I figured, since clicking on it should do the same as the "creation" 
> event, why not try to use the same code? 
>
> My configuration Activity should not know or care, whether it was 
> called for a creation event or an "already exists, wants to be 
> configured" event. 
>
> So I extend AppWidgetProvider, create a RemoteViews for my AppWidget 
> and do this in onUpdate(): 
>
> Intent intent = new Intent(context, 
> ConfigureActivity.class); 
> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
> intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 
> appWidgetId); 
>
> PendingIntent pendingIntent = PendingIntent.getActivity 
> (context, 0, intent, 0); 
>
> views.setOnClickPendingIntent(R.id.buttonImage, 
> pendingIntent); 
>
>
> For some reason it's not working as I'd like: 
> in my ConfigureActivity when I look at getIntent().getExtras 
> ().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID), it returns 
> always the same id: the first one that was configured. 
>
> Now the strange part: 
> if in the code above I add this line: 
>
> intent.setData(ContentUris.withAppendedId(Uri.EMPTY, 
> appWidgetId)); 
>
> then it works correctly and in my ConfigureActivity getIntent 
> ().getExtras().extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID) 
> returns the correct id, the id of the widget I clicked on. 
>
> Surely there is an explanation but I don't see it. 
> Please help! :) 
>
> Thanks a lot! 
>
> BoD

-- 
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/4c6f0801-a186-4abf-9ff2-0e0718143d6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] canvas.drawBitmap draws over screen image instead of replacing screen image

2016-03-03 Thread Igor Ganapolsky



This would actually draw a black color for your canvas.  See screenshot.

On Sunday, November 25, 2012 at 7:25:15 PM UTC-5, Romain Guy wrote:
>
> Surfaces are double (or even triple) buffered. You are indeed not getting 
> in your canvas what's currently on screen but what was on screen a frame 
> ago. The easiest way to clear the surface is to call canvas.drawColor(0, 
> PorterDuff.Mode.CLEAR) (you can also use 0xff00, PorterDuff.Mode.SRC).
>
>
> On Sun, Nov 25, 2012 at 3:42 PM, Johan 
> > wrote:
>
>> I have some strange behaviour when repainting the screen with my live 
>> wallpaper.  I'm scaling an image and drawing it to the screen, but on each 
>> draw (as the image is scaled smaller than the previous draw), I can still 
>> see the previous image below the new image.
>> How do I clear the previous image out so that only the new scaled image 
>> is displayed?
>>
>> This is my code:
>>
>> private final Runnable mDraw = new Runnable() {
>> public void run() {
>> draw();
>> }
>> };
>>
>> void draw() {
>> SurfaceHolder holder = getSurfaceHolder();
>> Canvas canvas = null;
>> try {
>> canvas = holder.lockCanvas();
>> if(canvas != null) {
>> this.paintScreen(canvas);
>> }
>> }finally {
>> if(canvas != null) {
>> holder.unlockCanvasAndPost(canvas);
>> }
>> }
>> mHandler.removeCallbacks(mDraw);
>> if (mVisible) {
>> mHandler.postDelayed(mDraw, 6);
>> }
>> }
>>
>> Every minute my paintSurface function scales a bitmap (image loaded from 
>> resources), then uses canvas.drawBitmap to put the image on the screen.  As 
>> I understand from the documentation, holde.lockCanvas()is not supposed to 
>> contain the image currently on the screen and every pixel has to be 
>> drawn... this doesn't seem to be the case since the previous pixels are 
>> obviously under the new pixels.
>>
>> Thanks,
>> J
>> (26 Sept '12 - 10:45 AM)
>>
>> -- 
>> 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
>
>
>
>
> -- 
> Romain Guy
> Android framework engineer
> roma...@android.com 
>
>

-- 
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/e0e401bb-079e-4519-a650-036d554ecfda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Google Play Services adds nearly 10,000 methods!

2015-07-17 Thread Igor Ganapolsky
Any update on this issue?  I there a workaround at all?  I am experiencing 
severe DEX limitations in my project because of this.

On Tuesday, March 25, 2014 at 1:56:16 PM UTC-4, Jeff Campbell wrote:
>
> The latest version and the Google Play Services (4.3) now adds about 2,500 
> more methods (since 4.2)!!  (Adding Google Play Services to your project 
> will add about 14,000 methods to your app) seems to be getting worse 
> and worse!
>
> On Friday, February 7, 2014 2:14:50 PM UTC-7, Jeff Campbell wrote:
>>
>> We have an app that depends on a lot of libraries, and recently we wanted 
>> to integrate Google Maps into our application.  We learned that we would 
>> have to add the following dependency to our app:
>>
>> compile 'com.google.android.gms:play-services:4.1.32'
>>
>> Before adding this dependeny, our app had about a 40k method count. 
>>  After adding this dependency our method count jumped to about 50k (about 
>> 10k methods added to our apk!).  And, it seems that with every new version 
>> of this dependency it grows more and more (we noticed about a 2k growth in 
>> the last update).
>>
>> I know that this dependency contains a LOT of different types of services 
>> which include things we don't even use (which all contribute to the 10k 
>> method count).  I know that I can use Proguard to strip out un-needed 
>> methods, but in a development environment this just slows down build time, 
>> and can make debugging issues difficult.
>>
>> Could the Google Play Services be divided into seperate aar projects? 
>>  Example:
>>
>> play-services-core (required by all... assuming that there is some shared 
>> code)
>> play-services-maps
>> play-services-games
>> play-services-ads
>> play-services-plus
>> play-services-wallet
>> etc
>>
>> Doing this would reduce the risk of apps hitting the 65k method limit cap 
>> (seems crazy that a Google library takes 15% of the 65k limit of any single 
>> app)
>>
>> Thanks,
>> Jeff
>>
>>
>>

-- 
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/d/optout.


[android-developers] Re: ServiceTestCase and Contexts

2015-01-29 Thread Igor Ganapolsky
I am getting this error:

> android.content.Context.getMainLooper()' on a null object reference
>
When calling 
new GoogleApiClient.Builder(getApplication())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.build();

 

On Tuesday, February 8, 2011 at 10:54:05 AM UTC-5, nate wrote:
>
> Thanks for the response.  The assets that I needed for the test 
> project were specifically built for testing and we could not 
> distribute them in the assets of our app (we are keeping the app 
> footprint small), but the workaround I posted above worked fine to get 
> the assets from the test project. 
>
> On Feb 4, 5:04 pm, "A. Elk"  wrote: 
> > Hmmm. 
> > 
> > ServiceTestCase.getSystemContext() returns the context of the test 
> > package. ServiceTestCase.getApplication() gets the Application 
> > instance in use by the service under test. It's probably better to use 
> > that Application object to look at the assets you want. 
> > 
> > When you wrote getContext(), I didn't understand which class you were 
> > talking about. In a test case class, calling getContext() will usually 
> > default to AndroidTestCase.getContext(), which will give you the 
> > context of the test package. In an instrumented test case like 
> > ActivityInstrumentationTestCase2, you have an Instrumentation object, 
> > so you can call getTargetContext() on that object to get the context 
> > of the instrumented component under test. 
> > 
> > To come back to the original problem, which assets do you need to use? 
> > Could you build them into your test package as well as the application 
> > under test, instead of trying to get them from the app on the fly? 
> > 
> > On Feb 4, 11:20 am, nate  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > OK, I found a solution: 
> > 
> > > I created a context to our test package and was able to access the 
> > > assets: 
> > 
> > > mTestAppContext = getContext().createPackageContext("com.blah.test", 
> > > Context.CONTEXT_IGNORE_SECURITY); 
> > 
> > > Just in case anyone else needs a workaround. 
> > 
> > > On Feb 4, 10:36 am, nate  wrote: 
> > 
> > > > Also, i put the test assets in the target project's directory and 
> was 
> > > > able to access them with: 
> > 
> > > > getSystemContext().getAssets().list(".") 
> > 
> > > > On Feb 4, 10:31 am, nate  wrote: 
> > 
> > > > > I checked my setUp() method and I do call super.setUp() as the 
> first 
> > > > > line.  The reason I believe the contexts are the same are 
> two-fold: 
> > 
> > > > > I tried both: 
> > 
> > > > > getSystemContext().getAssets().list(".") 
> > > > > getContext().getAssets().open("."); 
> > 
> > > > > and neither of them listed any files.  The second reason is that I 
> > > > > read the code for ServiceTestCase and saw that the 
> getSystemContext() 
> > > > > is just the 
> > > > > same context retrieved by getContext(), but it's grabbed before 
> any 
> > > > > tests have a chance to mess with it(according to the comment in 
> the 
> > > > > code): 
> > 
> > > > > @Override 
> > > > > protected void setUp() throws Exception { 
> > > > > super.setUp(); 
> > 
> > > > > // get the real context, before the individual tests have 
> a 
> > > > > chance to muck with it 
> > > > > mSystemContext = getContext(); 
> > 
> > > > > } 
> > 
> > > > > So it would seem that getting the context to the app the testcase 
> is 
> > > > > in is not possible with the ServiceTestCase, unless I am missing 
> > > > > something. 
> > 
> > > > > On Feb 3, 9:15 pm, "A. Elk"  
> wrote: 
> > 
> > > > > > What leads you to believe that both Context objects contain the 
> same 
> > > > > > information? If you do a getSystemContext() you should get the 
> context 
> > > > > > that's stored during setUp(). The only thing that might screw 
> this up 
> > > > > > is if you overrode setUp() but forgot to call super.setUp() 
> first. 
> > 
> > > > > > On Feb 2, 2:08 pm, nate  wrote: 
> > 
> > > > > > > Hey Everyone, 
> > > > > > >I don't know if I am doing something wrong here, but when I 
> am 
> > > > > > > trying to use the ServiceTestCase class to test my Service, I 
> cannot 
> > > > > > > get a context which points to the test project.  getContext() 
> and 
> > > > > > > getSystemContext() both seem to point to the target project's 
> > > > > > > context.  The reason I need the context of my test app is that 
> i have 
> > > > > > > some assets which i need to be able to use in order to test 
> the 
> > > > > > > service in question.  Does anyone know of a workaround or 
> could point 
> > > > > > > me at a way of resolving this?  (i looked through the source 
> of 
> > > > > > > ServiceTestCase and didn't see another way) 
> > 
> > > > > > > Something similar to instrumentationtestcase's 
> > > > > > > getInstrumentation.getContext() is what I am looking for. 
> > 
> > > > > > > Thanks.

-- 
You receive

[android-developers] Re: process.destroy() logging exceptions in ICS

2014-08-26 Thread igor ganapolsky
But process.exitValue() doesn't actually destroy the process.

On Thursday, July 5, 2012 4:43:36 PM UTC-4, elliotn wrote:
>
> If anybody cares, I did find a workaround:
>
> ...
> finally {
>destroyProcess(process);   
> }
>
>
>
> private static void destroyProcess(Process process) {
> try {
> if (process != null) {
> // use exitValue() to determine if process is still 
> running. 
> process.exitValue();
> }
> } catch (IllegalThreadStateException e) {
> // process is still running, kill it.
> process.destroy();
> }
> }
>

-- 
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/d/optout.


[android-developers] Re: Fork/Join and JSR166 on Android

2014-05-28 Thread igor ganapolsky
Ed,
Being that your link is 3 years old, is it still relevant to today's Android 
development landscape?

-- 
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/d/optout.


[android-developers] Re: Fork/Join and JSR166 on Android

2014-05-28 Thread igor ganapolsky
Being that your link is 3 years old, is it still relevant to today's Android 
development landscape?

-- 
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/d/optout.


[android-developers] Re: ADB server didn't ACK, cannot bind tcp...

2014-02-20 Thread igor ganapolsky
You can try running this command to kill port 5037:
*fuser -k tcp 5037*

Otherwise, read this article to get a better understanding of what's 
running on your ports:
https://www.debian-administration.org/article/184/How_to_find_out_which_process_is_listening_upon_a_port


On Wednesday, June 10, 2009 3:46:23 PM UTC-4, jphdsn wrote:
>
> Hi. 
>
> I saw with the netstat -a command that the port 5037 was occupied. 
> It's OK now. 
>
> thanks 
>
> On 10 juin, 16:11, "H N Kavya-DXN738"  wrote: 
> > Try killing the daemon many times. And again try starting it. It may 
> > help 
> > 
> > -Original Message- 
> > From: android-d...@googlegroups.com  
> > 
> > [mailto:android-d...@googlegroups.com ] On Behalf Of 
> jphdsn 
> > Sent: Wednesday, June 10, 2009 7:36 PM 
> > To: Android Developers 
> > Subject: [android-developers] ADB server didn't ACK, cannot bind tcp... 
> > 
> > Hi 
> > Coud anyone tell me if he had been teh same problem witj the adb command 
> > line? 
> > 
> > jphdsn$ /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell 
> > * daemon not running. starting it now * 
> > cannot bind 'tcp:5037' 
> > ADB server didn't ACK 
> > * failed to start daemon * 
> > error: cannot connect to daemon 
> > 
> > And if there is a solution 
> > 
> > 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] GooglePlayServices not found

2013-09-05 Thread igor ganapolsky
Ever since updating the latest Android Studio and the latest SDK, I cannot 
see google maps in my project.  It just shows a blank map.  Logcat prints 
the following error:
*GooglePlayServicesUtil: The Google Play services resources were not found. 
Check your project configuration to ensure that the resources are included.*
*
*
Everything was working recently, this problem just started a few days ago. 
 Please help!!

Igor

-- 
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: ActionBarCompat error

2013-09-04 Thread igor ganapolsky
It turns out that I needed *ids*, *reserved_ids*, and *attrs.xml* in my 
res/values folder.  I had inadvertently deleted these.  Now all works!

On Thursday, September 5, 2013 1:20:04 AM UTC-4, igor ganapolsky wrote:
>
> All of a sudden my Android Studio is giving me the following compilation 
> error:
> *cannot resolve symbol @id/actionbar_compat_title*
> *
> *
> This is code located in styles.xml:
> 
> <item name="android:id">@id/actionbar_compat_title</item>
> <!-- layout_width/height/weight must be set in code -->
> <item name="android:gravity">center_vertical</item>
> <item name="android:textSize">18sp</item>
> <item name="android:paddingLeft">6dp</item>
> <item name="android:paddingRight">6dp</item>
> <item name="android:singleLine">true</item>
> <item name="android:ellipsize">marquee</item>
> 
>
> I think this error is very stupid, and furthermore there is no clear way 
> to avoid it.  How can I fix Android Studio so that it doesn't give stupid 
> errors like this??
>
> Igor
>

-- 
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] ActionBarCompat error

2013-09-04 Thread igor ganapolsky
All of a sudden my Android Studio is giving me the following compilation 
error:
*cannot resolve symbol @id/actionbar_compat_title*
*
*
This is code located in styles.xml:

@id/actionbar_compat_title

center_vertical
18sp
6dp
6dp
true
marquee


I think this error is very stupid, and furthermore there is no clear way to 
avoid it.  How can I fix Android Studio so that it doesn't give stupid 
errors like this??

Igor

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


Re: [android-developers] Not able to install Android Studio

2013-09-04 Thread igor ganapolsky
Here is what my Windows log manager shows:
Faulting application name: android-studio-bundle-130.737825-windows.exe, 
version: 1.0.0.0, time stamp: 0x4b1ae3cc
Faulting module name: msvcrt.dll, version: 7.0.9200.16384, time stamp: 
0x5010ae12
Exception code: 0xc41d
Fault offset: 0x00015351
Faulting process id: 0x1024
Faulting application start time: 0x01cea99db9989e3a
Faulting application path: 
C:\Users\eazyigz\Downloads\android-studio-bundle-130.737825-windows.exe
Faulting module path: C:\Windows\SYSTEM32\msvcrt.dll
Report Id: faf70997-1590-11e3-bf34-9c4e369016e4
Faulting package full name: 
Faulting package-relative application ID: 

On Wednesday, September 4, 2013 2:36:39 PM UTC-4, igor ganapolsky wrote:
>
> There aren't issues with other programs on my machine using the PATH 
> variable with spaces.  What should I do?
>
> Igor
>
> On Wednesday, September 4, 2013 2:27:43 PM UTC-4, Larry Meadors wrote:
>>
>> JDK installed in a directory that has spaces? Windows has issues with 
>> that sometimes. 
>>
>> Larry 
>>
>

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


Re: [android-developers] Not able to install Android Studio

2013-09-04 Thread igor ganapolsky
There aren't issues with other programs on my machine using the PATH 
variable with spaces.  What should I do?

Igor

On Wednesday, September 4, 2013 2:27:43 PM UTC-4, Larry Meadors wrote:
>
> JDK installed in a directory that has spaces? Windows has issues with 
> that sometimes. 
>
> Larry 
>

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


Re: [android-developers] Using EasyTracker with SherlockFragmentActivity

2013-08-16 Thread igor ganapolsky
Hello,
if you don't use that library, then what do you use for analytics in your 
mobile apps?  I don't know of a GA/EasyTracker specific forum...

Thanks,
Igor

On Friday, August 16, 2013 11:30:02 AM UTC-4, TreKing wrote:
>
>
> On Fri, Aug 16, 2013 at 9:47 AM, igor ganapolsky 
> 
> > wrote:
>
>> I am saying that I have no trouble using EasyTracker in regular *Activities 
>> *and *Fragments*.  It is the *SherlockFragmentActivity *that is giving 
>> me trouble.
>>
>
> I see. Well, I don't use that library, but if you don't get any help here, 
> perhaps asking on that library's project forum would be a good idea, if the 
> issue is specific to it?
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
> transit tracking app for Android-powered devices
>  

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


Re: [android-developers] Using EasyTracker with SherlockFragmentActivity

2013-08-16 Thread igor ganapolsky
I am saying that I have no trouble using EasyTracker in regular *Activities 
*and *Fragments*.  It is the *SherlockFragmentActivity *that is giving me 
trouble.

On Thursday, August 15, 2013 10:39:20 PM UTC-4, TreKing wrote:
>
>
> On Thu, Aug 15, 2013 at 2:42 PM, igor ganapolsky 
> 
> > wrote:
>
>> I am having a hard time using Google Analytics EasyTracker in my 
>> Activities that extend SherlockFragmentActivity.
>
>
> Are you saying that this works otherwise?
>
>
> -
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
> transit tracking app for Android-powered devices
>  

-- 
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] Using EasyTracker with SherlockFragmentActivity

2013-08-15 Thread igor ganapolsky


I am having a hard time using Google Analytics EasyTracker in my Activities 
that extend SherlockFragmentActivity. When I try to use 
EasyTracker.getInstance().activityStart(this);in onStart, the compiler 
doesn't complain but the app crashes with:

*android.content.res.Resources$NotFoundException: String resource ID 
#0x7f0a0001*

If I try to do EasyTracker.getInstance().setContext(this); in any method 
outside of onStart, I get the same exception.

I am having a hard time understanding what's going on here, or whether it 
is possible at all to use EasyTracker with FragmentActivities.

Thanks, Igor

-- 
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: XML issue

2012-12-13 Thread igor ganapolsky
Copy the xml file contents into notepad (or any plain text editor), then 
paste them back into your project.

On Thursday, July 29, 2010 11:15:09 AM UTC-4, Pedro Teixeira wrote:
>
> Hello there, 
>
> I've been going on and on with my XML file and I can't seem to find 
> any problem... 
> The file doesn't show any problem in the code but there's the red box 
> on the right which reads: 
>
> Multiple annotations found at this line: 
> - The processing instruction target matching "[xX][mM][lL]" is not 
> allowed. 
> - No grammar constraints (DTD or XML schema) detected for the 
>  document. 
>
> Here is the XML code: 
>
>  
>
> http://schemas.android.com/apk/res/ 
> android" 
> android:layout_width="fill_parent" 
> android:layout_height="fill_parent" 
> android:background="@color/black" 
> android:padding="6dp" 
> > 
>
>   android:id="@+id/header" 
> android:layout_width="wrap_content" 
> android:layout_height="wrap_content" 
> android:src="@drawable/send" 
> android:scaleType="fitXY" 
> android:layout_alignParentTop="true" 
> android:layout_centerInParent="true"/> 
>
>
>   android:id="@+id/picpreview" 
> android:layout_width="150dp" 
> android:layout_height="150dp" 
> android:scaleType="fitXY" 
> android:src="@drawable/polaroid" 
> android:layout_below="@id/header" 
> android:layout_marginLeft="15dp" 
> android:layout_marginTop="15dp"/> 
>
>
>
>  android:text="Email" 
> android:id="@+id/email" 
> android:layout_height="wrap_content" 
> android:layout_toRightOf="@+id/picpreview" 
> android:layout_width="wrap_content" 
> android:layout_below="@id/header" 
> android:layout_marginLeft="2dp" 
> android:layout_alignTop="@id/picpreview"> 
>  
>
>  android:text="Facebook" 
> android:id="@+id/facebook" 
> android:layout_height="wrap_content" 
> android:layout_toRightOf="@+id/picpreview" 
> android:layout_width="wrap_content" 
> android:layout_alignLeft="@id/email" 
> android:layout_below="@+id/email"> 
>  
>
>  android:text="Other" 
> android:id="@+id/other" 
> android:layout_height="wrap_content" 
> android:layout_toRightOf="@+id/picpreview" 
> android:layout_width="wrap_content" 
> android:layout_alignLeft="@id/facebook" 
> android:layout_below="@+id/facebook"> 
>  
>
>  
> android:id="@+id/login" 
> android:layout_width="wrap_content" 
> android:layout_height="wrap_content" 
> android:layout_margin="30dp" 
> android:layout_below="@id/picpreview" 
> /> 
>
>  android:textColor="@color/black" 
> android:layout_width="wrap_content" 
> android:layout_height="wrap_content" 
> android:layout_margin="30dp" 
> android:layout_below="@id/login" 
> /> 
>
>  android:layout_width="wrap_content" 
> android:layout_height="wrap_content" 
> android:text="@string/get_permission" 
> android:visibility="invisible" 
> android:paddingRight="30dp" 
> android:paddingLeft="30dp" 
> android:layout_margin="30dp" 
> android:layout_below="@id/label" 
> /> 
>
>  android:layout_width="wrap_content" 
> android:layout_height="wrap_content" 
> android:text="@string/publish_to_feed" 
> android:visibility="invisible" 
> android:paddingRight="30dp" 
> android:paddingLeft="30dp" 
> android:layout_margin="30dp" 
> android:layout_below="@id/permissionButton" 
> /> 
>
>
>  android:id="@+id/savebutton" 
> android:layout_width="130dp" 
> android:layout_height="wrap_content" 
> android:layout_alignParentBottom="true" 
> android:layout_alignParentLeft="true" 
> android:text="Send" 
> android:layout_marginBottom="35dp" 
> android:layout_marginLeft="20dp"/> 
>
>  android:id="@+id/cancelbutton" 
> android:layout_width="130dp" 
> android:layout_height="wrap_content" 
> android:layout_alignParentBottom="true" 
> android:layout_alignParentRight="true" 
> android:text="Cancel" 
> android:layout_marginBottom="35dp" 
> android:layout_marginRight="20dp"/> 
>
>
>   android:id="@+id/footer" 
> 

[android-developers] Re: onDraw is called twice

2012-08-14 Thread igor ganapolsky
Have you tried commenting out* super.onDraw()*?

On Saturday, December 19, 2009 5:06:01 PM UTC-5, jdekeij wrote:
>
> Hoi,
>
> In my layout I have a custom view which extends View and under this a
> button is placed. When I click the button the color changes to orange
> (Android default behavior) but it also causes the onDraw method being
> called of my custom view. Releasing the button causes again the onDraw
> method being called.
> How can I prevent this behavior? How to stop the invalidation of my
> view when clicking a button?
>
> Thanks in advance,
> Jasper
>
>

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

Re: [android-developers] is it possible to setup HTC emulator in android sdk?

2012-07-18 Thread igor ganapolsky
I think the user meant "HTC skins" for the emulator.  Kinda like what 
Motorola provides...


On Friday, January 14, 2011 10:46:18 AM UTC-5, Kumar Bibek wrote:
>
> There is no such thing as an HTC emulator. Use the normal emulator. 
> However, if you want to change the screen size or resolution of the 
> emulator, you can do that while creating one. Eclipse will help you with 
> that.
>
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://www.kbeanie.com
>
>
>
> On Fri, Jan 7, 2011 at 10:34 AM, milind wrote:
>
>> hello all
>>
>> i m new in android developing. and i want to know how to set up HTC
>> emulator in eclipse workspace.
>> right now i m using default emulator that provide by android sdk.
>>
>> if any reference link or tutorial available please send me as
>> possible.
>>
>> Thanks
>> Mind
>>
>> --
>> 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 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

Re: [android-developers] how to set the size of tab in tabHost?

2012-06-10 Thread igor ganapolsky
I don't see how this changes the size of individual tabs.  Have you tested 
it?

On Friday, May 29, 2009 12:00:33 AM UTC-4, Rockingteam wrote:
>
> Try this.
>
> tabHost.getTabWidget().getChildAt(0).setLayoutParams(new 
> LinearLayout.LayoutParams(width,height));
>

-- 
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: Sample Keyboard - Popup characters

2012-05-30 Thread igor ganapolsky
You should have an attribute - *android:popupKeyboard* - in your keys.  
Example *popup_keyboard.xml*:
http://schemas.android.com/apk/res/android";
android:keyWidth="10%p"
android:horizontalGap="0px"
android:verticalGap="0px"
android:keyHeight="56dp">


On Saturday, January 8, 2011 6:34:37 AM UTC-5, Mathieu wrote:
>
> Hi everyone ! 
>
> -> I'm trying to modify a bit the sample soft keyboard. 
>
> I would like, on longKeyPress on a character, to allow the user to 
> choose in a selection of others characters. 
> For example, on a longKeyPress on a "a", I would like to popup aàâ, 
> etc. 
>
> In the xml , I wrote this : 
>  android:popupCharacters="aàâ" /> 
> but it doesn't work. 
>
> If you have any idea, please answer ! 
>
> Thanks in advance, 
> Mathieu

-- 
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: android popup keyboard close button missing

2012-05-30 Thread igor ganapolsky
Have you ever resolved this?  I am facing a similar issue.

On Friday, January 29, 2010 4:43:33 AM UTC-5, extrapedestrian wrote:
>
> Hint: I think problem is in keyboard_popup_keyboard.xml, but I don't
> want to recompile android source...
>
> On Jan 29, 10:37 am, extrapedestrian 
> wrote:
> > When you long press soft keyboard button android:popupKeyboard shows
> > alternate characters and close button.
> > But if you have more then 10 alternate characters, they split in two
> > lines and close button is missing.
> > How can this be solved?
>

-- 
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: Android Playing YouTube video in WebView

2012-03-04 Thread igor ganapolsky
In my case, the YouTube video doesn't play at all if I click the play 
button inside the WebView client.

On Friday, April 8, 2011 10:03:08 AM UTC-4, Dan wrote:
>
> I am using webview client. 
>
> shouldOverrideUrlLoading is a method of webview client. 
>
> The issue I am having is the difference in response between 
> KEYCODE_DPAD_CENTER and the touch event. 
>
> On Apr 8, 2:16 am, Kapil Lokhande  wrote: 
> > Hi, 
> > Use webview client. best example is on android developers | webview. go 
> tohttp://developer.android.com/resources/tutorials/views/hello-webview 
>
> > 
> > -- 
> > Thanks & Regards, 
> > Kapil Lokhande | Dexter Advisory Pvt. Ltd.  | 
> Android 
> > Developer 
> > [image: dexterlogo.jpg] 
> > 
> > 
> > 
> > On Thu, Apr 7, 2011 at 7:24 PM, Dan  wrote: 
> > > I am trying to implement a web browser within my app and using WebView 
> > > for that. 
> > 
> > > For playing youtube video I used the following resource to start 
> > > playing the video: 
> > 
> > >http://stackoverflow.com/questions/3815090/webview-and-html5-video 
> > > To stay in the webView when a link is pressed and not go to the web 
> > > browser, I had to add 
> > 
> > >   @Override 
> > >public boolean shouldOverrideUrlLoading(WebView view, String url) 
> > > { 
> > >view.loadUrl(url); 
> > >return true; 
> > >} 
> > 
> > > This seems to work well if I am touching the screen to start the 
> > > video. 
> > 
> > > However if I call webView.dispatchKeyEvent to navigate to the video 
> > > image on the screen and then send a dispatchKeyEvent 
> > > KEYCODE_DPAD_CENTER Down followed by up, the image shows loading and 
> > > stays in the same state. So it did react to this key event but did not 
> > > start playing the video. 
> > 
> > > I noticed that if I touch on the video image, onShowCustomView is 
> > > called in WebChromeClient. However, if the a KEYCODE_DPAD_CENTER is 
> > > sent to the selected video image, shouldOverrideUrlLoading is called. 
> > 
> > > Can anyone help how to get this video playing with a 
> > > dispatchKeyEvent ? 
> > 
> > > 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 
> > 
> > 
> > 
> >  dexterlogo.jpg 
> > 6KViewDownload

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