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

I have three tables(table, table2,table3). From table1 i want to return three rows: Title, Desc,time,'products' AS type From table2 i want to return three rows: group_title, group_desc, created,'groups' AS type From table3 i want to return three rows: name, occupation,birth,'users' AS type $sql = "SELECT DISTINCT * FROM (SELECT table1.title, table1.desc, table1.time,'products' AS type FROM table1 ORDER BY rand() LIMIT 5) AS T UNION ALL (SELECT table2.group_name,table2.group_desc,table2.created,'groups' AS type FROM tabl2 JOIN table1 ON table2.id = table1.id ORDER BY rand() LIMIT 5) UNION ALL (SELECT table3.name,table3.occupation,table3.birth,'users' AS type FROM table3 JOIN table1 ON table3.id = table1.id ORDER BY rand() LIMIT …

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

Hello i want to make a video player with HTML5. I t has to have other angular tags and an object inside the <video> tag. The source code below explkains what i want to do. Is it possible? Any suggestions? <video controls preload="metadata" style="width:100%; height:100%;z-index: 100"> <source src="//vjs.zencdn.net/v/oceans.webm" type="video/webm" /> <source src="//vjs.zencdn.net/v/oceans.mp4" type="video/mp4" /> <source src="//vjs.zencdn.net/v/oceans.ogg" type="video/ogg" /> <ion-card-content> <ion-item (click)="goUser(media.uid_fk)"> <ion-avatar item-start > <img src="{{media.profile_pic}}"> </ion-avatar> <h2>{{media.username}}</h2> <p>{{media.bio}}</p> </ion-item> <ion-item> <h2 style="color:#fff" (click)="goMedia(media)">{{media.title}}</h2> <p>{{media.description}}</p> </ion-item> </ion-card-content> </video> p.s. it shows the video but not the other inside of it, tags like h2, p ion-item

Member Avatar
+0 forum 0

