A walkthrough with code samples of some of the developer highlights found in Android 6.0/Marshmallow.
- Now on Tap and the Assist API
- Runtime Permission handling
- App Linking
- Direct Share
...and more
Answer below quesetions
Understanding MVC Error Handling ( Unhandled Exceptions ? How to register Global/ Local Error Handling ?)
How to Create MCV Error Handling
MVC Error Handling use case V.S. ASP.NET Error Handling use case
MVC Error Handling with Elmah
Salesforce Integration using REST SOAP and HTTP calloutsRAMNARAYAN R
Salesforce Apex development tutorial: https://bit.ly/33zm1eY
Slides about integration (REST api/SOAP api /HTTP callouts from salesforce)
How to create SOAP API in salesforce APEX and test it with
soapui. How to generate enterprise and class WSDL and invoke methods.
To learn complete salesforce development please check out
this url
Salesforce admin and app builder tutorial :https://bit.ly/2OUgnRy
Salesforce lightning component development tutorial:https://bit.ly/33CUIAL
Answer below quesetions
Understanding MVC Error Handling ( Unhandled Exceptions ? How to register Global/ Local Error Handling ?)
How to Create MCV Error Handling
MVC Error Handling use case V.S. ASP.NET Error Handling use case
MVC Error Handling with Elmah
Salesforce Integration using REST SOAP and HTTP calloutsRAMNARAYAN R
Salesforce Apex development tutorial: https://bit.ly/33zm1eY
Slides about integration (REST api/SOAP api /HTTP callouts from salesforce)
How to create SOAP API in salesforce APEX and test it with
soapui. How to generate enterprise and class WSDL and invoke methods.
To learn complete salesforce development please check out
this url
Salesforce admin and app builder tutorial :https://bit.ly/2OUgnRy
Salesforce lightning component development tutorial:https://bit.ly/33CUIAL
Kotlin is a modern programming language that focuses on clarity, code safety and conciseness. Google officially adopted Kotlin by adding support into Android Studio in 2017 and since then has announced it as the preferred language for Android developers. Android app teams have incrementally added Kotlin code to their projects or have elected to start new Android projects in Kotlin moving forward. Having the app code and UI automation code in the same language helps engineering and QA teams level set on the critical user journeys being tested. Here we share the basics of getting started with automating an Appium test in Kotlin.
Windows Server 2008 will be launched in Q1 2008. Come and learn what’s new in this release for developers.
Agenda:
Whether you are building Web applications or writing core server-based system services, Windows Server 2008 provides many new features that you can leverage to build more secure, flexible, and innovative applications. In this 2-session event we will go through the “Top 7 Ways to Light Up Your Apps on Windows Server 2008”. Demos will include IIS7, PowerShell, Transactional File System (TxF), restart/recovery APIs plus more.
For more details and the original slidedeck visit http://www.microsoft.com/uk/msdn/events/new/Detail.aspx?id=136
How to ace your .NET technical interview :: .Net Technical Check TuneupBala Subra
This session is just not a brain dump of a technical interview on Microsoft technologies. It will be refresher on various pieces of the .NET, Database, OO, Process world. It will serve as a caution for interviewers to red flag their questions which are circulated on the webdom. For all the inquisitive and MCP certified brains, this will serve as a ‘whodunnit’ challenge. It will be a useful reference for the rest of us. The talk is divided into four sections. We will cover the typical BrainBench type questions to start with. Then we will attack the common problems encountered on the field and ideal solution paths to each of them. Third part will be about architectural trade-offs and ‘it depends’ scenarios. Finally, there will be discussion on best practices, books needed for interview preparation and open Q&A among the participants.
Google App Engine has become a powerful PaaS provider in last couple of years. With Java support enabled, its scope has further increased. This session presents the options we have in terms of testing on Google App Engine. Following is an overview of the proposed agenda:
Running Test suites of Applications not built for Google App Engine
An over-view of Google Cloud Cover
Advantages & Limitations of Cloud Cover
Integration of Existing Test Suites in Google Cloud Cover
Local Testing of Applications built for Google App Engine
DataStore Testing
Memcache Testing
Task-Queue Testing
Authentication API Testing
A 1 day NTU workshop for kickstarting Android development. Includes using the newest & better IDE - Android Studio - and a thorough process from developing you idea > mockup > coding > polishing > distributing.
Neues aus dem Tindergarten: Auswertung "privater" APIs mit Apache IgniteQAware GmbH
MRMCD 2018, Darmstadt: Vortrag von Franz Wimmer (@zalintyre, Softwareingenieur bei QAware)
===
Dieser Talk wurde aufgezeichnet. Hier geht's zum Video: https://media.ccc.de/v/2018-151-neues-aus-dem-tindergarten-auswertung-privater-apis-mit-apache-ignite
===
Abstract:
Was ist eigentlich der meistverwendete Emoji auf Tinder? Und welcher der beliebteste #hashtag? Dieser Vortrag zeigt nicht nur witzige Auswertungen von "offenen" APIs mit dem In-Memory-Computing-Framework Apache Ignite, sondern wirft auch einen kritischen Blick auf das massenhafte Sammeln und "Bereitstellen" von privaten Daten.
Details:
Es gibt hunderte beliebte Apps, in denen Nutzer freiwillig private Daten teilen. "Teilen" bedeutet auch, dass andere diese Daten einsehen können. Nur eingeschränkt und häppchenweise, versteht sich. Ein Beispiel für eine solche App ist Tinder, mit der Nutzer Fotos, Profile und Interessen der Welt preisgeben.
Doch die Apps müssen mit einem Server kommunizieren - und dieser Server hat dazu meist eine API, die man auch mit alternativen Clients, z.B. von GitHub, ansprechen kann.
Baut man für diesen Client einen Crawler, kann man schnell die verfügbaren Profile herunterladen. Und füttert man anschließend die heruntergeladenen Daten in eine Auswertung, lassen sich Statistiken und andere Informationen gewinnen.
Auf der anderen Seite bieten die APIs die Gelegenheit für massive Verletzungen der Privatsphäre und von Grundrechten.
Dieser Talk behandelt mehrere Aspekte von privaten, aber offenen APIs im Internet:
- Welche lustigen und interessanten Dinge kann man mit so einer API tun?
- Welche nicht lustigen und gefährlichen Dinge könnte man anstellen?
Außerdem geht dieser Talk auf die technische Seite der API-Auswertung ein:
- Das reverse Engineering einer API
- Die Authentifizierung an der API
- Das Sammeln, Speichern und Auswerten der Daten mit dem In-Memory-Computing-Framework Apache Ignite
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Kotlin is a modern programming language that focuses on clarity, code safety and conciseness. Google officially adopted Kotlin by adding support into Android Studio in 2017 and since then has announced it as the preferred language for Android developers. Android app teams have incrementally added Kotlin code to their projects or have elected to start new Android projects in Kotlin moving forward. Having the app code and UI automation code in the same language helps engineering and QA teams level set on the critical user journeys being tested. Here we share the basics of getting started with automating an Appium test in Kotlin.
Windows Server 2008 will be launched in Q1 2008. Come and learn what’s new in this release for developers.
Agenda:
Whether you are building Web applications or writing core server-based system services, Windows Server 2008 provides many new features that you can leverage to build more secure, flexible, and innovative applications. In this 2-session event we will go through the “Top 7 Ways to Light Up Your Apps on Windows Server 2008”. Demos will include IIS7, PowerShell, Transactional File System (TxF), restart/recovery APIs plus more.
For more details and the original slidedeck visit http://www.microsoft.com/uk/msdn/events/new/Detail.aspx?id=136
How to ace your .NET technical interview :: .Net Technical Check TuneupBala Subra
This session is just not a brain dump of a technical interview on Microsoft technologies. It will be refresher on various pieces of the .NET, Database, OO, Process world. It will serve as a caution for interviewers to red flag their questions which are circulated on the webdom. For all the inquisitive and MCP certified brains, this will serve as a ‘whodunnit’ challenge. It will be a useful reference for the rest of us. The talk is divided into four sections. We will cover the typical BrainBench type questions to start with. Then we will attack the common problems encountered on the field and ideal solution paths to each of them. Third part will be about architectural trade-offs and ‘it depends’ scenarios. Finally, there will be discussion on best practices, books needed for interview preparation and open Q&A among the participants.
Google App Engine has become a powerful PaaS provider in last couple of years. With Java support enabled, its scope has further increased. This session presents the options we have in terms of testing on Google App Engine. Following is an overview of the proposed agenda:
Running Test suites of Applications not built for Google App Engine
An over-view of Google Cloud Cover
Advantages & Limitations of Cloud Cover
Integration of Existing Test Suites in Google Cloud Cover
Local Testing of Applications built for Google App Engine
DataStore Testing
Memcache Testing
Task-Queue Testing
Authentication API Testing
A 1 day NTU workshop for kickstarting Android development. Includes using the newest & better IDE - Android Studio - and a thorough process from developing you idea > mockup > coding > polishing > distributing.
Neues aus dem Tindergarten: Auswertung "privater" APIs mit Apache IgniteQAware GmbH
MRMCD 2018, Darmstadt: Vortrag von Franz Wimmer (@zalintyre, Softwareingenieur bei QAware)
===
Dieser Talk wurde aufgezeichnet. Hier geht's zum Video: https://media.ccc.de/v/2018-151-neues-aus-dem-tindergarten-auswertung-privater-apis-mit-apache-ignite
===
Abstract:
Was ist eigentlich der meistverwendete Emoji auf Tinder? Und welcher der beliebteste #hashtag? Dieser Vortrag zeigt nicht nur witzige Auswertungen von "offenen" APIs mit dem In-Memory-Computing-Framework Apache Ignite, sondern wirft auch einen kritischen Blick auf das massenhafte Sammeln und "Bereitstellen" von privaten Daten.
Details:
Es gibt hunderte beliebte Apps, in denen Nutzer freiwillig private Daten teilen. "Teilen" bedeutet auch, dass andere diese Daten einsehen können. Nur eingeschränkt und häppchenweise, versteht sich. Ein Beispiel für eine solche App ist Tinder, mit der Nutzer Fotos, Profile und Interessen der Welt preisgeben.
Doch die Apps müssen mit einem Server kommunizieren - und dieser Server hat dazu meist eine API, die man auch mit alternativen Clients, z.B. von GitHub, ansprechen kann.
Baut man für diesen Client einen Crawler, kann man schnell die verfügbaren Profile herunterladen. Und füttert man anschließend die heruntergeladenen Daten in eine Auswertung, lassen sich Statistiken und andere Informationen gewinnen.
Auf der anderen Seite bieten die APIs die Gelegenheit für massive Verletzungen der Privatsphäre und von Grundrechten.
Dieser Talk behandelt mehrere Aspekte von privaten, aber offenen APIs im Internet:
- Welche lustigen und interessanten Dinge kann man mit so einer API tun?
- Welche nicht lustigen und gefährlichen Dinge könnte man anstellen?
Außerdem geht dieser Talk auf die technische Seite der API-Auswertung ein:
- Das reverse Engineering einer API
- Die Authentifizierung an der API
- Das Sammeln, Speichern und Auswerten der Daten mit dem In-Memory-Computing-Framework Apache Ignite
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
2. Android 6.0
Highlights
4 Runtime Permissions
4 'Now on Tap', the Assist API and Voice
Interactions
4 App Linking
4 Direct Share
4 Auto Backup for Apps
4 Doze and App Standby
4 Fingerprint Authentication and
Confirm Credential
3.
4. Runtime Permissions
Like the web, but different! :)
4 No blocked auto-updates!
4 User controlled!
4 Revokable
4 Simplified
5. Requesting permissions
if (ContextCompat.checkSelfPermission(thisActivity,
Manifest.permission.READ_CONTACTS)
!= PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(thisActivity,
Manifest.permission.READ_CONTACTS)) {
// Show dialog why permission is required.
} else {
ActivityCompat.requestPermissions(thisActivity,
new String[]{Manifest.permission.READ_CONTACTS},
MY_PERMISSIONS_REQUEST_READ_CONTACTS);
}
}
6. Handling permission request results
@Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
switch (requestCode) {
case MY_PERMISSIONS_REQUEST_READ_CONTACTS: {
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// permission was granted, yay! Do the
// contacts-related task you need to do.
} else {
// permission denied, boo! Disable the
// functionality that depends on this permission.
}
return;
}
}
}
7. Now on Tap
4 Based on the new Assist API
4 Reads meta-data from app
4 Get "smarter" over time...
4 Possible to build custom assistants!
8. Assist API - Opt-out with secure flag:
private void disableAssistant(Activity activity) {
Window window = activity.getWindow();
window.addFlag(WindowManager.LayoutParams.FLAG_SECURE);
}
9. Assistant meta-data
4 Follow accessibility guidelines!
4 Callbacks in Application and Activity classes
4 JSON-LD as defined by Schema.org
@Override
public void onProvideAssistContent(AssistContent assistContent) {
super.onProvideAssistContent(assistContent);
String structuredJson = new JSONObject()
.put("@type", "MusicRecording")
.put("@id", "https://example.com/music/recording")
.put("name", "Album Title")
.toString();
assistContent.setStructuredData(structuredJson);
}
10. Voice Interactions
4 Started with voice command? -
Activity.isVoiceInteraction()
4 Use andorid.app.VoiceInteraction for further
interactions
4 VoiceInteractor.ConfirmationRequest
4 VoiceInteractor.CommandRequest
15. Implementing ChooserTargetService
public class MyChooserTargetService extends ChooserTargetService {
public List<ChooserTarget> onGetChooserTargets(ComponentName targetActivityName,
IntentFilter matchedFilter) {
Icon chooserIcon = Icon.createWithBitmap(getBitmapForTarget());
ComponentName targetActivity = new ComponentName(this, TargetActivity.class);
Bundle extras = new Bundle(); // Populate as needed
ChooserTarget target = new ChooserTarget("Title", chooserIcon,
targetActivity,
extras);
// TODO Create a list of ChooserTargets...
return chooserTargets;
}
}
17. Doze restrictions
4 Network access is suspended.
4 The system ignores wake locks.
4 Standard AlarmManager alarms (including setExact() and setWindow()) are deferred to the
next maintenance window.
4 If you need to set alarms that fire while in Doze, use setAndAllowWhileIdle() or
setExactAndAllowWhileIdle().
4 Alarms set with setAlarmClock() continue to fire normally — the system exits Doze
shortly before those alarms fire.
4 The system does not perform Wi-Fi scans.
4 The system does not allow sync adapters to run.
4 The system does not allow JobScheduler to run.
18. Doze and AlarmManager
AlarmManager.setAndAllowWhileIdle() and
AlarmManager.setExactAndAllowWhileIdle()
4 Adds your app to a temporary whitelist for 10
seconds!
4 Can't run more than every 15 minutes!
4 Can be rescheduled by the system!
19. How to avoid it!
4 Let the user whitelist your app from AppStandby
PowerManager alarmManager = context.getSystemService(PowerManager.class);
if(!alarmManager.isIgnoringBatteryOptimizations(BuildConfig.APPLICATION_ID)) {
Intent intent = new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS);
context.startActivity(intent);
}
20. Auto Backup for Apps
4 Limited to 25 MB app data
4 Use android:fullBackupContent="@xml/
mybackupscheme" in the application tag for
configuration
<full-backup-content>
<include domain=["file" | "database" | "sharedpref" | "external" | "root"]
path="string" />
<exclude domain=["file" | "database" | "sharedpref" | "external" | "root"]
path="string" />
</full-backup-content>
21. Fingerprint
Authentication
4 Use in conjunction with Android
Keystore system
<uses-permission
android:name="android.permission.USE_FINGERPRINT" />
23. Confirm Credential
4 Invalidates a key from the Keystore after a certain
period
keyGenerator.init(new KeyGenParameterSpec.Builder(KEY_NAME,
KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT)
.setBlockModes(KeyProperties.BLOCK_MODE_CBC)
.setUserAuthenticationRequired(true)
// Invalidate this key after 2 minutes inactivity...
.setUserAuthenticationValidityDurationSeconds(120)
.setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_PKCS7)
.build());
keyGenerator.generateKey();
26. Apache HTTP Client Removal
4 org.apache.http is removed from the APIs
4 Still available at runtime!
4 Can be re-enabled in build.gradle:
android {
useLibrary 'org.apache.http.legacy'
}
4 Highly discouraged!