[Q] android:pathPattern not working - General Questions and Answers

I want to start my activity in android with link of
www.youtube.com/watchXXXXXXXXX
i have written this code in my manifest file.
i dont knw which mistake i am making.
Please help me
this is my xml :
<activity
android:name=".TempActivity"
android:label="@string/title_activity_temp" >
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:scheme="http"
android:host="www.youtube.com"
androidathPattern="watch*"/>
</intent-filter>
</activity>

Well it depends what you're trying to do, are you making an app via an IDE, or another tool or are you modding an existing app?

TheArc said:
Well it depends what you're trying to do, are you making an app via an IDE, or another tool or are you modding an existing app?
Click to expand...
Click to collapse
I am developing an android application which can play youtube videos.
The only thing i want is that when ever a link like "www.youtube.com/watchXXXXXXXXXXXXX" is opened in mobile browser, it should ask that "Do you want to open that link in google chrome or Temp activity"

Oh okay got it, and will the app open a single video or link or various types of links (it changes)

I only want to start my activity where a link start with www.youtube.com/watch is opened.

Related

how to edit string.xml file?

hi i searcheeed too long , to know how to edit string.xml , i download some apps non of them can open it , when open it just show one or two line above , not whole , how to see all lines?
thanks.
Well when you open a new app, the strings.xml usually just has a "Hello, world!" string or something really small. There are only 3-4 lines in a fresh open of a strings.xml.
So maybe you must have created a new android project and just opened it...
You need to decompile the app so that all the strings get decoded or it is like mathkid says.
i did decompile also by apktool.
Oh, I thought you just made an android project, so you needed to have more string tags...
But since you have a decompiled app, not sure...
can you post a screenshot of some sort?
i dont understand , what sort?
lol plz post a screenshot of your xml file.
i did like this video :
http://www.youtube.com/watch?v=PK0eZCfICUM
but when i try to open it it give me 3 line .
thats my screen shoot
thanks.
Well that's correct, that is just your application name...you need to add on to it now.
Did you already add on to it but it got deleted or something like that? Because that string is what shows up under the application icon on a phone...
thank u , the problem was this APK , i tried with another one and worked ,
thank uu.
Ah ok, cool!

Tweetdeck

