Profile

Cover photo
Kay-Uwe Janssen
Lives in Bocholt, Deutschland
324,493 views
AboutPosts

Stream

Kay-Uwe Janssen

General Discussion  - 
 
Hey there,

can someone tell me if it is possible to maintain two "versions" of the same app (same package name) in play store?

some more details:
I have an app that is currently is API 15 and we have planned to do some changes that in turn would require a min API of 16. while i'm ok with going the step to a higher min API as the old uses can still use the "old" app they already have, i'm afraid as we are thinking of some changes in the backend coming early 2017 that might break the old version.

now the question is if we are somehow able to update the old version for old uses as well as having the updated new version for uses with newer devices?

e.g. having a verison x (aka the latest API16+ code) then release a version x+1 with the updated API 15 code as well as a version x+2 with the new API16+ code.

would this work?


(i know API15 -> API16 is a tiny step and the number of API15 users is not that high anymore, but we'd like to know if it would be possible at all - if necessary)
2
François Blavoet's profile photoKay-Uwe Janssen's profile photoChristophe Beyls's profile photoJohn Doe's profile photo
4 comments
 
Yes, it's possible. Use the version code 15001 for your next version, then the update will be 15002, 15003 and so on. The version 16 will have 16001 as first code version, so you won't have overlapping. At this point you can have two versions of the same app, you need the "advanced section" of developer console to manage this case.
Add a comment...

Kay-Uwe Janssen

Discussion  - 
 
Hey there,
been using AS canary since day one (maybe two... :D) and in comparison to to Eclipse+ADT it is much better imho. I also upgraded to 2.2 preview 1 (now 2) right after it has been announced and after constraint layouts have been fixed[1] for RecyclerView i love them too! :)

What i would love to see if it would be possible to zoom into the layout editor using strg+mousewheel. It is pretty annoying to use the + and - buttons especially since the zoom resets way to often. this would be an awesome addition and shouldn't be that hard to implement? :)

also it seems there is no horizontal scrollbar when showing design + blueprint mode but zoomed in. would love to see that too! :)


[1]: https://code.google.com/p/android/issues/detail?id=210720
3
Romain Guy's profile photo
 
Zooming and panning is something we need to improve 
Add a comment...
 
Just asked a question over at Android Development community, but as it is also chromecast related i'll share it here.

Thanks! :)
1
Leon Nicholls's profile photo
Add a comment...

Kay-Uwe Janssen

General Discussion  - 
 
Hello Guys,

yesterday i released an update of my App where i migrated my ListViews to RecyclerView but that brings some trouble... :(

Some of my users get "java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling". 

i found the cause but no solution yet. whenever an item in the list is updated/deleted/inserted i refresh the whole list containing my items and call `notifyDataSetChanged();` within this call the RecyclerView checks if it is computing layout or scrolling. and sometimes it find itself in that state and throws the exception.

my question now is... how can i ensure that this does not happen? how to determine if the view is doing its stuff and then wait before notifying the change?
1
Kay-Uwe Janssen's profile photoPeter Jarosz's profile photo
8 comments
 
+Kay-Uwe Janssen this was also my first assumption - sounds plausible.
Add a comment...

Kay-Uwe Janssen

Discussion  - 
 
Is it possible to assign a function using JsInterop in GWT 2.7.0(-rc1)?

I want to wrap the ChromeCast Receiver API. There you have to assign some callbacks like:

castReceiverManager.onReady = function(event) {
  // do stuff
};


I tried to do this:
@JsType
public interface Receiver {
 @JsProperty
  void onReady(Runnable onReady);
}

and passing a simple runnable. (as mentioned in https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4 below "Single Abstract Method Handling")


when trying to execute the method eg with:
private native void test(Receiver receiver)/*-{
  receiver.onReady();
}-*/;

i get "Exception caught: (TypeError) : object is not a function"
also when i do console.log(receiver) i see this:

onReady: JsTest$1_1_g$
onSenderConnected: function (event_0_g$)

where onSenderConnected was assigned in jsni code
5
Kay-Uwe Janssen's profile photoRay Cromwell's profile photo
2 comments
 
Very soon (with a week), you will be able to do the following:

@JsType 
public interface Receiver {
 @JsProperty
  void onReady(@JsFunction Runnable onReady);
}

The @JsFunction annotation tells the compiler it's safe to auto-promote a Java interface class into a Javascript function closure when passing into JS.

Won't be available in head, but will be available in nightly snapshots.

If you want to do what you're doing, you need a utility function:

public FunctionUtils {
  Runnable toFunction(Runnable r) {
     return RunnableImpl.create(r);
  }

  static final class RunnableImpl implements Runnable {
    public static Runnable create(Runnable r) /*-{
      return $entry(function() {
        r.@java.lang.Runnable::run()();
      });
    }-*/;

    public native void run() /*-{
       this();
    }-*/;
  }
}


Then receiver.onReady(FunctionUtils.toFunction(runnable))
Add a comment...

Kay-Uwe Janssen

General Discussion  - 
 
Why is the new Media Controll stuff not included in the support library? Do i understand that correctly, that if i want to support this feature on 5.0+ i have to use Notification.Builder instead of NotificationCompat.Builder and therefore have to repeat my notification code for 5.0+?

Also if RemoteControlClient is deprecated, does wear show the new notifications or do i still have to maintain that?
1
Add a comment...

Kay-Uwe Janssen

Gradle Build System  - 
 
I just tried to publish an update of my App using target/compileSdk 24, build tools 24.0.0 and 2.2.0-alpha3 of the gradle plugin but play store complained that i have to run zipalign? shouldnt the gradle build do aligning and signing for me (at least it did before)? same issue when using "v2SigningEnabled false"

i have no special configuration for signing or algining process in my build (just a signingConfig with storefile, passwod and keyalias/-password)

can someone help me with this issue? :(
4
Vladimír Tintěra's profile photoFrançois Blavoet's profile photoKay-Uwe Janssen's profile photo
3 comments
 
Thank you for your Response. I'll treffen alpha 4 and in that does not work I'll go back to 2. :) 
Add a comment...

Kay-Uwe Janssen

Android Studio  - 
 
Are there any known issues with AS (1.4 stable) and Windows 10 (Pro)?

I have just installed the latest AS on my clean installation of Windows 10 Pro and have massive lags when i move my mouse inside of the AS window (when it is focused). Also when i move my mouse inside AS with focus the CPU usage of AS goes up to 4-5%. moving the mouse over the AS window when it does not have focus also increases the CPU usage up to 5% but the mouse/cursor is not lagging. when i do not move the mouse over the window (with and/or without focus) the cpu usage is at 0-0.1%.

My PC Specs:
OS: Windows 10 Pro (clean installation)
CPU: i7-4930K (3.4Ghz; 6 cores + HT)
RAM: 16GB
Android Studio: 1.4 Stable (141.2288178)
Java: 1.8.0_60-b27 x64

Thanks in advance! :)
2
Daniel Schott's profile photoKay-Uwe Janssen's profile photoDalija Prasnikar's profile photo
5 comments
 
