Profile

Cover photo
Josip Marković
84 followers
AboutPostsPhotosReviews

Stream

 
Preporuka svima je da prate postove na /r/androiddev subredditu.
Tamo se nerijetko može naletjeti na Google ekipu poput Tor Norbye i Chet Haase (koji inače vode jako dobar Android Developer Podcast: http://androidbackstage.blogspot.com/). Jako često se pojavi i Jake Wharton, osoba koja je sudjelovala u stvaranju najkorištenijih biblioteka.

Uglavnom se tamo akumuliraju vijesti bitne za developere, ima ekipe s različitim iskustvima i generalno je dobar i zdrav community.
 ·  Translate
News for Android developers with the who, what, where when and how of the Android community. Probably mostly the how.
3
Add a comment...

Josip Marković

Shared publicly  - 
 
 
Collapsing Toolbar Title

I finally got around to tidying up my collapsing Toolbar title code today. It's pretty simple to use. 

Just wrap your Toolbar in a CollapsingTitleLayout. From then on, you should update the title via setTitle(), and change the scroll position as needed via setScrollOffset().

There are improvements to be made in the API and text layout, but it's pretty usable now.

One thing to note, the sample image has the background collapsing with the title. This is not provided by this layout, you'll need to do it yourself. It does clip the background though.

Code: https://gist.github.com/chrisbanes/91ac8a20acfbdc410a68

#AndroidDev   #Material  
28 comments on original post
1
Add a comment...

Josip Marković

Shared publicly  - 
 
Get paranoid, yeah!
 
4.6 BETA 4 - Release Humble Huckleberry

We had to delay the release a bit this week due to some device specific mishaps that were discovered in the final review stage of the builds. As those issues have been resolved, we are happy to announce a pair of delightful changes.

We are making the edit mode of Quick Settings a bit more unified by getting rid of the split between the standard tiles and the temporary tiles such as the remote display/cast tile and the alarm tile. This means you can now hide those tiles and move them around to reorganize the screen just as you want it to be.

We are adding a new default AOSPA wallpaper. This is going to be most prominent for new users but you, experienced user, might be interested in checking it out as well. It is available as the first item on Google Now Launcher backgrounds list and also visible as a part of the "Backgrounds" app choice in other launchers such as Nova.

Please note: The default wallpaper is a bit special on the system and you might still see the old thumbnail. One way to resolve this is to do a clean flash with a factory reset (wiping of userdata). A different, more clean approach is to ask the relevant files to be removed which can be done by flashing like you would normally do and then either
a) opening a terminal/command prompt on your computer, connecting your device up to it and running: adb shell su -c 'rm -f /data/data/com.android.wallpapercropper/files/default_thumb.jpg; rm -f /data/data/com.google.android.googlequicksearchbox/files/default_thumb2.jpg'
b) opening a terminal emulator on your device and running: su -c 'rm -f /data/data/com.android.wallpapercropper/files/default_thumb.jpg; rm -f /data/data/com.google.android.googlequicksearchbox/files/default_thumb2.jpg'

As usual - have fun and #stayparanoid!

The change log:
- Make all Quick Settings tiles act similarly in edit mode
- Add a new default AOSPA wallpaper
- Improve speed and stability of the core
- Adapt to the Peek standalone application package name change

Downloads: http://paranoidandroid.co/
Blog: http://blog.paranoidandroid.co/
Bug Reports: https://paranoidandroid.atlassian.net/
Gerrit: https://gerrit.paranoidandroid.co/
GitHub: https://github.com/AOSPA
Official Community: https://plus.google.com/communities/112514149478109338346
Legacy Community (For devices which are not listed on official site): https://plus.google.com/communities/103106032137232805260
489 comments on original post
1
Josip Marković's profile photoPetar Šlat's profile photo
5 comments
 
