Profile

Cover photo
Ralph Bergmann
Lived in Berlin
140 followers|248,201 views
AboutPostsPhotosYouTube

Stream

Ralph Bergmann

Discussion  - 
 
Öffi kann man nicht mehr vom Kalender aus öffnen :-(

Ich weiß nicht, seit wann es ist, ob es mit Android 6 oder einem Google Kalender / Maps update gekommen ist. Früher konnte ich im Kalender auf die Adresse klicken und wurde gefragt, ob ich den Eintrag in Maps oder Öffi öffnen möchte, neuerdings geht immer sofort Maps auf. Dies Einstellung "immer öffnen mit" ist nicht gesetzt.
 ·  Translate
1
David Flechl's profile photoMatthias Haupt's profile photoAndreas Schildbach's profile photoRalph Bergmann's profile photo
5 comments
 
mir sind da nur diese beiden Zeilen aufgefallen:
ActivityManager: START u0 {act=android.intent.action.VIEW dat=http://maps.google.com/... flg=0x80000 cmp=com.google.android.apps.maps/com.google.android.maps.MapsActivity (has extras)} from uid 10030 on display 0
ActivityManager: Ignoring FLAG_ACTIVITY_NEW_DOCUMENT, launchMode is "singleInstance" or "singleTask"

Könnte man nicht, als Alternative, wieder die Option einbauen, dass man nicht nur Adresse aus den Kontakten sondern auch aus den Kalendereinträgen auswählen kann? Das war doch schon mal drin, warum ist es rausgeflogen? :-(
 ·  Translate
Add a comment...

Ralph Bergmann

Shared publicly  - 
 
 
Here's the slides from +Ben Weiss & my talk from #droidconuk15 on Building Meaningful Motion.

We provide a whistle-stop tour of Android's animation APIs & share our experience on getting the most out of them.

The talk was recorded so hopefully a video will be available soon. Until then; each slide has speaker notes in the description.

#AndroidDev #AndroidDesign
14 comments on original post
1
Add a comment...

Ralph Bergmann

Help Center  - 
 
Has someone experiences with RecyclerView + SortedList + SortedList.BatchedCallback?
1
1
Andhie Wong's profile photoRalph Bergmann's profile photoMichael Gonzalez's profile photo
5 comments
 
Okay I refactored it and now I use addAll() too and it works.
But it only works without a BatchedCallback. If you use addAll() with a BatchedCallback the RecyclerView stays empty :-(
Add a comment...

Ralph Bergmann

Shared publicly  - 
 
RxAndroid LifecycleObservable vs. AppObservable

What is the different between LifecycleObservable and AppObservable? And when to use one of them?
RxAndroid - RxJava bindings for Android
1
Add a comment...

Ralph Bergmann

Allgemeine Diskussion  - 
 
Sehe ich das grad richtig, dass es keine offizielle RecyclerView.Adapter Klasse gibt, die mit einem Cursor arbeitet? :-(
 ·  Translate
1
Ralph Bergmann's profile photoThomas Manthey's profile photo
3 comments
 
Naja, man muss halt bedenken, dass nicht alle Daten, auf die der Cursor Zugriff gibt, auch notwendigerweise komplett im Speicher liegen - beim iterieren kann also Nachladen vorkommen (Stichwort CursorWindow), da ändert auch der CursorLoader nichts, die Daten können halt erst angezeigt werden, wenn Sie da sind. Kann also deutlich besser sein, das ResultSet komplett in ein Datenmodell zu laden (liegt natürlich an der Datenmenge) und dann den Cursor gleich zu schliessen. Kannst aber auch einen eigenen adapter schreiben, der den Cursor hält und musst dann in onBindViewHolder mit moveToPosition an die entsprechende Stelle springen.
 ·  Translate
Add a comment...

Ralph Bergmann

Nexus (HOLOYOLO)  - 
 
How to get the original power toggle widget back? Old Nexus devices have a power toggle widget. New devices (Nexus6 / NExus9) doesn't have this. How to get this widget back? I think it doesn't depend on the Andropid version. My Nexus4 with Android 5.x has this widget.
1
Add a comment...

Ralph Bergmann

Shared publicly  - 
 
Hilfe!!!
 ·  Translate
 
Sicher testet Ihr Eure App ganz ausgiebig und habt deshalb Erfahrungen mit dem Ausführen von AndroidTest mit Gradle?! Wenn ja, dann klickt doch mal auf den Link und helft mir :-)
 ·  Translate
4 comments on original post
1
Add a comment...
In his circles
112 people
Have him in circles
140 people
carolin ortlepp's profile photo
Steffen Schojan's profile photo
GDG London's profile photo
Ria Gra's profile photo
Dave Smith's profile photo
Kamran Behechti's profile photo
Richard Meinsen's profile photo
Alexander Pehling's profile photo
Graham Smith's profile photo

Communities

29 communities

Ralph Bergmann

Shared publicly  - 
 
 
Android pro tip: One-line custom fonts in XML with data binding!

I started playing with data binding last night for real, and I'm amazed by the power it gives you.  Check out this one-liner to set a custom font on a TextView:

@BindingAdapter({"bind:font"})
public static void setFont(TextView textView, String fontName){
 textView.setTypeface(Typeface.createFromAsset(textView.getContext().getAssets(), "fonts/" + fontName));
}

In XML:
<TextView
app:font="@{`Source-Sans-Pro-Regular.ttf`}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>

Previously, this used to take endless lines of repetitive Java code (one for each TextView!). The missing custom typeface support in TextView has been a grievance held against the Android platform for years.  There's even an inventive library to address it[2]. Data binding makes all of that obselete.  If you can't tell, I'm in love!!  It's terse, powerful, and one of the biggest leaps forward I've seen for Android productivity.

As usual, you need to put your font file in assets/fonts/, and make sure to include the data binding framework.

[1] https://developer.android.com/tools/data-binding/guide.html
[2] Calligraphy: https://github.com/chrisjenx/Calligraphy
41 comments on original post
1
Add a comment...

Ralph Bergmann

Shared publicly  - 
 
 
0.5-M1 released

If you are using eclipse for Android development, a stable release of the +Andmore Project tooling is now available.   The change log and New and Noteworthy along with installation instructions can be found at the link below.

https://github.com/eclipse/andmore/releases/tag/0.5-M1

This is the first public stable release of the fork of the Android Developer Tools, planning for 0.5-M2 is already underway with planned support for AARs at the top of the priority list.

#android   #androiddev   #eclipse
View original post
2
Jan Lolling's profile photoRalph Bergmann's profile photo
2 comments
 
+Jan Lolling ja Google schon, dies ist ein Eclipse Projekt auf Basis von ADT (dem Plugin von Google)
 ·  Translate
Add a comment...

Ralph Bergmann

General Discussion  - 
 
Hi all, I need you help :-)
1
Add a comment...

Ralph Bergmann

What little known feature of Android do you use the most?  - 
 
How to get the original power toggle widget back? Old Nexus devices have a power toggle widget. New devices (Nexus6 / NExus9) doesn't have this. How to get this widget back? I think it doesn't depend on the Android version. My Nexus4 with Android 5.x has this widget.
I want this easy enable/disable GPS button back :-)
1
Ralph Bergmann's profile photoConnor Payne/ DJ_FrozenDoctor (the Doctor)'s profile photo
8 comments
 
Oh. That's what you mean. I didn't know it was called battery saving. I know how the thing works.
Add a comment...

Ralph Bergmann

Shared publicly  - 
 
New research finds that, contrary to popular belief, restructuring software code to be more maintainable and efficient may not be worth the time and effort
1
Wolfram Rittmeyer's profile photo
 
Interesting. If this is indeed valid, though, depends on the project and refactorings done and why they were done.

You don't refactor just for the fun of it, you do so because you already realized that there's a reason. E.g. you had to maintain code and it already was hard to maintain. Whether your improvement stands the proof of time is another question :-)
Add a comment...
People
In his circles
112 people
Have him in circles
140 people
carolin ortlepp's profile photo
Steffen Schojan's profile photo
GDG London's profile photo
Ria Gra's profile photo
Dave Smith's profile photo
Kamran Behechti's profile photo
Richard Meinsen's profile photo
Alexander Pehling's profile photo
Graham Smith's profile photo
Communities
29 communities
Work
Occupation
iOS and Android developer
Basic Information
Gender
Male
Story
Tagline
ich bin ich :-)
Collections Ralph is following
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Berlin
Links