Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Android

4K

Solutions

4K

Contributors

Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android's user interface is based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, variants of Android are also used on notebooks, game consoles, digital cameras, televisions, automobiles and other electronics. Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available, including Delphi, Ruby and Visual Studio (using C++).

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi All,

What is the best way to structure my Android Application

Features

1. Media Player
2. Usage of Restful API's for getting metadata, categories, sub categories.....
3. Exception handling
4. Advertisement ( Google DFP, FB ADs )... I mean support for VAST is must
5. Logging
6. Do we need ROOM or SQLite ??
7. This app may be made available in Android STB's too

On top that If I have to whitelabel the app I have to build the app dynamically based on the themes, logo ,,, selected by customer from our web site.
0
[Webinar] Database Backup and Recovery
LVL 11
[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Hi, so I've got an Ionic 3 app which has a native camera plugin and onesignal plugin as well for notifications.

The native camera plugin works fine in Ionic View or DevApp, and onesignal works when build it to an APK and run it natively on my Android phone.

However, when I use an emulator to run it, even on IOS, it comes up with cordova_not_available. And even the cameras don't work. i run the command

ionic cordova run android or ionic cordova run ios

Emulator shows up but the issue is that cordova doesn't seem to be compiled in. Thus causing cordova plugins to fail.

What can possible be the issue? I've removed all the plugins and android/ios platform, re-installed an still the same.

It's kind of difficult to develop the OneSignal notification when I can't run it with the emulator.

Anyone who has come across this, please advice.
0
I have a Samsung Galaxy S5 (but soon to upgrade to Note 8). When I go travelling I always take with me my trusty Nikon D7100 digital SLR with 18-85mm lens. Smartphones can take great photos these days but are still lacking due to their lens.

Conversely, my Nikon camera, although a very good camera, is heavy, cumbersome, and I also need to bring the case and charger.

Further, I can't backup to cloud, edit, or share (email, Whatsapp) my pictures directly from the SLR camera. For this I'd need to bring a laptop with me, whereas with my phone I can do these three things from the phone. Also my phone can GPS-tag the photos, whilst to do this on my Nikon I'd need to buy a separate GPS unit to attach it to the camera, thereby making it even more cumbersome.

Viewing recently taken photos on a smartphone screen is much more pleasurable, not to mention the pinch-to-zoom. Also, my phone these days has more free storage space than my camera has in total.

So, to my question... Is there a way that I can have the best of both worlds? Does there exist some sort of 'cradle', where I can attach my current Nikon lenses, and a shoulder strap, and then just slot in the phone to turn it into a fully functional DSLR camera?

As for connection between the phone and the 'thing', I initially thought WiFi, but I think that this would cause a Osh with the viewfinder, so probably USB-C would be best. Plus, with a cable you could potentially or a battery inside the thing which could be used to charge …
0
Greetings, experts!

After 14 years of using various incarnations of Windows Phone and Windows Mobile, I've resigned myself to the inevitable fact that Windows Phone is dead. So, I recently purchased a Samsung Galaxy S8, and I've successfully exported my Contacts from Windows Live and imported them into my Android Phone.

But, I don't see any way to export my Calendar information so that I can import that into the Android phone. I have many years worth of data in my Calendar, and I really don't want to lose that. It's still stored on office.live.com, but what is the best way to get that into my new Android?

Thanks!
DaveSlash
0
Hi,

I have a connection issue to my openvpn (Synology) on Windows, but same config works fine on Android.
On server itself I don't find any log indicating what is going on.

Can you advise?

Openvpn config (tcp to be able to connect from behind firewall) works fine on Android, not on Windows:
allow-recursive-routing
ifconfig-nowarn
client
verb 4
connect-retry 2 300
resolv-retry 60
dev tun
remote mysite:myport tcp-client
auth-user-pass
<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

</ca>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----

</key>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

</cert>
comp-lzo
route-ipv6 ::/0
route 0.0.0.0 0.0.0.0 vpn_gateway
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
dhcp-option DOMAIN blinkt.de
nobind
persist-tun
# persist-tun also enables pre resolving to avoid DNS resolve problem
preresolve
# Use system proxy setting
#management-query-proxy
# Custom configuration options
# You are on your on own here :)
# These options found in the config file do not map to config settings:
mute-replay-warnings 
ifconfig-nowarn 
resolv-retry infinite 

Open in new window

Connection log
Thu Jan 11 18:23:09 2018   pkcs11_cert_private = DISABLED
Thu Jan 11 18:23:09 2018   pkcs11_cert_private = DISABLED
Thu Jan 11 18:23:09 2018   pkcs11_cert_private = DISABLED
Thu Jan 11 18:23:09 2018   pkcs11_cert_private = DISABLED
Thu Jan 11 18:23:09 2018   pkcs11_pin_cache_period = -1
Thu Jan 11 18:23:09 2018   pkcs11_id =

Open in new window

0
We just started using a VPN.  When I entered the information for the VPN I now get the message "Working Offline" and I can no longer send/retrieve email.  I use Outlook 2010 https://outlook.office365.com/mapi/emsmd.

How do I fix this?  I run my entire life out of Outlook.  It syncs to my Android phone:  keeps all of my appointments, contacts, and email.  If I cannot access these things on my computer and still need to sync with my phone.
0
Hi, having an issue where the Android phone I am testing my Google Play Store link from has a different result from two different domains, not sure why?

On my staging setup, Google play doesn't seem to register that I have already purchased the App, but on the clients live site it recognises that the App has already been installed, IOS devices work perfectly on both domains.

Device and browser information of the Android phone my client has tested with:
https://whatsmybrowser.org/b/UEAUC3M

From live site:


http://mynonoi.com/about-nonoi.html Google Play button links to:
https://play.google.com/store/apps/details?id=com.lighstromo.nonoithekakapo

Result:
Google Play from mynonoi.com
From new staging site

http://sandbox.digiscape.co.nz/nonoi/ Google Play button link to:

https://play.google.com/store/apps/details?id=com.lighstromo.nonoithekakapo

Result:
Google Play from staging server
A point in the right direction or troubleshooting advice would be great, has anyone experienced this before, if so how did you fix it?
0
We currently have MaaS360 and want to come away from that due to the limited functionality and lack of helpful features. We would require something that provides more control over the device. So that we can allow and restrict apps as necessary.

EDIT: We also push 3 apps currently and would require that feature as well. Something does a fairly good job at auditing the devices within the company.
0
i bought phaser 3020, after setup wirless connection, 1 cannot connet to my android mobile , because mobile can see it but  asking aboute passward ??? i do not know
0
SM-G920P
samsung galaxy s6
android 7


I want to show a screenshot of sms message chat

One message is longer than 140 characters so I need to click on that message and show screenshot of that one message because on screen only first 140 characters
I would like to show everything on one screen.
Maybe reduce font size also so I can show a third & fourth message
0
Free Tool: Subnet Calculator
LVL 11
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

I had this question after viewing small downloads folder.

SM-G920P
samsung galaxy s6
android 7


alphainventor.filemanager

has many items in download folder.

I have a related question because airbnb app only shows 9 items in download folder (newest nine).
Older items with same name have no picture.
I can not attach these items.
Airbnb does not recognize these files as images.

So it is an airbnb app error.
0
SM-G920P
samsung galaxy s6
android 7

battery requires more charging than when I first got it.

What are all the supplies (with web links) to hardware/tools I need to replace the battery.
0
SM-G920P
samsung galaxy s6
android 7

I had an app (I forget the name) that had too much clicking. All the time telling me I have this app. I think I had to interact with the app every time I touched the phone.

I would like an app that works in the background to prevent battery overcharging.
0
Hello,

I wrote an Android App in Delphi.

I noticed the some applications are installed directly under root directory e.g. /sdcard/AnkiDroid or /sdcard/doubleTwist.
However my app is installed somewhere else (I think /sdcard/Android/data).

How can I change it? Or if I can't how can I make the installation make a folder in the root directory?
I need the user to copy a file there so as my app would parse it.

Thank you very much!
0
I am trying to add custom layout to my preferences. Here is the relevant code.

1. SettingsActivity

        public class SettingsActivity extends AppCompatActivity {
        private SettingsFragment mSettingsFragment;

        @Override
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment);

        FragmentManager fm = getFragmentManager();
        mSettingsFragment = (SettingsFragment) fm.findFragmentByTag(SettingsFragment.TAG);
        if (mSettingsFragment == null) {
            mSettingsFragment = SettingsFragment.newInstance(R.xml.settings_main);
        }

        try {

            fm.beginTransaction()
                .replace(R.id.content_frame, mSettingsFragment, SettingsFragment.TAG)
                .commit();
        } catch (Exception ex) {

        }

        }

        @Override
        public void onBackPressed() {
        if (getFragmentManager().getBackStackEntryCount() > 0) {
            getFragmentManager().popBackStack();
        } else {
            super.onBackPressed();
        }
        }
        }


