When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else.

Member Avatar
Member Avatar
+0 forum 8

Hello i want to add fa fa-users (the users icon from font awesome) but when i do <i class="fa fa-users" aria-hidden="true"></i> i am not getting the icon, html displays the code of the font-f0c0 that is. Any guess why? p.s. i am using other fonts just fine e.g. contact, search and so on

Member Avatar
Member Avatar
+1 forum 3

Hello I'm try to use a hardware to create key for encryption in mobile devices( in a model at first) this is my question: can i get my keys from TPM? If is it possible, how can i do it?

Member Avatar
Member Avatar
+0 forum 4

Does all .apk files can be decompiled no matter on how they are protected and secured, and recompile back in apk file? I have an apk file which i need the source code to change something a little bit. I tried using [javadecompilers](http://www.javadecompilers.com) but i did not get the main files with code i need. Is there any alternative to this site or is there any possible way of achiving this? Thank you.

Member Avatar
Member Avatar
+0 forum 4

Hi, I am an absolute beginner to Xamarin and just started to develop a small application wherein, I am not getting any idea about why the BindableProperty changes are not getting reflected inside the view model. Presently, I have written my BindableProperty in a separate Class and the code is as follows: public static readonly BindableProperty IsValidEntryProperty = BindableProperty.Create("IsValidEntry", typeof(bool), typeof(MaxLengthValidatorBehavior), false, BindingMode.TwoWay); public bool IsValidEntry { get { return (bool)GetValue(IsValidEntryProperty); } set { SetValue(IsValidEntryProperty, value); } } protected override void OnAttachedTo(Entry bindable) { bindable.TextChanged += HandleTextChanged; base.OnAttachedTo(bindable); } void HandleTextChanged(object sender, TextChangedEventArgs e) { IsValidEntry = false; IsValidEntry = …

Member Avatar
Member Avatar
+0 forum 2

Hi I am developing an app for a specific facebook page. The problem is that when i load URL in mywebview.loadURL(https://web.facebook.com/CoversShopping/). The page opens successfully but the page always reload when the oreintation changes. This problem only occurs for the above type Urls(i-e when I give the link of specific facebook page). But if i load URL as www.facebook.com or www.youtube.com or http://www.easyonlineconverter.com/converters/case_conveter.html no any page reload occurs as I have set android:configChanges="orientation|screenSize". Even If I give URL of any website with its specific page ,no page reload occurs when orientation changes. Page reload only occurs in case of specific …

Member Avatar
Member Avatar
+0 forum 1

I have made a simple app which gets curren location (latitude and longitude). It is working perfectly. But now i want to take location updates. For this i implemented LocationListener interface . I overridded the metod On location Change, but when i run the application, this method does not respond in any way. There is no error, no exception and no response I have attached my code. Please check it and guide me package com.example.hp430.gpslocaction; import android.Manifest; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.provider.Settings; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v7.app.AlertDialog; import …

Member Avatar
+0 forum 0

Hello! I have installed android studio 3.0.1 in my laptop . I had some android projects in my desktop computer (with older version of android studio) But after installing latest version(3.0.1) of android studio in my laptop, i copied projects from my desktop to my laptop and opened that projects in my new android studio(3.0.1) But there appears an error: "Gradle project sync failed. Basic functionality(e.g editing, debeugging ) will not work properly" And in the console a message appears: ""Unable to resolve dependency for: 'app @UnitTest/compileClassPath: could not found any version that matches com.android.support: support-v4:27.+. I can't understand this …

Member Avatar
+0 forum 0

Hello i have a problem working with Camera on Ionic and i need some advice. I have installed both ionic camera and media capture plugins. I am using two scripts one to capture Video (Start Reocording) and one to capture a Photo (Take Photo) I am getting the errors displayed on the image i show you here. I guess that is because i am calling the Camera Method on `@ionic-native/Camera `when i should called it from `ionic-native`. I try to use both `import { MediaCapture, Camera, CameraOptions } from 'ionic-native';` home.ts import { Component, ViewChild } from "@angular/core"; import { …

Member Avatar
Member Avatar
+0 forum 1

Hello, i am trying to do an Ionic app and i am getting an error. Any suggestion? Runtime error this.file.documentsDirectory is null [194]/HomePage.prototype.startRecord@http://localhost:8100/build/main.js:80:13 View_HomePage_2/<@ng:///AppModule/HomePage.ngfactory.js:36:19 handleEvent@http://localhost:8100/build/vendor.js:13608:132 callWithDebugContext@http://localhost:8100/build/vendor.js:15093:39 debugHandleEvent@http://localhost:8100/build/vendor.js:14680:12 dispatchEvent@http://localhost:8100/build/vendor.js:10057:16 renderEventHandlerClosure/<@http://localhost:8100/build/vendor.js:10671:38 decoratePreventDefault/<@http://localhost:8100/build/vendor.js:36353:53 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649 onInvokeTask@http://localhost:8100/build/vendor.js:4973:24 F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562 F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815 F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16787 p@http://localhost:8100/build/polyfills.js:2:27646 v@http://localhost:8100/build/polyfills.js:2:27893 home.html <ion-header> <ion-navbar> <ion-title> Sound Recorder & Player </ion-title> </ion-navbar> </ion-header> <ion-content padding> <ion-card> <ion-card-content> <ion-card-title> <button ion-button primary (click)="stopRecord()" *ngIf="recording"><ion-icon name="mic-off"></ion-icon>&nbsp;&nbsp;Stop Record</button> <button ion-button primary (click)="startRecord()" *ngIf="!recording"><ion-icon name="mic"></ion-icon>&nbsp;&nbsp;Start Record</button> </ion-card-title> </ion-card-content> </ion-card> <ion-list> <ion-item *ngFor="let audio of audioList; index as i;"> <p>{{audio.filename}}</p> <button ion-button clear item-end large (click)="playAudio(audio.filename, i)"><ion-icon name="play"></ion-icon></button> </ion-item> </ion-list> </ion-content> home.ts import { Component } from '@angular/core'; import { …

Member Avatar
Member Avatar
+0 forum 6

Hello i want to make a script in Ionic 3 to capture audio and video from device. index.html `<button ion button (click)="captureApp()" id="captureAudio">Capture Audio</button>` index.ts document.addEventListener("deviceready", onDeviceReady, false); function id(element) { return document.getElementById(element); } function onDeviceReady() { navigator.splashscreen.hide(); captureApp = new captureApp(); captureApp.run(); } function captureApp() { } captureApp.prototype = { pictureSource:null, destinationType:null, run:function() { var that = this; id("captureVideo").addEventListener("click", function() { that._captureVideo.apply(that, arguments); }); id("captureAudio").addEventListener("click", function() { that._capureAudio.apply(that, arguments); }); id("captureImage").addEventListener("click", function() { that._captureImage.apply(that, arguments); }); }, _captureVideo:function() { var that = this; navigator.device.capture.captureVideo(function() { that._captureSuccess.apply(that, arguments); }, function() { captureApp._captureError.apply(that, arguments); }, {limit:10}); }, _capureAudio:function() { var that …

Member Avatar
Member Avatar
+0 forum 7

Hello i just started to use Ionic and i have some questions. First of all i downloaded an existing ionic project on GitHub to start. I do these commands and works fine. $ git clone https://github.com/srinivastamada/ionic-restful-authentication.git $ cd ionic-restful-authentication $ npm install $ ionic serve The project starts at localhost:8100 as wanted. I understand that the files are on a cloud and the database too, right? When i download the files how can i use them so i may do some changes? I Mean i type in commands on NODE.JS command prompt? The tutorial says that uses PHP-Restful-Api https://github.com/srinivastamada/PHP-Slim-Restful to …

Member Avatar
Member Avatar
+0 forum 8

I tried to run an Ionic 3 project from existing files using not C++ but Apache/Cordova and i am getting these errors. Idid a Typescript project works fine. But Cordova won't run with Javascript? Severity Code Description Project File Line Suppression State Error TS2304 Build:Cannot find name 'object'. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\compiler\src\compile_metadata.d.ts 168 Warning No compiler log specified, 'Clean' won't work. ionic2 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 320 Error TS1139 Build:Type parameter declaration expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1109 Build:Expression expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS1128 Build:Declaration or statement expected. ionic2 C:\Users\Simon\AppData\Local\Microsoft\Windows\INetCookies\Desktop\Various Scripts\ionic2\node_modules\@angular\platform-browser\src\browser\transfer_state.d.ts 34 Error TS2304 Build:Cannot find name …

Member Avatar
Member Avatar
+0 forum 6

Hello i am getting an error on log about npm... Any suggestion? PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Web\External\npm.CMD" install npm WARN deprecated babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-minify npm WARN engine webpack@2.2.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"5.4.1","npm":"3.3.4"}) npm WARN deprecated babel-preset-babili@0.0.10: babili has been renamed to babel-minify. Please update to babel-preset-minify npm WARN install Couldn't install optional dependency: Unsupported npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Web\\External\\Node.exe" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Web\\External\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! …

Member Avatar
Member Avatar
+0 forum 2

Hello how do you feel about Ionic 3 and Angular 4 frameworks? Are they compatible with Ios? Do i need to know Java to use them?

Member Avatar
Member Avatar
+0 forum 6

I've come across a little problem. How do I make it so that after my game is finished, I can choose whetever to exit my program or just restarting it from the beginning. In main method I've started my while loop to check my tries left if my counter is below 7 and I want to combine it , but I don't know how exactly My code so far : public class Hangman { public static String[] words = {"terminator", "banana", "computer", "cow", "rain", "water"}; public static String word = words[(int) (Math.random() * words.length)]; public String underscore = new String(new …

Member Avatar
Member Avatar
+0 forum 6

Hello everyone,I am having no experience in android or mobile app develpment but having some questions is it possible to have app which works offline without internet(devices can be connected LAN) where in each device have data stored of main stock of items which will be updated once in month.Now if anyone on device 1 has added item in cart then that particular items quantity should be deducted from main stock quantity and in real time notification are send other devices(all devices are offline)? Any suggestions are welcome is that even possible if not how can it be implemented

Member Avatar
Member Avatar
+0 forum 6

Hi to all! I made a class named “Database” I called openOrCreateDatabase in in its constructor but it was giving error. Then I searched on internet and got a solution that in case of non activity class I should also pass context. Then I passed context but then I am facing an error in run time in LogCat: ”java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory)' on a null object reference." Above in the double quotes is the error.please guide me Actually I want that I just call the constructor of this class in another class named “InsertRecord” …

Member Avatar
Member Avatar
+0 forum 1

hi to all! i have installed android studio, my sdk path is C:\ androidsdk\sdk\sdk . my android studio installed successfully. but after installation when android studio opens then in event log tab an error message appears: Grade sync failed: Cause: failed to find target with hash string ' android-19' in C:\androidsdk\sdk\sdk Consult IDE log for more details. please guide me i will be thank full to u

Member Avatar
Member Avatar
+0 forum 1

I'm a beginning Android Developer trying to learn the file system, etc. I'm hoping to eventually delve into Home Automation and traffic analysis using phones/GPS, but I'm in the beginning arc of this learning curve. My background is mostly C/C++, though I've done some work in Java. I'm not so great with Linux, but semi-familiar. Ditto with security. I have a Computer Science degree and have been programming for years. Currently I have been trying to figure out what goes where in Android and have been running into a lot of permissions issues when trying to list directories using the …

Member Avatar
Member Avatar
+0 forum 7

I am developing an android app for the first time and I wanted to make the sessions for login and logout. I saw that most of the people suggested using SharedPreferences. But how can I check if the user logged out? If the user does not and clicks on my app, then the sign in page won't show up! The user can immediately go to the main page. Here is my java class file where the user id and password would be asked... package example.hiitattendance; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import …

Member Avatar
Member Avatar
+0 forum 5

I keep getting a direct identifier error. I have tried deleting the pillarPlat004 assets and re-importing it and connecting it to the code, but that doesn't seem to be the problem. I'm using swift in xcode. ![Screenshot_2016-04-09_19.27_.25_.png](/attachments/small/4/1f4a31b4ae5c37226cc4901e500e6fcd.png "align-left") ![Screenshot_2016-04-09_19.31_.50_.png](/attachments/small/4/4d94fd0a79c2f6fa708b11ec67f58885.png "align-left")

Member Avatar
+0 forum 0

Error:Unable to load class 'com.android.tools.idea.gradle.project.GradleProjectSyncData'. Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then …

Member Avatar
Member Avatar
+0 forum 1

So i have been searching all the net but haven't exactly found what I'm looking for and I'm starting to believe that it is impossible. The problem is that I have a local MS SQL Server stored on my notebook. What I would like to do is an android application that can actually access this database from anyplace in the world (so to speak). I have found this tutorial which connects to MySQL (I can edit it to connect to MS SQL). However this tutorial makes use of a database on a remote server and not a local. [url]http://downloadandroid.info/2010/05/how-to-connect-to-mysql-database/[/url] Any …

Member Avatar
Member Avatar
+0 forum 6

Hi All, Back after a LONG break from Daniweb, love the new look! I have the following data scanned from a pdf417 and need to extract certain text to certain text fields, not sure how to go about this... Data scanned with manatee works plugin and android app using android studio. All help will be appreciated. Data that was returned from scan - %MVL1CC18%0154%4025M003%4025012RP01C%DC62XBGP%NISSAN%SILVER/SILWER% Each part between the %'s need to go to a field.

Member Avatar
Member Avatar
+0 forum 2

I've made a simple webview app . I have tried a lot but I cant get it to work, refered to link dint work out . Hope someone can help me here. admob is not displaying after the splash screen .if linearlayout changed to Relativelayout ad appears without splash screen . this is splashscreen java code http://stackoverflow.com/questions/35204031/android-webview-admob-splashscreen-layout

Member Avatar
+0 forum 0

The code below works ok and displays result (mDisplayNominalEff) to screen but I want to round the result to 3 places. I assume that I need to parse string to double. Any ideas on how to do this? String mDisplayNominalEff = ("" + (myDiameter - (myPitch * 0.649519))); TextView displayNominalEff = (TextView) findViewById(R.id.nominalEffTV); displayNominalEff.setText(mDisplayNominalEff);

Member Avatar
Member Avatar
+0 forum 6

I have 4 textviews which take their values from dropdown list (spinner) selected at previous screen. There can be either 2 or 4 numbers/letters as result of this selection. The first position will always be a number and the second position will always be a letter. The third position can be a number or blank and the fourth position can be a letter or blank. If position 3 and position 4 are blank then I need to make them equal to positions 1 & 2 respectively. String myGrade = intent.getStringExtra("parameter_name_grade"); // above takes value of 'myGrade' from spinner selection at …

Member Avatar
Member Avatar
+0 forum 4

Hello all, My chess piece images are being cropped from the bottom. There is a sense of a squeeze which seems to make the bottom parts of my images disappear. Can anyone tell me why this is happening? Thank you in advance... [Click Here](https://www.facebook.com/photo.php?fbid=10153417612584037&set=gm.937346006302419&type=3&theater) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/satranc" android:layout_width="match_parent" android:layout_height="@dimen/boy" android:background="@color/colorekran" android:gravity="center_horizontal" android:orientation="vertical" tools:context=".MainActivity"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/satir8" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:gravity="center_horizontal" android:orientation="horizontal"> <ImageView android:id="@+id/a8" android:layout_width="@dimen/kare" android:layout_height="@dimen/kare" android:width="@dimen/kare" android:height="@dimen/kare" android:adjustViewBounds="true" android:background="@color/colorLight" android:gravity="center" android:padding="0dp" android:scaleType="fitXY" android:src="@drawable/br" /> <ImageView android:id="@+id/b8" android:layout_width="@dimen/kare" android:layout_height="@dimen/kare" android:width="@dimen/kare" android:height="@dimen/kare" android:adjustViewBounds="true" android:background="@color/colorDark" android:gravity="center" android:scaleType="fitXY" android:src="@drawable/bn" /> <ImageView android:id="@+id/c8" android:layout_width="@dimen/kare" android:layout_height="@dimen/kare" android:width="@dimen/kare" android:height="@dimen/kare" android:adjustViewBounds="true" android:background="@color/colorLight" android:gravity="center" android:scaleType="fitXY" …

Member Avatar
+0 forum 0

Hello guys! I'm trying to create a countdown timer for a memory app. The user is given about 5-10 seconds to look at the gridview of pictures then the countdown timer starts. I was wondering how I can achieve this. The code below shows the countdown timer which starts at 30 seconds. public class Play extends AppCompatActivity { TextView tvTimer; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_play); tvTimer = (TextView) findViewById(R.id.tv_timer); CountDownTimer timer = new CountDownTimer(30000, 1000) { public void onTick(long millisUntilFinished) { tvTimer.setText(" " + millisUntilFinished / 1000); } public void onFinish() { tvTimer.setText("done!"); } }.start(); }

Member Avatar
Member Avatar
+0 forum 2

The End.