Tampilkan postingan dengan label Developer Console. Tampilkan semua postingan
Tampilkan postingan dengan label Developer Console. Tampilkan semua postingan

Rabu, 24 Februari 2016

Android Support Library 23.2

Posted by Ian Lake, Developer Advocate



Android Support Library 23.2


When talking about the Android Support Library, it is important to realize this isn’t one monolithic library, but a whole collection of libraries that seek to provide backward-compatible versions of APIs, as well as offer unique features without requiring the latest platform version. Version 23.2 adds a few new support libraries as well as new features to many of the existing libraries.






Support Vector Drawables and Animated Vector Drawables


Vector drawables allow you to replace multiple png assets with a single vector graphic, defined in XML. While previously limited to Lollipop and higher devices, both VectorDrawable and AnimatedVectorDrawable are now available through two new Support Libraries support-vector-drawable and animated-vector-drawable, respectively.



Android Studio 1.4 introduced limited support for vector drawables by generating pngs at build time. To disable this functionality (and gain the true advantage and space savings of this Support Library), you need to add vectorDrawables.useSupportLibrary = true to your build.gradle file:




 // Gradle Plugin 2.0+  
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}


You’ll note this new attribute only exists in the version 2.0 of the Gradle Plugin. If you are using Gradle 1.5 you’ll instead use




 // Gradle Plugin 1.5  
android {
defaultConfig {
generatedDensities = []
}

// This is handled for you by the 2.0+ Gradle Plugin
aaptOptions {
additionalParameters "--no-version-vectors"
}
}


You’ll be able to use VectorDrawableCompat back to API 7 and AnimatedVectorDrawableCompat on all API 11 and higher devices. Due to how drawables are loaded by Android, not every place that accepts a drawable id (such as in an XML file) will support loading vector drawables. Thankfully, AppCompat has added a number of features to make it easy to use your new vector drawables.



Firstly, when using AppCompat with ImageView (or subclasses such as ImageButton and FloatingActionButton), you’ll be able to use the new app:srcCompat attribute to reference vector drawables (as well as any other drawable available to android:src):




 <ImageView  
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_add" />



And if you’re changing drawables at runtime, you’ll be able to use the same setImageResource() method as before - no changes there. Using AppCompat and app:srcCompat is the most foolproof method of integrating vector drawables into your app.



You’ll find directly referencing vector drawables outside of app:srcCompat will fail prior to Lollipop. However, AppCompat does support loading vector drawables when they are referenced in another drawable container such as a StateListDrawable, InsetDrawable, LayerDrawable, LevelListDrawable, and RotateDrawable. By using this indirection, you can use vector drawables in cases such as TextView’s android:drawableLeft attribute, which wouldn’t normally be able to support vector drawables.




AppCompat DayNight theme


While enabling the use of vector graphics throughout your app is already a large change to AppCompat, there’s a new theme added to AppCompat in this release: Theme.AppCompat.DayNight.












Prior to API 14, The DayNight theme and its descendents DayNight.NoActionBar, DayNight.DarkActionBar, DayNight.Dialog, etc. become their Light equivalents. But on API 14 and higher devices, this theme allows apps to easily support both a Light and Dark theme, effectively switching from a Light theme to a Dark theme based on whether it is ‘night’.




By default, whether it is ‘night’ will match the system value (from UiModeManager.getNightMode()), but you can override that value with methods in AppCompatDelegate. You’ll be able to set the default across your entire app (until process restart) with the static AppCompatDelegate.setDefaultNightMode() method or retrieve an AppCompatDelegate via getDelegate() and use setLocalNightMode() to change only the current Activity or Dialog.




When using AppCompatDelegate.MODE_NIGHT_AUTO, the time of day and your last known location (if your app has the location permissions) are used to automatically switch between day and night, while MODE_NIGHT_NO and MODE_NIGHT_YES forces the theme to never or always use a dark theme, respectively.




It is critical that you test your app thoroughly when using the DayNight themes as hardcoded colors can easily make for unreadable text or icons. If you are using the standard TextAppearance.AppCompat styles for your text or colors pulled from your theme such as android:textColorPrimary, you’ll find these automatically update for you.