activity_fragment :

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:id="@+id/root"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">


    <FrameLayout
  …
0
hi
i want web view Android application open source for
0
This is setting up an MS Exchange Server 2010 with SP3 in a MS Windows 2008 r2-based AD Domain test environment. The mail is working, as setting up an MS Outlook (anywhere) on a laptop is working fine. Few of the client access roles, such as, RPC over Https, owa, EAS, autodiscover, are enabled. We are using MS Certificate service to be the Certificate Authority to issue Exchange Certificate for OWA, Outlook Anywhere, etc.

However, while try to setup the mail client on android phone using either Outlook or Exchange mode, both seem to have problem. Mail client may completed setting up, but attempt to sent email failed. A security error as follows is prompting:

     Security warning for usera@abc.com
 
     There are problems with the security certificate for this site.

     Certificate not from a trusted authority

     VIEW   CANCEL   CONTINUE

I can see quite a number of CAs located in the Trusted root CA store. My CA is in pcks#7 (.p7b), and the exchange certificate is in .cer format. I heard that this android ca store only accept CA in format of pcks#12 (.pfx), is that true? How can I proceed to import the CA into the trusted root ca store of my android phone?

Thanks,
0
I had this question after viewing Windows Portable Devices (WPD) and Events.

Hi, I need to monitor the WPD devices like android mobile phone, digital camera. So whether it is possible through WPD APIs in C#? Please suggest
0
	private $customer=$this->request->post['customer_id'];
	private $session=$this->request->post['session_id'];
	private $api_id=$this->config->get('feed_rest_api_key');
	public function __construct($registry) {
		// Remove all the expired carts with no customer ID
		$this->db->query("DELETE FROM " . DB_PREFIX . "cart WHERE (api_id>'0' OR customer_id='0') AND date_added < DATE_SUB(NOW(), INTERVAL 1 HOUR)");

		if ($this->customer) {
			// We want to change the session ID on all the old items in the customers cart
			echo "UPDATE " . DB_PREFIX . "cart SET customer_id = '".$this->customer."'  WHERE api_id = '".$this->api_id. "' AND session_id = '".$this->session."'";
			$this->db->query("UPDATE " . DB_PREFIX . "cart SET customer_id = '".$this->customer."'  WHERE api_id = '".$this->api_id. "' AND session_id = '".$this->session."'");

			}
	}	
