Android: Adding Lock Pattern to an activity - android

I'm developing an alarm application in which the alarm is set and then it is received by the Broadcast Receiver after that it will redirect to an activity.
I want to add a pattern lock at this activity. Once the correct combination of pattern is entered the phone will stop ringing.
How do i add this pattern lock in the activity.
Tried to implement the android-lockpattern library but doesn't know how to use it.

Simply add this pattern lock activity in front of your activity which starts after alarm is rung.
then if pattern matches then Do whatever you want to Do
refer to this project for pattern lock.
https://github.com/Joisar/LockScreenApp

In my case I caught the library which the link of demo app direct us. The library avaliable at site have problems. But the library found in link demo app link it's working. Using this library it's possible implement the guidelines site and compile without problems. See the options menu
Export source code
at the demo app to get the library.

Related

Bixby: I'm looking for a way to make alert or notification by Bixby

I am making a System which uses Bluetooth. But Bixby does not have Bluetooth API. So My plan was using Android Application and it catches notification then, send data by BlueTooth. But I recognize there is no Notification API in Bixby too.
So... Is there any idea to make a notification push by Bixby?
This feature is rather advanced. Here are some information that might help you.
Bixby is not allowed to edit contact or calendar other than using the already existing built-in capsule. Utterance example "add a meeting at 2 pm" would work fine already. There is no standard library for that.
If by "notification" you mean the pop up notification, there is a way to do so, but not directly from Bixby. The notification is an Android App notification that must sent by Android App. For example, let's call it MyEventApp and say you also have a MyCapsule. It is possible in MyCapsule using a deep link to request MyEventApp for a certain action (in this case, send notification or maybe schedule one)
For how to use deep link in Bixby please read https://bixbydevelopers.com/dev/docs/reference/type/result-view.app-launch as a starting point. There is also a github sample capsule.
The format for deep link (the payload-uri key in Bixby) depends on the MyEventApp and it's part of developer's responsibility to get the format correctly.
Please read carefully regarding https://bixbydevelopers.com/dev/docs/dev-guide/design-guides/design-principles.app-punch-out-policies Or your capsule submission might be rejected.

how to control outgoing intnet in android?

is it possible to access and control all outgoing intent from my app?
i use some library in my project that sends intent to start other app (for ads) because that library is compiled i have no access to the source code.
i wonder if there is any way to block or control all intent sent by my app.
if you know any other way to prevent that app to start (ads) please tell me.
i think because my app start the other app, there is a way to stop it.
You might be able to use reflection on the library and hook the google API calls but you have to check the licensing scheme for the added library so that you do not do something illegal.

Can I use NFC demo as a tester of foreground dispatch?

I tried NFC demo with my nexus s and it works well.
I want to call an app from background to foreground using foregrounddispatch example given by android sdk. Can I test foregrounddispatch example with NFC demo? Does anyone who tried this?
and if possible, which part I should edit? It is my first time to manage android app so please give me advice.
(foregrounddispatch example: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/nfc/ForegroundDispatch.html )
Foreground dispatching requires the app to be in the foreground when scanning the tag. If I understand correctly, you want an app to launch upon scanning the tag. In this case, you need to create intent filters to handle the specific tag that you want to handle. See the dev guide for more information: http://developer.android.com/guide/topics/nfc/nfc.html or let me know if you need more guidance.

How can i know supported intents of the 3rd party app

I've built an app called xLancer (https://market.android.com/details?id=kz.jay.xlancer.activity) that retrieves job listings from Elance. Now i want to implement a feature that would remind me to bid on a project at a later time. Instead of reinventing the wheel i want to launch any external TODO/Task manager app. But now i am stuck, i don't know which URI or action should be specified, so far i've only used intents to call my internal activities by specifying class name explicitly.
So the question is: how can i know which URI/action should be specified?
Look here, I didn't see any Todo/Task intents there though....

Intent resolution in Android

If I want to create custom address book (which overrides my phone's default address book), and if I want it to be used by all applications, what should be my intent-filter? Does Android allow me to do such a thing considering the fact that such a third-party app could potentially be malicious?!
And, if I want to have yet another address book application, I suppose the second app also has same intent-filter, isn't it? How does the framework decide which app to pick if I click on Contacts button when making a call? In other words, how does the framework resolve intents in case,there is a conflict between multiple intent-filters?
You can replace any application on Android platform, even Home. Android documentation explains everything there is to know about Intents and Intent Filters and there is a section called Intent Resolution that answers your question. Intent Resolution section for Intent class has some additional information.
As far as I can tell Android doesn't try to resolve a conflict. It ask the user which application to run and gives them the choice to mark this Activity as the default for this Intent. They give an example about mail app here.
While Mr. Smiljanić is basically correct, there is no Contacts application in Android for you to replace. There is Dialtacts, which is the application supporting the contacts, call log, and dialer. That application cannot be replaced, mostly because the dialer cannot be replaced.
So, while you may be able to override some intent filters and get control on some contacts-related requests, you will be unable to get the contacts portion of Dialtacts overridden, which will confuse users.

Categories

Resources