Posts

How does android handle the +-sign in a phonenumber -

I'm trying to call a calling card through code and intend to send the desired Uri to: accessnumber + pause + phonenumber + # Phononumber comes from the address list, but I handle + (as in the exit code) because it is in instances 011, Is in Europe 00. And I think I can not send it only in intent. Is there any way to handle this? The problem is that calling card plus for example 00 or as a 011. string uri = "tel:" + Uri.encode (phone number) {intentCol = new intent (intent.ACTION_CALL) Try it; IntentCall.setData (Uri.parse (URI)); StartActivity (intentCall); } Hold (ActionlineFound Exception E) {} To use Android compatible telephone URI For RFC 3966 specifies that '+' is used for international dialing, therefore Android should recognize the character '+' and behave properly with it.

javascript - Jquery ui autocomplete php retrieve names -

I am trying to use the jquery UI auto-complete widget to retrieve names in a php file (NameSearch .php) This result is not recovering properly. Is there something wrong with jazzery? Should the ID return the result to the input with the 'tag'? I'm getting the '$ _GET [' word ']' variable in the PHP file, which I think is sent from the complete request to the php file? This is the Jquery code I have: & lt; Script & gt; $ ("# Tag") Autocomplete ({source: "nameSearch.php", Minlang: 2}); & Lt; / Script & gt; php & lt ;? Php $ namePart = $ _ GET ['word']; $ Names = array (); // Make connections $ con = mysqli_connect ('localhost', 'root', 'admin', 'moviedatabase'); // Query Database $ result = mysqli_query ($ con, "name like selector name, name like '%'. $ NamePart."% '"); $ Arr =' '; while ($ line = mysqli_fetch_array ($ result }}...

In Rust (0.5 and/or trunk), how do I create a mutable vector of mutable objects? -

I have the following code (as a cut-down example): Square item {attribute: ~ mute [~ str]; } Class item list {items: ~ mute [items]; } Fn read_item (rdr: reader) - & gt; ~ Mut item {} fn load_item_list (rdr: reader) - & gt; ~ Mut itemList {} When trying to implement these functions, I "unsolved name item list" and conflict indicator / Variable type (between and; ~ mut vs ~ mut>, etc.) Does anyone give me a cut-down example that is allocated now Does and returns empty things? From there, I should be able to fill the data. I'm not sure what's the problem you're hitting but here are some hints. , I recommend that going into the coronal trunk - the code you are using - indicates an old old version of the class sentence. On the trunk, mut is no longer a valid modifier for the type of ownership type, which means ~ mut T can not be written, nor can it be written in the struct {Mut field: T} . Instead, the transferability of owner...

Write data to USB HID using Javascript, HTML5, or any cross platform language (supports Android) -

I have written a UI in HTML5 and Javascript I chose this implementation so that I am both between Android Chrome and Windows 8 RT Only share the code. Now, my next goal is to write data to a USB HID, the device I'm communicating with is considered to be a hidden. I am referring to this part, if a USB RAW is a way of writing on the HID device instead of the device. I have done a lot of research on this matter. But, HTML5 5 glasses are changing so often that I miss something. Anyway, can suggest a language or implementation that I can use to access the common code to access USB devices on Android, Windows 8 RT? If there is no way to share between the two, then how about the suggestion for getting USB communication on Android? Below is my research conclusion: Silverlight: In terms of UNSUPPORTED web plugin, on Windows 8 RT or Android Not supported Flash: Possible options are supported in both operating systems, though they have removed support for Android with t...

javascript - JQuery variable value in quotes -

इस सवाल का पहले से ही एक उत्तर है: 21 उत्तर मुझे एक समस्या है जो चर Jquery में उद्धरण चिह्नों में मूल्य: उदाहरण के लिए: मेरे पास चर रंग में एक HTML रंग कोड है, जिसमें मान # FFFF00 है। मैं वैरिएबल वैल्यू को प्रदर्शित करना चाहता हूं जैसे: "# एफएफएफएफ 200"। मैंने ऐसा कुछ करने की कोशिश की लेकिन यह काम नहीं करती: context.strokeStyle = "\" रंग\""; बस सीधे चर का उपयोग करें। संदर्भ .strokeStyle = color; और यदि आप इसमें उद्धरण जोड़ना चाहते हैं: context.strokeStyle = "& amp; quot;" + रंग + "& amp; quot;";

django - Add a field to Page Admin to include icon for menu item -

I have allowed the use of icons in my HTML templates, small square PNG or font-awesome: template top-menu In HTML, I should be able to use the following: {{child.menu_icon_font_awesome}} # # "{child.menu_icon_image}}" instead of "icon-search" Instead of / icons / search.png How does anyone get these variables in the child menu nodes in the menu? In addition, how can I get administrators to work in admin.py (very few important)? My menu_icons app looks like this: import from django.db import model from django.utils.translation import # models.py ugettext_lazy form _ to cms.models. Pagemodel import django.core.files.storage Import FileSystemStorage Class OverwriteStorage page (FileSystemStorage): "" "If present, the file with the same name is deleted." Def_save (self, name, content): if self.exists (name): self.delete (name) return super (overwritestorage, self) ._ save (name, content) def get_available_name (auto, name): return...

ruby on rails - Selecting active option in jQuery Mobile -

The mobile page for my app is the header with the menu menu select the jQuery Mobile dropdown. & lt; Span data-role = "fieldcontain" id = "category-dropdown" & gt; & Lt; Select name = "selection-country-2" id = "selection-country-2" data-mini = "true" & gt; & Lt; Option value = "& lt;% = root_path%>" & Gt; Home & lt; / Options & gt; & Lt; Option value = "& lt;% = newest_path%>" & Gt; New & lt; / Options & gt; & Lt; Option value = "& lt;% = group_path (group.fund (1))% & gt;" & Gt; Group 1 & lt; / Options & gt; & Lt; Option value = "& lt;% = group_path (group.fund (2))%>" & Gt; Group 2 & lt; / Options & gt; & Lt; Option value = "& lt;% = group_path (group.fund (3))% & gt;" & Gt; Group 3 & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Sp...