public function getProducts() {
		$product_data = array();

	$cart_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "cart WHERE api_id = '".$this->api_id. "' AND customer_id = '".$this->customer."' AND session_id = '" . $this->db->escape($this->session). "'");
	
			$cart_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "cart WHERE api_id = '" .$this->api_id. "'  AND session_id='".$this->session."'");

		foreach ($cart_query->rows as $cart) {
}
	}

Open in new window

0
Upgrade your Question Security!
LVL 11
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Hello. I am trying to create an app using an Android library called Weatherlib. I am currently using Yahoo as my weather provider. However, I have tried to edit the code in Weatherlib so that it is more up to date, due to recent deprecations. The main place where I am getting an issue is here:

public class YahooWeatherProvider implements IWeatherProvider {

    private static String YAHOO_GEO_URL = "http://where.yahooapis.com/v1";
    private static String YAHOO_WEATHER_URL = "http://weather.yahooapis.com/forecastrss";
    private static final String YAHOO_IMG_URL = "http://l.yimg.com/a/i/us/we/52/";

Open in new window


The GitHub repository is over here: https://github.com/survivingwithandroid/WeatherLib

Any pointers as to where I should redirect the URLs to? I have already filed an issue GitHub issues, and have updated the repository to its latest version.
0
activity_main.xml

<?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:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp"
    tools:context="in.aftershoot.www.websitetoapplication.MainActivity">
<WebView
    android:id="@+id/webView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
</WebView>
</RelativeLayout>


MainActivity.java

package in.aftershoot.www.websitetoapplication;



