Posts

java - AdMob - Error inflating Class com.google.gms.AdView -

I can not add ads to my Android app, I tried to work on it in the last 6 hours and research into improvements Have done, but nothing seems to work! so frustrating. Here is the code: setContentView (R.layout.splash); in this(); LinearLayout layout = (LinearLayout) findViewById (R.id.linearSplash); AdView = new ad view (this); AdView.setAdSize (AdSize.BANNER); AdView.setAdUnitId ("a14ff402be4457c"); Layout.addView (adview); AdRequest adRequest = New AdRequest.Builder () .addTestDevice (AdRequest.DEVICE_ID_EMULATOR) .build (); AdView.loadAd (adRequest); But I get an error: Unable to start activity - android.view.InflateException: Binary XML file line # 17: Enhanceing a class com Error. Google.gms.ads.AdView Is anyone sure? I am using the Google Play services jar file, not general adobe 6.4.1. You have the wrong AdView in your layout file. You have the com.google.android.gms.ads.adview package in your layout as Google Play services , not your Curre...

Similar function Arduino bitWrite -

For a Raspberry P project, I am trying to change the arduino code. Does anyone know such a similar task? Thanks a lot. OK, I think I can do it on my own :) zero bitwait (uint8_t & x, unsigned int n, bool b) {if (n & lt; = 7 & amp; amp;;> = 0) {if (b) {x | = (1u

Mongodb. Aggregation. $match: [another collection keys] -

User and purchase are two collections The reference key in the purchase store is 'user'. I need to get the entry from the shopping store Which relates to some of the users raised by the city's tag. results = db.users.aggregate ({{$ $ $ $ $ $ $ $ $ {{'$ match': {'user_info.city1': 0}}] Db.userset.insert (Results ['Result']) db.purchase.aggregate ([{'$ match': {'user': usersarray (?)}}]) Can I get more than $ millions of dollars if I have more than a million, and every user can buy more than 10000? Is there another way to do this with aggregation? This example is indexed and about embedded documents Not in. Yes, the entire query is 16A MBN's BSON document is within the limit. Your second query is most likely to be: db.purchase.aggregate ([{'$ match': {'user': {'$ In ': [' user1 ', ...' userN ']}}}])

c++ - Can someone explain this code for me please? -

I am trying to understand what is the comparison of an Ieterter?: Can anyone please explain in the code given below is? Thanks in advance Maps & lt; String, cvsvm & gt; Classes_classifiers = predictor.getClassesClassifiers (); Map & LT; String, the map & lt; String, integer & gt; & Gt; confusion matrix; (Map CvSVM> gt; :: iterator = class_classifiers.begin (); it! = Classes_classifiers.end (); ++ this) {for (string, cvsvm> gt; :: iterator it1 = classes_classifiers Begin;); It1! = Classes_classifiers.end (); ++ it1) {string class1 = ((* this) .first.compare ("Foods") == 0)? "People": (* this). First; String Class 2 = ((* it1) .first.compare ("Foods") == 0)? "People": (* it1). First; Illusion _matrix [class 1] [class 2] = 0; }} This can be written in a less vague way it-> ago == "Foods"? "People": this-> first; Since returns string :: comparison if string is equal to logi...

javascript - How to detect a click outside the current textarea in prototype? -

I have a div that "converts" into a text string. Well, this is a hidden textera that shows when the Divis clicks on a div, the divis will hide and Texera will find the Div's internal HTML. The user can now edit the text and after that it is finished, I want to click outside the text. Now the teaser hides and the div appears again with updated HTML content. But at the moment it does not work as expected when a user clicks outside of the texts, how can I find out? Is there any .not () equals jQuery? The user should be able to resize the texts At the moment, it stops after resizing. any idea? Here's a fiddle: HTML here: & lt; Div class = "media_box" & gt; & Lt; Div class = "label" & gt; Textfeld: & lt; / Div & gt; & Lt ;! - Debit will be editable with the content of the property but there will be no line break - & gt; & Lt; Div class = "txt_area" & gt; Advertise on this website Now there...

mysql - Get nearest location in database -

I am trying to get the closest position to any user input from within the database (closest store at latitude and longitude ), So based on the postcode of users I am converting latitude and longitude, and with these results, I need to search my databases for shops that are closest to these values. I have tried to do some of the latitude and longitude of all the stores and so far (seeing past questions): SELECT * mystore_table from WHERE 'latitude' & gt; = (51.5263472 * 9) and `longitude` & amp; Lt; = (- 0.3830181 * 1.1) Order by stomach (latitude - 51.5263472 and longitude - -0.3830181) boundary 1; When I run this query, it displays a result, but it is not a nearby store, not sure it can happen with negative numbers, both my column latitude + Is longitude saved as a decimal data type? You should try this one arithmetic instead of command : WHERE 'latitude' & gt; from SELECT * mystore_table = (51.5263472 * .9) and 'Regdt` & lt; = (-...

install4j - How to use classes like RegistryRoot correctly in custom actions? -

I have to implement a custom action to find the Windows registry for the installed version of the dotnet framework. So I thought of expanding ReadRegistryValueAction to integrate my personal search algorithm. But the custom action will not be found on IDE. Therefore I increase the action from AbstractInstallAction and include the Registry root class to configure the action inside the IDE in the same way, as provided by the install4j framework With Registry functions done CheckDotNetInstallationActionAbstractInstallAction {Private Registry registry Root; Public registry root getRegistryRoot () {registry return registry; } Public Zero SetRistrictToot (Registry root registry) {this.registryRoot = registryRoot; } @ Override Public Boolean Install (Installer Project Instinct Contact) throws UserConnected Expressions {// Custom Search Returns False; }} But instead of getting a dropdown list, there is only one blank field, I expect a dropdown list in the same way as there are n...