However, if you’d like to customize any resources specifically for night mode, AppCompat reuses the night resource qualifier folder, making it possible customize every resource you may need. Please consider using the standard colors or taking advantage of the tinting support in AppCompat to make supporting this mode much easier.



Design Support Library: Bottom Sheets


The Design Support Library provides implementations of many patterns of material design. This release allows developers to easily add bottom sheets to their app.




By attaching a BottomSheetBehavior to a child View of a CoordinatorLayout (i.e., adding app:layout_behavior="android.support.design.widget.BottomSheetBehavior"), you’ll automatically get the appropriate touch detection to transition between five state:




  • STATE_COLLAPSED: this collapsed state is the default and shows just a portion of the layout along the bottom. The height can be controlled with the app:behavior_peekHeight attribute (defaults to 0)

  • STATE_DRAGGING: the intermediate state while the user is directly dragging the bottom sheet up or down

  • STATE_SETTLING: that brief time between when the View is released and settling into its final position

  • STATE_EXPANDED: the fully expanded state of the bottom sheet, where either the whole bottom sheet is visible (if its height is less than the containing CoordinatorLayout) or the entire CoordinatorLayout is filled

  • STATE_HIDDEN: disabled by default (and enabled with the app:behavior_hideable attribute), enabling this allows users to swipe down on the bottom sheet to completely hide the bottom sheet


Keep in mind that scrolling containers in your bottom sheet must support nested scrolling (for example, NestedScrollView, RecyclerView, or ListView/ScrollView on API 21+).



If you’d like to receive callbacks of state changes, you can add a BottomSheetCallback:




 // The View with the BottomSheetBehavior  
View bottomSheet = coordinatorLayout.findViewById(R.id.bottom_sheet);
BottomSheetBehavior behavior = BottomSheetBehavior.from(bottomSheet);
behavior.setBottomSheetCallback(new BottomSheetCallback() {
@Override
public void onStateChanged(@NonNull View bottomSheet, int newState) {
// React to state change
}
@Override
public void onSlide(@NonNull View bottomSheet, float slideOffset) {
// React to dragging events
}
});


While BottomSheetBehavior captures the persistent bottom sheet case, this release also provides a BottomSheetDialog and BottomSheetDialogFragment to fill the modal bottom sheets use case. Simply replace AppCompatDialog or AppCompatDialogFragment with their bottom sheet equivalents to have your dialog styled as a bottom sheet.



Support v4: MediaBrowserServiceCompat


The Support v4 library serves as the foundation for much of the support libraries and includes backports of many framework features introduced in newer versions of the platform (as well a number of unique features).




Adding onto the previously released MediaSessionCompat class to provide a solid foundation for media playback, this release adds MediaBrowserServiceCompat and MediaBrowserCompat providing a compatible solution that brings the latest APIs (even those added in Marshmallow) back to all API 4 and higher devices. This makes it much easier to support audio playback on Android Auto and browsing through media on Android Wear along with providing a standard interface you can use to connect your media playback service and your UI.



RecyclerView


The RecyclerView widget provides an advanced and flexible base for creating lists and grids as well as supporting animations. This release brings an exciting new feature to the LayoutManager API: auto-measurement! This allows a RecyclerView to size itself based on the size of its contents. This means that previously unavailable scenarios, such as using WRAP_CONTENT for a dimension of the RecyclerView, are now possible. You’ll find all built in LayoutManagers now support auto-measurement.



Due to this change, make sure to double check the layout parameters of your item views: previously ignored layout parameters (such as MATCH_PARENT in the scroll direction) will now be fully respected.



If you have a custom LayoutManager that does not extend one of the built in LayoutManagers, this is an opt-in API - you’ll be required to call setAutoMeasureEnabled(true) as well as make some minor changes as detailed in the Javadoc of the method.



Note that although RecyclerView animates its children, it does not animate its own bounds changes. If you would like to animate the RecyclerView bounds as they change, you can use the Transition APIs.



Custom Tabs


Custom Tabs makes it possible to seamlessly transition to web content while keeping the look and feel of your app. With this release, you’ll now be able to add actions to a bottom bar for display alongside the web content.




