Hello i am using Ionic 3 and Angular 5. Does anyone has an example for displaying items in different ion-cols (col-6, col-8,col-12)? Pinterest wise?

Member Avatar
+0 forum 0

Hello to all! Hope you are fine. I am developing an e-commerce android app and integrating Stripe payment gateway in it and using Google Fire base as real time database. I browsed the official website of stripe and took the source code from there. I used my test key from there. I successfully generated Stripe Token and saved it on my server (i-e Fire base). But I am unable to make an actual charge by using that token. That means no transaction shows on my stripe account. I am pasting my code, guide me what should i do to create/make …

Member Avatar
+0 forum 0

It may seem impossible on the first sight... But now, I have found a solution. It turnes out to be possibble to emulate the Windows environment and run it side-by-side with Android. As the article about playing PC games on Android (https://eltechs.com/pc-games-for-android-guide/) says this works like that because a special porting technology is utilized. It creates the Windows environment inside Android and then makes a PC game functioning inside this made-up environment natively and independently. Well. let's see! I am going to give it a try and report on the result a little bit later in thist thread!

Member Avatar
+0 forum 0

Good Day All i have a ListView that is defined in a Xamarin Form. i want this ListView to be updated with the Data from the DB every 5 seconds. In a Non Mobile environment , we have a Windows Service , which is a long running Service. but now i search i came across a Service. but now i see this is implemented differently on each platform. Most examples i get are examples where one is binding the Control in Android Project. WhatUp if my Data binding is done in Xamarin Form (Standard Class) . 1) Can i kindly …

Member Avatar
+0 forum 0

Hi there, I want to display images from internal storage into grid view. I have tried this code but i think its for external storage. File file= new File(android.os.Environment.getExternalStorageDirectory(),"image"); Kindly help me I don't have that much experience. Thank you.

Member Avatar
+0 forum 0

Hi, I am not a mobile app developer but recently studying Cordova/PhoneGap for fun. I just studied FireBase and it was really awesome because it can do lots things without running my own server such as user auth/management, DB, file storage etc. But I am just wondering about the right structure in regards of security. Because we only can use html/javascript/css in Cordova, I am not sure about the right structure to implement. Hackers can always change js codes so hiding contents is not possible. For example, if a user has to purchase coins to watch a video. How can …

Member Avatar
+0 forum 0

Hello! I have a grid view with the row model having a image view and text view in it. I set a custom adapter to populate the the grid view with images and texts successfully. But now I want to use a search view to filter the grid view on the base of text in text views. For this I implemented Filterable interface . When i enter the string in my search view nothing happens. I am pasting my code also. Please check it . All the code is in one class. Please view the code in the inner classes …

Member Avatar
+0 forum 0

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 want to access my SQL database with a Android Studio Emulator. I use `ionic cordova run android` and the project/app begins correctly but when i put the credentials (username and password) it stucks there. It works fine when i use `ionic serve` Any hint?

Member Avatar
+0 forum 0

how to user select spinner json through submit report for date to date and select user name how in androis studio

Member Avatar
+0 forum 0

Hello! I'm trying to display a list of items in a fragment called AgendaList. I am not quite sure what I missed. Here's what I have under AgendaList onCreateView: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_agenda_list,container,false); String[] menuTasks = {"Complete pleading for case #3485736", "New Case: #3452789 Yoel Romero vs. USADA", "New Case: #45367864 T.J. Dillshaw vs. Dominick Cruz"}; lvlistview = (ListView) view.findViewById(R.id.lv_task); ArrayAdapter<String> listviewAdapter = new ArrayAdapter<String>(getActivity(),android.R.layout.simple_list_item_1, menuTasks); lvlistview.setAdapter(listviewAdapter); return view; } and here's the corresponding xml file: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.alfred.pao3.AgendaList" android:background="@drawable/bg"> <!-- …

Member Avatar
+0 forum 0

I am working on an Android app in which I am submitting some variables in url in order to save the data in database what ever user enter in the text fileds but I am unable to do so as I am getting an error called "com.android.volley,Server error". I have tried many solutions on stack overflow like use a variable in a URL object in android and the other one Volley server error with null network response bit it didn't solved my problem. Here is my sample code for registering url Context context; EditText username, address, phoneNumber; Button location, save; …

Member Avatar
+0 forum 0

