Object documentation: ContentValues B4A Code Snippet Add image to Gallery Android 5 - 10+ - Erel    Sep 6, 2020   (14 reactions)
ctxt.InitializeContext
If p.SdkVersion >= 29 Then
Dim cr As ContentResolver
cr.Initialize("cr")
Dim values As ContentValues
values.Initialize... As JavaObject = cr.Insert(EXTERNAL_CONTENT_URI, values)
Dim out As OutputStream = ctxt.RunMethodJO...Depends on: Phone, JavaObject and ContentResolver libraries
Sub AddBitmapToGallery (In... B4A Library [library] ContentResolver - Erel    Feb 23, 2016   (5 reactions)
u.Parse("content://com.android.contacts/contacts")
Dim values As ContentValues... a new contact.
Sub InsertContact(Name As String, Phone As String)
Dim values As ContentValues
Dim uri1 As Uri
uri1.Parse("content://com.android.contacts/raw_contacts")
values... to replace them with the actual values.
The features of ContentResolver are similar to SQL... B4A Question RESOLVED ... Manually Add Incoming SMS to Message Logs - mangojack    Apr 6, 2014 .CreateObject("android.content.ContentValues") r.RunMethod3("put", "address... ContentValues As Object = r.Target r.Target = r.GetContext r.Target = r.RunMethod("getContentResolver") r.RunMethod4("insert", Array As Object( _ r.RunStaticMethod... @@@ tried sms/receive , received Array As String("java.lang.String")), _ ContentValues), Array As String("android.net.Uri", "android.content.ContentValues")) End Sub... B4A Question How to insert an image thumbnail into mediastore? - Inman    Jun 27, 2019 solution from Erel using ContentResolver. Now I am trying to do the opposite i.e. insert an image thumbnail into mediastore.
I can see that ContentResolver has an Insert method but the parameters confuse me. The second parameter is Values As android.content.ContentValues. Not sure how to build... be inserted to mediastore.
Based on the java code I found here, it looks like values will include MIME_Type... B4A Question add a new calendar to the device's calendar - SMOOTSARA    May 9, 2020 ://developer.android.com/reference/android/provider/CalendarContract.Calendars Dim ContentValues1 As ContentValues ContentValues1.Initialize ContentValues1.PutInteger(G_CalendarConstants.VISIBLE,1) ContentValues1.PutString(G_CalendarConstants.ACCOUNT_NAME,"[email protected]") ContentValues1.PutString(G_CalendarConstants.ACCOUNT_TYPE,"xxxxx.group") ContentValues1.PutString(G_CalendarConstants.NAME,"Persian Calendar") ContentValues1... B4A Question [SOLVED?] Add a message so native message app can see it - JackKirk    Sep 4, 2019 As Reflector Dim values As Object values = r.CreateObject("android.content.ContentValues") r.Target = values Dim s As String s = "java.lang.String" r.RunMethod4..., "android.content.ContentValues")) End Sub This code requires reflection library. You should add...("getContentResolver") r.RunMethod4("insert", _ Array As Object(r.RunStaticMethod("android.net.Uri", "parse", _ Array As Object("content://sms/sent... B4A Question Java Inline Code - Compile error - mmucek    Oct 30, 2017 android.net.Uri; import android.content.ContentValues; import org.json.JSONObject; public static... HashMap<String, Object>(); ContentValues contentValues = new ContentValues(); String identifier..."); JSONObject jsonObject = new JSONObject(feedbackMap); contentValues.put..., contentValues, Null, Null); } #end if But I get this error: 61111 Any Ideas?...."; public static final Uri CONTENT_URI = Uri.parse("content://com.promdm.fort.prefsprovider... B4A Tutorial Working with Calendars using ContentResolver (Query, Insert, Update, Delete) - DonManfred (first post)    Dec 11, 2018   (1 reaction) Updating an Event.
Using the EventID you just can fill a ContentValues with all Values you want to... As String(Value)
Dim val As ContentValues
val.Initialize
val.PutString(econ.TITLE... B4A Question ContactsUtils Custom Fields - walterf25    Apr 10, 2018 v As ContentValues v.Initialize v.PutString("data1", player) SetData... B4A Question How can I Keep as sms sent with send or send2 - hzytsoft (first post)    Aug 3, 2015   (1 reaction) As Reflector
r.Target = r.CreateObject("android.content.ContentValues")
r.RunMethod3("put....String")
Dim ContentValues As Object = r.Target
r.Target = r.GetContext
r.Target = r..."), _
Array As String("java.lang.String")), _
ContentValues), Array As String("android.net.Uri", "android.content.ContentValues"))
End Sub... Page: 1   2   3   4   5   6   7   |