With the new addToolbarItem() method, you’ll be able to add up to currently 5 (MAX_TOOLBAR_ITEMS) actions to the bottom bar and update them with setToolbarItem() once the session has begun. Similar to the previous setToolbarColor() method, you’ll also find a setSecondaryToolbarColor() method for customizing the background color of the bottom bar.



Leanback for Android TV


The Leanback Library gives you the tools you need to easily bring your app to Android TV with many standard components optimized for the TV experience. The GuidedStepFragment received a significant set of improvements with this release.



The most visible change may be the introduce of a second column used for action buttons (added by overriding onCreateButtonActions() or calling setButtonActions()). This makes it much easier to reach completion actions without having to scroll through the list of available GuidedActions.



Speaking of GuidedActions, there’s a number of new features to allow richer input including editable descriptions (via descriptionEditable()), sub actions in the form of a dropdown (with subActions()), and a GuidedDatePickerAction.






These components should make it much easier for you to get information from the user when absolutely required.



Available Now


Version 23.2 of the Android Support Library is available via your SDK Manager and Android Studio. Take advantage of all of the new features as well as additional bug fixes starting now! As always, file bug reports at b.android.com and connect with other developers on the Android Development Google+ community.















Rabu, 09 Desember 2015

Android Developer Story: SGN game ‘Cookie Jam’ increases user conversions with Store Listing Experiments

Posted by Lily Sheringham, Google Play team



Founded in 2010, SGN is a Los Angeles based mobile game developer with hit titles including Cookie Jam, Panda Pop, Juice Jam and Book of Life: Sugar Smash. They now have more than 200 employees and are one of the fastest growing cross-platform gaming developers.



SGN used Store Listing experiments to test multiple variants across their portfolio of games. For Cookie Jam, they saw an 8 percent increase in conversions simply by changing the background color of their app icon. They also saw increased installs following tests with the Panda Pop app icon and by changing the character in their Book of Life: Sugar Smash app icon.



Watch Josh Yguado, Co-founder and President of SGN, and Matthew Casertano, SVP of Game Operations, talk about how using Store Listing Experiments helped SGN improve their ROI, conversion rates and gamer retention.







Find out more about how to run tests on your Store Listing to increase installs and achieve success with the new guide to ‘Secrets to App Success on Google Play’.





Rabu, 04 November 2015

Android Developer Story: Peak Games generates majority of global revenue for popular game ‘Spades’ on Android

Posted by Lily Sheringham, Google Play team



Founded in 2010, Turkish mobile games developer Peak Games started developing games targeted to the local market and is now scaling globally. Their game ‘Spades Plus’ is growing in the US and the game generates over 70% of its mobile revenue from Android.



Watch Erdem İnan, Business Intelligence and Marketing Director, and İlkin Ulaş Balkanay, Head of Android Development, explain how Peak Games improved user engagement and increased installs with Google Play Store Listing experiments and app promotion right from within the Developer Console.







Find out more about how to use run tests on your Store Listing to increase your installs and how to promote your app or game with Universal App Campaigns from the Google Play Developer Console.

Kamis, 13 Agustus 2015

Android Developer Story: Zabob Studio and Buff Studio reach global users with Google Play

Posted by Lily Sheringham, Google Play team



South Korean Games developers Zabob Studio and Buff Studio are start-ups seeking to become major players in the global mobile games industry.



Zabob Studio was set up by Kwon Dae-hyeon and his wife in 2013. This couple-run business has already published ten games, including hits ‘Zombie Judgement Day’ and ‘Infinity Dungeon.’ So far, the company has generated more than KRW ₩140M (approximately $125,000 USD) in sales revenue, with about 60 percent of the studio’s downloads coming from international markets, such as Taiwan and Brazil.



Elsewhere, Buff Studio was founded in 2014 and right from the start, its first game Buff Knight was an instant hit. It was even featured as the ‘Game of the Week’ on Google Play and was included in “30 Best Games of 2014” lists. A sequel is already in the works showing the potential of the franchise.



In this video, Kwon Dae-hyeon, CEO of Zabob Studio, and Kim Do-Hyeong, CEO of Buff Studio, talk about how Google Play services and the Google Play Developer Console have helped them maintain a competitive edge, market their games efficiently to global users and grow revenue on the platform.




