Android TextView doesn't display Sound Recording Copyright Symbol "℗" - android

I am working on an app that displays text and plays audio from an API. It also needs to display copyright information for that text and audio; this information is retrieved from the same API.
Many of the audio copyrights contain the "℗" symbol, also known as the Sound Recording Copyright Symbol:
http://en.wikipedia.org/wiki/Sound_recording_copyright_symbol
However, when I take the text retrieved from the API and put it in a TextView, the "℗" symbol doesn't show up. The normal copyright symbol (©) shows just fine.
Has anyone encountered anything like this before? Is there a workaround?

You can try thus ways. such as
first create string value in res/values/string.xml . for example
<string name="copyright">\u2117 2011 copyright</string>
then get this from your activity class thus way. such as
TextView tvHeader = (TextView) findViewById(R.id.tvHeader);
tvHeader.setText(getResources().getString(
R.string.copyright));

Related

play video when text is recognized AR

I am trying to develop an android app via vuforia sdk and unity.
The app should:
detect a string and as soon as the string is detected, will play video on video prefabs (not full screen).
However, I could not figure out where in TextEventHandler.cs is handling whether text is detected...
Sorry guys.. i forgot to post code..
below was what I found in TextEventHandler that vuforia provides to me...
I was guessing maybe this is handling whether the text is detected or not
// Once the text tracker has initialized and every time the video background changed,
// set the region of interest
if (mVideoBackgroundChanged)
{
TextTracker textTracker = TrackerManager.Instance.GetTracker<TextTracker>();
if (textTracker != null)
{
CalculateLoupeRegion();
textTracker.SetRegionOfInterest(mDetectionAndTrackingRect, mDetectionAndTrackingRect);
//v.SetActive (true);
}
mVideoBackgroundChanged = false;
}
Use Text Recognition instead of this method. Visit here to see how to recognize text. And load your video when the text is recognized instead.

Android video link display in android textview like we display images using html.imageGetter

Can we display a video from html content in TextView . Am displaying html content in one of my Texview , am displaying images by implementing implements Html.ImageGetter , but does't have idea about displaying video,
My Html content is like this :
<p>Police today baton charged hundreds of daily wagers working in various government departments during a protest here in which they were demanding regularisation of service.</p>
<p>The workers assembled at Sher-e-Kashmir Park and started marching towards Lal Chowk area of the city raising slogans in favour of their demands, a police official said.</p>
<p>He said as soon as the protesters crossed the Polo View crossing, police intercepted them and asked the protesters to disperse peacefully.</p>
<p>However, they refused to pay any heed and tried to march ahead.</p>
<p>The police used batons to disperse the protesters and took over 30 of them into preventive custody, the official said.</p>
<p>No one was injured in the police action, he added.</p>
<p><iframe width="480" height="315" src="http video link url" frameborder="0" allowfullscreen=""> </iframe></p>
at the end of the content i have video in iframe which i am not able to diplay, can we achieve this in android ?
Please suggest.
You can also make a link from the iframe.
htmlString.replaceAll("<iframe\\s+.*?\\s+src=(\".*?\").*?<\\/iframe>", "<a href=$1>CLICK TO WATCH</a>");
Also postet here:
TagHandler to handle Youtube tag ?
Can we display a video from html content in TextView
No, sorry, TextView does not have the ability to display a video.
can we achieve this in android ?
Use a WebView.

Russian text is not working in Android game when ported from iOS using Apportable SDK

I have successfully ported our game to Android from iOS using Apportable starter SDK.
I have come across a issue in which the device is decoding Russian text of the game , i have included screen shots and where i have given such Russian texts in xcode.As you see from the i have typed the word "Test" in English which is displayed properly and whereas the Russian text is displayed in some form of code.
NSArray *objects = [NSArray arrayWithObjects:#"\n Test Разъезжая по сказочным землям и устраивая веселые дискотеки, я добрался до Пушляндии. Я много слышал о веселых и дружных жителях этой страны - Пушистиках. Узнав о моем появлении, они шумной толпой прибежали на мою вечеринку..."];
Stack overflow is not allowing me to add screenshots so i am adding links.The first screenshot shows the way i want the text to display in android adb second screenshot shows the current way its displayed.
I will provide more detailed description or code if required.
Screenshot iOS: http://imgur.com/IX1ALye
Screenshot Android: http://imgur.com/oJmAoMO
Maybe i will be captain obviously it`s looking like file encoding error after port. Russian texts sometimes ussing cp-1251 encoding not utf. I hope i will help you to find solution.
P.s Sorry i dont have enought reputation to add comment so i post it like answer.

Android ADA Compliance

I'm currently developing an application, and my client would like it to be ADA compliant. I've looked into Android Accessibility on the documentation and I'm having partial success. I downloaded Talkback to my android phone and the device will read out each Activity title, but it wont read the onscreen text(within a textview). I've tried to set the content descirption within the textview XML like this:
android:contentDescription="#string/terms_conditions"
However, it wont read the text from the text view for me. Is there something else I should be declaring?

How do I create an Android application to convert Text to Speech?

![enter image description here][1]I am working an Android application where I am using both a text to speech conversion and speech recognition elements. However, when I give a repeat instruction or press a repeat button in order to start tts to speak , it throws these warnings:
**speak failed: not bound to TTS engine**
**stop failed: not bound to TTS engine**
What do I need to do for this to work?
You have to make sure that you call speak only after onInit is called.

Categories

Resources