developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
26
results
Andrew Fletcher
•
If the Android app icon is not changing from the default icon (in my situation this was the Capacitor icon), here are some steps to troubleshoot and resolve the issue:
Check the Icon Files
Ensure that you have provided the correct icon files in the appropriate directory. In a Capacitor project, the Android app icon should be placed in the res directory under various density-specific folders (e.g., mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi, etc.).
Verify File Names
Check that the icon...
Andrew Fletcher
•
Android Studio error
Installation did not succeed.
The application could not be...
Andrew Fletcher
•
Android Studio error
error: package android.support.v4.content does not...
Andrew Fletcher
•
Android Studio build errors
Build failed error: cannot find symbol if...
Andrew Fletcher
•
Initialise your Capacitor config
To initialise Capacitor use the CLI...
Andrew Fletcher
•
Run the NPX commands to update the app
npm run build && npx cap syncRun app with live reload
ionic cap run {platform} -l --externalReplace {platform} with Android or iOS depending on your environment as follows
Android
android
iOS
ios
To open in Android
ionic cap run android -l --externalYou'll be prompted to select a emulator (depending what you have loaded)
? Which device would you like to target?
Pixel 3 API 31 (emulator) (Pixel_3_API_31)
Pixel 5 API 27 (emulator)...
Andrew Fletcher
•
Using the Drupal Poll module and passing via RESTful API - How do...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
•
To get the X-CSRF token, first, you need to login as a member. Follow the...
Andrew Fletcher
•
In retrieving an image, the primary element required is:
File id or fid;
Query string
Using the element outlined above the query string becomes:
{domain}/file/{fid}/?_format=hal_json
Replacing the following variables:
{domain} ~ your-site.com
{fid} ~ 3214
Becomes:
your-site.com/file/3214?_format=hal_jsonGenerates the following output:
{
"_links":
{
"self":
{
"href": "https://your-site.com/file/3214?_format=hal_json"
},
...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
To POST an image is similar to the other posts mentioned on this site....