        import android.graphics.Bitmap;
        import android.support.v7.app.AppCompatActivity;
        import android.os.Bundle;
        import android.webkit.WebView;
        import android.webkit.WebViewClient;

public class MainActivity extends AppCompatActivity {

    private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        webView = (WebView) findViewById(R.id.webView);
        webView.setWebViewClient(new myWebClient());
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl("http://192.168.0.101/whatsapp_message_sender/index.php");
        …
0
Hi to all,

I use an ArrayList<HashMap<String, String>> contactList; to load some content download by a web URL with my Android APP.

The problem is that everytime a reload the activity or I update the activity to download more information, the code adds all the new data without checking if it already exists.

What is the best solution to remove the duplicates?

This is my code:

ArrayList<HashMap<String, String>> contactList;
protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_loc);

        contactList = new ArrayList<>();
       //... other code
    }

 private void getMyLocation() {
        if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)
                != PackageManager.PERMISSION_GRANTED
                && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)
                != PackageManager.PERMISSION_GRANTED) {
        
            ActivityCompat.requestPermissions(ListLoc.this,
                    new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
                    MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);

            return;
        }
        mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
        if (mLastLocation != null) {

            latitude = mLastLocation.getLatitude();
            longitude = mLastLocation.getLongitude();
            

Open in new window

0
Hello,

I would like to retrieve the item position when the user clicks on a specific item in my ListView in order to pass this information to a new activity with putExtra() method.

I set the adapter in this way (line 269 in my code below):

protected void onPostExecute(Void result) {
            super.onPostExecute(result);
            // Dismiss the progress dialog
            if (pDialog.isShowing())
                pDialog.dismiss();
            /**
             * Updating parsed JSON data into ListView
             * */
            adapter = new SimpleAdapter(
                    ListLoc.this, contactList,
                    R.layout.list_item, new String[]{"name"}, new int[]{R.id.name});

            lv.setAdapter(adapter);
            lv.setItemsCanFocus(true);
            lv.setOnItemClickListener(itemClickedListener);

        }

Open in new window


and then I use the method in this way:

OnItemClickListener itemClickedListener = new OnItemClickListener() {
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            // TODO Auto-generated method stub
            System.out.println("HELLOOOOOOOO");
        }
    };

Open in new window

but it doesn't work since I never see the string "HELLOOO".
It seems that the items are not selectable in the ListView.

How can I solve this problem?

This is my whole code ListLoc.java:

package skeetty.skeetty;

import android.content.Intent;
import 

Open in new window

0
I'm trying to read the latitude and the longitude from the device's current location and use these data to retrieve information from maps.googleapis.com. I'm correctly able to find the user location, but I'm not able to use the latitude and longitude values outside the onConnected() method.

When I try to read url from GetContacts() class, latitude and longitude are always NULL.

I declared url as global at the top of the ListLoc class in this way:

public String url = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location="+latitude+","+longitude+"&radius=1500&type=restaurant&key=AIzaSyAEDCSCA9yVaKhV7UNNcuGV8CaUlsBVNQE";

Open in new window


I tried to read the variables inside the OnConnected() method in this way:

latitude = mLocation.getLatitude();
longitude = mLocation.getLongitude();

Open in new window


Please, can you give me some suggestions on how to solve my problem? I tried to use global variables, but I didn't solve the issue.

I need to pass the variable url to makeServiceCall() with the correct latitude and longitude.
I would like to know why I get this error and how I can solve it.
Thank you a lot!



This is my whole code:

package skeetty.skeetty;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import android.app.ProgressDialog;
import android.os.AsyncTask;
import 

Open in new window

0
I have a Polaroid P900 android tablet.  How do I close an app that is running?
0

Android

4K

Solutions

4K

Contributors

Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets. Android's user interface is based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, variants of Android are also used on notebooks, game consoles, digital cameras, televisions, automobiles and other electronics. Applications are usually developed in Java programming language using the Android software development kit (SDK), but other development environments are also available, including Delphi, Ruby and Visual Studio (using C++).