---
title: createConnection(String jsonProfile)
slug: isac/admin-guide/android/createconnectionstring-jsonprofile
docTags: 
createdAt: 2026-07-23T05:01:25.253Z
---

Creates a new VPN profile.

### Syntax:

int createConnection(String jsonProfile)

### Parameters:

The jsonProfile is the VPN profile in the JSON string format.

### Returns:

This method returns 0 on success and 1 on error. When this method returns 1, the caller can call getErrorString() to obtain a description of the errorFor more information, see [JSON String Format for createConnection](docId\:ziQff6mRjD7p8az7lk7Cs).

###  
