I am working on this project which have no launcher activity.I want to show a toast to the user when application is installed on the phone.i am beginner in android.
Do any body have any idea of how to do this? please do share the solution i shall be thankful.
Its not possible Usman. Don't get distracted by following intents
Intent.ACTION_PACKAGE_ADDED
Intent.ACTION_PACKAGE_INSTALL
These are not sent to the package that just got installed i.e. your app :)
Related
I'm trying to develop an interactive "allspeech-based" application and I have found some troubles.
I would be able to do every task of my app without the touch input, only the voice one.
So, my idea was to use Google Assitant to open my app, and then execute tasks with Activities "allspeech-based". My only problem is open my app with a custom phrase like "Hello myApp".
I've noticed that Google only permit to define in Manifest in which developer can set predefined method like SEARCH_ACTION (I have to say "Serch cats in myAPP..."), ... and not custom action!
Then I had an idea: to resolve this I can define a new routine in my Google Assistant where Command is "Hello myApp" and action is "Open myApp", and it works!
But I don't want to force my users to add a new tourine in their Assistant, I want to do it from my app automatically at the first opening of my app (throught an Intent and a startActivity or something similar idk).
My question is: How can I do? Which Intent I have to invoke? With which extras? Is it possible?
Please answer, thank you.
There's no such intent which can directly create a new routine.
This is a Xamarin.Forms app running on Android, based on the Azure getting started Mobile App example.
I'm trying to register a device's id for notification services. Originally I was getting unauthorized, so I relaxed authorization settings on the backend. Now I am getting this error and cannot find a reason why.
I checked and double checked that notification hub has the correct Firebase details that align with the app and cannot see what the problem is here, any help appreciated.
John,
If you set WEBSITE_PUSH_ENABLED=false in your appsettings, does the problem go away?
Can you check your Mobile App's app settings?
Specifically, I am looking for the existence of the app setting "MS_NotificationHubName". If that app setting doesn't exist, you need to add it, with the name of your notification hub.
There is a bug in the Azure App Service Push blade right now. A fix is being rolled out. In the interim, instead of using RegisterAsync(), use the method described in the book http://aka.ms/zumobook - chapter 5.
I want my app to send private messages to user's friend. So I've read the official facebook tutorial but I found only examples of sending with the help of the messeger. So I asked myself: "And if the user hasn't got Messager installed? There is no way for him?". Maybe I should use Intent with SEND_ACTION (I saw this constraction somewhere).
So the question: "Is there a way of sending messages without the help of the Messager?" and if there is, could you plese post the example or the link.
Thanks in advance
The only ways to send a message to another user are the Send Dialog and the Message Dialog.
If they donĀ“t work without the installed Messenger, there is no other way.
I am developing one app in phonegap.
In my app i am using one text field which contains some text and one
button for sending text.When i will click on button then one alert box
should open .Which contains three button "SMS","CHAT","Cancel".when i
will click on SMS button then my message should be send via sms.When
i will click on chat button then my message should be sent via chat.
How is it possible .Is there anyone have any demo or idea then pls
reply for my post .I will be very thankful to you.
There is no direct support in the phonegap api for what you are trying to do, but you can write your own phonegap plugin to achieve what you want.
There is a SMS Composer Plugin, which should be a good starting point for what you are trying to create: https://github.com/grantsanders/SMSComposer
Updated: here are two SMS plugins, since the above plugin is 404ing
Android: https://github.com/phonegap/phonegap-plugins/tree/master/Android/SMSPlugin
iOS: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/SMSComposer
The link by Daniel is now broken.
However I found this website full of PhoneGap plugins: https://github.com/phonegap/phonegap-plugins
i intend to develop an app which would speak to the user the message he desires in the inbox. I have successfully created an app where there is a text box and when the user finishes typing in it and presses a speak button, he can hear what he has written, now how do i extend this to the desired app? please could someone please guide me on this?
I have a Gmail-to-SMS app that read the email from the content provider of the Gmail app.
I think it's useful to you.
The cursor helper can get the conversation and message:
http://github.com/qrtt1/android-gmail-to-sms/blob/new-input-format/src/googlecode/email/to/sms/CursorHelper.java
You can see the client how to use it:
http://github.com/qrtt1/android-gmail-to-sms/blob/new-input-format/src/googlecode/email/to/sms/Email2SMSActivity.java
Finally, don't forget the uses-permission
<uses-permission
android:name="com.google.android.providers.gmail.permission.READ_GMAIL" />
If you want to see the details in android's source, there is Gmail.java in this path:
./frameworks/base/core/java/android/provider/Gmail.java