For some reason, Tweetdeck will not install. It simply says "Application Not Installed" and isn't, in fact, installed. Anyone know what's causing this?
I tried Seesmic as a stand-in, but it was rather inadequate.
I agree and can't get Tweetdeck to install either. Would love to find a solution.
Sent from my Kindle Fire using Tapatalk
blauciel said:
For some reason, Tweetdeck will not install. It simply says "Application Not Installed" and isn't, in fact, installed. Anyone know what's causing this?
I tried Seesmic as a stand-in, but it was rather inadequate.
Click to expand...
Click to collapse
I am also a proponent of Tweetdeck, but I've found that Seesmic both looks and works well if you increase the text size
My issue is switching between services is a pain. I have to ouch menu then accounts, then select the account. Kludgy. Odd thing is, Tweetdeck won't show on Android Market, which I have working.
//Tapatalk.KindleFire//
chad24taylor said:
I am also a proponent of Tweetdeck, but I've found that Seesmic both looks and works well if you increase the text size
Click to expand...
Click to collapse
Seesmic is my alternative client. And, I like it well enough. But, really like that unified stream from Tweetdeck for fast checking multiple services.
I also want/need tweetdeck. I love that app. Wish Amazon would just put it in the app store.
I also would love tweetdeck working. IS it looking for some requirement/service that is disabled in the KF?
I have sideloaded Plume for the meantime (which has a unified timeline for multi twitter accounts), which does nothng for FB but still is a good twitter client. Its also supports 7" tablets
From the AndroidManifest.xml in TweetDeck:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
I'm not sure which permissions are allowed on the Fire, but I guess that last one which seems related to Phone may be an issue.
I don't know if this is what is causing it to fail to install, but I guess it's possible. Perhaps also the location stuff seeing as it doesn't have GPS.
This is from the install apk?
//Tapatalk.EVO3D//
From the only APK I could find via google, yeah. (I don't actually own an android device to install it on and pull the APK from, so I resorted to Google). Not completely sure how recent the APK I found was. This is the APK I looked at: http://www.mediafire.com/?bqfrt783mv9myv8
I'll take a look at mine, and see if there are any differences.
//Tapatalk.KindleFire//
SifJar said:
From the AndroidManifest.xml in TweetDeck:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
I'm not sure which permissions are allowed on the Fire, but I guess that last one which seems related to Phone may be an issue.
I don't know if this is what is causing it to fail to install, but I guess it's possible. Perhaps also the location stuff seeing as it doesn't have GPS.
Click to expand...
Click to collapse
Yea that last one is most likely the issue.
Try downloading a different version of TweetDeck and see if it works.
Otherwise I guess it's incompatible with the Kindle Fire
Sent from my Kindle Fire using xda premium
I'm thinking repacking the apk with that line removed means it might work
//Tapatalk.KindleFire//
would that be possible?
I'd kiss a chimp if this would run on the fire
blauciel said:
I'm thinking repacking the apk with that line removed means it might work
//Tapatalk.KindleFire//
Click to expand...
Click to collapse
But if we removed that line it would not function properly. If it's asking permission to read your phone state, I'm pretty sure that it would not function without that permission.
It's not functioning now...
//Tapatalk.EVO3D//
blauciel said:
It's not functioning now...
//Tapatalk.EVO3D//
Click to expand...
Click to collapse
Well either way it wouldn't function.
Sent from my Kindle Fire using xda premium
You may be right, but I can't even open the xml file. All I get is gobbledy-gook.
//Tapatalk.KindleFire//
blauciel said:
You may be right, but I can't even open the xml file. All I get is gobbledy-gook.
//Tapatalk.KindleFire//
Click to expand...
Click to collapse
You're doing it wrong
Use this to extract the APK, then it should work: http://code.google.com/p/android-apktool/
SifJar said:
You're doing it wrong
Use this to extract the APK, then it should work: http://code.google.com/p/android-apktool/
Click to expand...
Click to collapse
aha! This works better than APK Multi-Tool, which is what I heretofore WAS using. Thanks.
...and removing that line didn't work. Still get Application Not Installed.

"Test access to protected storage" permission

What does it mean and what does it do? I have seen a few apk's with this permission and it sounds suspicious.
<<xda app>>
So no developers or anyone knows what this permission does?
Bump. Someone has to know.
uf21 said:
What does it mean and what does it do? I have seen a few apk's with this permission and it sounds suspicious.
Click to expand...
Click to collapse
uf21 said:
So no developers or anyone knows what this permission does?
Click to expand...
Click to collapse
uf21 said:
Bump. Someone has to know.
Click to expand...
Click to collapse
Rather than simply bumping your own post because you're too damn lazy to do anything yourself, you could have used Google
It took me 10 seconds to find this ;-
This appears to be a side effect of simply needing to write to external storage. The only reason the app writes to storage is to store you high scores.
Click to expand...
Click to collapse
SimonTS said:
Rather than simply bumping your own post because you're too damn lazy to do anything yourself, you could have used Google
It took me 10 seconds to find this ;-
Click to expand...
Click to collapse
Firstly thank you and Secondly I did search. I wrote what the permission says in Google to no avail.
uf21 said:
Firstly thank you and Secondly I did search. I wrote what the permission says in Google to no avail.
Click to expand...
Click to collapse
That's OK, but you need to learn how to use Google. I simply types in (including the quotes);-
"Test access to protected storage" permission
Click to expand...
Click to collapse
and it was the fourth result (excluding this thread which appears at number 2
SimonTS said:
That's OK, but you need to learn how to use Google. I simply types in (including the quotes);-
and it was the fourth result (excluding this thread which appears at number 2
Click to expand...
Click to collapse
Funnily enough I typed exactly what you typed and it was no different. Then I went to Google.com instead of. .com.au and it worked.
checkout the source code from 4.1.1.r1
frameworks/base/core/res/res/values/strings.xml
so basically it means the read permission.
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=30] -->
<string name="permlab_sdcardRead" product="nosdcard">test access to protected storage</string>
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permlab_sdcardRead" product="default">test access to protected storage</string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=30] -->
<string name="permdesc_sdcardRead" product="nosdcard">Allows the app to test a permission for USB storage that will be availabe on future devices. </string>
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
<string name="permdesc_sdcardRead" product="default">Allows the app to test a permission for the SD card that will be available on future devices.</string>

Enable Pixel Call Screening outside United States

Hi, is it anyway possible to enable Pixel 3's Call Screening feature for the Pixel 3 devices outside United States? Has anyone done it successfully?
Sometime back I read a reddit post that someone managed to get it working in Canada. Is it possible to make it work?
androidified said:
Hi, is it anyway possible to enable Pixel 3's Call Screening feature for the Pixel 3 devices outside United States? Has anyone done it successfully?
Sometime back I read a reddit post that someone managed to get it working in Canada. Is it possible to make it work?
Click to expand...
Click to collapse
It's hit and miss and requires editing buildprop I think. You'd have to Google "enable calls screening outside USA" and xda had a tutorial that worked for some folks . Let me know if you get it
Use a file explorer with root access and open /data/data/com.google.android.dialer/shared_prefs/dialer_phenotype_flags.xml
Edit these values to true:
"__data_rollout__SpeakEasy.CallScreenOnPixelOneAndTwoRollout__launched__"
"G__speak_easy_bypass_locale_check"
"__data_rollout__SpeakEasy.OverrideUSLocaleCheckRollout__launched__"
"G__enable_speakeasy_details"
"G__speak_easy_enabled"
Works on my Pixel 3 outside US.
martepato said:
Use a file explorer with root access and open /data/data/com.google.android.dialer/shared_prefs/dialer_phenotype_flags.xml
Edit these values to true:
"__data_rollout__SpeakEasy.CallScreenOnPixelOneAndTwoRollout__launched__"
"G__speak_easy_bypass_locale_check"
"__data_rollout__SpeakEasy.OverrideUSLocaleCheckRollout__launched__"
"G__enable_speakeasy_details"
"G__speak_easy_enabled"
Works on my Pixel 3 outside US.
Click to expand...
Click to collapse
yes this method works will my pixel 2 as well as 3. Need Root!
Just english language?
Yes it is I got mine working in the netherlands
Worked here in UK but now I have very loud beep from speaker when I hang up calls
Worked here in France
Doesn't work in Canada. Tried it on my Pixel 3 and Pixel 2XL, no dice.
martepato said:
Use a file explorer with root access and open /data/data/com.google.android.dialer/shared_prefs/dialer_phenotype_flags.xml
Edit these values to true:
"__data_rollout__SpeakEasy.CallScreenOnPixelOneAndTwoRollout__launched__"
"G__speak_easy_bypass_locale_check"
"__data_rollout__SpeakEasy.OverrideUSLocaleCheckRollout__launched__"
"G__enable_speakeasy_details"
"G__speak_easy_enabled"
Works on my Pixel 3 outside US.
Click to expand...
Click to collapse
Works in South Africa
This isn't available on other devices? I am using Arrow OS pie build and I didn't find the phenotype file inside the shared pref folder.
Edit: I have found the folder with the file but there are no statements which I can set to true.
Edit 2: You need to make call to get all the statements. I turned every given statement true but couldn't find one statement. The one which enabled Call Screen outside USA. It is something like __data__rollout but I can't remember the exact statement.
Any help would be appreciated.
Fantastic Lord said:
This isn't available on other devices? I am using Arrow OS pie build and I didn't find the phenotype file inside the shared pref folder.
Edit: I have found the folder with the file but there are no statements which I can set to true.
Click to expand...
Click to collapse
Probably not .
Guys,
can i return the phone to unroot state after changing the file (dialer_phenotype_flags.xml) with the appropriate value ??
Please advise. Thanks.
CAExempt said:
Australian Pixel 3a, Google Bought. Default Language is US English
I do not have these in the dialer_phenotype_flags.xml file
<boolean name="__data_rollout__SpeakEasy.CallScreenOnPixelOneAndTwoRollout__launched__" value="false" />
<boolean name="__data_rollout__SpeakEasy.OverrideUSLocaleCheckRollout__launched__" value="false" />
However I do have these and have changed them to "true"
<boolean name="G__enable_speakeasy_details" value="false" />
<boolean name="G__speak_easy_bypass_locale_check" value="false" />
<boolean name="G__speak_easy_enabled" value="false" />
Are the ones I currently do not have, required in order to use call screening?
Click to expand...
Click to collapse
No. They've changed since they've rolled out call screening to Canada and some other phone models. Those should suffice. Create a backup of your unedited xml just on case, change those values to true, reboot and then see if it worked or not.
I was able to turn on call screening. But when I press the call screen button. The person who called me doesn't hear the Google assistant speaking.
Does anyone know how to do this on the Pixel 4 XL?
I cant find any of the texts in the files as people has commented. Does anyone know how i can manage to get it to work?
Sturrlason22 said:
Does anyone know how to do this on the Pixel 4 XL?
I cant find any of the texts in the files as people has commented. Does anyone know how i can manage to get it to work?
Click to expand...
Click to collapse
Stopped working. Pretty sure google patched all that stuff

Google Assistant's Call screening (From pixel 3)Partially Working on our beloved Mi A

I don't know if you guys've heard about it but Google introduced a (of many) new feature (exclusive to pixel lineup) with the pixel 3 and later coming to pixel 2 and.
Since the early days of Google now and later Google Assistant I've dreamed of a way to make your AI ASSISTANT speak for you on your calls, but sadly then it was just a dream... Until this was announced and then I came up on this thread
By Mr George Burduli
[email protected]
https://www.xda-developers.com/enable-pixel-3-call-screening-pixel-2-pixel/
I'm not a Dev by any means and am not gonna be held responsible for anything that happens to your phone.
Your doing this on your own freedom.
Requires Rooted device
Text editor
Google dialer built in rom(maybe will work if installed?)
Android pie based rom(
maybe)
I tried it on our Mi A1 and it works... Well partially... For me the phone does show the words the other person is taking but he can't hear the assistant's voice.
While following the steps on the above thread you may notice that lines of code may or may not be missing!
Just add them on... Or if you're lazy just copy paste the below lines of code
To above the line
{
<\map>
}
{ <boolean name="__data_rollout__SpeakEasy.CallScreenOnPixelOneAndTwoRollout__launched__" value="true" />
<boolean name="__data_rollout__SpeakEasy.OverrideUSLocaleCheckRollout__launched_" value="true" />
<boolean name="G__enable_speakeasy_details" value="true" />
<boolean name="G__speak_easy_bypass_locale_check" value="true" />
<boolean name="G__speak_easy_enabled" value="true" />
}
As shown in screenshot
/data/data/com.google.android.dialer/shared_prefs/*dialer_phenotype_flags.xml.
Save then fstop the dialer app and boom!
All thanks to George Burduli
I just shared my happiness to other mi A1 users (others may try it too!)
I'm on Pixel Experience Rom based on pie
Hope someone capable can help fix the problem with the other person not being able to hear the assistant:laugh:.
Let me know if it worked for you.
interesting
Hehehe
xxqxpxx said:
interesting
Click to expand...
Click to collapse
if possible try it!!!
i'll try it on stock pie rom next!
tried on AEX oreo didn't work
xxqxpxx said:
tried on AEX oreo didn't work
Click to expand...
Click to collapse
Try on pie... Since pixel 3 was on pie...
Also try using a us VPN the first time since it is only released in the United States as of now
Since the first day this method has been out I've been trying for days to make the person hear the assistant on my Mi A1. It doesn't work. IDK why is this. Even the first Pixels have it working. I thought an update to the app will make it work on the 1st Pixels and every other phone but no. Some voice packages core seem missing? I have no idea.
I m on nougat device moto e4 plus With a patched google dailer apk I can't find the file dialer_phenotype_flags.xml
Can J just add that xml file in the folder and wil it work.. Would anybody mind sharing that file here...

Categories

Resources