Android Developer Story: Buff Studio - Reaching global users with Google Play




Android Developer Story: Zabob Studio - Growing revenue with Google Play



Check Zabob Studio apps and Buff Knight on Google Play!



We’re pleased to share that Android Developer Stories will now come with translated subtitles on YouTube in popular languages around the world. Find out how to turn on YouTube captions. To read locally translated blog posts, visit the Google developer blog in Korean.



Kamis, 28 Mei 2015

Empowering successful global businesses on Google Play

Posted by Ellie Powers, Product Manager, Google Play




With more than 50 billion app installs over the past year from users across 190 countries, Google Play continues to see incredible growth thanks to developers like you creating amazing experiences. Play is now reaching more than one billion users every month.



In February, we announced that we had paid out more than $7 billion to developers in the prior year alone. This week at Google I/O, we’re introducing new and powerful tools to help you further grow your business, improve decision making based on smarter insights, and better engage your user base with more relevant content.



Acquire users from the Developer Console



Once you’ve built a great app, the next important step is to proactively find ways to promote it and grow a loyal user base. App install ads are one powerful way to do that. In the coming months, you’ll be able to quickly and easily set up ad campaigns right from within the Google Play Developer Console for the first time.




All you need to do is set a total budget and the cost you're willing to pay per user and we’ll scale your app promotion across our networks, including Google Search, AdMob, YouTube and the search ads we’re piloting on Google Play. With this new feature, you will will be able to better find the customers that are most likely to install your app.



Actionable insights with the Acquisition and Conversion Funnel



Whether you pay to acquire users or not, you want to know where they’re coming from. Through the Developer Console, you will soon be able to get a snapshot of how many users visit your Store listing, install your app, and make purchases. You’ll see where your most valuable users come from — across organic and paid traffic — and better understand where to focus your efforts.





Optimize your Play store listing with experiments





Your Play Store listing is extremely important, as it’s often the first touch point users have with your app. Starting today, we’re making it easier to optimize this page with support for A/B tests. You can run experiments with different versions of text and graphics to see which are most effective in converting visits into installs on Google Play. In our pilot program, we were thrilled to see that some developers like Kongregate achieved double-digit improvements in their install rates so far.



Test your app automatically on real devices with Cloud Test Lab



With the large variety of Android form factors in the market, testing your app on real devices is a critical step to ensuring a positive user experience on any device. However, you may not have access to every device that your users do. So we’re integrating the newly announced Cloud Test Lab into the Developer Console, which will allow you to automatically test your apps on hundreds of popular physical Android devices for free. We’re going to be rolling out this pilot program gradually, so we’ll welcome your feedback on it.





For each APK you upload to an alpha or beta channel, Google Play will execute fully automated testing of your app against physical devices matching your app targeting criteria and output a report with a detailed analysis of issues, including screenshots and logs. Google Cloud Test Lab will roll out to all developers later this year; you can sign-up to become a tester in the Developer Console now.



Build a data-driven games business with Player Analytics





Google Play Games has activated more than 180M new users in the past six months and continues to be the fastest growing mobile gaming platform in history.



Over the coming months, we're adding new reports, player segments, game metrics, and event types to Player Analytics to help you manage your games business. We're also bringing enhancements to our live operations tools that will enable dynamic content updates that make games feel more alive and engaging, gameplay to respond to changing player needs, and more fun, personalized user experiences. As the bar for success in mobile gaming continues to rise, we’re continuing to evolve our tools to help you meet the soaring expectations of players.



Find great apps – developer pages and search results



There are several ways in which we are improving the discoverability of great apps and games on Google Play to help drive more engagement. Starting today, you can create a unique homepage on Google Play to promote your entire app catalog. With your own developer page, you are able to upload graphics, explain what your company is all about and pick a special app to feature. This gives you a single destination to promote all of your apps on Google Play.





We are also helping guide users with broad interests (e.g. “shopping”) in a new search results experience.





The focus is on organizing results in an intuitive way that allows users to narrow their intent -- such as grouping shopping apps into coupons apps and fashion apps. By doing so, users will be able to better see the range of apps that satisfy their needs, while also increasing the chances of discovering new and innovative apps that you’re building.



