Menu
  • HOME
  • TAGS

WP8.1 - C# - Overlapping audio with MediaComposition class

c#,windows,audio,phone,overlapping

I figured it out. I had to manually set the delay for BackgroundAudioTrack. Here is the working code: public async Task<IStorageFile> ConcatenateAudio([ReadOnlyArray]IStorageFile[] audioFiles, IStorageFolder outputFolder, string outputfileName) { IStorageFile _OutputFile = await outputFolder.CreateFileAsync(outputfileName, CreationCollisionOption.ReplaceExisting); MediaComposition _MediaComposition = new MediaComposition(); MediaEncodingProfile _MediaEncodingProfile = MediaEncodingProfile.CreateM4a(AudioEncodingQuality.High);...

Save and load a route into a windows phone bing map

c#,windows,dictionary,phone,bing

I used to use bing map api on my web I`m not sure if it will work well initialize the map using the following code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">`<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script> <script type="text/javascript"> var map =...

async methods in callbacks

c#,windows,asynchronous,phone

As mentioned in this blog entry, the asynchronous work needs to be encapsulated in a background task deferral public async void Run(IBackgroundTaskInstance taskInstance) { BackgroundTaskDeferral _deferral = taskInstance.GetDeferral(); Debug.WriteLine("Test"); Debug.WriteLine(DateTime.Now.ToString("g")); StorageFolder dataFolder = ApplicationData.Current.LocalFolder; StorageFile logFile = await dataFolder.CreateFileAsync("logFile.txt", CreationCollisionOption.OpenIfExists); IList<string> logLines = await...

windows phone 8.1 RT error with files creation

c#,windows,phone

Its giving error like "Additional information: Use of undefined keyword value 1 for event TaskScheduled" So may be sample.txt can't able to define as its undefined keyword. Change file name to other name or "sample1.txt", it will work. private async void WriteToFile() { StorageFolder folder = Windows.Storage.ApplicationData.Current.LocalFolder; StorageFile sampleFile =...

converting string to a double in visual c++ by parsing

windows,phone

Your Windows phone project is being developed using C++/CX which is the C++ interface to WinRT. C++/CX represents string data using Platform::String^, a handle to a WinRT HSTRING. These strings store arrays of Unicode characters, and you can get a wchar_t* via s->Data(). Then you just need a C++ function...

Phone hangups and client realises

javascript,ruby-on-rails,twilio,phone

You can register an event listener on a Twilio Connection object to achieve that: var connection = Twilio.Device.connect(); connection.disconnect(function(conn) { console.log("the call has ended"); }); ...

android error only when running on actual phone (not emulator) - not sure what the cause is

android,emulator,phone

Looks like you're either passing in a NULL value in the Intent.putExtra() method called from the godwin.com.study.chooseTestLength.sendLengthOnClick() function on line 57 or the Intent itself is NULL. Please post some code to better assess the issue. EDIT: As already stated, TEST_LENGTH is NULL. Give it a value like this: public...

objective c - How to tell if an NSURL is formatted as a phone number

ios,nsurl,detect,phone

There IS a better way. An NSURL object has an attribute of scheme, which will identify what type of URL it is. if ([URL.scheme isEqualToString:@"tel"]) { // handle telephone case here } else { // handle http or other case here } The documentation says the scheme could be considered...

Phone Numbers in Apps

android,ios,phone

WhatsApp actually uses your phone number that you already own similar to how your email account uses a username. This is their take on a login and accounting system. As far as services like TextMe, Google Voice etc. The Provided would have to purchase a list of phone numbers and...

How to send an sms comfirmation for when user sign up [closed]

php,sms,phone

Here you've got a list of SMS APIs: http://blog.mashape.com/list-of-50-sms-apis/. It's from 2013 though, some of them might have changed. You do have free APIs like http://textbelt.com/ but it depends on where do you want to send those SMSem, different providers in different countries have different gateways. I think it's impossible...

How to make dynamic phone number clickable for mobile users

javascript,mobile,numbers,phone,clickable

Do you mean this? Please rewrite your script to not use document.write. If you ever call one of your functions after the page loaded it will wipe the page. document.getElementById("phonenumber").innerHTML='<a href="tel:'+phone_number+'">'+phone_number+'</a>'; Like this, using your original code <div id="phonenumber">Call: </div> function getPhone() { var phone = get_named_cookie("MM_TrackableNumber"); if (phone ==...

return info after Twilio client outgoing call

javascript,php,browser,twilio,phone

Twilio evangelist here. So just to be clear, Bob is making an inbound call via Twilio Client for JavaScript which is dropped into a Conference. Then your app makes an outbound call to Alice via PSTN and idealy she is dropped into that same Conference. If you can't connect to...

Different width for Navigation Drawer in Tablet and Phone

android,xml,tablet,material-design,phone

Create values-sw600dp folder in your project and add dimens.xml file in it. Define width in dimens.xml file of both values and values-sw600dp folder For values-sw600dp/dimens.xml <resources> <dimen name="width">300dp</dimen></resources> For values/dimens.xml <resources><dimen name="width">150dp</dimen>   </resources> Call this in this manner android:layout_width="@dimens/width" ...

Sencha Touch: Windows Phone does not scroll to end of page

windows,extjs,scroll,touch,phone

I've created an issue for the AccordionList creator at GitHub. After testing his AccordionList demo on a Windows Phone it had the same issue.

Google Event tracking for phone number

javascript,wordpress,mobile,phone,event-tracking

The syntax for UA event tracking is ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner') So your complete code would be <a href="tel:18285053969" onclick="ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner');">828.505.3969</a> Once you have that set, and if you are not filtering out your own views, you can check for...

Windows Phone 8.1 Image Async Not Updating

c#,windows,asynchronous,phone

In HttpClient cache is enabled by default. As far as I know, the only way to get rid of it is to pass a random parameter, so it looks like a different request and it doesn't already exist in cache. var uri = new Uri("http://example.com/getimage.php?no-cache=" & DateTime.Now.Ticks.ToString()); ...

What does a .XAP file consists of?

windows,windows-phone,phone

Please check the below links http://forum.xda-developers.com/showthread.php?t=2140706 http://www.telerik.com/blogs/want-to-decompile-silverlight-xap-files-try-justdecompile-beta for information.

Sencha ExtJS: How do I prevent the cursor from leaving the current position in a phone number field upon edit?

extjs,sencha-touch,textfield,phone

I have figured it out. The problem was fixed by deleting this segment: onChange: function (c) { c.setValue(Ext.util.Format.phoneNumber(c.getValue())); } The field still validates the number until it matches the format criteria. Cannot save until it matches. :D...

Android fragment on windows phone

android,windows,phone

You can create User Control and included in any xaml page. You can look here

Javascript textbox onkeyup event

javascript,asp.net,phone

I have <asp:TextBox ID="phone" " runat="server" AutoCompleteType="Disabled" onkeyup="this.value=this.value.EditPhone()"></asp:TextBox> Or See Example Click Here...

I'm making an API in PHP, but it cannot combine two variables [closed]

php,api,email,sms,phone

Answer on behalf of OP: In the switch function, I just changed AT&T to ATT....

Adding Area code in program

c++,c,arrays,indexing,phone

First there are a few minor issues with the approach you have taken. First you use a lot of magic numbers, this makes your code difficult to maintain and evolve as you have to worry about updating more code increasing the chance of introducing bugs. The second is there isn't...

Recover phone ui

android,phone,com.android.phone

you have to do as suggested on this answer: android.permission.CALL_PHONE for tablets add the call phone permission: <uses-permission android:name="android.permission.CALL_PHONE"/> and then call with Intent.ACTION_CALL. Intent intentcall = new Intent( Intent.ACTION_CALL, Uri.parse("tel:" + phonenumber)); startActivity(intentcall); edit: there's a way you could do, but it won't work in Lollipop and forward, as...

Listbox Binding With No Results Listed

windows,xaml,binding,listbox,phone

Have you set the DataContext of your main page to the application class that has EventList as a property? Set a break point on your get accessor and check if it is being called. If not, then you need to set the DataContext.

Service that adds “Over the Top” texting to landline numbers

sms,twilio,phone

(Disclaimer: I'm the VP of Engineering @ HeyWire) The TextUs FAQ is spot on. SMS routing and voice routing are completely separate. OTT text carriers like us have agreements with SMS aggregators and have to abide by industry rules and guidelines. The agreements and rules may vary depending on whether...

why not display all items in StackPanel of xaml in new line?

windows,xaml,phone

That's how a StackPanel is supposed to work. The behavior you want is achieved by a WrapPanel, which doesn't exist natively in Windows Phone 8. You can get it in the Windows Phone Toolkit; note that it works only for apps that target Windows Phone Silverlight (8.0), not WinRT (WP...

Nokia C5 02 Memory full, but where do I delete the files?

nokia,phone,c5

It seems an error from the beginning of the phone is introduced.I faced same problem. You may see this

How to open the ios Native dialer app from my App

ios,phone,ussd

No, there is no workaround with those symbols.

Connection refused to localhost with android phone

android,connection,localhost,device,phone

Go to your phone's settings Go to the network settings Go to WIFI Long tap on your WIFI network After this, their should be an option to modify the settings. Click Advanced Options Go to Proxy Settings and select manual Enter your PC's IP address in hostname. For port,...

Break Points Flash When Debugging in Windows Phone 8.1

windows,windows-phone-8.1,phone

I figured out what was causing the issue. The startup object didn't have a value in the project property section. Once I made a selection, the app was able to go in debug mode.

windows phone 8 app textBlock hide text c#

c#,windows,phone

You can try something like this, Set the ScrollViewer Height to "Auto" <ScrollViewer Height="Auto" Grid.Row="1"> If it does not work,There is a 2048 pixel limitation for UI controls. Sometimes the text to be displayed is so large that it can’t fit in a TextBlock and some of it overflows. You...

How to upgrade from Style.Triggers to Interaction.Behaviors?

c#,wpf,windows,windows-runtime,phone

This might seem like a simple enough answer, but cant you just create a trigger like so: <c:DataTriggerBehavior Binding="{Binding Path=IsInBubbleGroup}" Value="True"> .... </c:DataTriggerBehavior> which would be equivalent to the EnterActions, then create another one: <c:DataTriggerBehavior Binding="{Binding Path=IsInBubbleGroup}" Value="False"> .... </c:DataTriggerBehavior> which would be equivalent to the ExitActions? (Note the False...

Skipping Page while clicking back button - windows phone 7

windows-phone-7,navigation,phone

If you want to skip the previous page, just remove it from the back stack before triggering the navigation: // After the user has clicked on the button, remove the intermediate page before going back: this.NavigationService.RemoveBackEntry(); this.NavigationService.GoBack(); ...

What is the best way to share large data in Windows 8 app

database,windows,phone

If you want to store data that can roam between devices, you should look at creating a web service. Then, every time, read/store data onto the web service by (de)serializing JSON. However, if you want the data to roam across user's personal devices, say Universal App on PC and phone,...

How to Customize Android Call Screen

android,service,phone

First you'll have to look at the Intent Receivers, it should be something like: ACTION_ANSWER, defined for incoming calls. Then you define your own application, an Activity with the design you want and properly configured to receive this kind of Intent. Please refer to these links: http://developer.android.com/intl/fr/guide/topics/manifest/intent-filter-element.html http://developer.android.com/intl/fr/guide/topics/intents/intents-filters.html ...

Load data to few lists

c#,windows,list,memory,phone

It could be done with Linq in the following way. remind = (List<Reminders>)serializer.Deserialize(stream); List2 = remind.ToList(); ...

Naming or securing a Phone app name

android,iphone,phone

You cannot reserve an app name in the Play Store. The app-name is not unique. Just the package-name (application id) (e.g. com.helloworld.app) is unique and cannot be changed.

Android setWallpaper deprecated

android,button,phone,wallpaper

If you take a look at the official docs, you will find, that this method is deprecated since API 5 and you should use WallpaperManager.setBitmap() instead.

Control Name's in XAML WIndows Phone 8.1 Runtime dont show in CS File

c#,windows,runtime,phone

Reason might be that you are refering to it before calling InitializeComponent() method.

make songs list in Windows Phone 8.1 with xaml and c#

c#,windows,xaml,phone

[SOLVED] Sorry I forgot to edit my AppxManifest so I didn't give the right permission for music library !!

Load, show, convert image from byte array (database) in Windows Phone 8.1

arrays,image,byte,phone

You can try something like this to convert byte[] to BitmapImage: using (InMemoryRandomAccessStream ms = new InMemoryRandomAccessStream()) { using (DataWriter writer = new DataWriter(ms.GetOutputStreamAt(0))) { writer.WriteBytes((byte[])fileBytes); writer.StoreAsync().GetResults(); } var image = new BitmapImage(); image.SetSource(ms); } Found it on this: http://www.codeproject.com/Tips/804423/Conversion-between-File-Byte-Stream-BitmapImage-an I'm using it to read byte[] from sqlite database and...

How to access Windows Phone folders from a Gmail Wrapper App

windows,webview,windows-runtime,gmail,phone

The hosted browser (WebView) cannot show the native file picker. You'd need to proxy the request somehow and show the picker from C# for example. But, as you don't own the gmail source code, making the proper surgical changes would be difficult (and subject to be changed).

Android Phone Contacts -Selection restrict to Mobile Phone Number only

android,contact,phone

Not sure if the following seemed to be working or not ? String Sel_MobileNo_type_1=ContactsContract.CommonDataKinds.Phone.DATA2+"= '2'"; String Sel_MobileNo_type_work=ContactsContract.CommonDataKinds.Phone.DATA2+"= '17'"; String Sel_MobileNo=Sel_MobileNo_type_1+" OR "+Sel_Mobile_type_work ; Thanks...

How do I get the width and height of a Canvas element that is set to 'Auto'?

c#,windows,canvas,phone

You can put the Canvas inside something (a Border, a Grid), and then get the ActualWidth and ActualHeight from the container. I have the impression that Canvas does not expand to fill container, so it is better to get dimensions from the container itself. Just be sure the container layout...

Current Time in TextBox. in C# visual studio 2010 windows phone

c#,windows,time,textbox,phone

You can use DateTime to get the current time. textbox1.Text = DateTime.Now.ToString("hh:mm:ss"); ...

Re-Size Text Content Inside A Button For Windows Phone

c#,windows,xaml,phone

You have to override button Template in Style and wrap ContentPresenter with ViewBox. Here is example (look for Viewbox added comment): <Style x:Key="ButtonWithViewbox" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid x:Name="Grid" Background="Transparent"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualStateGroup.Transitions> <VisualTransition From="Pressed" To="PointerOver">...

Forcing in culture 24h and 12h time format [closed]

c#,time,timepicker,phone,culture

I assume you have a System.Windows.Forms.DateTimePicker. If so, you need not change the culture on the current thread - you can just use the CustomFormat property, e.g. public void SetCustomFormat(DateTimePicker dateTimePicker, bool twentyFourHour) { dateTimePicker.ShowUpDown = true; dateTimePicker.Format = DateTimePickerFormat.Custom; dateTimePicker.CustomFormat = twentyFourHour ? "HH:mm" : "hh:mm tt"; } Note:...

Calling a phone number in swift

xcode,swift,phone

Just try: if let url = NSURL(string: "tel://\(busPhone)") { UIApplication.sharedApplication().openURL(url) } assuming that the phone number is in busPhone. NSURL's init(string:) returns an Optional, so by using if let we make sure that url is a NSURL (and not a NSURL? as returned by the init)....

Android Studio Mute/Unmute Phone. -HELP-

java,android,phone,mute

All you have to do is in your AndroidManifest.xml add the permission for vibration. <uses-permission android:name="android.permission.VIBRATE" /> After that in your activity whenever you want to change it to vibrate use this code (button press etc.) AudioManager audioManager = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); audioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); To unmute simply use the code AudioManager audioManager =...

PC doesn't recognize windows phone device

windows,driver,device,phone

Try going to device manager and view your USB connections. Plug in the phone. You should see the device appear, but you should another 'usb composite device' appear under USB Serial Bus Controllers. With the phone plugged in see if you can uninstall it. Be careful if you already have...

Multiple Animations Windows Phone 7

c#,windows-phone-7,phone

For each object you need create DoubleAnimation, each DoubleAnimation add to one Storyboard and then play it. This is one method of my AnimationHelper, I modified it for this case. public static void Animate(List<DependencyObject> objects, EventHandler onComplete = null) { Storyboard sb = new Storyboard(); foreach (DependencyObject obj in objects)...

Create HyperlinkButton with text wrapping in code behind (Windows Phone 8)

c#,windows,phone

You can put the xaml above into a long string (start with @" to have a multi-line string in C#) and then call XamlReader.Load( myXamlString ). Alternatively, you can create the hyperlink button and set its template in code-behind. Even in that case, however, the general advice is to use...

WIndows Phone 8.1 Calendar Events reading issue

c#,windows,windows-phone-8,calendar,phone

Can you elaborate your issue... Please select necessary Capabilities..so that Windows phone SDK allows your app to use required functionality.. ADD ID_CAP_APPOINTMENTS ID_CAP_IDENTITYDEVICE ID_CAP_NETWORKING check the checkbox next to them Build again and see if problem persists,if persists . revert back with error screen...

Google Chrome Extension Softphone Update via Dev Dashboard Issue

google-chrome,google-chrome-extension,voip,phone

An update may be downloaded at any time, but an extension is only reloaded when the background page goes inactive. I guess that you're using Web sockets for signaling. Since the connection need to be available at all times, you are probably using a persistent background page. This is enough...