:(
Add a comment...

Josip Marković

Shared publicly  - 
 
I've written a beginner DevBlog about using Autolayout in iOS. Check it out! http://www.clover-studio.com/blog/1-dev-blog-ios-autolayout-is-the-new-relativelayout/
1
Add a comment...

Josip Marković

Shared publicly  - 
 
 
Hey, with gnome-tweak-tool and the dock extension, gnome-3.2 is starting to look almost usable.

Now I just hope those things become part of the standard gnome shell setup and made available in the regular "system config" thing rather than hidden off. Sure, make them default to off if you want that "clean default", but make them easy to find and part of the standard install.

Or would that be too close to "Ok, we admit we were wong" and thus not politically acceptable?
424 comments on original post
1
Add a comment...
 
Great, Android specific podcast from people that develop Android
 
Are there any geeks out there interested in new podcasts? What about podcasts about Android development?

+Tor Norbye and I are proud to announce a new podcast we've started called Android Backstage. It's a podcast by and for Android programmers, featuring engineers on the Android team at Google talking about features, APIs, and technologies that we think are important for developers to know about. Or which we find interesting. Or which randomly happened to come up on the show.

If your podcast client still has room and you have an extra half-hour (ish) every month (ish), then subscribe and tune in. You can find the podcast on Feedburner.

This inaugural episode is about Android KitKat, with Tor and I talking about some of the new features in the latest release. In future episodes of the podcast, we'll interview other engineers on the team to deep-dive technologies they've worked on. Android development info, straight from the source.
16 comments on original post
1
Add a comment...
 
During the past week, my interest slightly changed from doing some programming stuff to building a server and doing some networking. Reason behind this is simple enough, at least to me: I want to learn how to properly set up a Linux ( #Ubuntu or #CentOS) server and how to maintain it.

This sounds simple enough, but of course it is not, and anyone even slightly smarter than me can confirm this. Countless of books and Web tutorials were written about this topic.

To add to the learning experience, what I'd like to do with my server is to host a personal blog up there along side some test applications and APIs I develop in my spare time (for example hnb_script). I was successful enough with a VM hosted on my main workstation. It managed do get a static IP (local) and a #NodeJS server was accessible with proper port added to the URL. "Victory" I thought to my self. "I should not have big problems when I lease a server later down the line."

Nevertheless, I did stumble upon some routing problems, and I almost crashed my LAN by tinkering with port forwarding. It made me realise how much I still have to learn. But it's a fun experience, and the fact that I did manage to achieve something is good enough.

As soon as I can, I'll continue my thoughts with some newbie friendly examples. 
1
Petar Šlat's profile photoJosip Marković's profile photo
2 comments
 
Yep, eventually I will. Currently, I will only use Heroku for easy and scalable deployment and Raspberry Pi for internal testing once I receive it.
Add a comment...
Have him in circles
84 people
Sanda Pribanić's profile photo
marin ivasovic's profile photo
Cvecara Beograd's profile photo
Slavisa Banovic's profile photo
Marco PoloTV's profile photo
Sploinks Splendid's profile photo
Ivan Barbić's profile photo
Matej Mezga's profile photo
Ivan Novosel's profile photo

Josip Marković

Shared publicly  - 
 
Kotlin may be a good choice for a second language.
 
Using Project Kotlin for Android

I've been watching and playing with Kotlin for about two years now. It's gotten to the point where I think it's really viable for Android app development. I decided to take a few nights and dig into a bunch of details about the language and why it's a good candidate.

This is a slightly modified copy of a document I presented internally at Square. We're not going to turn around and write everything in Kotlin. That wouldn't make sense. This was a sell on the language, features, and its implementation such that we can start experimenting.

Since I'm not interested in hearing people yell things that I already know about their favorite non-Java languages, comments are off and closed on this post. I've used Groovy and Scala a bunch, but thanks. I haven't used Xtend or Ceylon at all (hence their omission). If you're interested in discussing those, make your own post.

#AndroidDev #Kotlin #NotScala
Drive
Using Project Kotlin for AndroidUsing Project Kotlin for Android Statically-typed, highly-interoperable augmentation to the Java language. Author: jakewharton@gmail.com Created: 2015-01-20 Updated: 2015-01-26 Table of Contents Introduction Features Interoperability Lambas Null Safety Extension Methods Data Classes Other Awesome...
View original post
1
Add a comment...
 
I've just unlocked #OneDrive on Drive by #Jolicloud. Get extra free storage here http://joli.io/r/CD808m
Jolicloud
Get your files together. The best file browser for Chrome and Chromebook.
1
Add a comment...
 
 
After struggling with trying to figure out how various pieces fit together, I've done some research and put together the complete Android Activity/Fragment lifecycle chart. This has two parallel lifecycles (activities and fragments) which are organized vertically by time. Lifecycle stages will occur in the vertical order in which they're displayed, across activities and fragments. In this way, you can see how your fragments interact with your activities.

In addition to the attached image, I've also got an SVG: http://staticfree.info/~steve/complete_android_fragment_lifecycle.svg which is suitable for printing.

If this is missing lifecycle steps or is inaccurate in any way, let me know so I can update it!

#Android #androiddev  
34 comments on original post
1
Add a comment...

Josip Marković

Shared publicly  - 
 
This morning, right after I poured my coffee, colleague who sits across me asked an interesting question: What would happen if I initialize a #git repository one directory above existing repository?

I was actually confused. First of all, I was not sure why would he do that, and second, I was not sure what would happen. I did told him that he should make use of git submodules but since I've never used them in practice, I could not explain to him how to use them. We did talk about this issue, but the conclusion was that we do not know enough.

So, adventurous as he is, my colleague wanted to test, with me right next to him viewing the result. To show you what we've done, I'll write down unix shell commands and file paths relative to home directory.

First, we created a directory inside a directory to look like this:
git/folder1

mkdir git && cd git && mkdir folder1

In folder1 a new git repo was initialized with git init. To simulate adding files to the repo, we created 3 empty files using touch command:

touch f1
touch f2
touch f3

Running ls command would show 3 files. Running git status would show the same files as untracked files with usual message to add them using git add... You know the drill.

I'm skipping adding and committing these files and am moving back to git directory using cd .. command. Here, we initialized a new repository and did git status immediately after. Directory we named folder1 was shown as untracked file. Nothing too suspicious as of yet.

Going back to folder1, we made a commit on files created inside this folder and by using git status we see the usual message nothing to commit, meaning we committed everything. But, doing git status in git directory laid a new message:

modified:   folder1 (modified content)

To be sure this isn't an "usual" message, we created another directory called folder2 in git directory and created a new file inside it called n1. Doing git status in git directory yielded this message:

modified:   folder1 (modified content)
modified:   folder3/n1

So, parent git could track files across directories, but not if one of those directories had another git already initialized. It seems that git inside git works with encapsulations because most of the dangerous commands (such as git reset) did nothing to the child git.

"Very interesting" - we both concluded. Continuing on with our adventure, we initialized a new git repository inside folder2. When running git status in parent git, we noticed that git initialization it self did not encapsulate the files inside folder2, file n1 was still visible. Even after we added and committed the file in second git child, git parent still reported file n1 as modified (and tracked).

Basically, both parent git and second child git tracked the file. This incestuous relation had to end by simply removing folder2 from parent git index.

git rm --cached -r folder2
After committing the deletion we did above, now both directories showed the same message:

modified:   folder1 (modified content)
modified:   folder2 (modified content)

Both were again 'encapsulated'. Very interesting. I am still a bit clueless as to what was going on in here and have much to learn behind this, but damn if I wasn't impressed.
1
Add a comment...
 
I really love the new (hidden?) Google + update for Android. Photos section is great, much more usable now to the point where I've set it as default gallery app. 
1
Petar Šlat's profile photo
 
Noticed I got a new app ;)
Haven't tried it yet.
Add a comment...
People
Have him in circles
84 people
Sanda Pribanić's profile photo
marin ivasovic's profile photo
Cvecara Beograd's profile photo
Slavisa Banovic's profile photo
Marco PoloTV's profile photo
Sploinks Splendid's profile photo
Ivan Barbić's profile photo
Matej Mezga's profile photo
Ivan Novosel's profile photo
Work
Occupation
Smartphone software developer
Skills
Android developer, Linux intermediate, Software engineer, Java, Git, Mercurial
Links
Other profiles
Links
Story
Tagline
Aspiring individual, prominent engineer and developer
Introduction
The stories and information posted here are artistic works of fiction and falsehood.
Only a fool would take anything posted here as fact.
Bragging rights
bacc. ing. comp. Computer and Software Engineer
Basic Information
Gender
Male
Other names
international: Joseph Markovich, Gaming Nickname: PrimaxLite
Ok Centar kao centar, no upozorenje za Yogorino. Čak dvije nesposobne djevojke nisu mogle u manje od 15 minuta servirati jebeni jogurt. Self service bi im bio bolja opcija.
Public - a year ago
reviewed a year ago
Vrlo lijepe, novo uređene terme. Bazeni su čisti i redovito se provjerava njihova kvaliteta, ponajviše kvaliteta vode. Bazeni su raznolikih oblika, a mnogi imaju i hidromasažne mlaznice. Hotel je vrlo dobro opremljen što garantira ugodan boravak. Osoblje je vrlo ljubazno i ne rijetko će izaći van u susret ako nešto zatrebate. Ukoliko ste u mogućnosti izdvojiti vikend i uz to uspijete uloviti nekakvu ponudu, svakako dođite. Mi nismo požalili.
Quality: ExcellentFacilities: Very GoodService: Excellent
Public - 2 years ago
reviewed 2 years ago
Centar je vrlo dobar, na dobroj lokaciji. Kino je prihvatljive kvalitete, a kino radnici vrlo ljubazni. No, konobari u nekim restoranina su vrlo nepristupacni, sto se od radnika kojima je potrebno iskustvo s ljudima ne ocekuje. Hrana, s druge strane, je jako ugodno iznenadjenje.
Public - 2 years ago
reviewed 2 years ago
4 reviews
Map
Map
Map
Odlična Pizza, jako dobro osoblje, savršen ambijent. Jako dobro mjesto za ručak ukoliko se nalazite u obližnjim odmaralištima ili toplicama.
Public - 2 years ago
reviewed 2 years ago