Family-friendly content in Google Play




Starting today, we’re making it easier to find family-friendly content on Google Play through new discovery features. On the Apps & Games and Movies & TV homepages, users can now hit the “Family” star to see a curated set of options for specific age groups. In Play Books, tap the “Children’s Books” star. These pages let you browse by age ranges to find content that’s the best fit for the family. If you’ve already opted-in your apps to the Designed for Families program and they’ve met the requirements, they’ll be included in the new family section so that parents can find suitable, trusted, high-quality apps and games more easily. Find out more about opting-in to the Designed for Families program.



Join us at Google I/O 2015




To learn more, tune-in live to “Developers connecting the world through Google Play” at 1pm PT / 4pm ET / 9pm GMT on May 29 on google.com/io.



If you’re at I/O 2015, come along to our breakout sessions where we’ll be talking about and demo’ing these new features. Find our sessions in the I/O 2015 schedule.



Check out developer.android.com/distribute over the coming weeks and months as we add I/O videos and more details about these and other new features.





Rabu, 29 April 2015

Integrate Play data into your workflow with data exports

Posted by Frederic Mayot, Google Play team



The Google Play Developer Console makes a wealth of data available to you so you have the insight needed to successfully publish, grow, and monetize your apps and games. We appreciate that some developers want to access and analyze their data beyond the visualization offered today in the Developer Console, which is why we’ve made financial information, crash data, and user reviews available for export. We're now also making all the statistics on your apps and games (installs, ratings, GCM usage, etc.) accessible via Google Cloud Storage.



New Reports section in the Google Play Developer Console



We’ve added a Reports tab to the Developer Console so that you can view and access all available data exports in one place.






A reliable way to access Google Play data



This is the easiest and most reliable way to download your Google Play Developer Console statistics. You can access all of your reports, including install statistics, reviews, crashes, and revenue.



Programmatic access to Google Play data



This new Google Cloud Storage access will open up a wealth of possibilities. For instance, you can now programmatically:



  • import install and revenue data into your in-house dashboard

  • run custom analysis

  • import crashes and ANRs into your bug tracker

  • import reviews into your CRM to monitor feedback and reply to your users



Your data is available in a Google Cloud Storage bucket, which is most easily accessed using gsutil. To get started, follow these three simple steps to access your reports:



  1. Install the gsutil tool.


    • Authenticate to your account using your Google Play Developer Console credentials.


  2. Find your reporting bucket ID on the new Reports section.


    • Your bucket ID begins with: pubsite_prod_rev (example:pubsite_prod_rev_1234567890)


  3. Use the gsutil ls command to list directories/reports and gsutil cp to copy the reports. Your reports are organized in directories by package name, as well as year and month of their creation.



Read more about exporting report data in the Google Play Developer Help Center.



Note about data ownership on Google Play and Cloud Platform: Your Google Play developer account is gaining access to a dedicated, read-only Google Cloud Storage bucket owned by Google Play. If you’re a Google Cloud Storage customer, the rest of your data is unaffected and not connected to your Google Play developer account. Google Cloud Storage customers can find out more about their data storage on the terms of service page.

Selasa, 14 April 2015

Helping developers connect with families on Google Play

Posted by Eunice Kim, Product Manager, Google Play





There are thousands of Android developers creating experiences for families and children — apps and games that broaden the mind and inspire creativity. These developers, like PBS Kids, Tynker and Crayola, carefully tailor their apps to provide high quality, age appropriate content; from optimizing user interface design for children to building interactive features that both educate and entertain.



Google Play is committed to the success of this emerging developer community, so today we’re introducing a new program called Designed for Families, which allows developers to designate their apps and games as family-friendly. Participating apps will be eligible for upcoming family-focused experiences on Google Play that will help parents discover great, age-appropriate content and make more informed choices.



Starting now, developers can opt in their app or game through the Google Play Developer Console. From there, our team will review the submission to verify that it meets the Designed for Families program requirements. In the coming weeks, we’ll be adding new ways to promote family content to users on Google Play — we’ll have more to share on this soon.