نویسنده: post bot

  • Waltz’s Use of Messaging Platform Raises New Security Questions

    Waltz’s Use of Messaging Platform Raises New Security Questions


    Michael Waltz got himself in trouble with the White House when, as national security adviser, he inadvertently added a journalist to a sensitive chat on Signal, a commercial messaging app.

    Now, as he leaves that job, he has raised a new set of questions about White House use of the encrypted app. A photograph of him looking at his phone on Wednesday during a cabinet meeting makes it clear that he is communicating with his colleagues — including the secretary of state and the director of national intelligence — using a platform originally designed by an Israeli company that collects and stores Signal messages.

    This discovery of the new system came when a Reuters photographer, standing just over Mr. Waltz’s left shoulder, snapped a photo of him checking his phone.

    He was not using a privacy screen, and when zoomed in, the photo shows a list of messages and calls from several senior officials, including Vice President JD Vance and Steve Witkoff, the special envoy who is negotiating on three fronts: the Israel-Hamas talks, the increasingly tense dance with Vladimir V. Putin about Ukraine and the Iran nuclear talks. Secretary of State Marco Rubio and Tulsi Gabbard, the director of national intelligence, are also on his chat list.

    While the app that Mr. Waltz was seen using on Wednesday looks similar to Signal, it is actually a different platform from a company that advertises it as a way to archive messages for record-keeping purposes. That is critical, because one concern that came up when senior officials were using the app was whether it complied with federal record-keeping rules.

    One of Signal’s benefits is that it is both encrypted and can be set to automatically delete messages. But while that is a feature for users seeking secure communications, it is a problem for the National Archives, as it seeks to retain records.

    It is not clear if Mr. Waltz began using the alternative app when he became national security adviser or after a nonprofit watchdog group, American Oversight, sued the government for failing to comply with records laws by using Signal.

    While the real version of Signal gets constant security updates and messages are kept encrypted until they reach a user’s phone, security experts question how secure the alternative app is.

    “This is incredibly dumb,” said Senator Ron Wyden, the Oregon Democrat who is a longtime member of the Senate Intelligence Committee. “The government has no reason to use a counterfeit Signal knockoff that raises obvious counterintelligence concerns.”

    Cybersecurity experts said the platform that Mr. Waltz was using is known as TeleMessage, which retains copies of messages, a way of complying with the government rules. The screen in the photograph shows a request for him to verify his “TM SGNL PIN.” Time stamps indicate that the communications were as recent as the morning of the cabinet meeting.

    TeleMessage, founded in Israel, was purchased last year by Smarsh, a company based in Portland, Ore.

    The TeleMessage platform accepts messages sent through Signal, and captures and archives them.

    Security experts said the use of TeleMessage raised a number of questions. Some said it appeared that the company had in the past routed information through Israel, which is renowned for its electronic spying skills.

    But a Smarsh representative said data from American clients did not leave the United States. Tom Padgett, the president of Smarsh’s enterprise business, said the collected information was not routed through any mechanism that “could potentially violate our data residency commitments to our customers.”

    Mr. Padgett also said the information was not decrypted while being collected for record-keeping purposes or moved to its final archive. Security experts said that whenever information is de-encrypted, security vulnerabilities could be introduced. “We do not de-encrypt,” Mr. Padgett said.

    Smarsh representatives took issue with the idea that their platform was a modified version of the Signal app. They said their platform simply allowed financial institutions and governments to capture communications on various channels to comply with record-keeping regulations.

    But cybersecurity officials said questions remained about how the TeleMessage platform worked, and what vulnerabilities it could introduce into Signal communications.

    Signal is built on open-source code, which allows other organizations to make their own version that uses the same encryption. But Signal Messenger, the company that makes and controls the app, does not support alternative versions and actively tries to discourage their use.

    Mr. Waltz’s use of TeleMessage was reported earlier by the publication 404 Media. According to the publication, the U.S. government contracted with TeleMessage in December 2024 to archive Signal and WhatsApp messages. Smarsh representatives said they have worked with the federal government for a decade but declined to discuss specific contracts.

    It is not clear if the U.S. government audited TeleMessage to determine how it handles the messages and whether it might break or damage the end-to-end security of Signal. Representatives of the National Security Council staff did not immediately respond to requests for comment. Smarsh representative said they allowed security audits.

    Mr. Wyden said the U.S. government and the Navy had developed secure communications tools that comply with record-keeping rules. Using the modified version of Signal is far less secure, he said.

    “Trump and his national security team might as well post American battle plans on X at this rate,” Mr. Wyden said.

    In response to reports of the photo, Steven Cheung, the White House communications director, said in a social media post that “Signal is an approved app that is loaded onto our government phones.”

    As part of the lawsuit filed by American Oversight, government officials have submitted statements saying that the Signal messages from the chat Mr. Waltz created to discuss strikes on the Houthi militia in Yemen are no longer retrievable.

    Chioma Chukwu, the interim executive director of American Oversight, said she had concerns about the use of the modified app.

    “The use of a modified Signal app may suggest an attempt to appear compliant with federal record-keeping laws, but it actually underscores a dangerous reliance on unofficial tools that threaten national security and put our service members at risk,” she said. “Americans have a right to transparency and to know their leaders are following the law, not hiding behind unauthorized workarounds.”



    Source link

  • Beginning Android & Kotlin | Kodeco

    Beginning Android & Kotlin | Kodeco


    We understand that circumstances can change, and if you need to withdraw from the bootcamp, your options will vary depending on your billing cycle:

    – If you enrolled with a monthly plan, you can cancel your future billing with your membership and you will not be renewed on your next billing date OR you can pause your membership for up to three months, then you can pick up your studies again at that time.

    – If you enrolled with a one-time payment, you will be eligible for a full refund within the first 14 days of your enrollment into the bootcamp.

    *Please note: if you’ve accessed a significant portion of program materials, this might affect your eligibility for a full refund.

    Please email support@kodeco.com for further assistance on the withdrawal process.



    Source link

  • Google Plans to Roll Out Gemini A.I. Chatbot to Children Under 13

    Google Plans to Roll Out Gemini A.I. Chatbot to Children Under 13


    Google plans to roll out its Gemini artificial intelligence chatbot next week for children under 13 who have parent-managed Google accounts, as tech companies vie to attract young users with A.I. products.

    “Gemini Apps will soon be available for your child,” the company said in an email this week to the parent of an 8-year-old. “That means your child will be able to use Gemini” to ask questions, get homework help and make up stories.

    The chatbot will be available to children whose parents use Family Link, a Google service that enables families to set up Gmail and opt into services like YouTube for their child. To sign up for a child account, parents provide the tech company with personal data like their child’s name and birth date.

    Gemini has specific guardrails for younger users to hinder the chatbot from producing certain unsafe content, said Karl Ryan, a Google spokesman. When a child with a Family Link account uses Gemini, he added, the company will not use that data to train its A.I.

    Introducing Gemini for children could accelerate the use of chatbots among a vulnerable population as schools, colleges, companies and others grapple with the effects of popular generative A.I. technologies. Trained on huge amounts of data, these systems can produce humanlike text and realistic-looking images and videos.

    Google and other A.I. chatbot developers are locked in a fierce competition to capture young users. President Trump recently urged schools to adopt the tools for teaching and learning. Millions of teenagers are already using chatbots as study aids, writing coaches and virtual companions. Children’s groups warn the chatbots could pose serious risks to child safety. The bots also sometimes make stuff up.

    UNICEF, the United Nation’s children’s agency, and other children’s groups have noted that the A.I. systems could confuse, misinform and manipulate young children who may have difficulty understanding that the chatbots are not human.

    “Generative A.I. has produced dangerous content,” UNICEF’s global research office said in a post on A.I. risks and opportunities for children.

    Google acknowledged some risks in its email to families this week, alerting parents that “Gemini can make mistakes” and suggesting they “help your child think critically” about the chatbot.

    The email also recommended parents teach their child how to fact-check Gemini’s answers. And the company suggested parents remind their child that “Gemini isn’t human” and “not to enter sensitive or personal info in Gemini.”

    Despite the company’s efforts to filter inappropriate material, the email added, children “may encounter content you don’t want them to see.”

    A Google email to parents this week warned about the risks of Gemini for children.

    Over the years, tech giants have developed a variety of products, features and safeguards for teens and children. In 2015, Google introduced YouTube Kids, a stand-alone video app for children that is popular among families with toddlers.

    Other efforts to attract children online have prompted concerns from government officials and children’s advocates. In 2021, Meta halted plans to introduce an Instagram Kids service — a version of its Instagram app intended for those under the age of 13 — after the attorneys general of several dozen states sent a letter to the company saying the firm had “historically failed to protect the welfare of children on its platforms.”

    Some prominent tech companies — including Google, Amazon and Microsoft — have also paid multimillion-dollar fines to settle government complaints that they violated the Children’s Online Privacy Protection Act. That federal law requires online services aimed at children to obtain a parent’s permission before collecting personal information, like a home address or a selfie, from a child under 13.

    Under the Gemini rollout, children with family-managed Google accounts would initially be able to access the chatbot on their own. But the company said it would alert parents and that parents could then manage their child’s chatbot settings, “including turning access off.”

    “Your child will be able to access Gemini Apps soon,” the company’s email to parents said. “We’ll also let you know when your child accesses Gemini for the first time.”

    Mr. Ryan, the Google spokesman, said the approach to providing Gemini for young users complied with the federal children’s online privacy law.



    Source link

  • Building Intelligent Apps with Apple AI Models

    Building Intelligent Apps with Apple AI Models



    This course explores on-device machine learning using Apple’s powerful tools. See how simple the Vision framework makes complex computer vision tasks, enabling your app to understand the real world, through tasks like object detection and face recognition. Learn to leverage the Translation framework for on-device, real-time language translation, breaking down language barriers for your users. Before finally looking at how to develop your own machine learning models, by customizing Apple’s pre-built models for specific use cases within your apps.



    Source link

  • Android Developers Blog: Introducing Widget Quality Tiers



    Posted by Ivy Knight – Senior Design Advocate

    Level up your app Widgets with new quality tiers

    Widgets can be a powerful tool for engaging users and increasing the visibility of your app. They can also help you to improve the user experience by providing users with a more convenient way to access your app’s content and features.

    To build a great Android widget, it should be helpful, adaptive, and visually cohesive with the overall aesthetic of the device home screen.

    In order to help you achieve a great widget, we are pleased to introduce Android Widget Quality Tiers!

    The new Widget quality tiers are here to help guide you towards a best practice implementation of widgets, that will look great and bring your user’s value across the ecosystem of Android Phone, Tablets and Foldables.

    What does this mean for widget makers?

    Whether you are planning a new widget, or investing in an update to an existing widget, the Widget Quality Tiers will help you evaluate and plan for a high quality widget.

    Just like Large Screen quality tiers help optimize app experiences, these Widget tiers guide you in creating great widgets across all Android devices. Now, similar tiers are being introduced for widgets to ensure they’re not just functional, but also visually appealing and user-friendly.

    Two screenshots of a phone display different views in the Google Play app. The first shows a list of running apps with the Widget filter applied in a search for 'Running apps'; the second shows the Nike Run Club app page.

    Widgets that meet quality tier guidelines will be discoverable under the new Widget filter in Google Play.

    Consider using our Canonical Widget layouts, which are based on Jetpack Glance components, to make it easier for you to design and build a Tier 1 widget your users will love.

    Let’s take a look at the Widget Quality Tiers

    There are three tiers built with required system defaults and suggested guidance to create an enhanced widget experience:

    Tier 1: Differentiated

    Four mockups show examples of Material Design 3 dynamic color applied to an app called 'Radio Hour'.

    Differentiated widgets go further by implementing theming and adapting to resizing.

    Tier 1 widgets are exemplary widgets offering hero experiences that are personalized, and create unique and productive homescreens. These widgets meet Tier 2 standards plus enhancements for layout, color, discovery, and system coherence criteria.

    A stylized cartoon figure holds their chin thoughtfully while a chat bubble icon is highlighted

    For example, use the system provided corner radius, and don’t set a custom corner radius on Widgets.

    Add more personalization with dynamic color and generated previews while ensuring your widgets look good across devices by not overriding system defaults.

     Four mockups show examples of Material Design 3 components on Android: a contact card, a podcast player, a task list, and a news feed.

    Tier 1 widgets that, from the top left, properly crop content, fill the layout bounds, have appropriately sized headers and touch targets, and make good use of colors and contrast.

    Tier 2: Quality Standard

    These widgets are helpful, usable, and provide a quality experience. They meet all criteria for layout, color, discovery, and content.

    A simple to-do list app widget displays two tasks: 'Water plants' and 'Water more plants.' Both tasks have calendar icons next to them. The app is titled 'Plants' and has search and add buttons in the top right corner.

    Make sure your widget has appropriate touch targets.

    Tier 2 widgets are functional but simple, they meet the basic criteria for a usable app. But if you want to create a truly stellar experience for your users, tier 1 criteria introduce ways to make a more personal, interactive, and coherent widget.

    Tier 3: Low Quality

    These widgets don’t meet the minimum quality bar and don’t provide a great user experience, meaning they are not following or missing criteria from Tier 2.

     Examples of Material Design 3 widgets are displayed on a light pink background with stylized X shapes. Widgets include a podcast player, a contact card, to-do lists, and a music player.

    Clockwise from the top left not filling the bounds, poorly cropped content, low color contrast, mis-sized header, and small touch targets.

    A stylized cartoon person with orange hair, a blue shirt, holds a pencil to their cheek.  'Kacie' is written above them, with a cut off chat bubble icon.

    For example, ensure content is visible and not cropped

    Build and elevate your Android widgets with Widget Quality Tiers

    Dive deeper into the widget quality tiers and start building widgets that not only look great but also provide an amazing user experience! Check out the official Android documentation for detailed information and best practices.


    This blog post is part of our series: Spotlight Week on Widgets, where we provide resources—blog posts, videos, sample code, and more—all designed to help you design and create widgets. You can read more in the overview of Spotlight Week: Widgets, which will be updated throughout the week.



    Source link

  • Design with Widget Canonical Layouts



    Posted by Summers Pitman – Developer Relations Engineer, and Ivy Knight – Senior Design Advocate

    Widgets can bring more productive, delightful and customized experiences to users’ home screens, but they can be tricky to design to ensure a high quality focused experience. In this blog post, we’ll cover how easy Widget Canonical Layouts can make this process.

    But, what is a Canonical Layout? It is a common layout pattern that works for various screen sizes. You can use them as a starting point, ready-to-use compositions that help layouts adapt for common use cases and screen sizes. Widgets also provide Canonical Layouts to get started crafting higher quality widgets.

    Widget Canonical Layouts

    The Widget Canonical Layouts Figma makes previewing your widget content in multiple breakpoints and layout types. Join me in our Figma design resource to explore how they can simplify designing a widget for one of our sample apps, JetNews.

    Three side-by-side examples of Widget Canonical Layouts in Figma being used to design a widget for JetNews

    1. Content to adapt

    Jetnews is a sample news reading app, built with Jetpack Compose. With the experience in mind, the primary user journey is reading articles.

      • A widget should be glanceable, so displaying a full article would not be a good use case.
      • Since they are timely news articles, surfacing newer content could be more productive for users.
      • We’ll want to give a condensed version of each article similar to the app home feed.
      • The addition of a bookmark action would allow the user to save and read later in the full app experience.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    2. Choosing a Canonical Layout

    With our content and user journey established, we’ll take a glance at which canonical layouts would make sense.

    We want to show at least a few new articles with a headline, truncated description, and possible thumbnail. Which brings us to the Image + Text Grid layout and maybe the list layout.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    Within our new Figma Widget Canonical Layout preview, we can add in some mock content to check out how these layouts will look in various sizes.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    Moving example of using Widget Canonical Layouts in Figma to design a widget for JetNews

    3. Adapting to breakpoint sizes

    Now that we’ve previewed our content in both the grid and list layouts, we don’t have to choose between just one!

    The grid layout better displays our content for larger sizes, where we have some more room to take advantage of multiple columns and a larger thumbnail image. While the list is working nicely for smaller sizes, giving a one column layout with a smaller thumbnail.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    But we can adapt even further to allow the user to have more resizing flexibility and anticipate different OEM grid sizing. For JetNews, we decided on an additional extra small layout to accommodate a smaller grid size and vertical height while still using the List layout. For this size I decided to remove the thumbnail all together to give the title and action space.

    Consider these in-between design tweaks as needed (between any of the breakpoints), that can be applied as general rules in your widget designs.

    Here are a few guidelines to borrow:

      • Establish a content hierarchy on what to hide as the widget shrinks.
      • Use a type scale so the type scales consistently.
      • Create some parameters for image scaling with aspect ratios and cropping techniques.
      • Use component presentation changes. For example, the title bar’s FAB can be reduced to a standard icon.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    Last, I’ll swap the app icon, round up all the breakpoint sizes, and provide an option with brand colors.

    Examples of using Widget Canonical Layouts in Figma to design a widget for JetNews

    These are ready to send over to dev! Tune in for the code along to check out how to implement the final widget.

    Go try it out and explore more widgets

    You can find the Widget Canonical Layouts at our new Figma Community Page: figma.com/@androiddesign. Stay tuned for more Android Figma resources.

    Check out the official Android documentation for detailed information and best practices Widgets on Android and more on Widget Quality Tiers, and join us for the rest of Widget Spotlight week!

    Android Banner

    This blog post is part of our series: Spotlight Week on Widgets, where we provide resources—blog posts, videos, sample code, and more—all designed to help you design and create widgets. You can read more in the overview of Spotlight Week: Widgets, which will be updated throughout the week.



    Source link

  • Improving User Experience with Apple Intelligence

    Improving User Experience with Apple Intelligence



    This course equips you with the skills to leverage Apple’s latest user experience (UX) advancements within your iOS apps. You’ll explore Writing Tools, a powerful suite for enhancing text input and editing. Dive into Genmoji, a brand new tool for creating custom emoji characters, adding a layer of personalization and expression to your apps. And unlock the power of Siri and App Intents with Apple Intelligence, enabling seamless voice interaction and context-aware functionality within your creations.



    Source link

  • Tune in for our winter episode of #TheAndroidShow on March 13!



    Posted by Anirudh Dewani, Director – Android Developer Relations

    In just a few days, on Thursday, March 13 at 10AM PT, we’ll be dropping our winter episode of #TheAndroidShow, on YouTube and on developer.android.com!

    Mobile World Congress – the annual event in Barcelona where Android device makers show off their latest devices, kicked off yesterday. In our winter episode we’ll take a look at these foldables, tablets and wearables and tell you what you need to get building.

    Plus we’ve got some news to share, like a new update for Gemini in Android Studio and some new goodies for games developers ahead of the Game Developer Conference (GDC) in San Francisco later this month. And of course, with the launch of Android XR in December, we’ll also be taking a look at how to get building there. It’s a packed show, and you don’t want to miss it!

    https://www.youtube.com/watch?v=6Nwq0oI41lg

    Some new Android foldables and tablets, at Mobile World Congress

    Mobile World Congress is a big moment for Android, with partners from around the world showing off their latest devices. And if you’re already building adaptive apps, we wanted to share some of the cool new foldable and tablets that our partners released in Barcelona:

      • OPPO: OPPO launched their Find N5, their slim 8.93mm foldable with a 8.12” large screen – making it as compact or expansive as needed.
      • Xiaomi: Xiaomi debuted the Xiaomi Pad 7 series. Xiaomi Pad 7 provides a crystal-clear display and, with the productivity accessories, users get a desktop-like experience with the convenience of a tablet.
      • Lenovo: Lenovo showcased their Yoga Tab Plus, the latest powerful tablet from their lineup designed to empower creativity and productivity.

    These new devices are a great reason to build adaptive apps that scale across screen sizes and device types. Plus, Android 16 removes the ability for apps to restrict orientation and resizability at the platform level, so you’ll want to prepare. To help you get started, the Compose Material 3 adaptive library enables you to quickly and easily create layouts across all screen sizes while reducing the overall development cost.

    Tune in to #TheAndroidShow: March 13 at 10AM PT

    These new devices are just one of the many things we’ll cover in our winter episode, you don’t want to miss it! If you watch live on YouTube, we’ll have folks standing by to answer your questions in the comments. See you on March 13 on YouTube or at developer.android.com/events/show!




    Source link

  • Never Stop Learning with More Than 1,000 Courses for $20

    Never Stop Learning with More Than 1,000 Courses for $20


    Disclosure: Our goal is to feature products and services that we think you’ll find interesting and useful. If you purchase them, Entrepreneur may get a small share of the revenue from the sale from our commerce partners.

    Remember when learning new skills meant signing up for expensive classes, sitting in freezing (or sweltering) classrooms under fluorescent lights, and wondering if the vending machine would ever accept your crumpled dollar bill? Yeah, StackSkills EDU Unlimited is here to wipe that memory clean.

    For just $19.97—yes, less than your last food delivery—you can grab lifetime access to 1,000+ online courses. IT, coding, graphic design, business strategy, marketing—you name it, it’s probably already waiting for you. New courses are added monthly, so your library actually grows with you over time, not against you.

    This is real-world learning made for real-world schedules. Whether you’re a business leader trying to sharpen your digital strategy, a parent plotting a return to the workforce, a freelancer adding a new service, or a student supplementing a less-than-exciting course catalog—StackSkills gives you the flexibility to learn on your own time, from any device, without having to sacrifice your sanity (or your weekend plans).

    And StackSkills isn’t about fluff. Their 350+ elite instructors are people who’ve been there, done that, and are ready to show you how they actually succeeded (and yes, sometimes how they failed—because that’s where the real lessons live). Each course includes progress tracking, certificates, and even quarterly live Q&As to keep you engaged and growing.

    Compared to one college course that costs, what, $600, $1,000, more?—$19.97 for lifetime access is almost criminally affordable. Plus, you’ll be able to pivot your learning as new trends pop up, industries shift, and opportunities arise. No need to re-enroll, re-pay, or re-think every time you want to pick up a new skill.

    It’s lifetime learning—built for people who actually have lives.

    Take the leap. Own your growth. And seriously, stop paying $300 just to sit through a PowerPoint for beginners class. StackSkills has you covered for life.

    Get lifetime access to StackSkills by EDU for just $19.97 (reg. $600) through June 1.

    EDU Unlimited by StackSkills: Lifetime Access

    See Deal

    StackSocial prices subject to change.



    Source link

  • Generate stunning visuals in your Android apps with Imagen 3 via Vertex AI in Firebase



    Posted by Thomas Ezan Sr. – Android Developer Relation Engineer (@lethargicpanda)

    Imagen 3, our most advanced image generation model, is now available through Vertex AI in Firebase, making it even easier to integrate it to your Android apps.

    Designed to generate well-composed images with exceptional details, reduced artifacts, and rich lighting, Imagen 3 represents a significant leap forward in image generation capabilities.

    Hot air balloons float over a scenic desert landscape with unique rock formations.

    Image generated by Imagen 3 with prompt: “Shot in the style of DSLR camera with the polarizing filter. A photo of two hot air balloons over the unique rock formations in Cappadocia, Turkey. The colors and patterns on these balloons contrast beautifully against the earthy tones of the landscape below. This shot captures the sense of adventure that comes with enjoying such an experience.”

    A wooden robot stands in a field of yellow flowers, holding a small blue bird on its outstretched hand.

    Image generated by Imagen 3 with prompt: A weathered, wooden mech robot covered in flowering vines stands peacefully in a field of tall wildflowers, with a small blue bird resting on its outstretched hand. Digital cartoon, with warm colors and soft lines. A large cliff with a waterfall looms behind.

    Imagen 3 unlocks exciting new possibilities for Android developers. Generated visuals can adapt to the content of your app, creating a more engaging user experience. For instance, your users can generate custom artwork to enhance their in-app profile. Imagen can also improve your app’s storytelling by bringing its narratives to life with delightful personalized illustrations.

    You can experiment with image prompts in Vertex AI Studio, and learn how to improve your prompts by reviewing the prompt and image attribute guide.

    Get started with Imagen 3

    The integration of Imagen 3 is similar to adding Gemini access via Vertex AI in Firebase. Start by adding the gradle dependencies to your Android project:

    dependencies {
        implementation(platform("com.google.firebase:firebase-bom:33.10.0"))
    
        implementation("com.google.firebase:firebase-vertexai")
    }
    

    Then, in your Kotlin code, create an ImageModel instance by passing the model name and optionally, a model configuration and safety settings:

    val imageModel = Firebase.vertexAI.imagenModel(
      modelName = "imagen-3.0-generate-001",
      generationConfig = ImagenGenerationConfig(
        imageFormat = ImagenImageFormat.jpeg(compresssionQuality = 75),
        addWatermark = true,
        numberOfImages = 1,
        aspectRatio = ImagenAspectRatio.SQUARE_1x1
      ),
      safetySettings = ImagenSafetySettings(
        safetyFilterLevel = ImagenSafetyFilterLevel.BLOCK_LOW_AND_ABOVE
        personFilterLevel = ImagenPersonFilterLevel.ALLOW_ADULT
      )
    )
    

    Finally generate the image by calling generateImages:

    val imageResponse = imageModel.generateImages(
      prompt = "An astronaut riding a horse"
    )
    

    Retrieve the generated image from the imageResponse and display it as a bitmap as follow:

    val image = imageResponse.images.first()
    val uiImage = image.asBitmap()
    

    Next steps

    Explore the comprehensive Firebase documentation for detailed API information.

    Access to Imagen 3 using Vertex AI in Firebase is currently in Public Preview, giving you an early opportunity to experiment and innovate. For pricing details, please refer to the Vertex AI in Firebase pricing page.

    Start experimenting with Imagen 3 today! We’re looking forward to seeing how you’ll leverage Imagen 3’s capabilities to create truly unique, immersive and personalized Android experiences.



    Source link