I have a function that returns an array of photos and videos from an iOS device's camera roll. The info is returned correctly, however, I'm also needing to return the path to the photo and video which I've been unable to do so far. Here is the code I'm using. The photo and video path code is about 2/3 down this snippet starting with: "if (asset.mediaType == PHAssetMediaTypeImage)": - (void) photos:(CDVInvokedUrlCommand*)command { if (![self isNull:self.photosCommand]) { [self failure:command withMessage:E_PHOTO_BUSY]; return; } self.photosCommand = command; CDVPhotos* __weak weakSelf = self; [self checkPermissionsOf:command andRun:^{ NSArray* collectionIds = [weakSelf argOf:command atIndex:0 withDefault:nil]; NSLog(@"photos: …

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

I am Working on Xcode 9.2 Swift 4.0 using FacebookSDKs-iOS-20160316 for Facebook Login Authentication Integration . My storyboard is empty . On Running Facebook Login button is coming on an app When clicked Facebook login page comes, after successful login Permission for my app is asked, When allowed following page comes Please refer Link : https://stackoverflow.com/questions/52867810/facebook-login-button-not-changing-to-logout-button-immediate-after-login-in-swift **For images** When I click on done button of this page I am redirected to my storyboard , and this time also same login button is there , my login button is not changed to Logout. On clicking it again following page comes: Please …

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

Friends, I am using web service and forms for a number of situations in my project. But now when I try to use same strategy the data is not provided by the provider function. It gives ‘null’ value always. But I can see the value in chrome web console. page.ts (controller) call function **this.getYearMaster(); ** in constructor my controller function is getYearMaster() { this.projectplanprovider.getYearMaster() .then(data => { this.year = data; //console.log(this.data); alert("hi: "+this.year); }); } my provider function is public getYearMaster() { const obj = {wsname: 'YearMaster' }; const myData = JSON.stringify(obj); return new Promise((resolve, reject) => { console.log('will call …

Member Avatar
+0 forum 0

Hello i made a ionic searchbar script returns the items[] ok but i want to connect it with my php authservice and return the results from a php function. I already connected my app with the authservice and i have returned JSON data in other pages so the authservice works fine i just don't know how to put the php function in here this.items = [ { title: 'one' }, { title: 'two' }, { title: 'three' }, { title: 'four' }, { title: 'five' }, { title: 'six' } ]; this is what i've done so far. searchPage.ts @Component({ …

Member Avatar
+0 forum 0

Hello i want to pass the user id (uid) from the home page to a user Details Page. Because i display multiple users on my home page i don’t wan to pass the user session id (as given by the `JSON.parse(localStorage.getItem("userData"));` ), i want to click on the name of any user on the home page and pass its id and other parameters on the user details page. home.html `<p (click)="UserPage()" [innerHTML]="item.username | linky"></p>` home.ts public userDetails: any; public resposeData: any; public dataSet: any; public noRecords: boolean; rootPage: any = HomePage; pages: Array<{ title: string, component: any }>; userPostData = …

Member Avatar
+0 forum 0

Friends, I have a search list as shown in image below ![View3.png](/attachments/large/2/d1321f559022df4c5850e9a5fce3635e.png "align-left") When clicking on a result i need to show that detaIls on same place without going to another page ( like ajax in web) . I click first row in search result got that details as shown ![View4.png](/attachments/small/2/ab5a19e0457545e19d4f00c2946dadff.png "align-left") * Here List of projects replaced by Project details * Is that possible ? when click item i call a provider to take web service data. Please advise how it can done with a sample ... Thanks Anes

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

I have two apps that are both open source, I am using Swift on iOS. I want to incorporate one into the other. The main App is a radio station, the second is a news feed. I want the news feed as a "sub project". After a few days of Googling I have added the sub-project as advised on the following pages: https://forums.developer.apple.com/thread/49659 https://curisious.com/the-correct-way-to-add-existing-project-to-workspace/ And I have tried to link the sub-project/framework as detailed here https://www.raywenderlich.com/126365/ios-frameworks-tutorial I seem to have got the first bit sorted, I have the newsfeed as a dependency to the radio player, but I am struggling …

Member Avatar
+0 forum 0

Hello i have a problem with my Ionic App. I am using typescript files. I am getting console log `No Access` that means there is a problem with `resposeData`. Any hint? I am really stuck home.ts file import { Component, ViewChild } from "@angular/core"; import { NavController, App, AlertController } from "ionic-angular"; import { AuthService } from "../../providers/auth-service"; import { Common } from "../../providers/common"; import { Camera, CameraOptions } from "@ionic-native/camera"; @Component({ selector: "page-home", templateUrl: "home.html" }) export class HomePage { @ViewChild("updatebox") updatebox; public userDetails: any; public resposeData: any; public dataSet: any; public noRecords: boolean; userPostData = { uid: "", …

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

so i tried the handheld.playfullscreenmovie but all i see when i run it is white screen. here's what i did public class splashy : MonoBehaviour { // Use this for initialization void Start () { splashyVoid(); } // Update is called once per frame void Update () { } void splashyVoid() { Handheld.PlayFullScreenMovie("supersplashyyy.mp4", Color.black, FullScreenMovieControlMode.Hidden); } } im completely new to unity. thanks for answering this.

Member Avatar
+0 forum 0

Upload IPA to App Store in Windows system https://github.com/qtb000/appuploader/wiki/Windows-system-packaged-iOS-app-posted-on-the-flow-chart

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

I am trying to change the background of imageview using the following code. Here's my xml code. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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.devnami.maya.maya.MainActivity" > <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/forest" android:adjustViewBounds="true" android:scaleType="fitXY" android:id="@+id/view1" /> <ImageButton android:id="@+id/button1" android:layout_width="45dp" android:layout_height="45dp" android:textStyle="bold" android:textColor="#FFFFFF" android:background="@drawable/flower" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" /> </RelativeLayout> And here's my mainactivity.java code. public class MainActivity extends AppCompatActivity { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ImageButton one = (ImageButton) this.findViewById(R.id.button1); ImageButton one = (ImageButton) this.findViewById(R.id.button1); one.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ImageView iv =(ImageView)this.findViewById(R.id.view1) int i = 0; if (i == 0) { iv.setImageResource(R.drawable.mountain)); i++; } else if (i == 1) { iv.setImageResource(R.drawable.seashore3); i++; …

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

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

The End.