Hi guys, Here is the question: I have Activity A, Activity B. Now, A --> B . Now, pressed the home button. Now, go to any image & "open with" will show my app. when pressing my app as the option, it will hit Activity A. When it will hit A, intent is handled in this activity. At this stage, A & B are already in the stack. I want to discard all the activities except A. I have done it by restarting the activity using CLEAR_TASK intent (basically a restarter). But problem comes when my app was not opened …

Member Avatar
+0 forum 0

Hello guys... i am a newbie to android development, i tried to load an image from url using picaso and it displays 'node static field, refference cannot be refferenced from static field package io.github.froger.instamaterial.ui.adapter; import android.content.Context; import android.support.v7.widget.LinearLayoutCompat; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextSwitcher; import com.squareup.picasso.Picasso; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import butterknife.Bind; import butterknife.ButterKnife; import io.github.froger.instamaterial.R; import io.github.froger.instamaterial.ui.activity.MainActivity; import io.github.froger.instamaterial.ui.view.LoadingFeedItemView; /** * Created by froger_mcs on 05.11.14. */ public class FeedAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { public static final String ACTION_LIKE_BUTTON_CLICKED = "action_like_button_button"; public static final String ACTION_LIKE_IMAGE_CLICKED = "action_like_image_button"; …

Member Avatar
+0 forum 0

Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance we get in the native method as a parameter. Why do we need it actually? Here is a snippet from one website: JNIEXPORT void JNICALL Java_TestJNIInstanceVariable_modifyInstanceVariable (JNIEnv *env, jobject thisObj) { // Get a reference to this object's class jclass thisClass = (*env)->GetObjectClass(env, thisObj); // int // Get the Field ID of the instance variables "number" jfieldID fidNumber = (*env)->GetFieldID(env, thisClass, "number", "I"); if (NULL == fidNumber) return; // Get …

Member Avatar
+0 forum 0

Hello to all! I have started learning android recently and I am facing a problem in file handling (in internal storage). I wrote a simple program which creates a file and writes some data in that file . I have two buttons first button writes data in the file and creates a toast message saying: "file saved" and second button reads data from the file and creates a toast message "file read". But the problem is that I when i press first button The toast message displays perfectly but I don't know that where the file goes in my device …

Member Avatar
+0 forum 0

hi everyone, i am currently creating an app in android and i used a package from kivy garden;androidtabs but i want to open another screen but it doesnt seem to work from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.textinput import TextInput from kivy.uix.floatlayout import FloatLayout from kivy.uix.label import Label from kivy.properties import ListProperty,ObjectProperty,NumericProperty from kivy.uix.gridlayout import GridLayout from kivy.uix.behaviors import ButtonBehavior from kivy.metrics import dp from material.flatui.flatui import FloatingAction, RaisedButton, _MaterialButton from garden import * from sqlalchemy import * from kivy.core.text import LabelBase from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition ##############UI######################## class MyTab(GridLayout, AndroidTabsBase): pass …

Member Avatar
+0 forum 0

Greetings everyone, I'm still new to android programming and currently leanrning how to connect to DB. I'm following a online tutorial but I'm still facing problems. The tutorial is about creat a registration form and sending it to the database through volley. I'm using .hostinger.ae as host and Android studio. Everything seems fine until I click the register button it give me an error of (Couldn't register ) I couldn't locate the error so please I would appreciate any help dbconnect.php <?php define('HOST','mysql.hostinger.ae'); define('USER','--'); define('PASS','--'); define('DB','u853541076_tuber'); echo "access done"; $con = mysqli_connect(HOST,USER,PASS,DB) or die('Unable to Connect'); and this is the …

Member Avatar
+0 forum 0

Hi guys! im working with google places and i'm currently able to show 20 markers on the map. I have a FloatingActionButton on my map screen and once the user presses/clicks on it it should display the markers based on the next_page_token. Currently ive hard coded one in for testing and it works but im confused on how to implement it so that when the user clicks on the button then it finds new ones each time. My Maps class: package com.example.test.outandabout; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.HashMap; import java.util.List; import org.json.JSONObject; …

Member Avatar
+0 forum 0

I've created a mobile app and styled it with CSS and ThemeRoller on Dreamweaver. It looks great on safari but when I use PhoneGap Build to test it on my Android device, the styling disappears. I've tried embedding the CSS as well as the ThemeRoller style into my code without any luck. Below is a snippet of my code. <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" /> <link href="styleSheet/fgStyle.css" rel="stylesheet" type="text/css"> <link href="themes/fg-designs-custom-theme.css" rel="stylesheet" type="text/css"> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>

Member Avatar
+0 forum 0

i am implementing Google Drive in Android with Java code i didnt use Android formats, i just created client id and i used in Manifest <meta-data android:name="com.google.android.apps.drive.APP_ID" android:value="id=344123456789"/> and my code to create folder is credential = GoogleAccountCredential.usingOAuth2(this, Collections.singleton(DriveScopes.DRIVE)); credential.setSelectedAccountName(accountName); service = getDriveService(credential); java.io.File fileContent = new java.io.File(path); FileContent mediaContent = new FileContent("image/jpeg", fileContent); File fileMetadata = new File(); fileMetadata.setName("Invoices"); fileMetadata.setMimeType("application/vnd.google-apps.folder"); File file = UploadPicture.service.files().create(fileMetadata) .setFields("id") .execute(); i am implementing Google Drive in Android with Java code i didnt use Android formats, i just created client id and i used in Manifest <meta-data android:name="com.google.android.apps.drive.APP_ID" android:value="id=344123456789"/> and my code to create …

Member Avatar
+0 forum 0

Hello! I want to create water drops main screen as well as on icons(images shown on that screen). The capacity of number of rain drops is decided at run time. In assets, i have background image and some icons. Actually what i wanted to do is to create a water drop with bitmap or drawable etc and put it on background image and all other icons run time. Can anyone help me how can i do this?

Member Avatar
+0 forum 0

Hi! I'm interested in being able to detect when someone goes from an awake state to a sleep state. I know this is possible with both the iPhone and Android devices as there are apps on both of these that claim to do this: On IOS there are: 1) Sleep meister 2) Sleep cycle And "Sleep for Android" on Android. All of these make claims in the arena of 'using motion detection/microphone to ascertain when user has fallen asleep' and require the phone on a level footing to the bed. Is there an API that someone has heard of which …

Member Avatar
+0 forum 0

I'm creating a small and simple app to use with my poker league. I've created a small DB that I simply enter the player name, who took them out, and what place they went out in. All of that works just fine. What I need to do is implement the point system that I use so that the points column in the database is automatically populated with the players points based on when they went out of the tournament. I don't have my code with me on this computer, so I'll explain the process as best I can here. Heres …

Member Avatar
+0 forum 0

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

I'm hoping to create a scheduler based on data extracted from an Excel (2016) spreadsheet. At the moment I'm using Ubuntu 14.04 LTS with the desire to port the completed project to Android through Bulldozer. I like what I've heard about the simplicity of Pyqt. The completed project must work with Android. I have Android tablets running Lollipop and KitKat. I can develop using Ubuntu, Windows 7 & 10, Android, environments. What I need to know is if you think I will be working with the right combination of PyCharm, PyQT (if it will work with PyCharm?) and eventually Buildozer …

Member Avatar
+0 forum 0

Hello , i am new in adroid programing , and i need some help and info D: I create an activity with a log in "user" and "pass" and takes the user to the welcome activity, the log in works perfect but when i close the app , and re enter again i need to put again "user" and "pass" . So what i want to do is when someone log in , it stay logged , even if the app is closed , so when the user opens again the app , will take him directly to the welcome …

Member Avatar
+0 forum 0

I'm working on an android project and created a widget for toggling Bluetooth (i.e., Pressing the widget turn on Bluetooth if turned off and vice versa). But the problem is that click listener of button is not working and when I click on the widget on the home screen it does nothing. When I move the widget on the home screen toast message is shown but when I click on the button nothing shown. But I want to show a toast message (or turn on Bluetooth as per requirements) whenerver I clicked on the widget. I do a lot of …

Member Avatar
+0 forum 0

I want to parse json to html, with angularjs, i am converting an xml rss feed to json with npm xml2json I am using angularjs http to get an xml from the server, i am using node module xml2json to convert it to a json object. I get the document returned properly but it doesn't look right because it has html tags in the xml document. If anyone knows how to convert the returned json properly that would be great, var x2js = new X2JS(); var dom = x2js.xml_str2json(escapchr); <my_data> <p class="justify">El <strong><em>Content Tour 2015</em></strong> <strong>Distributors </strong></p></my_data> I am still …

Member Avatar
+0 forum 0

The End.