Actually, since issue seems to be triggered by working on different projects, so I cannot be sure in which AS version it appeared. I am usually working on single project, but today I had to rebuild about dozen.
Add a comment...

Kay-Uwe Janssen

Help Center  - 
 
Hello Guys, i'm currently polishing the cast feature in my app. until now i had a simple check if play services are available and if not i showed the provided error dialog.

but while debugging an issue on a 4.0.3 emulator without google apis i found this unbelivable annoying and i thought that i want to be more strict with that error dialog. so my first step was to check if play services are missing if the play store(com.android.vending) app is available. if not i assume a non google device like a kindle device and just disable chromecast internally.

now i'm asking myself, how to tackle other potential issues with an option to disable the message for future checks or if i should just let the play services error dialog pop up.

i mean i think that i avoided the most annoying case for devices with "no chance" to get this ever running by not doing anything for devices without play services and play store. but what other cases should i take care of?

anyone with a chromecast enabled app has a similar experience an can give me some hints?

Thanks in advance!
1
Add a comment...

Kay-Uwe Janssen

Gradle Build System  - 
 
Hey guys,

I'm new to testing and i'd like to add some basic "click thru the app" espresso tests to my app to have at least a small chance of catching errors before releasing a build. while i have my first little test running for debug builds i'd like to run them on release builds as those are proguarded and i already had some situations where i had a missing rule for proguard that killed my release build but i missed to test that specific part of the app in my manual tests befor releaseing.

is there a way of running those tests on my proguarded release build from gradle?

thanks in advance :)
1
Chris P's profile photoKay-Uwe Janssen's profile photo
8 comments
 
in case you care: it looks like the sdk uses http://www.jython.org/
Add a comment...

Kay-Uwe Janssen

Android Studio  - 
 
Hey Guys,

i'm currently planing to invest in IntelliJ 14. I know that Studio is based on IntelliJ (13?) and the IntelliJ Android Plugin shares the code with Android Studio (at least according to http://blog.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/).

My question is, does anyone know how near the features of Studio an IntelliJ are related to Android development? Like "Hey guys here is Studio 0.9.2" and the intellj guys yell "here take the update for the android plugin to be on par with Studio 0.9.2" or is the intellj plugin behind the studio features? if yes, how far (on average)?

i don't want to use intellij for Android only but also for my backend and some other projects where i'm currently using eclipse for. e.g. the backend is in the same gradle project but AS does not like it if i want to work on my backend (always some dependencies missing/not synced and generated code is not found). so i have to do my backend work with Eclipse and the gradle plugin. and that is something i want to stop.
1
Jaydeep Wagh's profile photoKay-Uwe Janssen's profile photoAdam Wilson's profile photo
8 comments
 
I run IntelliJ and Android Studio side-by-side. You can use either as you wish - even for the same projects.
Add a comment...

Kay-Uwe Janssen

Discussion  - 
 
Anyone got an Idea what have to go wrong to totaly freeze an Andriod 5.0  Emulator with an App that runs fine on API14+ and also with ART (tested on 4.4.4/CM11)? There is nothing suspicious in logcat before the freeze happens. Tested the x86 and ARM image of 5.0 with Google APIs. Had not yet a chance to test on an actual device.

I know that this question is hard to answer without knwoing the source but maybe someone got a similar problem before and might have som tips. Or even some additinal hints on how to debug such a freeze.

Next step: Testing if the current production APK freezes too...

Thanks to everyone and i hope someone can help me :(
1
Roman Ettlinger's profile photoKay-Uwe Janssen's profile photo
26 comments
 
yeah, i'm german. :)
Add a comment...
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Bocholt, Deutschland
Previously
Nieukerk, Deutschland - Aldekerk, Deutschland
Links
Basic Information
Gender
Male